[PATCH] drm/amdgpu: Set DPM_FLAG_NEVER_SKIP when enabling PM-runtime
Rafael J. Wysocki
rafael.j.wysocki at intel.com
Tue Feb 19 17:20:43 UTC 2019
On 2/18/2019 11:19 PM, Alex Deucher wrote:
> Based on a similar patch from Rafael for radeon.
>
> When using ATPX to control dGPU power, the state is not retained
> across suspend and resume cycles by default. This can probably
> be loosened for Hybrid Graphics (_PR3) laptops where I think the
> state is properly retained.
>
> Fixes: c62ec4610c40 ("PM / core: Fix direct_complete handling for devices with no callbacks")
> Cc: Rafael J. Wysocki <rafael.j.wysocki at intel.com>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki at intel.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> index d63cb53ff2bb..eaf90cdc848d 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> @@ -212,6 +212,7 @@ int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags)
> }
>
> if (amdgpu_device_is_px(dev)) {
> + dev_pm_set_driver_flags(dev->dev, DPM_FLAG_NEVER_SKIP);
> pm_runtime_use_autosuspend(dev->dev);
> pm_runtime_set_autosuspend_delay(dev->dev, 5000);
> pm_runtime_set_active(dev->dev);
More information about the amd-gfx
mailing list