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
Unknown Object (File)
Thu, Oct 2, 6:22 AM
Unknown Object (File)
Mon, Sep 29, 10:46 PM
Unknown Object (File)
Sun, Sep 28, 1:42 AM
Unknown Object (File)
Tue, Sep 23, 11:50 PM
Unknown Object (File)
Mon, Sep 22, 1:44 AM
Unknown Object (File)
Sun, Sep 21, 10:36 PM
Unknown Object (File)
Sun, Sep 14, 11:20 PM
Unknown Object (File)
Sun, Sep 14, 4:46 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 Not Applicable
Unit
Tests Not Applicable

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.