From: Jon Smirl <jonsmirl@gmail.com>
To: linux-fbdev-devel@lists.sourceforge.net,
James Simmons <jsimmons@infradead.org>
Cc: Jesse Barnes <jbarnes@sgi.com>
Subject: Re: [PATCH] Provide control of active VGA device on PCI systems
Date: Thu, 24 Feb 2005 01:14:13 -0500 [thread overview]
Message-ID: <9e4733910502232214ecb3a5c@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.56.0502220401580.21388@pentafluge.infradead.org>
On Tue, 22 Feb 2005 04:07:23 +0000 (GMT), James Simmons
<jsimmons@www.infradead.org> wrote:
> This is not a bad patch but could you please merge that code into
> vgastate.c and uses the vga io functions in include/video/vga.h
> This way drivers can choose to link to the vga functions themselves.
> The bonus is there is code in vgastate.c to save the state and restore
> the vga text state with a fbdev device. You can for example with the
> NVIDIA fbdev driver load it and do a open on /dev/fbX and it will go to
> the graphics state. On the last close of /dev/fbX it will go back to the
> vga text state it was in before the first open. With your code it would
> make it even more functional.
There are only three drivers linking in vgastate. This code has to run
for all cards with PCI class VGA. It is used by the code that supports
the VBIOS reset in user space. If I move it into vgastate.c I need to
bring vgastate.o into the core fb module.
The problem this code addresses:
boot video card is a VGA device
reseting secondary card will also enable it's VGA device
now we have two active VGA devices - this is bad since most archs only allow one
It fixes it like this:
boot video card is VGA
reset program uses sysfs to disable all VGA devices in system, write
vga=4 to any vga attrib
after secondary card is reset it will have active VGA
now reset program disables secondary VGA and restores the original
one, write vga=3 to any vga attrib
It has a neat side effect of letting you move the console around to
different VGA devices but that is not it's primary purpose. This code
needs to go into the core fb module. It has to deal with all VGA
devices in the system whether they have fb loaded or not.
I am going to remove the fb_hotplug function and IORESOURCE_NO_RESET
and use a different scheme for triggering the user space reset
program.
--
Jon Smirl
jonsmirl@gmail.com
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
next prev parent reply other threads:[~2005-02-24 6:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-20 5:50 [PATCH] Provide control of active VGA device on PCI systems Jon Smirl
2005-02-20 7:07 ` Jon Smirl
2005-02-22 18:50 ` Jesse Barnes
2005-02-22 20:57 ` Benjamin Herrenschmidt
2005-02-22 21:02 ` Jesse Barnes
2005-02-22 21:27 ` Benjamin Herrenschmidt
2005-02-22 21:42 ` Jon Smirl
2005-02-20 8:23 ` Benjamin Herrenschmidt
2005-02-20 16:35 ` Jon Smirl
2005-02-22 4:07 ` James Simmons
2005-02-24 6:14 ` Jon Smirl [this message]
2005-02-22 4:13 ` James Simmons
2005-02-22 4:47 ` Jon Smirl
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=9e4733910502232214ecb3a5c@mail.gmail.com \
--to=jonsmirl@gmail.com \
--cc=jbarnes@sgi.com \
--cc=jsimmons@infradead.org \
--cc=linux-fbdev-devel@lists.sourceforge.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 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.