diff options
| author | 2022-03-03 17:56:33 +0800 | |
|---|---|---|
| committer | 2022-03-15 14:25:16 -0400 | |
| commit | 69691c823531c36c7283ecaa040e99e9c12ece07 (patch) | |
| tree | 4666666c49d8350de6c869bdd9fa759611e962e4 /drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | |
| parent | drm/amd/pm: add send bad channel info function (diff) | |
| download | linux-dev-69691c823531c36c7283ecaa040e99e9c12ece07.tar.xz linux-dev-69691c823531c36c7283ecaa040e99e9c12ece07.zip | |
drm/amdgpu: message smu to update bad channel info
It should notice SMU to update bad channel info when detected
uncorrectable error in UMC block
Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c index 85da6cbaf3b7..aad3c8b4c810 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c @@ -97,6 +97,11 @@ static int amdgpu_umc_do_page_retirement(struct amdgpu_device *adev, amdgpu_ras_save_bad_pages(adev); amdgpu_dpm_send_hbm_bad_pages_num(adev, con->eeprom_control.ras_num_recs); + + if (con->update_channel_flag == true) { + amdgpu_dpm_send_hbm_bad_channel_flag(adev, con->eeprom_control.bad_channel_bitmap); + con->update_channel_flag = false; + } } if (reset) |
