Skip to content

Commit 6967741

Browse files
superm1alexdeucher
authored andcommitted
drm/amd: Enable PCIe PME from D3
When dGPU is put into BOCO it may be in D3cold but still able send PME on display hotplug event. For this to work it must be enabled as wake source from D3. When runpm is enabled use pci_wake_from_d3() to mark wakeup as enabled by default. Cc: [email protected] # 6.1+ Signed-off-by: Mario Limonciello <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7a88f23 commit 6967741

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
@@ -2263,6 +2263,8 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
22632263
pm_runtime_mark_last_busy(ddev->dev);
22642264
pm_runtime_put_autosuspend(ddev->dev);
22652265

2266+
pci_wake_from_d3(pdev, TRUE);
2267+
22662268
/*
22672269
* For runpm implemented via BACO, PMFW will handle the
22682270
* timing for BACO in and out:

0 commit comments

Comments
 (0)