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)
Dec 31 2023, 4:05 PM
Unknown Object (File)
Dec 20 2023, 7:20 AM
Unknown Object (File)
Nov 25 2023, 11:04 PM
Unknown Object (File)
Nov 25 2023, 7:11 PM
Unknown Object (File)
Nov 25 2023, 1:30 PM
Unknown Object (File)
Nov 23 2023, 5:27 AM
Unknown Object (File)
Nov 7 2023, 1:31 PM
Unknown Object (File)
Nov 6 2023, 10:04 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.