All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Breuer <breuerr@mc.net>
To: sparclinux@vger.kernel.org
Subject: possible cg6 fix for pixels repeating at display edge or fading
Date: Sat, 29 Oct 2005 21:49:12 +0000	[thread overview]
Message-ID: <4363EE58.1090508@mc.net> (raw)

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);
 }




             reply	other threads:[~2005-10-29 21:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-29 21:49 Bob Breuer [this message]
2005-10-30  2:48 ` possible cg6 fix for pixels repeating at display edge or fading Weeve
2005-11-05  0:36 ` David S. Miller
2005-11-05  0:39 ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4363EE58.1090508@mc.net \
    --to=breuerr@mc.net \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.