]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit3a6144e3c25911df459ff9a6ec2c9630dbcb3c09
tree6d8fc3bf85abd75e60b39b19a25baa7573b3e328
parent64a89ab906820678c4d8abb58df89555f715ab46
drm/amdgpu: Set DPM_FLAG_NEVER_SKIP when enabling PM-runtime

BugLink: https://bugs.launchpad.net/bugs/1837813
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c