The branch stable/14 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=2bab696fbb85b858729da5a0ca9ec9a80d0d5886
commit 2bab696fbb85b858729da5a0ca9ec9a80d0d5886 Author: Kevin Bowling <[email protected]> AuthorDate: 2026-08-27 06:21:59 +0000 Commit: Kevin Bowling <[email protected]> CommitDate: 2026-09-10 05:49:15 +0000 acpi_pci: Preserve CPU locality queries for descendants bus_generic_get_cpus() preserves the original leaf device while forwarding a request through the bus hierarchy. Consequently, acpi_pci_get_cpus() may receive a descendant below a PCI function rather than one of the PCI bus's direct children. Only apply the SR-IOV PF-locality mapping to direct PCI children. Preserve the previous ACPI CPU-locality lookup for descendants so their unrelated bus ivars are not interpreted as PCI device information. Reviewed by: jhb Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59206 (cherry picked from commit dc4f80da18f0dcc557a969b4283a86569266eb5c) --- sys/dev/acpica/acpi_pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/acpica/acpi_pci.c b/sys/dev/acpica/acpi_pci.c index 431b425126e6..a7e771322110 100644 --- a/sys/dev/acpica/acpi_pci.c +++ b/sys/dev/acpica/acpi_pci.c @@ -225,6 +225,9 @@ acpi_pci_get_cpus(device_t dev, device_t child, enum cpu_sets op, size_t setsize, cpuset_t *cpuset) { + /* BUS_GET_CPUS may preserve a descendant below the PCI function. */ + if (device_get_parent(child) != dev) + return (acpi_get_cpus(dev, child, op, setsize, cpuset)); child = acpi_pci_get_locality_device(child); return (acpi_get_cpus(dev, child, op, setsize, cpuset)); }
