From nobody Mon Aug 19 11:03:34 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 4WnV872ZNYz5SpWd; Mon, 19 Aug 2024 11:03:35 +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 4WnV870LRRz4SgK; Mon, 19 Aug 2024 11:03:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724065415; 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=M0OMv/F0Bra9jVZgoCzuUe/5ZmPaX+Tbe3a7vg5jmvI=; b=L9QJ8XsTqCG0KE3TLj/jNGITudzsh9ptNIhTrIM8+AuVWYWHGaIpamWQLrKwx24e+Aneab 3r+Md7CIh7oiVA8Cor81mfPgKT1dAdyyxrDvuOVGAgUvVJqeCF2bupwsChSZo4B3bjqbf4 UWVIJK+vCFryTmdfX4yEuBAcCDaN77wCqrC7iY7ddMMWsmbQOeDENbv6tJ0AGYUlHydmTz S8Tg3EMpoM1uIh6QUOWYvAFAxScsWsmdaKbDdAta1jELp/I9BE236nlcJ2GZoEMkYK1kwP fDhUt5r55QQQHO0tqvuwRxviC1HhEk2HASEOeNsfW31NeRdvST+uU0BJsFVp3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724065415; a=rsa-sha256; cv=none; b=ZFSihqf9Vk04PTM4bwECCAk0hMU7HKCWRiRnJPTIP3pLyGGFmKncxkF/HYrNk0P7U7O40v LLWt8pd6MUtFS1FFxGCFTlLcgzvOMxJXL2AzMLOHXNXLcjzpegrsFYvVqjiYmumsHjVeKQ h1w5zjN4qfuodHdO6lZCw7nNQkUY/K/7AzEQRLfSwFlR2ym26gqgbb3pNDvuxOoA/8QGfg 7j1s3rnglK2qTC6ks+xZjxvhGAVJBP+pzid8N86/+IofYg2kLx3X91Cetg/rjsqtXwII6z akaPpoBkeY6Dj+sl+jY9flgkWGzmhUHalyAPcjKNmkNUTmAuauaqVtHfxW1sag== 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=1724065415; 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=M0OMv/F0Bra9jVZgoCzuUe/5ZmPaX+Tbe3a7vg5jmvI=; b=lXRYBfw7JabubddhTenqOudXWjSfaUIHucor2yXAIoiobC7uHPNn0DTwNgsv9hHJujivqy +101jHg85QxpcGWoA/jhbHaSp5AVCqltV2QXa0iwjzHeoAHtRME7kLT52eNdlZm3KurajY 6clbd3j5DIN1gQ183LUaVCTW9QKVGIorUT9r9NrKorZ4nFsRw5hGOphNal8Dj7VHTaEwlk dsjvXqeSaus1tKH27R5hSKPkiLXtjXkE244CJ9dzzReXWUclzfmV47iL3qOoi92JFHMVO7 iWvcpQ7kRzgPxrjlWIpW8TOhQ03rOGCWOH1odLK4PnWP3AmGbm0v5nsrMfKleQ== 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 4WnV8669L0zFGm; Mon, 19 Aug 2024 11:03:34 +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 47JB3YYU037877; Mon, 19 Aug 2024 11:03:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47JB3YjY037874; Mon, 19 Aug 2024 11:03:34 GMT (envelope-from git) Date: Mon, 19 Aug 2024 11:03:34 GMT Message-Id: <202408191103.47JB3YjY037874@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 7a345763f96d - main - 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/main X-Git-Reftype: branch X-Git-Commit: 7a345763f96d86eee9ab578e64311bf452e58900 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=7a345763f96d86eee9ab578e64311bf452e58900 commit 7a345763f96d86eee9ab578e64311bf452e58900 Author: Andrew Turner AuthorDate: 2024-07-30 09:26:21 +0000 Commit: Andrew Turner CommitDate: 2024-08-19 10:53:12 +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 --- 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