pci_enable_device for pciaccess?

Steven J Newbury steve at snewbury.org.uk
Fri Mar 6 20:18:23 PST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave Airlie wrote:
> On Tue, May 20, 2008 at 1:36 PM, Tiago Vignatti <vignatti at c3sl.ufpr.br> wrote:
>> Dave Airlie escreveu:
>>> Okay I've been playing with getting posting working again in master,
>> Yay!
>>
>>
>>> I can make it work on Linux if I use the OS to enable the device in
>>> /sys before trying to POST it.
>>>
>>> However I really think this should be pciaccess functionality, so I'd
>>> like to add a pci_enable_device function to libpciaccess and call it
>>> from the server before trying to POST secondary cards.
>> +1
>>
>>
>>> Long term the posting should be done before X starts but I want to fix
>>> the regression for Fedora.
>> Before X starts? I'd imagine a situation where someone insert a new display
>> or that fancy usb video cards while the X is running. So in this case a hook
>> inside the server is also needed.
>>
> 
> No in this case I would expect the kernel to set the device up before
> handing it to X via d-bus or whatever,
> including posting it.
> 
>> Yes, this is what I initially thought as well. So I started nuking int10
>> module inside the server and transformed in a library (which differs from
>> mjg56's version which is not updated and synchronized with last xorg
>> modifications). Maybe we could link it against the libpciaccess to do the
>> POST/setup. I don't know, you can say it better.
>>
>>    http://cgit.freedesktop.org/~vignatti/libx86/
>>
>> (The X server side modification to use this library is trivial. Just link it
>> against the library and git-rm hw/xfree/int10 basically)
>>
> 
> Yeah ideally we could do something like that inside pciaccess, but
> posting really requires VGA arbitration so we can route
> the buses correctly before POST.
> 
I'm resurrecting this old thread since multiple cards are still not
working for most people, see:
http://bugs.freedesktop.org/show_bug.cgi?id=18160

I'm wondering how this is all tying into the KMS work, has any more work
been done on the VGA arbiter? Is there likely to be a solution for
people with multiple graphics cards on any near horizon?

Is there a external standalone utility that can POST additional cards so
that KMS/DDX driver can then subsequently take over. (To be run from
initramfs perhaps?) Is VGA arbitration essential?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmx9Y4ACgkQGcb56gMuC61bMACffu/jloi9F5ZBQpfSlCCrzAR2
TUMAnixpTxvvwR0RU4jVKZ1ZQqDBwqR7
=9AQ5
-----END PGP SIGNATURE-----



More information about the xorg mailing list