summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorRex Zhu2016-08-18 12:27:14 +0200
committerAlex Deucher2016-08-25 18:22:40 +0200
commitc04399f19436616875879ee2711c5b78a90dd1b0 (patch)
tree7d9884238f8099c3dbb1f617416caf7def251f7f /drivers/gpu
parentdrm/amd/powerplay: add bypass mode for vce 2.0. (diff)
downloadkernel-qcow2-linux-c04399f19436616875879ee2711c5b78a90dd1b0.tar.gz
kernel-qcow2-linux-c04399f19436616875879ee2711c5b78a90dd1b0.tar.xz
kernel-qcow2-linux-c04399f19436616875879ee2711c5b78a90dd1b0.zip
drm/amdgpu: add vce bypass mode for tonga.
fix issue that encode test failed on the second time when vce dpm enabled on tonga. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vce_v3_0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
index c25a0960d775..b083c369accb 100644
--- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
@@ -715,7 +715,8 @@ static int vce_v3_0_set_clockgating_state(void *handle,
bool enable = (state == AMD_CG_STATE_GATE) ? true : false;
int i;
- if (adev->asic_type == CHIP_POLARIS10)
+ if ((adev->asic_type == CHIP_POLARIS10) ||
+ (adev->asic_type == CHIP_TONGA))
vce_v3_0_set_bypass_mode(adev, enable);
if (!(adev->cg_flags & AMD_CG_SUPPORT_VCE_MGCG))