public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Submissions for 2.4.19-pre [RivaFB Blanking Fix (Author Unknown)]
@ 2002-02-26  2:00 Michael Cohen
  2002-02-27 20:33 ` Marcelo Tosatti
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Cohen @ 2002-02-26  2:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: marcelo


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

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

end of thread, other threads:[~2002-03-20  7:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-26  2:00 Submissions for 2.4.19-pre [RivaFB Blanking Fix (Author Unknown)] Michael Cohen
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox