On Mon, Nov 27, 2023 at 2:17 PM Mario Limonciello
<[email protected]> wrote:
>
> 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]>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> index 5d009175318e..08763f6de482 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> @@ -2263,6 +2263,8 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
>                 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:
> --
> 2.34.1
>

Reply via email to