mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michael Cohen <me@ohdarn.net>
To: linux-kernel@vger.kernel.org
Cc: marcelo@conectiva.com.br
Subject: Submissions for 2.4.19-pre [RivaFB Blanking Fix (Author Unknown)]
Date: Mon, 25 Feb 2002 21:00:11 -0500	[thread overview]
Message-ID: <20020225210011.490d7131.me@ohdarn.net> (raw)


This is the fourth (there were two seconds with different contents, oops) of several mails containing patches to be included in 2.4.19.  Some are worthy of dicussion prior to inclusion and have been marked as such.  The majority of these patches were found on lkml; the remaining ones have URLs listed.

The origin of this patch is unknown, but it is believed to be from lkml.

------
Michael Cohen
OhDarn.net

--- linux.orig/drivers/video/riva/fbdev.c	Wed Nov 14 14:52:20 2001
+++ linux/drivers/video/riva/fbdev.c	Tue Nov 27 17:37:02 2001
@@ -1703,11 +1703,31 @@
 {
 	unsigned char tmp, vesa;
 	struct rivafb_info *rinfo = (struct rivafb_info *)info;
+	struct fb_cmap cmap;
+	u16 black[16];
 
 	DPRINTK("ENTER\n");
 
 	assert(rinfo != NULL);
 
+	/*
+	 * FIXME: X seems to have some issues with this particular hardware
+	 * method of blanking.. so we use a software fallback for now, pending
+	 * a real fix. (Someone with documentation might want to fix this
+	 * properly).
+	 */
+	if (blank) {
+		memset(black, 0, 16 * sizeof(u16));
+		cmap.red = black;
+		cmap.green = black;
+		cmap.blue = black;
+		cmap.transp = NULL;
+		cmap.start = 0;
+		cmap.len = sizeof(black) / sizeof(u16);
+		fb_set_cmap(&cmap, 1, riva_setcolreg, info);
+	}
+
+#if 0
 	tmp = SEQin(rinfo, 0x01) & ~0x20;	/* screen on/off */
 	vesa = CRTCin(rinfo, 0x1a) & ~0xc0;	/* sync on/off */
 
@@ -1730,6 +1750,7 @@
 
 	SEQout(rinfo, 0x01, tmp);
 	CRTCout(rinfo, 0x1a, vesa);
+#endif
 
 	DPRINTK("EXIT\n");
 }

             reply	other threads:[~2002-02-26  2:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-26  2:00 Michael Cohen [this message]
2002-02-27 20:33 ` Marcelo Tosatti
2002-02-27 22:03   ` Jeff Garzik
2002-02-28 17:55     ` Marcelo Tosatti
2002-02-28 19:15       ` Jeff Garzik
2002-02-28 18:11         ` Marcelo Tosatti
2002-02-28 19:23           ` Jeff Garzik
2002-03-20  7:12             ` Ani Joshi

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=20020225210011.490d7131.me@ohdarn.net \
    --to=me@ohdarn.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®