VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   34 Branches   58 Tags
author: Alex Deucher <alexander.deucher@amd.com> 2021-08-02 10:03:30 -0400 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-08-18 09:06:51 +0200 commit: 7e73eac2bd907e0e7325b27bb13797761373c15e parent: fcd957aa8b321c3ee7adf2f4446f476c217c16d9
Commit Summary:
drm/amdgpu: don't enable baco on boco platforms in runpm
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 9dfed9d560dc..7571154689b7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -1537,6 +1537,8 @@ static int amdgpu_pmops_runtime_suspend(struct device *dev)
 		pci_ignore_hotplug(pdev);
 		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);
 	}