Skip to content

Commit bd3105a

Browse files
Tim Huanggregkh
authored andcommitted
drm/amdgpu: fix incorrect number of active RBs for gfx11
commit bbca7f4 upstream. 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] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fa2df4a commit bd3105a

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
@@ -1616,7 +1616,7 @@ static void gfx_v11_0_setup_rb(struct amdgpu_device *adev)
16161616
active_rb_bitmap |= (0x3 << (i * rb_bitmap_width_per_sa));
16171617
}
16181618

1619-
active_rb_bitmap |= global_active_rb_bitmap;
1619+
active_rb_bitmap &= global_active_rb_bitmap;
16201620
adev->gfx.config.backend_enable_mask = active_rb_bitmap;
16211621
adev->gfx.config.num_rbs = hweight32(active_rb_bitmap);
16221622
}

0 commit comments

Comments
 (0)