From nobody Mon Sep 02 08:51:00 2024 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 4Wy2Xh65l4z5MpCk; Mon, 02 Sep 2024 08:51:00 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wy2Xh4C3Dz42tL; Mon, 2 Sep 2024 08:51:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725267060; 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=ee7pwLI0NUefWebC6ju0uOEU1aj9RUtMclYzbyaRVco=; b=EsjFePOD6zReDDpF9ilM7sS4iBt4xHvqr1FeSqxL8H9O3s+lOA9FPiO4eaaj7U1CiOv3/b 2d1qd9G1TyKFzF7YPy8imTkBgTDsOHXuL0OxxHqkLMjWwjrCZ0mXkx22CcK0WaVk7Puv6g QWOT6IX25NBpephplXk72zU8IGoWWf+0S4VjyTIJRvfaHaLZxjwNTxA3NEkbLLvRi/dXUq hKdHLEcVeve7PaGOiXNKp2fXuCpr1abDivq2RWiY5vq2aIEjTo4EzPWjJ713FiBpiBni03 OlCQzC0ZrrLvFPzsDG+SF8EMoM/d3ZRMsDdhFMrPNGXLSCbwO7UUP5G0UZ0xCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725267060; a=rsa-sha256; cv=none; b=l6dXc+CC520nEUnw2mJWDQ6M6XYEBmYCLMdTkoymkWuO31pdAcJy/WlQWgrHxJsLnYD4Ad MBNARbFTmDy1r63HoGeTmWnVrepq4m+Vzaj34L7CllvamEMUW1R8gikuUUSIX+RfWZanM1 dLwHKDvNW/l3JwWxiimxEyOdW/xO4kBmnjJV9u+Y1NHqY/3NPrmhy47QH9K1PaCNRQp0BQ VV0tHATEMlU641HabHQC6IIBqpgvVDIo+x0q7UUdrpB2SaRjqhmBUW9GHSMc6ArTmKg/t+ aFSCb0BMGo5B/BtvuGMoqy+7OjC7UMy0z77PenzJVqjhB+rR+eaQNW2p/7lSrg== 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=1725267060; 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=ee7pwLI0NUefWebC6ju0uOEU1aj9RUtMclYzbyaRVco=; b=ESaeEExiN4OHrWJMvk3E7JRXUPJq22Rrv2pEXeH/BiJ5SQQC/BwLX1FBd1z/nxlzr/2eTI PlUiVxhtYsoUgFmAbvIsp7SlQrCKwDhbLHxL0uD7mEKdQeewhJbwOAUR43y3YQHNq3oPt/ p72Yo5PWLUXanJ9TtAFrvxoJg2FXXy7Pr+QkIbjo4X2kez1aDBO3Gq7qaycQngpaSC1AHo CK0FrEynpxenU6MWXpTawleJedJHy2LjzVK3ta8YZq3elBa/jET2xstACBjwtzppVM1GCW 6FunW2FKVXAVQ+CvLMek5N4W1Owyx3HnyXe+YYvBVIRxpsliUOCoz43f1SUMDA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wy2Xh3qYTz15P2; Mon, 2 Sep 2024 08:51:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4828p0vo007897; Mon, 2 Sep 2024 08:51:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4828p0tc007894; Mon, 2 Sep 2024 08:51:00 GMT (envelope-from git) Date: Mon, 2 Sep 2024 08:51:00 GMT Message-Id: <202409020851.4828p0tc007894@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: a194eabe088b - stable/14 - arm64: Use store-pair to zero the kernel bss List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a194eabe088bcc33ee07eefe3aace2aa3e2a3d25 Auto-Submitted: auto-generated The branch stable/14 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=a194eabe088bcc33ee07eefe3aace2aa3e2a3d25 commit a194eabe088bcc33ee07eefe3aace2aa3e2a3d25 Author: Andrew Turner AuthorDate: 2024-08-20 17:14:28 +0000 Commit: Andrew Turner CommitDate: 2024-09-02 08:49:38 +0000 arm64: Use store-pair to zero the kernel bss While this won't be noticed by most users the time to zero the bss while using instruction tracing in the Arm FVP models (simulators) is noticeable. Reduce this time by using a store-pair instruction to double the size of memory we zero on each iteration of the loop. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D42733 (cherry picked from commit f1bc3750cf9a6623b0c0861984ef2a8ac966a4e3) --- sys/arm64/arm64/locore.S | 2 +- sys/conf/ldscript.arm64 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S index 3db1d3025967..d448f06b2580 100644 --- a/sys/arm64/arm64/locore.S +++ b/sys/arm64/arm64/locore.S @@ -109,7 +109,7 @@ virtdone: ldr x15, .Lbss ldr x14, .Lend 1: - str xzr, [x15], #8 + stp xzr, xzr, [x15], #16 cmp x15, x14 b.lo 1b diff --git a/sys/conf/ldscript.arm64 b/sys/conf/ldscript.arm64 index 185b4485e07a..21c7dc35d9b7 100644 --- a/sys/conf/ldscript.arm64 +++ b/sys/conf/ldscript.arm64 @@ -119,6 +119,7 @@ SECTIONS .sdata : { *(.sdata) } _edata = .; PROVIDE (edata = .); + . = ALIGN(16); __bss_start = .; .sbss : { *(.sbss) *(.scommon) } .bss : @@ -126,7 +127,7 @@ SECTIONS *(.dynbss) *(.bss) *(COMMON) - . = ALIGN(8); + . = ALIGN(16); __bss_end = .; /* A section for the initial page table, it doesn't need to be in the kernel file, however unlike normal .bss entries should not be zeroed