diff options
| author | Srinivasan Shanmugam <[email protected]> | 2024-12-13 11:16:42 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-01-06 19:44:28 +0000 |
| commit | 9095567bc31bd404be54b0616bdb705011ee2cd9 (patch) | |
| tree | 6aaed7da4d38da3812fe05a9aeb0eb18af7fa6fc /drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | |
| parent | drm/amdkfd: wq_release signals dma_fence only when available (diff) | |
| download | kernel-9095567bc31bd404be54b0616bdb705011ee2cd9.tar.gz kernel-9095567bc31bd404be54b0616bdb705011ee2cd9.zip | |
drm/amdgpu: Fix error handling in amdgpu_ras_add_bad_pages
It ensures that appropriate error codes are returned when an error
condition is detected
Fixes the below;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2849 amdgpu_ras_add_bad_pages() warn: missing error code here? 'amdgpu_umc_pages_in_a_row()' failed.
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2884 amdgpu_ras_add_bad_pages() warn: missing error code here? 'amdgpu_ras_mca2pa()' failed.
v2: s/-EIO/-EINVAL, retained the use of -EINVAL from
amdgpu_umc_pages_in_a_row & and amdgpu_ras_mca2pa_by_idx, when the
RAS context is not initialized or the convert_ras_err_addr function is
unavailable. (Thomas)
V3: Returning 0 as the absence of eh_data is acceptable. (Tao)
Fixes: a8d133e625ce ("drm/amdgpu: parse legacy RAS bad page mixed with new data in various NPS modes")
Reported-by: Dan Carpenter <[email protected]>
Cc: YiPeng Chai <[email protected]>
Cc: Tao Zhou <[email protected]>
Cc: Hawking Zhang <[email protected]>
Cc: Christian König <[email protected]>
Cc: Alex Deucher <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Reviewed-by: Tao Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c')
0 files changed, 0 insertions, 0 deletions
