| From 1b388e22eb48fac1eb37e9975ce9e9e5d3bbbcd4 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Wed, 19 Mar 2025 11:57:19 -0400 |
| Subject: drm/amdgpu/gfx7: fix CSIB handling |
| |
| From: Alex Deucher <alexander.deucher@amd.com> |
| |
| [ Upstream commit be7652c23d833d1ab2c67b16e173b1a4e69d1ae6 ] |
| |
| We shouldn't return after the last section. |
| We need to update the rest of the CSIB. |
| |
| Reviewed-by: Rodrigo Siqueira <siqueira@igalia.com> |
| Signed-off-by: Alex Deucher <alexander.deucher@amd.com> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 2 -- |
| 1 file changed, 2 deletions(-) |
| |
| diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c |
| index d92e92e5d50b7..c1c3fb4d283d7 100644 |
| --- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c |
| +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c |
| @@ -3992,8 +3992,6 @@ static void gfx_v7_0_get_csb_buffer(struct amdgpu_device *adev, |
| buffer[count++] = cpu_to_le32(ext->reg_index - PACKET3_SET_CONTEXT_REG_START); |
| for (i = 0; i < ext->reg_count; i++) |
| buffer[count++] = cpu_to_le32(ext->extent[i]); |
| - } else { |
| - return; |
| } |
| } |
| } |
| -- |
| 2.39.5 |
| |