drm/amdgpu: add printing after executing page reservation to eeprom
This will tell users if the faulty page has been written to external eeprom device in dmesg log. Signed-off-by: Guchun Chen <guchun.chen@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ebfbd1c2ca
commit
ee10e06eb0
|
@ -1618,7 +1618,7 @@ static int amdgpu_ras_save_bad_pages(struct amdgpu_device *adev)
|
||||||
data = con->eh_data;
|
data = con->eh_data;
|
||||||
save_count = data->count - control->num_recs;
|
save_count = data->count - control->num_recs;
|
||||||
/* only new entries are saved */
|
/* only new entries are saved */
|
||||||
if (save_count > 0)
|
if (save_count > 0) {
|
||||||
if (amdgpu_ras_eeprom_process_recods(control,
|
if (amdgpu_ras_eeprom_process_recods(control,
|
||||||
&data->bps[control->num_recs],
|
&data->bps[control->num_recs],
|
||||||
true,
|
true,
|
||||||
|
@ -1627,6 +1627,9 @@ static int amdgpu_ras_save_bad_pages(struct amdgpu_device *adev)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dev_info(adev->dev, "Saved %d pages to EEPROM table.\n", save_count);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue