From nobody Thu Sep 10 05:53:43 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 4hgRgW66Snz6rQtq for ; Thu, 10 Sep 2026 05:53:43 +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 4hgRgW2h9Dz4nkm for ; Thu, 10 Sep 2026 05:53:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789019623; 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=IBJ2Ux1UgkQjtrpAg0c86FawH1oZ2OJOMwWpbB/Vji0=; b=LH4kEf/a2zAD1yzXLmlulzC1ZUndpbiHOpsrozvu48JZdrJ9lyk4QyT89uyIgQV0mNyjAY 4mTKMPiVxU2ha1wQ4Nij+E08X5TPAnph5XLKtphO7ceMQcDErA5jxgyNTxx4cACQ+Uqk0Z BxhWu7S4o98YEwhFOiN+5uWOrKT8BSRObzAgbrUbKiD/C61rFIiY01R+80e1wOaEw/3ToN RiLJM2J46XJxmgj9yBiw8UJbvcP1XmPaljiEtErcu507lJrBklJ4LpTyxuBr/6181FYOe0 dPefX5P2+cDXRdJQ5TmZ8feiVgVdVzMvB22oFp8WbKhzRbqp6k7D9X+aW/ZR3Q== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789019623; b=Kw1mAMGTEO8KWfJfKIvmlsw1WWlo8ZZIgxSZTcoMhKJo1P0/ZTrxiN8kFFQkZhV7V78/bK Bt3dJPflz+e/jKnwBt2sU23yxdaFkNBwBSJ/D+R9YdNob33LIJ9Ph4IQhzq/jTuuD3BhHA YKue0DXK+jY4YFHtBgWl59HS8b41vUjjAWekqjMK+bt7LaPa9Sc2huBqU8ZlLB9S3l3an9 CfW+yFtc08ZTSq+fOUSXbuRx6J7OXKqB7/qKtcwKzJw6GwYy/1GW+lujpkHipq1GL5EH0/ xz1FDQVdgpCfCN7nfFryQVgzIMPRFYKMY9dpH863cpfZ7OaO4Oz0NJ3HLaW2Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789019623; 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=IBJ2Ux1UgkQjtrpAg0c86FawH1oZ2OJOMwWpbB/Vji0=; b=vBJ2wSUxwwyL4SP8qEdKnZ74rP4lfpWgQB2NU/+N6V1jSpz6hORApzXmCujFkiyzLrey+J yWmLWok015+29GuDw5UNY9AQPxfdJ2QzQBM+0Vyu595oA0Jmue5qNVCsB2dTx2Ds859kMT gcQZRtFlbAxEmZztror8XxT69F+nbRPEBu07yb3nvll6SYKdPEBt07VPBBO95UFtl5zocA eOKduq2k4L6rQMhQtyOIZmW67oBHM4D3kJucJqX2o8aNV3F5KSGPOM6aGtgNrDgthDCou+ EIcdix0qcsVt3yVan7/3b/EBpNrI/7NYEN9upOG/vz/VSygYE7MZ6r99v2XrfA== 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 4hgRgW1ls4zFMj for ; Thu, 10 Sep 2026 05:53:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3d321 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 10 Sep 2026 05:53:43 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: 2bab696fbb85 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 2bab696fbb85b858729da5a0ca9ec9a80d0d5886 Auto-Submitted: auto-generated Date: Thu, 10 Sep 2026 05:53:43 +0000 Message-Id: <6aa245e7.3d321.3fd54e45@gitrepo.freebsd.org> The branch stable/14 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=2bab696fbb85b858729da5a0ca9ec9a80d0d5886 commit 2bab696fbb85b858729da5a0ca9ec9a80d0d5886 Author: Kevin Bowling AuthorDate: 2026-08-27 06:21:59 +0000 Commit: Kevin Bowling 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)); }