Page MenuHomeFreeBSD

Add PNP metadata to more drivers
ClosedPublic

Authored by cem on Sep 25 2017, 4:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 11, 6:56 PM
Unknown Object (File)
Sat, Nov 29, 5:35 PM
Unknown Object (File)
Fri, Nov 28, 4:07 AM
Unknown Object (File)
Thu, Nov 27, 5:08 PM
Unknown Object (File)
Wed, Nov 26, 10:46 PM
Unknown Object (File)
Sat, Nov 22, 6:57 AM
Unknown Object (File)
Fri, Nov 21, 3:10 AM
Unknown Object (File)
Fri, Nov 21, 3:08 AM
Subscribers

Details

Summary

GPUs: radeonkms, i915kms
NICs: if_em, if_igb, if_bnxt

This metadata isn't used yet, but it will be handy to have later to
implement automatic module loading.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/dev/drm2/i915/i915_drv.c
425 ↗(On Diff #33393)

Note that MODULE_DEVICE_TABLE is almost perfect as a Linux macro we can use via the linuxkpi for this metadata. The only problem is that different linuxkpi consumers use different pciid structs.

DRM drivers embed the vendor, device, and a human readable string.

Mellanox NIC drivers use the Linux struct pci_device_id, which has more members but lacks the human-readable string.

If Linuxkpi consumers could unify on a pci device id struct, we could use the existing MODULE_DEVICE_TABLE() macros for these drivers instead.

This revision is now accepted and ready to land.Sep 25 2017, 4:42 AM
This revision was automatically updated to reflect the committed changes.