]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Feb 2019 20:33:41 +0000 (15:33 -0500)
commit4518306a55deded98d879038dfa1da316def8a19
tree41b5a18c290bd38d9b4926b117c5e1126482f7c1
parent25efd2693fa83ae023dc45cc7a2c7160f2484dbc
drm/amdgpu: Set DPM_FLAG_NEVER_SKIP when enabling PM-runtime

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: 6dfc59112e5d ("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
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c