Skip to contentSkip to conversation

drm/amdgpu: update CPER century timestamp

PATCH New Tony Yi 1 participant 1 message Aug 20, 2025

Subsystems (2)
lore
Share & tools
lore

Tony Yi

author
#0 lore raw

PATCH 1/1 drm/amdgpu: update CPER century timestamp

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

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c +1 -1
index 6c266f18c598..6ec68ba31ecb 100644
@@ -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,
Signature · 1 line
2.34.1