]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/uvd7: fix allocation size in enc ring test (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2019 22:08:59 +0000 (18:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Oct 2019 20:30:55 +0000 (16:30 -0400)
commit50f164499760e8e65dbd08acf3bae508807126e4
tree924a930783830d2b10b4cd689deaf82b35e9a8a5
parentbecfbea581544d3b9ff68e20f5079aab593397c3
drm/amdgpu/uvd7: fix allocation size in enc ring test (v2)

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

v2: - 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>
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c