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)
Tue, May 19, 7:43 AM
Unknown Object (File)
Mon, May 18, 10:32 PM
Unknown Object (File)
Mon, May 18, 8:44 AM
Unknown Object (File)
Sun, May 17, 11:44 AM
Unknown Object (File)
Mon, Apr 27, 9:06 AM
Unknown Object (File)
Fri, Apr 24, 3:03 AM
Unknown Object (File)
Apr 21 2026, 2:34 AM
Unknown Object (File)
Apr 15 2026, 7:46 PM
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.