diff options
author | 2024-04-03 17:28:44 +0800 | |
---|---|---|
committer | 2024-04-09 23:30:30 -0400 | |
commit | bbca7f414ae9a12ea231cdbafd79c607e3337ea8 (patch) | |
tree | 6acb31b4e336caa2c51e08e6eabb1dabfcd8bbb0 /drivers/gpu/drm/amd | |
parent | drm/amd/display: Return max resolution supported by DWB (diff) | |
download | linux-bbca7f414ae9a12ea231cdbafd79c607e3337ea8.tar.gz linux-bbca7f414ae9a12ea231cdbafd79c607e3337ea8.tar.bz2 linux-bbca7f414ae9a12ea231cdbafd79c607e3337ea8.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>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 |
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 2c82e2741619..f7325b02a191 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); } |