]> git.hungrycats.org Git - linux/commit
drm/amdgpu/uvd6: fix allocation size in enc ring test (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2019 22:07:19 +0000 (18:07 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:22:27 +0000 (09:22 +0100)
commitb2a79fb4e09026c52035bbed0b3e404e5a0abbf1
tree9de273d7ec509414d53f233f6b7a74c251f43ba4
parentea387394bcf8cb79ea4313b652bd4d27de17f888
drm/amdgpu/uvd6: fix allocation size in enc ring test (v2)

commit ce584a8e2885c7b59dfacba42db39761243cacb2 upstream.

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>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c