tech-x11 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xorg pci probing



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

Hello,

On Jan 18, 2011, at 10:22 AM, Martin Husemann wrote:

To summarize what goes on: on x86 archs (and AFAICT for NetBSD only there) the X starup code enumerates all pci buses the kernel found, searching for vga devices. If multiple are found, it prefers the one that the new function
marks. That's basically all about it.

Yes, the idea ( I think... ) is to make sure screen :0 is what the user would expect. As it is now that's not necessarily the case.

If the new function says "no" to all devices, we have the same state as right now. This, however, will not happen, even with serial console, as the function
realy only finds the first wsdisplay device's parent vga.

Well, I think we can safely assume that people would expect wsdisplay0 as :0.

On sane ports we do not enumerate via /dev/pci, but straight open ttyE0 (i.e. the first display, the same that the new function will mark) or ttyF0 etc for
multiple servers, and are there right away.

Actually we do the pci enumeration dance everywhere now, so X can use all graphics devices. I would prefer something /dev/fb*-ish too but that would require a lot of rototilling - we'd have to attach a dev entry to all graphics devices even those we don't have a kernel driver for.

I would prefer to drop the stupid enumeration code on x86 too, but I'm
definitively not goint to touch that code myself - so no right to complain.

Exactly.

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBTTW/Y8pnzkX8Yg2nAQLClAf+OnLlZcftIUshCsI51371QGm2krgLMxPe
Io6giFbAN22yR0KpIyD2My3u8gxjPBkMBMwjhKohP1iPn2nC8j8a8k23B2E2H4jn
MLyYW6J9DEy1flYaduhrXIVhq1f3muv7IgzHvnwU9zIr4D6anatDbW6TGCctCKD+
o2AsboFcrI/iEJY8Abvp6QeqOuhxBrnA0Q8IN99ax9dpnhh6LWnGlmex+1h4P67S
j/issTXoM8A5/uPS1ulLhZQ05v1bYeJde7hPIh3KnINPB3m1EYUPHv0u3zfQkdwU
JYuWN5Dizmc7E5Kf9Pmj3C+yLCeYMKUfZrbTbXybdBVRjll0RsntlA==
=ShPU
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index