mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
drm/amdgpu: clear related counter after RAS eeprom reset
Make eeprom data and its counter consistent. Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
2e36bc6abd
commit
3d77ca68eb
|
|
@ -508,6 +508,9 @@ int amdgpu_ras_eeprom_reset_table(struct amdgpu_ras_eeprom_control *control)
|
|||
control->bad_channel_bitmap = 0;
|
||||
amdgpu_dpm_send_hbm_bad_channel_flag(adev, control->bad_channel_bitmap);
|
||||
con->update_channel_flag = false;
|
||||
/* there is no record on eeprom now, clear the counter */
|
||||
if (con->eh_data)
|
||||
con->eh_data->count_saved = 0;
|
||||
|
||||
amdgpu_ras_debugfs_set_ret_size(control);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user