diff options
| author | Christian König <[email protected]> | 2016-07-20 12:11:26 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-07-29 18:37:02 +0000 |
| commit | c4120d55ffa44746584a8a1e5b00cb7eafc006ff (patch) | |
| tree | dec6c56127a8eb837f22f4bd76d62d70cade570e /drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h | |
| parent | drm/amdgpu: add begin/end_use ring callbacks (diff) | |
| download | kernel-c4120d55ffa44746584a8a1e5b00cb7eafc006ff.tar.gz kernel-c4120d55ffa44746584a8a1e5b00cb7eafc006ff.zip | |
drm/amdgpu: use begin/end_use for UVD power/clock gating
This fixes turning power and clock on when it is actually needed.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h index 9a3b449081a7..5bad3712a56e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h @@ -35,5 +35,7 @@ int amdgpu_uvd_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle, void amdgpu_uvd_free_handles(struct amdgpu_device *adev, struct drm_file *filp); int amdgpu_uvd_ring_parse_cs(struct amdgpu_cs_parser *parser, uint32_t ib_idx); +void amdgpu_uvd_ring_begin_use(struct amdgpu_ring *ring); +void amdgpu_uvd_ring_end_use(struct amdgpu_ring *ring); #endif |
