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...@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