From nobody Fri Nov 27 00:00:19 2026 X-Original-To: dev-commits-src-all@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 4jbD7l3Y4nz71HJf for ; Fri, 27 Nov 2026 00:00:19 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jbD7l1VGdz4MPm for ; Fri, 27 Nov 2026 00:00:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795737619; 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=FYSSMqRe086g4JBJTU7sj2tDuUu/lfX4LixInYhJgWQ=; b=Mlx6J0wTtCmCe+HRnjGhhxgY6mVzFNmXhmhfp6EXdmcdCLpKp3ff6usLWMdH+1hUM/hoyi P8I8nNQUnWisAVygpFlLiGMbfx1ULi3P066vdq6PFwH3rDDa0ujmP97YArAKVpUAUOSc1X wXwr2HMqq1i+OlyLpMpWJ51dwLd3mRU+3Oh3MaF1VMMsN93mHN4pSEUnhaf7wT9SdnWhQl fN/owH8c5NLNMPcS2L+BIpQxp9G0crAPsUYyEb9F8vgBj5A7PuYlNEHwy/bZ5mxMghGKAN 6r2rwfb0mDYbbO85JKDcOwNa9zUKLN0nnUJQ7iQGA4CkZ3D3yJMypaofQXha4A== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795737619; b=V/FLhSqI87nCpAePzIfeRBgZJ+yRxi1VtTVIv05UR2EqwymX3t8Qx6MaRTgJg77h9R7ZlO LSoLi5FR5ZAhyGsY9kD5YeVlGJmP9pWxhKjcW4o5d0/cDsW2o9C7qE6rWdnMEKOGeZS7Ra jMubrB6RuDhPmDzIOsSVVNWUuSm0BysF8ceXYqMrqdgSnZB5oMM877utC2remnOk+bUz9/ Td/h7w9MlzNJNDQf4aQDm6Tc3I0tMW0jT42vSgTNcdugkeJSfrzCMVck4fVdK7+JpNNAdM VJeYEY5a7PGhUKkCiVNfPtQogCou1ps6isLXIxvw513Du03OGegb2M+HeHfSww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795737619; 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=FYSSMqRe086g4JBJTU7sj2tDuUu/lfX4LixInYhJgWQ=; b=r6OyQYJXzE3yRVnelvk3NvG82e/kondW6hvm/up2vb0IVER0EQE8cr7FVN2lr06c7ICPAZ 2wvXeI0UV6w5WLYZ3gIYY2VdmGEVMr/Z1374rcg0VDny1azIkjymqS42MfkWVSLaCxAWAx UkOdprTbU0Ji6I0iDBbPA5p3RgrZWJSwoMENCNvwiyDXW6Z6EUTVO4KxegcHuWQ4KHG461 cJqhOmx1K2umICkZTvFfqp2XNaw04S9956gnsX2+moLgonVWpFJs28COQi2voumz77nLBQ i3XzJ64nV/fhshvjF2YPHuIMia3o8CUtEYebJp2+9QsxXJ8ROiRMjHdSXxdgCg== 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 4jbD7l0nxNzbYc for ; Fri, 27 Nov 2026 00:00:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id a780 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 27 Nov 2026 00:00:19 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: a4875f2aedec - releng/15.2 - acpica: Fix SRAT memory region insertion sort List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository 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: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/releng/15.2 X-Git-Reftype: branch X-Git-Commit: a4875f2aedeca332a3c0753dc38a561105fe7ced Auto-Submitted: auto-generated Date: Fri, 27 Nov 2026 00:00:19 +0000 Message-Id: <6b08c813.a780.17a5d016@gitrepo.freebsd.org> The branch releng/15.2 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=a4875f2aedeca332a3c0753dc38a561105fe7ced commit a4875f2aedeca332a3c0753dc38a561105fe7ced Author: Colin Percival AuthorDate: 2026-11-25 04:16:31 +0000 Commit: Colin Percival CommitDate: 2026-11-26 23:59:32 +0000 acpica: Fix SRAT memory region insertion sort The SRAT table can list memory regions in any order, but we need them sorted. There is an insertion sort to accomplish this when building the mem_info array, but instead of inserting the new region before the *first* higher-base-address region, it was inserting the new region before the *last* higher-base-address region; i.e. if the array already held "1 3 4" then inserting "2" would produce "1 3 2 4". Break out of the insertion-location-finding loop when we find the right spot to insert the new memory region into the list, rather than looking further. Approved by: re (cperciva) Reviewed by: jhb Fixes: dd540b46236b ("Add a parser for the ACPI SRAT table...") MFC after: 1 day Sponsored by: Amazon Tested on: c5n.9xlarge, c6a.24xlarge, c6a.metal, c7a.metal-48xl c7i.metal-24xl, c7i.metal-48xl, c8a.metal-24xl c8i.metal-48xl, c8i.metal-96xl, c8in.96xlarge c8in.metal-48xl, c8in.metal-96xl, m8azn.metal-24xl Differential Revision: https://reviews.freebsd.org/D62059 (cherry picked from commit 276085c192993e68aca41e2402f94436f99aa33b) (cherry picked from commit 44276cb4146c4500aa33e0388fa4905c8686c4d0) --- sys/dev/acpica/acpi_pxm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/acpica/acpi_pxm.c b/sys/dev/acpica/acpi_pxm.c index 9eb95996eca0..3bce5b77ef08 100644 --- a/sys/dev/acpica/acpi_pxm.c +++ b/sys/dev/acpica/acpi_pxm.c @@ -370,6 +370,7 @@ srat_parse_entry(ACPI_SUBTABLE_HEADER *entry, void *arg) return; } slot = i; + break; } for (i = num_mem; i > slot; i--) mem_info[i] = mem_info[i - 1];