]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd: Enable PCIe PME from D3
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 24 Nov 2023 15:56:32 +0000 (09:56 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:27:42 +0000 (15:27 -0800)
commit0c8d252d0a20a412ec30859afef6393aecfdd3cd
treec368fc4abddc706be956f3e97e69ba8e7ac5c3d6
parentf49a30a24f9b2370f0f24b85110a41c445719c5c
drm/amd: Enable PCIe PME from D3

commit bd1f6a31e7762ebc99b97f3eda5e5ea3708fa792 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c