Commit 6cc01b1f authored by Alex Deucher's avatar Alex Deucher Committed by Luis Henriques

drm/radeon: fix 1 RB harvest config setup for TN/RL

commit dbfb00c3 upstream.

The logic was reversed from what the hw actually exposed.
Fixes graphics corruption in certain harvest configurations.
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent a578dff3
...@@ -1085,12 +1085,12 @@ static void cayman_gpu_init(struct radeon_device *rdev) ...@@ -1085,12 +1085,12 @@ static void cayman_gpu_init(struct radeon_device *rdev)
if ((rdev->config.cayman.max_backends_per_se == 1) && if ((rdev->config.cayman.max_backends_per_se == 1) &&
(rdev->flags & RADEON_IS_IGP)) { (rdev->flags & RADEON_IS_IGP)) {
if ((disabled_rb_mask & 3) == 1) { if ((disabled_rb_mask & 3) == 2) {
/* RB0 disabled, RB1 enabled */
tmp = 0x11111111;
} else {
/* RB1 disabled, RB0 enabled */ /* RB1 disabled, RB0 enabled */
tmp = 0x00000000; tmp = 0x00000000;
} else {
/* RB0 disabled, RB1 enabled */
tmp = 0x11111111;
} }
} else { } else {
tmp = gb_addr_config & NUM_PIPES_MASK; tmp = gb_addr_config & NUM_PIPES_MASK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment