From nobody Thu Sep 10 05:48:10 2026 X-Original-To: dev-commits-src-branches@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 4hgRY70XTjz6rQJc for ; Thu, 10 Sep 2026 05:48:11 +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 4hgRY66s14z4lgr for ; Thu, 10 Sep 2026 05:48:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789019291; 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=2+NuLYeVXa4TupqpVxIOqkMYrsLOkC4j9Urf++fLO6k=; b=dDHbqzuRQzm6U/fFd60p22Em1rrtmxPRifBchGzj2NEr3wEhntTTFhSnhGpj8v068nhFGa dOrq7sOLvQp8WHgTVCHTFrXA+x3XVLjUgpOtAePg2w7s0EWTtwHKD0A84pmA+tRCMtCYjb spBOzowTm+VAHjVYxz7TGdWF/NVjPdkv9fVnilwi5e9v+WFN1fecqyCemWx1o7AS8K7d/0 QGm5TC6c/EMtZU/AKAkzuWNOZsENjZHumjIKsyEvsGvcTc3lduKHV3sbDZrlhB84o6Irw0 NN39ww0Wt4K07WyiTdMnXgFI4A0sp2S+WWhhq62XTmUGJAj/BZLNtfLC66DASA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789019291; b=V2c89ycHG/SY8cyDhcdKVX0RuGS04trrSp4jk8zB6T7EDC/FdQzIITG8xCQS6UN50nIeOj Bb1PmCY/85Fr0dTiqTIvrGxSn136lnF1/Q/0ny6Lpyv5iSL/PgeEf+ktG1B7k3hBDQk4u0 G8W/on5RjkcxtJjhs1EE49Go4UilNA6N8xpD4+YREdf9Ir/COMchMxeUNyuyKcYsyumJE7 9WReu3w5Hzpol58qh4UsvuZ3NcUpRe3jdL81hulpZ+BX2Z3rH4+5XDWhUj/5SAAJa0ByEa sm9jdf94cX0EnCcTWnUbne/WsffefFkYlaUBwT9YWz/QNmgIcjhI5DWWNj05fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789019291; 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=2+NuLYeVXa4TupqpVxIOqkMYrsLOkC4j9Urf++fLO6k=; b=x9CJelTM/ZYjtzDeupThkvbz0711V4p3yuRQUenEdRFS3m9qgiuucCW4ph3cwyI/AoVTVP thohf6z96DgMBDMtT22uxox/fR0nLP1aDT5cn3EDDbvCWm5ZKup7s+nz9LrnoQ0ZGLx+h2 WpFPqD80dYtqwh+96TsGPx3es5xUjVHvmIequ18Xj6/pTZVYttjzxtZXzqcyvlFlrdUSiy jdd5x1eQCwniukAAP7HvWsc/3I+7MVsFfB4tlO1cvfz0eb2qFuLkUHP3Idjv33a9AI2yWP uVzdSZSiRfXGNU2Ddo9QIStp1EwKEcYnJx6qzqAg+xgFgfvLMkI/+enyCul2Zg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hgRY65Kxvz1SSl for ; Thu, 10 Sep 2026 05:48:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3b4b6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 10 Sep 2026 05:48:10 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: cac7fabe1e6f - stable/15 - acpi_pci: Preserve CPU locality queries for descendants List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/stable/15 X-Git-Reftype: branch X-Git-Commit: cac7fabe1e6f0cff7a40305e654979ff6362637c Auto-Submitted: auto-generated Date: Thu, 10 Sep 2026 05:48:10 +0000 Message-Id: <6aa2449a.3b4b6.2dc7e717@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=cac7fabe1e6f0cff7a40305e654979ff6362637c commit cac7fabe1e6f0cff7a40305e654979ff6362637c Author: Kevin Bowling AuthorDate: 2026-08-27 06:21:59 +0000 Commit: Kevin Bowling CommitDate: 2026-09-10 04:04:54 +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 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)); }