Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Tao Zhou and committed by
Alex Deucher
3d77ca68 2e36bc6a

+3
+3
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
··· 508 508 control->bad_channel_bitmap = 0; 509 509 amdgpu_dpm_send_hbm_bad_channel_flag(adev, control->bad_channel_bitmap); 510 510 con->update_channel_flag = false; 511 + /* there is no record on eeprom now, clear the counter */ 512 + if (con->eh_data) 513 + con->eh_data->count_saved = 0; 511 514 512 515 amdgpu_ras_debugfs_set_ret_size(control); 513 516