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 20:30:57 +0000 (16:30 -0400)
commit8c32d0438f9897692524b92036048091209a911e
tree007e01699c8a148f6850d46f43ce4c150ec8f3af
parentb24c459f9f2c531ae04ebbd906365b182262a53b
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c