]> git.itanic.dy.fi Git - linux-stable/blobdiff - drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
drm/amdgpu: fix incorrect number of active RBs for gfx11
[linux-stable] / drivers / gpu / drm / amd / amdgpu / gfx_v11_0.c
index 4f3bfdc75b37d66cbc5d78a5525a8a905eb1e733..0afe86bcc932b200376642685542ce359d9d9800 100644 (file)
@@ -1630,7 +1630,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);
 }