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
Unknown Object (File)
Sat, Aug 22, 5:13 PM
Unknown Object (File)
Sat, Aug 22, 2:46 PM
Unknown Object (File)
Sat, Aug 22, 2:05 PM
Unknown Object (File)
Sat, Aug 22, 9:06 AM
Unknown Object (File)
Sat, Aug 22, 8:59 AM
Unknown Object (File)
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