From: Alex Deucher Date: Wed, 19 Mar 2025 15:57:34 +0000 (-0400) Subject: drm/amdgpu/gfx8: fix CSIB handling X-Git-Tag: v5.10.239~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=159b513cdc5898ba81fcca6413c18e95d1a11f65;p=thirdparty%2Fkernel%2Fstable.git drm/amdgpu/gfx8: fix CSIB handling [ Upstream commit c8b8d7a4f1c5cdfbd61d75302fb3e3cdefb1a7ab ] 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_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index c36258d56b445..0459e7b71945c 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c @@ -1268,8 +1268,6 @@ static void gfx_v8_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; } } }