Skip to content

Commit 18a4cd2

Browse files
committed
drm/radeon/kms: r420 idle after programming GA_ENHANCE
https://bugs.freedesktop.org/show_bug.cgi?id=24041 The idle allows rs690 to startup properly. Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent fe62e1a commit 18a4cd2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/radeon/r420.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ void r420_pipes_init(struct radeon_device *rdev)
6464

6565
/* GA_ENHANCE workaround TCL deadlock issue */
6666
WREG32(0x4274, (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3));
67+
/* add idle wait as per freedesktop.org bug 24041 */
68+
if (r100_gui_wait_for_idle(rdev)) {
69+
printk(KERN_WARNING "Failed to wait GUI idle while "
70+
"programming pipes. Bad things might happen.\n");
71+
}
6772
/* get max number of pipes */
6873
gb_pipe_select = RREG32(0x402C);
6974
num_pipes = ((gb_pipe_select >> 12) & 3) + 1;

0 commit comments

Comments
 (0)