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)
commitc81fffc2c9450750dd7a54a36a788a860ab0425d
tree83aa5ae47e70239d161481e636716f842e080700
parent5d230bc91f6c15e5d281f2851502918d98b9e770
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