linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cg14 frambuffer bug in 2.2.19 (and probably 2.4.x as well)
@ 2001-07-26 11:08 Alex Buell
  2001-07-27  9:46 ` David S. Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Buell @ 2001-07-26 11:08 UTC (permalink / raw)
  To: Mailing List - Linux Kernel

Hi guys,

I have a patch here that fixes an annoying bug in the cg14 framebuffer
driver on sparc32 platforms. The bug is when it never switches off the
cursor before going into X11 mode, so you get an 'orrible cursor
overlaying whatever you've got on the screen, in the same position as the
consoles. Switching to any console and back to the X11 display, the cursor
overlays the last position the cursor was in on the console. On
investigating, discovered that the cg14 framebuffer doesn't switch off the
cursor!

Here's the patch:

--- linux/drivers/video/cgfourteenfb.c.orig     Thu Jul 26 11:34:00 2001
+++ linux/drivers/video/cgfourteenfb.c  Thu Jul 26 11:48:30 2001
@@ -234,6 +234,9 @@
        spin_lock_irqsave(&fb->lock, flags);
        if (c->enable)
                cur->ccr |= CG14_CCR_ENABLE;
+       else
+               cur->ccr &= ~CG14_CCR_ENABLE;
+
        cur->cursx = ((c->cpos.fbx - c->chot.fbx) & 0xfff);
        cur->cursy = ((c->cpos.fby - c->chot.fby) & 0xfff);
        spin_unlock_irqrestore(&fb->lock, flags);


-- 
Hey, they *are* out to get you, but it's nothing personal.

http://www.tahallah.demon.co.uk


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

end of thread, other threads:[~2001-07-27 16:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-26 11:08 cg14 frambuffer bug in 2.2.19 (and probably 2.4.x as well) Alex Buell
2001-07-27  9:46 ` David S. Miller
2001-07-27 13:04   ` Alex Buell
2001-07-28  4:05     ` Anton Blanchard
2001-07-27 16:54       ` Alex Buell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).