OSDN Git Service

drm/amdgpu: Set DPM_FLAG_NEVER_SKIP when enabling PM-runtime
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Feb 2019 22:11:38 +0000 (17:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:09:00 +0000 (10:09 +0100)
commit6834afab4becec6d410e295948474a9abf7e1c17
treee3562b4003beb72caaca3bc0ca2e84f38bcee0ea
parent95aed87b9e2ed982b24122f46ca506cd8b368677
drm/amdgpu: Set DPM_FLAG_NEVER_SKIP when enabling PM-runtime

commit d33158530660bc89be3cc870a2152e4e9a76cac7 upstream.

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@intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c