aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Huang <[email protected]>2024-04-03 17:28:44 +0800
committerAlex Deucher <[email protected]>2024-04-09 22:14:55 -0400
commitd6d6561f936bc8066537c3fa5fa352f2ea025d55 (patch)
treeda4f10781ecdce370a62e3dfdfb5cb3dd321892e
parentaf1c41858da107eba7e0cf7b23b08c1957014d70 (diff)
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]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index c11c6299711e..ae6a0d19e247 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@ -1635,7 +1635,7 @@ static void gfx_v11_0_setup_rb(struct amdgpu_device *adev)
active_rb_bitmap |= (0x3 << (i * rb_bitmap_width_per_sa));
}
- active_rb_bitmap |= global_active_rb_bitmap;
+ active_rb_bitmap &= global_active_rb_bitmap;
adev->gfx.config.backend_enable_mask = active_rb_bitmap;
adev->gfx.config.num_rbs = hweight32(active_rb_bitmap);
}