Page MenuHomeFreeBSD

acpi_pci: Inherit PF locality for SR-IOV VFs
Needs ReviewPublic

Authored by kbowling on Fri, Aug 21, 3:37 AM.
Tags
None
Referenced Files
F167545293: D59062.id.diff
Sat, Aug 22, 2:46 PM
F167539488: D59062.diff
Sat, Aug 22, 2:05 PM
F167507122: D59062.diff
Sat, Aug 22, 9:06 AM
F167505884: D59062.id184729.diff
Sat, Aug 22, 8:59 AM
F167481709: D59062.diff
Sat, Aug 22, 3:20 AM
Unknown Object (File)
Fri, Aug 21, 10:58 AM
Subscribers

Details

Reviewers
jhb
markj
Summary
SR-IOV VFs are instantiated from their PF and intentionally do not
receive an ACPI handle by matching their runtime BDF.  Consequently,
ACPI locality queries for a VF fall back to the upstream bus.  This is
usually sufficient, but loses a _PXM supplied specifically for the PF.

Use the PCI core's owning-PF accessor for BUS_GET_DOMAIN and
BUS_GET_CPUS requests made for a VF.  This preserves the VF's lack of
an ACPI handle while allowing its CPU and NUMA placement to follow the
PF.

MFC after:      2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped