Skip to content

Commit f69d665

Browse files
alexdeuchersashalevin
authored andcommitted
drm/radeon: fix 1 RB harvest config setup for TN/RL
commit dbfb00c upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7b1fcda commit f69d665

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
@@ -1085,12 +1085,12 @@ static void cayman_gpu_init(struct radeon_device *rdev)
10851085

10861086
if ((rdev->config.cayman.max_backends_per_se == 1) &&
10871087
(rdev->flags & RADEON_IS_IGP)) {
1088-
if ((disabled_rb_mask & 3) == 1) {
1089-
/* RB0 disabled, RB1 enabled */
1090-
tmp = 0x11111111;
1091-
} else {
1088+
if ((disabled_rb_mask & 3) == 2) {
10921089
/* RB1 disabled, RB0 enabled */
10931090
tmp = 0x00000000;
1091+
} else {
1092+
/* RB0 disabled, RB1 enabled */
1093+
tmp = 0x11111111;
10941094
}
10951095
} else {
10961096
tmp = gb_addr_config & NUM_PIPES_MASK;

0 commit comments

Comments
 (0)