]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/vcn: fix allocation size in enc ring test
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2019 22:09:41 +0000 (18:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Oct 2019 21:12:34 +0000 (17:12 -0400)
commit12a92de3cc8774bb6978ee962dcf2d54857a6641
tree83aa5ae47e70239d161481e636716f842e080700
parentcb4b37cb79dbf951465946c5b8353772cb0edd1c
drm/amdgpu/vcn: fix allocation size in enc ring test

We need to allocate a large enough buffer for the
session info, otherwise the IB test can overwrite
other memory.

- Session info is 128K according to mesa
- Use the same session info for create and destroy

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=204241
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Tested-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c