]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/gfx11: fix CSIB handling
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Mar 2025 15:58:19 +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_v11_0.c

index c78458ecb88b270f54b10035bb06ce8d8297e46c..cedfcd1184301007b647b14fa895db3b002d9892 100644 (file)
@@ -859,8 +859,6 @@ static void gfx_v11_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;
                        }
                }
        }