Skip to content

Commit 11e612a

Browse files
committed
drm/amdgpu: don't enable baco on boco platforms in runpm
If the platform uses BOCO, don't use BACO in runtime suspend. We could end up executing the BACO path if the platform supports both. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1669 Reviewed-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 685967b commit 11e612a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,6 +1573,8 @@ static int amdgpu_pmops_runtime_suspend(struct device *dev)
15731573
pci_ignore_hotplug(pdev);
15741574
pci_set_power_state(pdev, PCI_D3cold);
15751575
drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF;
1576+
} else if (amdgpu_device_supports_boco(drm_dev)) {
1577+
/* nothing to do */
15761578
} else if (amdgpu_device_supports_baco(drm_dev)) {
15771579
amdgpu_device_baco_enter(drm_dev);
15781580
}

0 commit comments

Comments
 (0)