Skip to content

Commit dbfb00c

Browse files
committed
drm/radeon: fix 1 RB harvest config setup for TN/RL
The logic was reversed from what the hw actually exposed. Fixes graphics corruption in certain harvest configurations. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent acc1522 commit dbfb00c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • drivers/gpu/drm/radeon

‎drivers/gpu/drm/radeon/ni.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,12 +1088,12 @@ static void cayman_gpu_init(struct radeon_device *rdev)
10881088

10891089
if ((rdev->config.cayman.max_backends_per_se == 1) &&
10901090
(rdev->flags & RADEON_IS_IGP)) {
1091-
if ((disabled_rb_mask & 3) == 1) {
1092-
/* RB0 disabled, RB1 enabled */
1093-
tmp = 0x11111111;
1094-
} else {
1091+
if ((disabled_rb_mask & 3) == 2) {
10951092
/* RB1 disabled, RB0 enabled */
10961093
tmp = 0x00000000;
1094+
} else {
1095+
/* RB0 disabled, RB1 enabled */
1096+
tmp = 0x11111111;
10971097
}
10981098
} else {
10991099
tmp = gb_addr_config & NUM_PIPES_MASK;

0 commit comments

Comments
 (0)