From: John Zielinski <grim@undead.cc>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Thomas Winischhofer <thomas@winischhofer.net>,
Antonino Daplas <adaplas@pol.net>,
Linux Frame Buffer Device Development
<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: 2.6.7 still garbage upon start
Date: Fri, 18 Jun 2004 09:08:58 -0400 [thread overview]
Message-ID: <40D2E96A.9000605@undead.cc> (raw)
In-Reply-To: <Pine.GSO.4.58.0406181013340.11779@waterleaf.sonytel.be>
Geert Uytterhoeven wrote:
>Solution: before initializing and switching to a fbdev, save the contents of
>the VGA text memory to the `shadow screen', so the fbdev can clear the frame
>buffer memory, and fbcon can recover the current VC contents.
>
>However, it makes things more complex and adds a vgacon dependency to some
>code, since you want it to behave differently if people don't compile in
>vgacon.
>
>
That was the old solution. I found the root cause of the problem.
There is no code in the vt subsystem to prevent output going to a
console driver after it has been deinitialized. The vga console does
save the VGA memory to it's shadow screen when it's deinitialized but
any printk's after that screw things up as it starts to output again to
the screen. Now the shadow screen and the real screen doesn't match
anymore.
If it were possible to take over from fbcon to another console driver
this would have caused an oops as the fbcon font data would have been
freed at that point. The vga console doesn't have any extra data that
needs to be freed so that's why this bug was never noticed.
I posted a fix on May 6th to the vt take_over_console function which
puts the console temporarily into KD_GRAPHICS so that all output between
con_deinit and visual_init (where there is no active console driver) go
to the shadow screen. This is not vgacon specific and would also make
it possible to switch between other console drivers without causing an oops.
>Final solution: VGA is obsolete ;-)
>
>
I wish. Hopefully the new EFI firmware on x86 platforms will initialize
the video card into it's native graphics configuration so we can start
dropping this excess VGA baggage we've been carrying for the last
several years. Of course there's always linuxbios as well. :) What's
the story with VGA on other platforms?
John
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
next prev parent reply other threads:[~2004-06-18 13:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-17 22:41 2.6.7 still garbage upon start Thomas Winischhofer
2004-06-18 1:45 ` Antonino A. Daplas
2004-06-18 7:54 ` Thomas Winischhofer
2004-06-18 8:23 ` Geert Uytterhoeven
2004-06-18 13:08 ` John Zielinski [this message]
2004-06-18 13:18 ` Geert Uytterhoeven
2004-06-18 13:40 ` John Zielinski
2004-06-18 18:40 ` Antonino A. Daplas
2004-06-19 2:09 ` John Zielinski
2004-06-19 3:08 ` David Eger
2004-06-19 6:13 ` Antonino A. Daplas
2004-06-22 9:45 ` David Eger
2004-06-22 13:20 ` Antonino A. Daplas
2004-06-19 19:27 ` John Zielinski
2004-06-19 20:25 ` Antonino A. Daplas
2004-06-18 10:04 ` Antonino A. Daplas
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=40D2E96A.9000605@undead.cc \
--to=grim@undead.cc \
--cc=adaplas@pol.net \
--cc=geert@linux-m68k.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=thomas@winischhofer.net \
/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;
as well as URLs for NNTP newsgroup(s).