diff options
| author | Alex Deucher <[email protected]> | 2016-08-27 18:53:08 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-09-02 14:34:45 +0000 |
| commit | 85e154c22e3c29d4db52ccc1c1cc58a2cadc103b (patch) | |
| tree | c89144837892bcd715c28f185a99f9bdd231cc62 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/amdgpu/gfx6: drop some dead code (diff) | |
| download | kernel-85e154c22e3c29d4db52ccc1c1cc58a2cadc103b.tar.gz kernel-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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 |
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); } |
