[PATCH v2 0/5] Support autoloading of non-PCI drivers

Thierry Reding thierry.reding at gmail.com
Tue Feb 18 14:49:22 PST 2014


On Tue, Feb 18, 2014 at 02:37:55PM -0800, Alan Coopersmith wrote:
> On 02/18/14 02:19 PM, Thierry Reding wrote:
> >From: Thierry Reding <treding at nvidia.com>
> >
> >This series introduces a new configuration section, OutputClass, which
> >can be used to match an output device against a set of attributes and
> >pass in additional configuration. The idea is that each DDX module for
> >output drivers can ship configuration snippets that give a hint as to
> >what devices they support.
> 
> Does this also work for PCI drivers?   Say if a proprietary driver vendor
> wanted to include a xorg.conf.d snippet in their driver package that
> enabled use of their driver instead of relying on our builtin table
> mapping PCI ids to driver names?   If so, cool, that's one less distro
> patch I need to carry to update that table for them.

Yes, it should work for PCI drivers as well. Aaron Plattner has in fact
successfully tested the previous version against the NVIDIA proprietary
driver. Well, not quite successfully because the previous version
appended the OutputClass matched drivers therefore causing PCI drivers
taking precedence. This version should fix that.

Note that this currently only works on Linux (I guess perhaps BSD also)
since it matches against the DRM/KMS kernel driver name as returned by
drmGetVersion(). It uses the ODEV_ATTRIB_DRIVER abstraction, though, so
it should be possible to implement something equivalent on other
operating systems.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140218/7249faff/attachment.pgp>


More information about the xorg-devel mailing list