Skip to contentSkip to conversation

drm/amdgpu: Reduce redundant gpu resets on nbio v7.4

PATCH In review YiPeng Chai 2 participants 2 messages Oct 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Reduce redundant gpu resets on nbio v7.4

On nbio v7.4, ras controller interrupt and athub interrupt are generated after injecting UE to PCIE, but gpu reset only needs to be triggered once.

---
 drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +1 -2
index 9446bf6f82c1..97782a73f4b0 100644
@@ -414,8 +414,7 @@ static void nbio_v7_4_handle_ras_controller_intr_no_bifring(struct amdgpu_device
 		/* ras_controller_int is dedicated for nbif ras error,
 		 * not the global interrupt for sync flood
 		 */
-		amdgpu_ras_set_fed(adev, true);
-		amdgpu_ras_reset_gpu(adev);
+		amdgpu_ras_global_ras_isr(adev);
 	}
 
 	amdgpu_ras_error_data_fini(&err_data);
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Quoted 36 lines

-----Original Message-----
From: Chai, Thomas <[email protected]>
Sent: Tuesday, October 22, 2024 2:33 PM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Li, Candice <[email protected]>; Wang, Yang(Kevin) <[email protected]>; Yang, Stanley <[email protected]>; Chai, Thomas <[email protected]>
Subject: [PATCH] drm/amdgpu: Reduce redundant gpu resets on nbio v7.4

On nbio v7.4, ras controller interrupt and athub interrupt are generated after injecting UE to PCIE, but gpu reset only needs to be triggered once.

---
 drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +0 -0
index 9446bf6f82c1..97782a73f4b0 100644
@@ -414,8 +414,7 @@ static void

nbio_v7_4_handle_ras_controller_intr_no_bifring(struct amdgpu_device

              /* ras_controller_int is dedicated for nbif ras error,
               * not the global interrupt for sync flood
               */
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +1 -3
-             amdgpu_ras_set_fed(adev, true);
-             amdgpu_ras_reset_gpu(adev);
+             amdgpu_ras_global_ras_isr(adev);
      }
 
      amdgpu_ras_error_data_fini(&err_data);
--

2.34.1