drm/amdgpu: skip fence GFX interrupts disable/enable for S0ix
authorTim Huang <Tim.Huang@amd.com>
Mon, 14 Aug 2023 07:13:04 +0000 (15:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Aug 2023 19:46:39 +0000 (15:46 -0400)
commitf1740b1ab2703b2a057da7cf33b03297e0381aa0
tree91125f15dcce788b9fc93d7cadc5a2093a386b24
parentb25fdc048cb2250c7e859184f54d3261b55ad099
drm/amdgpu: skip fence GFX interrupts disable/enable for S0ix

GFX v11.0.1 reported fence fallback timer expired issue on
SDMA and GFX rings after S0ix resume. This is generated by
EOP interrupts are disabled when S0ix suspend but fails to
re-enable when resume because of the GFX is in GFXOFF.

[  203.349571] [drm] Fence fallback timer expired on ring sdma0
[  203.349572] [drm] Fence fallback timer expired on ring gfx_0.0.0
[  203.861635] [drm] Fence fallback timer expired on ring gfx_0.0.0

For S0ix, GFX is in GFXOFF state, avoid to touch the GFX registers
to configure the fence driver interrupts for rings that belong to GFX.
The interrupts configuration will be restored by GFXOFF exit.

Signed-off-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c