drm/amdgpu: fix memory overflow in the IB test
authorTim Huang <Tim.Huang@amd.com>
Tue, 21 Nov 2023 03:06:51 +0000 (11:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Nov 2023 23:03:11 +0000 (18:03 -0500)
commit6b0b7789a7a5f3e69185449f891beea58e563f9b
treef06d8234800799d15bd4d64653e39d28d4b46f70
parent5c908a3586492d469aef4f60f74f5298b7cb68af
drm/amdgpu: fix memory overflow in the IB test

Fix a memory overflow issue in the gfx IB test
for some ASICs. At least 20 bytes are needed for
the IB test packet.

v2: correct code indentation errors. (Christian)

Signed-off-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c