All of lore.kernel.org
 help / color / mirror / Atom feed
* possible cg6 fix for pixels repeating at display edge or fading
@ 2005-10-29 21:49 Bob Breuer
  2005-10-30  2:48 ` Weeve
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Bob Breuer @ 2005-10-29 21:49 UTC (permalink / raw)
  To: sparclinux

Has anyone else using a cg6 seen the color banding or fading and pixels
on the right side being repeated off to the edges of the monitor?

I think I've found the cause of the problem.  Contrary to the comment,
changing the bt->control register affects something other than the
cursor.  Also, it looks like cg6_bt_init() already sets up the DAC and
this chunk of the code may be redundant.

The following patch seems to work for me on a TGX+.  If you are seeing
problems, can you give this a try and report if it works or not?

Bob


--- linux-2.6.14/drivers/video/cg6.c.orig	2005-06-22 09:04:25.000000000 -0500
+++ linux-2.6.14/drivers/video/cg6.c	2005-10-29 15:25:19.000000000 -0500
@@ -658,7 +658,7 @@ static void cg6_chip_init(struct fb_info
 	/* Disable cursor in Brooktree DAC. */
 	sbus_writel(0x06 << 24, &par->bt->addr);
 	tmp = sbus_readl(&par->bt->control);
-	tmp &= ~(0x03 << 24);
+	tmp |= (0x03 << 24);
 	sbus_writel(tmp, &par->bt->control);
 }




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-05  0:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-29 21:49 possible cg6 fix for pixels repeating at display edge or fading Bob Breuer
2005-10-30  2:48 ` Weeve
2005-11-05  0:36 ` David S. Miller
2005-11-05  0:39 ` David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.