Skip to content

Commit bbca7f4

Browse files
Tim Huangalexdeucher
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 <[email protected]> Reviewed-by: Yifan Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 2cc69a1 commit bbca7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)