drm/amd: Enable PCIe PME from D3
authorjsg <jsg@openbsd.org>
Mon, 11 Dec 2023 05:00:24 +0000 (05:00 +0000)
committerjsg <jsg@openbsd.org>
Mon, 11 Dec 2023 05:00:24 +0000 (05:00 +0000)
From Mario Limonciello
c6088429630048661e480ed28590e69a48c102d6 in linux-6.1.y/6.1.66
6967741d26c87300a51b5e50d4acd104bc1a9759 in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c

index 7776d9a..7523c35 100644 (file)
@@ -2205,6 +2205,8 @@ retry_init:
                pm_runtime_mark_last_busy(ddev->dev);
                pm_runtime_put_autosuspend(ddev->dev);
 
+               pci_wake_from_d3(pdev, TRUE);
+
                /*
                 * For runpm implemented via BACO, PMFW will handle the
                 * timing for BACO in and out: