drm/amdgpu: update CPER century timestamp
Subsystems (2)
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.
Signed-off-by Tony Yi <[email protected]>
--- 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
@@ -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