]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu: skipping SDMA hw_init and hw_fini for S0ix.
authorRajib Mahapatra <rajib.mahapatra@amd.com>
Thu, 10 Feb 2022 13:16:40 +0000 (18:46 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Feb 2022 21:19:41 +0000 (16:19 -0500)
commitf3986e86b2d861a2ed2d336bafe53b5c404cb995
tree1b2950bda62eba87a227ced4bb85f241294a56b6
parent461fa7b0ac565ef25c1da0ced31005dd437883a7
drm/amdgpu: skipping SDMA hw_init and hw_fini for S0ix.

[Why]
SDMA ring buffer test failed if suspend is aborted during
S0i3 resume.

[How]
If suspend is aborted for some reason during S0i3 resume
cycle, it follows SDMA ring test failing and errors in amdgpu
resume. For RN/CZN/Picasso, SMU saves and restores SDMA
registers during S0ix cycle. So, skipping SDMA suspend and
resume from driver solves the issue. This time, the system
is able to resume gracefully even the suspend is aborted.

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rajib Mahapatra <rajib.mahapatra@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c