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
F167607910: D59064.diff
Sun, Aug 23, 2:30 AM
F167530848: D59064.id184711.diff
Sat, Aug 22, 12:52 PM
Unknown Object (File)
Fri, Aug 21, 11:04 AM
Unknown Object (File)
Fri, Aug 21, 11:00 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