drm/amdgpu: the warning dereferencing obj for nbio_v7_4
Subsystems (2)
PATCH v2 2/22 drm/amdgpu: the warning dereferencing obj for nbio_v7_4
if ras_manager obj null, don't print NBIO err data
Signed-off-by Jesse Zhang <[email protected]>
Suggested-by Tim Huang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +1 -1
@@ -383,7 +383,7 @@ static void nbio_v7_4_handle_ras_controller_intr_no_bifring(struct amdgpu_deviceelse WREG32_SOC15 (NBIO ,0 , mmBIF_DOORBELL_INT_CNTL, bif_doorbell_intr_cntl); -if (!ras->disable_ras_err_cnt_harvest) { +if (ras && !ras->disable_ras_err_cnt_harvest && obj) {/* * clear error status after ras_controller_intr * according to hw team and count ue number
Signature · 1 line
2.25.1
[AMD Official Use Only - AMD Internal Distribution Only]
This patch is,
Reviewed-by Tim Huang <[email protected]>
Quoted 37 lines
-----Original Message-----
From: Jesse Zhang <[email protected]>
Sent: Monday, May 13, 2024 3:33 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Huang, Tim <[email protected]>; Zhang, Jesse(Jie) <[email protected]>; Zhang, Jesse(Jie) <[email protected]>
Subject: [PATCH 2/22 V2] drm/amdgpu: the warning dereferencing obj fornbio_v7_4if
ras_managerobj null, don't print NBIO err dataSigned-off-by Jesse Zhang <[email protected]>Suggested-by Tim Huang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +0
-0@@ -383,7 +383,7 @@ static voidnbio_v7_4_handle_ras_controller_intr_no_bifring(struct
amdgpu_deviceelse WREG32_SOC15(NBIO, 0, mmBIF_DOORBELL_INT_CNTL,
bif_doorbell_intr_cntl);drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +1
-2-if (!ras->disable_ras_err_cnt_harvest) { +if (ras && !ras->disable_ras_err_cnt_harvest && obj) {/* * clear error status after ras_controller_intr * according to hw team and count ue number -- 2.25.1