drm/amdgpu/sdma_v4_0: turn off SDMA ring buffer in the s2idle suspend
authorPrike Liang <Prike.Liang@amd.com>
Thu, 1 Dec 2022 03:17:31 +0000 (11:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Dec 2022 17:17:09 +0000 (12:17 -0500)
commitbc21fe9a5844c5bc8f7ec319b11d2671a94eb867
tree6c1f1bfcf529753687fce52391d4ff0dac6eca0f
parent76dcd734eca23168cb008912c0f69ff408905235
drm/amdgpu/sdma_v4_0: turn off SDMA ring buffer in the s2idle suspend

In the SDMA s0ix save process requires to turn off SDMA ring buffer for
avoiding the SDMA in-flight request, otherwise will suffer from SDMA page
fault which causes by page request from in-flight SDMA ring accessing at
SDMA restore phase.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2248
Cc: stable@vger.kernel.org # 6.0,5.15+
Fixes: f8f4e2a51834 ("drm/amdgpu: skipping SDMA hw_init and hw_fini for S0ix.")
Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c