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>
Fri, 2 Dec 2022 15:04:58 +0000 (10:04 -0500)
commitb35a2a12901cd230309750777e3744fa0526543d
tree4c8e441fe44efe5d6e99aaf7d6986e8f57c2a439
parent3f4c175d62d89819121cbbd5a0a30f4b80862025
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