Skip to content

Commit bbca7f4

Browse files
timhuang-amdalexdeucher
authored andcommitted
drm/amdgpu: fix incorrect number of active RBs for gfx11
The RB bitmap should be global active RB bitmap & active RB bitmap based on active SA. Signed-off-by: Tim Huang <Tim.Huang@amd.com> Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 2cc69a1 commit bbca7f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ static void gfx_v11_0_setup_rb(struct amdgpu_device *adev)
16351635
active_rb_bitmap |= (0x3 << (i * rb_bitmap_width_per_sa));
16361636
}
16371637

1638-
active_rb_bitmap |= global_active_rb_bitmap;
1638+
active_rb_bitmap &= global_active_rb_bitmap;
16391639
adev->gfx.config.backend_enable_mask = active_rb_bitmap;
16401640
adev->gfx.config.num_rbs = hweight32(active_rb_bitmap);
16411641
}

0 commit comments

Comments
 (0)