drm/amd: Enable PCIe PME from D3
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 24 Nov 2023 15:56:32 +0000 (09:56 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Nov 2023 23:09:34 +0000 (18:09 -0500)
commit6967741d26c87300a51b5e50d4acd104bc1a9759
treea72f55a9900c97516e159ca3c74670865ad6eac0
parent7a88f23e768491bae653b444a96091d2aaeb0818
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: stable@vger.kernel.org # 6.1+
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c