From nobody Thu Aug 27 22:49:32 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hWGt43gL9z6qm4Y for ; Thu, 27 Aug 2026 22:49:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hWGt42wvtz3sx5 for ; Thu, 27 Aug 2026 22:49:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787870972; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o08LN3RnxRCIA+8s4Oqv8uDiD0F6nDLoOiG+sKaf9F4=; b=tMtmuohF1GEQI0lSG8sxi0JN+gsTX/oln2MnlirjSnHdI57Tr/YkB068sgkaVazdavDT69 WY7SYIQLvp+k72+vOksfjVI1Gz4mpGS+FZJSzRW5jWC/hMmz2AIFvsIOTG2uIpiqj76Ora RDnxyWHhS7lUDK7z0CuWP/aeoNWqEaoeFRXXOWMHRam+7XvHo31UzVrz1AoJG7d6vghJgH QBXj6WDEz2ZzhGl7J8vXT2AVpD4Iqoo6XmYULjL4Bii32sJ4y2VaiLqzHtKQs7dr2GtyNH iVvVTY9ldAbopXRoVxOoww68HgHTQHw0chHRXLDqHkandljQlS28Y6HGsxifkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787870972; a=rsa-sha256; cv=none; b=AL8T+DGupXC+wSKxpWYHczHlAiEX1RuTEOdah6rQxzH5dkGXgJdlQU8DCAkFZYVhtJX4KZ 5ZDX2lI1C0yF/DcP0dv9tRSJHOLGp02ii0XPCTYFlR7qbEVbfK/L1H9zM7KPkVik+ECaUl TKn4TIAvSkU4IdzkOPZNEg6VoO71wLVmBncxLDB1LZQz449hkrpFSLDxs5BjQcvs1MfOrn ZMGUjLJFbzLI/2U61hOGYIvuu/Bz354RTzZmyjWani12Q0+dC8v8yocqxN8LDVyb3txhxW o/Pa4s4bmbC/s+X/Kxf4nWDx+Tkx2jTIhF8MG7Qt0ml4um8GwGx+4WjPp3Rk5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787870972; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o08LN3RnxRCIA+8s4Oqv8uDiD0F6nDLoOiG+sKaf9F4=; b=dYPVsEmfwT9LMWboXzkhP/OeTv2rN09Bq2PngBgVye3SVYwvV/MWSnV4H/ZFSJIL+3DPj3 pxFAJt0tZ+2mb10CTz/rpsWZ0FCBOFAsLofHQUolNB6/r30xFnrPWLBusftHON/qKhZolr hcDoVxMxXa1+rubyxWdlpeIdW4qYo6xtRxhep4F3kRkY1VijEsptyCWxe3150YsiS1OcS3 FoG4y/9aNYTrfQ+xOfVF/2conh9MTP4WBtmQL9psueIeWLsxBKMwCDtQ9b/UuzEH+aS3SZ S2dxb1eXkLOZqtyPUbTe/yebKZD0MwrfamgDSDkpHMc0BgUerFj5ZyZsJUnnMA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hWGt41kmfzky3 for ; Thu, 27 Aug 2026 22:49:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 44f63 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 27 Aug 2026 22:49:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: dc4f80da18f0 - main - acpi_pci: Preserve CPU locality queries for descendants List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dc4f80da18f0dcc557a969b4283a86569266eb5c Auto-Submitted: auto-generated Date: Thu, 27 Aug 2026 22:49:32 +0000 Message-Id: <6a90befc.44f63.3e0590a2@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=dc4f80da18f0dcc557a969b4283a86569266eb5c commit dc4f80da18f0dcc557a969b4283a86569266eb5c Author: Kevin Bowling AuthorDate: 2026-08-27 06:21:59 +0000 Commit: Kevin Bowling CommitDate: 2026-08-27 22:48:47 +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 MFC after: 2 weeks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59206 --- 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 56ae2ce3dda4..8b6aeb69f593 100644 --- a/sys/dev/acpica/acpi_pci.c +++ b/sys/dev/acpica/acpi_pci.c @@ -222,6 +222,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)); }