Page MenuHomeFreeBSD

Check for a 'pci' prefix rather than a full match in get_addr_props
ClosedPublic

Authored by jhibbits on Jun 15 2018, 3:45 AM.
Tags
None
Referenced Files
F149359307: D15817.id43837.diff
Mon, Mar 23, 11:39 PM
F149287421: D15817.id43840.diff
Mon, Mar 23, 12:14 PM
Unknown Object (File)
Sat, Mar 21, 9:37 AM
Unknown Object (File)
Sat, Mar 21, 9:19 AM
Unknown Object (File)
Sat, Mar 21, 2:06 AM
Unknown Object (File)
Fri, Mar 20, 9:10 PM
Unknown Object (File)
Thu, Mar 19, 7:09 AM
Unknown Object (File)
Tue, Mar 17, 4:05 AM
Subscribers

Details

Summary

Newer OPAL device trees, such as those on POWER9 systems, use 'pciex' for
device_type, not 'pci'. Rather than enumerating all possible variants, just
check for a 'pci' prefix.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17309
Build 17144: arc lint + arc unit

Event Timeline

It's mildly stupid, since the universe of pci* isn't big, but I think I would prefer a check for "pci" || "pciex" to just checking the first three characters.

Change to nwhitehorn's preference. Either is fine with me.

I should probably caffeinate before making such trivial changes.

This revision is now accepted and ready to land.Jun 15 2018, 6:33 PM
This revision was automatically updated to reflect the committed changes.