Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: return error when eeprom checksum failed

Return eeprom table checksum error result, otherwise
it might be overwritten by next call.

V2: replace DRM_ERROR with dev_err

Signed-off-by: Jinzhou Su <jinzhou.su@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Jinzhou Su and committed by
Alex Deucher
9db3aed8 2965e635

+4 -2
+4 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
··· 1412 1412 } 1413 1413 1414 1414 res = __verify_ras_table_checksum(control); 1415 - if (res) 1416 - DRM_ERROR("RAS Table incorrect checksum or error:%d\n", 1415 + if (res) { 1416 + dev_err(adev->dev, "RAS Table incorrect checksum or error:%d\n", 1417 1417 res); 1418 + return -EINVAL; 1419 + } 1418 1420 if (ras->bad_page_cnt_threshold > control->ras_num_recs) { 1419 1421 /* This means that, the threshold was increased since 1420 1422 * the last time the system was booted, and now,