Skip to content

Commit 3ea8dd3

Browse files
Kenneth Fengalexdeucher
authored andcommitted
drm/amd/amdgpu: avoid to disable gfxhub interrupt when driver is unloaded
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>
1 parent 142262a commit 3ea8dd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ gmc_v11_0_vm_fault_interrupt_state(struct amdgpu_device *adev,
7373
* fini/suspend, so the overall state doesn't
7474
* change over the course of suspend/resume.
7575
*/
76-
if (!adev->in_s0ix)
76+
if (!adev->in_s0ix && (adev->in_runpm || adev->in_suspend ||
77+
amdgpu_in_reset(adev)))
7778
amdgpu_gmc_set_vm_fault_masks(adev, AMDGPU_GFXHUB(0), false);
7879
break;
7980
case AMDGPU_IRQ_STATE_ENABLE:

0 commit comments

Comments
 (0)