From nobody Mon Sep 02 08:50:59 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 4Wy2Xh11gBz5MpCM; 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 4Wy2Xg39wxz42ym; Mon, 2 Sep 2024 08:50:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725267059; 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=2WSLc3pBXEV04PopHmurE7O56SSSkQZXe7r4k9kWRt0=; b=b5Q0N19CgyL1EdL2qZ0qOul7WOblRqy7WO9OTE2CDtcgjBwBx8Of2dBG/9Hj2rn3KzHqsK IH6hNCH/Jnm62iou9XGcI24yFcZEVNaMsL7wKgXNNPMNOg6uGab4AwE/lNDzIBes2y4Yft lyMypE+T9djMJxxIvtJJItfynoTr3/DsNGgrEQiK4uhf/CmWcW5c3YNxj9DnIp0+iHY1eD NO+EVhrM8rZCBB2WfnYJJ1pn7OGkTizR0kgR5VC/Kpy5B3srnNCNecbjJEGE9Eil5qXq1X YgPdiwDTrnGzxtSKv3oyHoSiVBQWoAXHFkjgD6OrtY0JUjmhny3lQMC6vNLBfw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725267059; a=rsa-sha256; cv=none; b=LoymgZwX/4DrFt7t8gnZNq3pzmgQFdHwvy13Z0OqoWlYHEheEx08wRSF+O02IPp7/lc9b9 rUADR6B7M8CprKufG2mB6yILqooH6Fiy12d4+LfdEvMVy3nG1zmVcSK68twqa1u+tbEqwx S8oYI248WHnps5ZTib6mNvjVyQjEhaCrmf7Zj9oxe+dXWCe4xtU+bEQWd0vd1M3L8jNs0U M+AjSSGcIMKjNIgm88up7I0/vs/WHFB387T4K5H5hKKo9UmM0AydGhj1bvVXfmpmfBU6Q1 JgyoKIQkYg0FuTO5Fn3WNKyM5KnRJ/4JVc8MV8LvYT9ElwMGBRaffdnWLZ7dYg== 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=1725267059; 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=2WSLc3pBXEV04PopHmurE7O56SSSkQZXe7r4k9kWRt0=; b=icVvZVoKWwECyBwYjmLa999jB+OZZSsfL1ELtG4gwGh6427dlIJHQiLjI4hTC760//bucz Vi5n67bktChAO4CGo+2RKfxOyeuNI0kZgn7l+vm4CWDCVCdVN7e0kjt9DdDw4BRN0ZIJt0 /4iySpyVX9v22+oiC1L4R2aIFfVrwtr7aCGUMHurNNSV2V2v8xSkrCs7azrZE1nFnuDyQA FIJq1xuowBFB/N+KWQr81Jh9fSbbCsag+lnnENMG9HRrhH4wQmjp8SzqFma78QQZSpMHRX 96zk6jGdWOBUf+hT7RnjM2VOBWleFOjLlpccGU4v/izNjx944BKOkRkKD4aeqg== 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 4Wy2Xg2hk9z156k; Mon, 2 Sep 2024 08:50:59 +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 4828oxNQ007834; Mon, 2 Sep 2024 08:50:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4828oxZW007831; Mon, 2 Sep 2024 08:50:59 GMT (envelope-from git) Date: Mon, 2 Sep 2024 08:50:59 GMT Message-Id: <202409020850.4828oxZW007831@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: e95c22c4135a - stable/14 - arm64: Expand the use of Armv8.1-A atomics 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: e95c22c4135afe54f4f04949553e7f55bd3cb6cb Auto-Submitted: auto-generated The branch stable/14 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=e95c22c4135afe54f4f04949553e7f55bd3cb6cb commit e95c22c4135afe54f4f04949553e7f55bd3cb6cb Author: Andrew Turner AuthorDate: 2024-07-30 09:26:21 +0000 Commit: Andrew Turner CommitDate: 2024-09-02 08:49:38 +0000 arm64: Expand the use of Armv8.1-A atomics When targeting Armv8.1 we can assume FEAT_LSE is available and can use the atomic instructions this provides without needing to check for support first. Reviewed by: imp, markj, emaste Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D46159 (cherry picked from commit 7a345763f96d86eee9ab578e64311bf452e58900) --- sys/arm64/include/atomic.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arm64/include/atomic.h b/sys/arm64/include/atomic.h index 76ca951678d4..c7aaa76d9de9 100644 --- a/sys/arm64/include/atomic.h +++ b/sys/arm64/include/atomic.h @@ -65,8 +65,9 @@ extern _Bool lse_supported; #include -#ifdef _KERNEL - +#if defined(__ARM_FEATURE_ATOMICS) +#define _ATOMIC_LSE_SUPPORTED 1 +#elif defined(_KERNEL) #ifdef LSE_ATOMICS #define _ATOMIC_LSE_SUPPORTED 1 #else