Page MenuHomeFreeBSD

fixup_pci: Remove unused attach DEVMETHOD
ClosedPublic

Authored by jhb on Oct 21 2024, 2:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 3, 8:24 AM
Unknown Object (File)
Sun, Dec 1, 9:40 AM
Unknown Object (File)
Sun, Dec 1, 2:58 AM
Unknown Object (File)
Nov 4 2024, 4:41 PM
Unknown Object (File)
Oct 31 2024, 7:53 PM
Unknown Object (File)
Oct 24 2024, 8:32 PM
Subscribers
None

Details

Summary

The probe routine always fails, so the attach routine is unused.
However, this weird driver is really a quirk system for PCI and should
be turned into PCI quirks instead. The Natoma quirk is also broken as
it should be doing a runtime check either on mp_ncpus (or more likely
to see if it is using APIC) instead of #ifdef.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Oct 21 2024, 2:35 PM
jhb created this revision.

Side note: Do we even run on h/w that needs PCI quirks anymore?

This revision is now accepted and ready to land.Oct 31 2024, 5:03 PM
In D47219#1080186, @imp wrote:

Side note: Do we even run on h/w that needs PCI quirks anymore?

i386 might, but we should be able to axe this as part of the i386 kernel axing in the future. Maybe we should make this driver i386-only? (Move it to files.i386 if not already?)

This revision was automatically updated to reflect the committed changes.