summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-08-27 14:53:08 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-09-02 10:34:45 -0400
commit85e154c22e3c29d4db52ccc1c1cc58a2cadc103b (patch)
treec89144837892bcd715c28f185a99f9bdd231cc62 /drivers/gpu/drm
parente6c71b48c9713c5581e9ac6dcb469db176468120 (diff)
downloadblackbird-obmc-linux-85e154c22e3c29d4db52ccc1c1cc58a2cadc103b.tar.gz
blackbird-obmc-linux-85e154c22e3c29d4db52ccc1c1cc58a2cadc103b.zip
drm/amdgpu: set runtime pm state to active on resume
The sbios always powers up the dGPU on resume. Acked-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 28c3dcc170cc..94d013526e8e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -482,6 +482,14 @@ static int amdgpu_pmops_resume(struct device *dev)
{
struct pci_dev *pdev = to_pci_dev(dev);
struct drm_device *drm_dev = pci_get_drvdata(pdev);
+
+ /* GPU comes up enabled by the bios on resume */
+ if (amdgpu_device_is_px(drm_dev)) {
+ pm_runtime_disable(dev);
+ pm_runtime_set_active(dev);
+ pm_runtime_enable(dev);
+ }
+
return amdgpu_device_resume(drm_dev, true, true);
}
OpenPOWER on IntegriCloud