diff options
| author | Tao Zhou <[email protected]> | 2022-09-27 03:36:46 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-10-11 15:05:17 +0000 |
| commit | 44420ac5f855f5704d8f939926ed145f99e49e55 (patch) | |
| tree | 514fd7dae8dce55efcc669d3a2a6ef9f6004faea /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | drm/amdgpu: remove check for CE in RAS error address query (diff) | |
| download | kernel-44420ac5f855f5704d8f939926ed145f99e49e55.tar.gz kernel-44420ac5f855f5704d8f939926ed145f99e49e55.zip | |
drm/amdgpu: define RAS convert_error_address API
Make the code reusable and remove redundant code.
Signed-off-by: Tao Zhou <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index ccebd8e2a2d8..c2f9970e851c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -2889,7 +2889,7 @@ static int amdgpu_bad_page_notifier(struct notifier_block *nb, if (adev->umc.ras && adev->umc.ras->convert_ras_error_address) adev->umc.ras->convert_ras_error_address(adev, - &err_data, 0, ch_inst, umc_inst, m->addr); + &err_data, m->addr, ch_inst, umc_inst); if (amdgpu_bad_page_threshold != 0) { amdgpu_ras_add_bad_pages(adev, err_data.err_addr, |
