summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorTim Huang <Tim.Huang@amd.com>2024-04-03 17:28:44 +0800
committerAlex Deucher <alexander.deucher@amd.com>2024-04-09 22:14:55 -0400
commitd6d6561f936bc8066537c3fa5fa352f2ea025d55 (patch)
treeda4f10781ecdce370a62e3dfdfb5cb3dd321892e /drivers/gpu/drm
parentaf1c41858da107eba7e0cf7b23b08c1957014d70 (diff)
downloadlinux-stable-d6d6561f936bc8066537c3fa5fa352f2ea025d55.tar.gz
linux-stable-d6d6561f936bc8066537c3fa5fa352f2ea025d55.tar.bz2
linux-stable-d6d6561f936bc8066537c3fa5fa352f2ea025d55.zip
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>
Diffstat (limited to 'drivers/gpu/drm')
-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);
}