]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd: Only run s3 or s0ix if system is configured properly
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 26 Jan 2022 03:37:57 +0000 (21:37 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Feb 2022 23:35:00 +0000 (18:35 -0500)
commitbd64a3e9aa918b15f38cf907b26838d2c1245499
tree6a5373245230092118f43ded4aff3e7fd704dfb6
parentf97c98f24e6b64ca708feef850adad8047e24bfb
drm/amd: Only run s3 or s0ix if system is configured properly

This will cause misconfigured systems to not run the GPU suspend
routines.

* In APUs that are properly configured system will go into s2idle.
* In APUs that are intended to be S3 but user selects
  s2idle the GPU will stay fully powered for the suspend.
* In APUs that are intended to be s2idle and system misconfigured
  the GPU will stay fully powered for the suspend.
* In systems that are intended to be s2idle, but AMD dGPU is also
  present, the dGPU will go through S3

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