diff options
author | Dave Airlie <airlied@redhat.com> | 2018-06-14 21:32:23 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-06-14 21:32:29 -0400 |
commit | daf0678c2036c918f01e4aa6035629d2debc2f30 (patch) | |
tree | 8a6ddd16c351bdf69487e5ca396333447796da8c /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 33ce21d6a2491ef9adb8dc395e3f5bbbfcdc95b5 (diff) | |
parent | 5c16f36f6f003b4415237acca59384a074cd8030 (diff) |
Merge branch 'drm-next-4.18' of git://people.freedesktop.org/~agd5f/linux into drm-next
Fixes for 4.18. Highlights:
- Fixes for gfxoff on Raven
- Remove an ATPX quirk now that the root cause is fixed
- Runtime PM fixes
- Vega20 register header update
- Wattman fixes
- Misc bug fixes
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180614141428.2909-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 290e279abf0d..3317d1536f4f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1730,6 +1730,18 @@ static int amdgpu_device_ip_late_set_cg_state(struct amdgpu_device *adev) | |||
1730 | } | 1730 | } |
1731 | } | 1731 | } |
1732 | } | 1732 | } |
1733 | |||
1734 | if (adev->powerplay.pp_feature & PP_GFXOFF_MASK) { | ||
1735 | /* enable gfx powergating */ | ||
1736 | amdgpu_device_ip_set_powergating_state(adev, | ||
1737 | AMD_IP_BLOCK_TYPE_GFX, | ||
1738 | AMD_PG_STATE_GATE); | ||
1739 | /* enable gfxoff */ | ||
1740 | amdgpu_device_ip_set_powergating_state(adev, | ||
1741 | AMD_IP_BLOCK_TYPE_SMC, | ||
1742 | AMD_PG_STATE_GATE); | ||
1743 | } | ||
1744 | |||
1733 | return 0; | 1745 | return 0; |
1734 | } | 1746 | } |
1735 | 1747 | ||