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 21:49:23 +0000 (16:49 -0500)
commitbd1f6a31e7762ebc99b97f3eda5e5ea3708fa792
tree97d53398037f0c713bfb7b8710c71cbd983c19ba
parent7b194fdccb8458779687063e582cf218a0920c29
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