summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-12-11 05:00:25 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-12-11 05:00:25 +0000
commit014d8629d5bdd8ff8b59484b8d9eb22b8cad2d19 (patch)
tree3b7d66185ac3b3bf1bb3bbe2c77bcd0b1ab565cf
parent71249a916acc9d0a01280fe2aae5dba612482ef1 (diff)
drm/amd: Enable PCIe PME from D3
From Mario Limonciello c6088429630048661e480ed28590e69a48c102d6 in linux-6.1.y/6.1.66 6967741d26c87300a51b5e50d4acd104bc1a9759 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c2
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 7776d9a3548..7523c35ec69 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
@@ -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: