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:
Tao Zhou 2026-02-21 20:11:03 +08:00 committed by Alex Deucher
parent 2e36bc6abd
commit 3d77ca68eb

View File

@ -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);