[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-fbdev-devel
Subject:    [Linux-fbdev-devel] Re: [PATCH] Provide control of active VGA device on PCI systems
From:       Jon Smirl <jonsmirl () gmail ! com>
Date:       2005-02-22 21:42:35
Message-ID: 9e4733910502221342b560325 () mail ! gmail ! com
[Download RAW message or body]

On Wed, 23 Feb 2005 07:57:47 +1100, Benjamin Herrenschmidt
<benh@kernel.crashing.org> wrote:
> On Tue, 2005-02-22 at 10:50 -0800, Jesse Barnes wrote:
> 
> > Nice, if this is combined with Ben's suggestion of using a firmware loader
> > type model to deal with POSTing, it seems like we're in pretty good shape.
> > Can you add documentation for this API to
> > Documentation/filesystems/sysfs-<foo>.txt (maybe the pci file or a new file)
> > so that userspace people will be able to figure out how to use it?
> >
> > Also, how does one know if a card is 'primary' or not?  I.e. some BIOSes will
> > POST all cards, some will POST only one, and some will POST none...
> 
> Well, that's something we need to figure out... While I do think the
> POSTing must be under driver control, as I explained, there is still
> that nasty notion of who has the stuff at 0xc0000 ... and if your
> firmware runs the x86 BIOS but doesn't keep the shadow around, then you
> are toast with a good deal of laptop chips.


With the ROM API code that is checked into the kernel on the x86 it
tracks the boot video device so that it knows which card C000 belongs
to. IORESOURCE_ROM_SHADOW is set in this case. If you do pci_map_rom()
on the boot device it returns you the contents of C000 not the actual
ROM.


> 
> The problem is that on some cards (ATIs for example), the BIOS will
> modify the image in RAM at c0000 and will put in there various infos,
> like panel type, PLL infos, etc... that can't always be obtained from
> the "hard" ROM (especially the panel infos). The driver (raeonfb or X,
> strace X and see it mmap'ing /dev/mem at c0000...) need those things.
> 
> Ben.
> 
> 


-- 
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
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic