]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/gfx10: fix CSIB handling
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Mar 2025 15:58:03 +0000 (11:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Apr 2025 19:18:35 +0000 (15:18 -0400)
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>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

index d9c2dab17f6b2514489ef8a2663d16a33ac1f2c5..792c31411ae3b014fb3f95116161766029ea7eab 100644 (file)
@@ -4322,8 +4322,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;
                        }
                }
        }