From 1060840faebfcf631d97d93bdbef828430b07d14 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 18 Aug 2021 09:59:05 +0000 Subject: [PATCH] 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 --- sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.20.1