drm/amdkfd: Don't use sw fault filter if retry cam enabled
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 28 Aug 2023 18:05:55 +0000 (14:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 20:54:51 +0000 (16:54 -0400)
If retry cam enabled, we don't use sw retry fault filter and add fault
into sw filter ring, so we shouldn't remove fault from sw filter.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c

index c7793db6d098a123fb70e313eec5c1e74a7982bf..f357d1f7353af93da07fa04bb411a8c899a8a9bf 100644 (file)
@@ -452,7 +452,10 @@ void amdgpu_gmc_filter_faults_remove(struct amdgpu_device *adev, uint64_t addr,
        uint32_t hash;
        uint64_t tmp;
 
-       ih = adev->irq.retry_cam_enabled ? &adev->irq.ih_soft : &adev->irq.ih1;
+       if (adev->irq.retry_cam_enabled)
+               return;
+
+       ih = &adev->irq.ih1;
        /* Get the WPTR of the last entry in IH ring */
        last_wptr = amdgpu_ih_get_wptr(adev, ih);
        /* Order wptr with ring data. */