aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-07-20 10:53:36 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-07-29 14:37:03 -0400
commitebff485e9314f8c53f6b22eba0dfbec7228ab268 (patch)
treebfe32720f5ef21855af1db8274142491716959ba /drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
parentc4120d55ffa44746584a8a1e5b00cb7eafc006ff (diff)
drm/amdgpu: use begin/end_use for VCE power/clock gating
This fixes turning power and clock on when it is actually needed. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vce_v3_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vce_v3_0.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
index 800c10bcb6cd..c271abffd8dd 100644
--- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
@@ -767,6 +767,8 @@ static const struct amdgpu_ring_funcs vce_v3_0_ring_funcs = {
767 .test_ib = amdgpu_vce_ring_test_ib, 767 .test_ib = amdgpu_vce_ring_test_ib,
768 .insert_nop = amdgpu_ring_insert_nop, 768 .insert_nop = amdgpu_ring_insert_nop,
769 .pad_ib = amdgpu_ring_generic_pad_ib, 769 .pad_ib = amdgpu_ring_generic_pad_ib,
770 .begin_use = amdgpu_vce_ring_begin_use,
771 .end_use = amdgpu_vce_ring_end_use,
770}; 772};
771 773
772static void vce_v3_0_set_ring_funcs(struct amdgpu_device *adev) 774static void vce_v3_0_set_ring_funcs(struct amdgpu_device *adev)