diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-08-18 09:59:06 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-08-18 09:59:06 +0000 |
commit | 9329bbdb417722f164c7de081704b70c886bdb50 (patch) | |
tree | 32ef5de67c7ff4c3797534c34408800f83cd96aa /sys/dev/pci | |
parent | 146ba5071b2048409f93f8f6e03b12388bf048ec (diff) |
drm/amdgpu: don't enable baco on boco platforms in runpm
From Alex Deucher
95de3592f87e46df63119dd52b4a0e544e519c6b in linux 5.10.y/5.10.60
202ead5a3c589b0594a75cb99f080174f6851fed in mainline linux
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c index 9527dad9d1e..27637da043d 100644 --- 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); } |