]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: clear related counter after RAS eeprom reset
authorTao Zhou <tao.zhou1@amd.com>
Sat, 21 Feb 2026 12:11:03 +0000 (20:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Mar 2026 21:42:35 +0000 (16:42 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c

index 6fba9d5b29ea65da0fe4adde5e06119da1dc43e2..44fba4b6aa92a6eb5736e9b798112fe651fd4f74 100644 (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);