drm/amdgpu/vce: fix allocation size in enc ring test
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Oct 2019 15:36:47 +0000 (11:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Oct 2019 21:12:34 +0000 (17:12 -0400)
commitee027828c40faa92a7ef4c2b0641bbb3f4be95d3
tree7df4e744b83254d0df2f313769f6012aeefca5b4
parentde51a5019ff32960218da8fd899fa3f361b031e9
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h