artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bf58a8
)
drm/amdgpu: don't enable baco on boco platforms in runpm
author
jsg
<jsg@openbsd.org>
Wed, 18 Aug 2021 09:59:05 +0000
(09:59 +0000)
committer
jsg
<jsg@openbsd.org>
Wed, 18 Aug 2021 09:59:05 +0000
(09:59 +0000)
From Alex Deucher
95de3592f87e46df63119dd52b4a0e544e519c6b
in linux 5.10.y/5.10.60
202ead5a3c589b0594a75cb99f080174f6851fed
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
index
9527dad
..
27637da
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
@@
-1347,6
+1347,8
@@
static int amdgpu_pmops_runtime_suspend(struct device *dev)
pci_set_power_state(pdev, PCI_D3cold);
}
drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF;
+ } else if (amdgpu_device_supports_boco(drm_dev)) {
+ /* nothing to do */
} else if (amdgpu_device_supports_baco(drm_dev)) {
amdgpu_device_baco_enter(drm_dev);
}