aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2019-10-17 11:36:47 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-10-25 16:15:00 -0400
commit569557e524d8ca4c7564631a6f5328cf0ae817b8 (patch)
treed108739c81157021bef6f0fe4fa3676b35bd717b /drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
parentdrm/amdgpu/psp: declare PSP TA firmware (diff)
downloadlinux-dev-569557e524d8ca4c7564631a6f5328cf0ae817b8.tar.xz
linux-dev-569557e524d8ca4c7564631a6f5328cf0ae817b8.zip
drm/amdgpu/vce: fix allocation size in enc ring test
We need to allocate a large enough buffer for the feedback buffer, otherwise the IB test can overwrite other memory. Reviewed-by: James Zhu <James.Zhu@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
index 30ea54dd9117..e802f7d9db0a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
@@ -59,6 +59,7 @@ int amdgpu_vce_entity_init(struct amdgpu_device *adev);
int amdgpu_vce_suspend(struct amdgpu_device *adev);
int amdgpu_vce_resume(struct amdgpu_device *adev);
int amdgpu_vce_get_create_msg(struct amdgpu_ring *ring, uint32_t handle,
+ struct amdgpu_bo *bo,
struct dma_fence **fence);
int amdgpu_vce_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle,
bool direct, struct dma_fence **fence);