mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 17:03:47 -04:00
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>
This commit is contained in:
@@ -1412,9 +1412,11 @@ int amdgpu_ras_eeprom_init(struct amdgpu_ras_eeprom_control *control)
|
||||
}
|
||||
|
||||
res = __verify_ras_table_checksum(control);
|
||||
if (res)
|
||||
DRM_ERROR("RAS Table incorrect checksum or error:%d\n",
|
||||
if (res) {
|
||||
dev_err(adev->dev, "RAS Table incorrect checksum or error:%d\n",
|
||||
res);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (ras->bad_page_cnt_threshold > control->ras_num_recs) {
|
||||
/* This means that, the threshold was increased since
|
||||
* the last time the system was booted, and now,
|
||||
|
||||
Reference in New Issue
Block a user