summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-02-09 04:31:47 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-02-09 04:31:47 +0000
commitaebb151627d4dbeec6051dbc47a3d6c311af03e5 (patch)
tree595105acd9b6b299170bd5250ce1ccea160a68f6 /sys/dev/pci
parentf31c3ed7bb9d7a2683c2e65eb77a736421b16761 (diff)
drm/amd: avoid suspend on dGPUs w/ s2idle support when runtime PM enabled
From Mario Limonciello 8a15ac1786c92dce6ecbeb4e4c237f5f80c2c703 in linux 5.15.y/5.15.22 e55a3aea418269266d84f426b3bd70794d3389c8 in mainline linux
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
index d1570875c8d..8511b6528dc 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
@@ -1508,8 +1508,7 @@ static int amdgpu_pmops_prepare(struct device *dev)
* DPM_FLAG_SMART_SUSPEND works properly
*/
if (amdgpu_device_supports_boco(drm_dev))
- return pm_runtime_suspended(dev) &&
- pm_suspend_via_firmware();
+ return pm_runtime_suspended(dev);
return 0;
}