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 15:34:57 +0000 (11:34 -0400)
commit603b9a575d571557cf2de0d745d88b7c59b35be7
treeb94b97adcd6619af58b74ba5ab14fb29df12a714
parentb5cdadedaafe15cc940322990081060598570f28
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c