drm/amd/amdgpu: avoid to disable gfxhub interrupt when driver is unloaded
authorKenneth Feng <kenneth.feng@amd.com>
Tue, 24 Oct 2023 03:20:27 +0000 (11:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Oct 2023 18:15:39 +0000 (14:15 -0400)
avoid to disable gfxhub interrupt when driver is unloaded on gmc 11

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c

index 19eaada35edea3ddb54f9bc8079458381d4cffe7..4713a62ad586f9a54a283030f3bca0a8259c8ed4 100644 (file)
@@ -73,7 +73,8 @@ gmc_v11_0_vm_fault_interrupt_state(struct amdgpu_device *adev,
                 * fini/suspend, so the overall state doesn't
                 * change over the course of suspend/resume.
                 */
-               if (!adev->in_s0ix)
+               if (!adev->in_s0ix && (adev->in_runpm || adev->in_suspend ||
+                                                          amdgpu_in_reset(adev)))
                        amdgpu_gmc_set_vm_fault_masks(adev, AMDGPU_GFXHUB(0), false);
                break;
        case AMDGPU_IRQ_STATE_ENABLE: