From: Alex Deucher Date: Wed, 19 Mar 2025 15:58:03 +0000 (-0400) Subject: drm/amdgpu/gfx10: fix CSIB handling X-Git-Tag: v5.10.239~124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e37d82ab1f134823641fad66719579842a06f18;p=thirdparty%2Fkernel%2Fstable.git drm/amdgpu/gfx10: fix CSIB handling [ Upstream commit 683308af030cd9b8d3f1de5cbc1ee51788878feb ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 72410a2d4e6bf..567183a69660c 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -4002,8 +4002,6 @@ static void gfx_v10_0_get_csb_buffer(struct amdgpu_device *adev, PACKET3_SET_CONTEXT_REG_START); for (i = 0; i < ext->reg_count; i++) buffer[count++] = cpu_to_le32(ext->extent[i]); - } else { - return; } } }