[PATCH] drm/amdgpu: update CPER century timestamp

Tony Yi Tony.Yi at amd.com
Wed Aug 20 13:50:53 UTC 2025


Update the amdgpu CPER century timestamp to UEFI
century + 1 (i.e. 21) to align with CPERs generated
by other AMD products.

Signed-off-by: Tony Yi <Tony.Yi at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
index 6c266f18c598..6ec68ba31ecb 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
@@ -49,7 +49,7 @@ static void amdgpu_cper_get_timestamp(struct cper_timestamp *timestamp)
 	timestamp->day = tm.tm_mday;
 	timestamp->month = 1 + tm.tm_mon;
 	timestamp->year = (1900 + tm.tm_year) % 100;
-	timestamp->century = (1900 + tm.tm_year) / 100;
+	timestamp->century = (1900 + tm.tm_year) / 100 + 1;
 }
 
 void amdgpu_cper_entry_fill_hdr(struct amdgpu_device *adev,
-- 
2.34.1



More information about the amd-gfx mailing list