Skip to content

Commit 9bb735a

Browse files
committed
drm/amdgpu: update comments about s0ix suspend/resume
Provide and explanation as to why we skip GFX and PSP for S0ix. GFX goes into gfxoff, same as runtime, so no need to tear down and re-init. PSP is part of the always on state, so no need to touch it. Acked-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 4021229 commit 9bb735a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,10 +2737,14 @@ static int amdgpu_device_ip_suspend_phase2(struct amdgpu_device *adev)
27372737
continue;
27382738
}
27392739

2740-
/* XXX fix these remaining cases */
2740+
/* skip suspend of gfx and psp for S0ix
2741+
* gfx is in gfxoff state, so on resume it will exit gfxoff just
2742+
* like at runtime. PSP is also part of the always on hardware
2743+
* so no need to suspend it.
2744+
*/
27412745
if (adev->in_s0ix &&
2742-
(adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_PSP || /* breaks resume */
2743-
adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_GFX)) /* breaks suspend */
2746+
(adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_PSP ||
2747+
adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_GFX))
27442748
continue;
27452749

27462750
/* XXX handle errors */

0 commit comments

Comments
 (0)