diff options
author | 2023-11-24 09:56:32 -0600 | |
---|---|---|
committer | 2023-11-29 16:49:23 -0500 | |
commit | bd1f6a31e7762ebc99b97f3eda5e5ea3708fa792 (patch) | |
tree | 97d53398037f0c713bfb7b8710c71cbd983c19ba /drivers/gpu/drm | |
parent | drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer (diff) | |
download | linux-bd1f6a31e7762ebc99b97f3eda5e5ea3708fa792.tar.gz linux-bd1f6a31e7762ebc99b97f3eda5e5ea3708fa792.tar.bz2 linux-bd1f6a31e7762ebc99b97f3eda5e5ea3708fa792.zip |
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>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 8f24cabe2155..8b33b130ea36 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -2263,6 +2263,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: |