Page MenuHomeFreeBSD

ofw_pcibus: Inherit PF locality for SR-IOV VFs
ClosedPublic

Authored by kbowling on Fri, Aug 21, 3:57 AM.
Tags
None
Referenced Files
F171825438: D59064.id184627.diff
Sun, Sep 13, 8:25 PM
Unknown Object (File)
Sat, Sep 12, 9:42 PM
Unknown Object (File)
Sat, Sep 12, 5:50 AM
Unknown Object (File)
Fri, Sep 11, 3:38 AM
Unknown Object (File)
Wed, Sep 9, 7:54 PM
Unknown Object (File)
Tue, Sep 8, 6:14 PM
Unknown Object (File)
Tue, Sep 8, 5:23 PM
Unknown Object (File)
Tue, Sep 8, 8:49 AM
Subscribers

Details

Summary
PCI VFs are allocated dynamically and have no corresponding OFW node.
The zero-filled OFW PCI devinfo currently leaves obd_node as 0, which
is not the invalid-node sentinel and can send NUMA lookup through an
unrelated firmware node.

Initialize dynamically allocated devinfo with an invalid OFW node. For
VF locality queries, use the owning PF's node when it exists. Fall back
to the PCI bus when neither the VF nor PF has a firmware node.

This preserves existing CPU-locality behavior for ordinary PCI devices
while making VF domain and interrupt placement follow their PF.

MFC after:      2 weeks

Diff Detail

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