]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d1c4e0edede5bf088b7dfcc17f1387488845d1b
tree7df4e744b83254d0df2f313769f6012aeefca5b4
parent797bdeb4e6c3c42f8af78c08f1d10c5dae8f6350
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