Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9AC09C43334 for ; Wed, 8 Jun 2022 13:35:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=585aSrYMXAVtCH2yunJ1aM+BYUUEo+3jJ+FDLjtBo+w=; b=ibPPq3HXx07umM Y9S96Jr0n5za1+mD1MFFNjha9SqR+uCfKkDnHH6LTjobJaF5Is+m4aBm41tOUvowDfCFTROFLWvEv ZomJygB2G4s/OuylGOFb0YPhcdJXVX/yNbMqm9CyIxomu7MvM8NHct4JzzbejFRIIAk2lsYrU/yTs 8gEPDYeedpLz+A+HDqLDJMdfD5neBt9vPmObsUGUf+UhuHhgnPUZ+62k1ZtlHP9Q+J/XQ3i2tFZB2 ytQr0mfIB7/mUFcaDUdHJXlyXfeaYVyxjdy16obfbTLyt7//DebHjzYK89yWwAR3PvTXdG5NAtmLP l5sMM9JfmD9YiWSCKokA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyvp0-00DCu0-Ux; Wed, 08 Jun 2022 13:34:07 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyvo8-00DCZJ-Qx for linux-arm-kernel@lists.infradead.org; Wed, 08 Jun 2022 13:33:14 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4867B61A95; Wed, 8 Jun 2022 13:33:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A316BC341C0; Wed, 8 Jun 2022 13:33:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654695191; bh=7l9GjeRKhGs6NwSMIlcV22CF/iM9WhBxxtMzMYzZX98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qUk+2cPlDwcfTlZI22DeKgO/nNR82jnAK6FNuKwaLy5KJ+5qkFtbNq1crTwi3T9nL jUhWEsQk0Vj9+IgFrMoGXasvnZXaojcBCOqGRcUpYsW7/jQF9cVc2WbXzxSTmbD7lG D22dUASkTXT/Yb7Z0gSDSXRa1pQ/LpXx24247XRsSrhbcWWnRRRX/KcehBY8+bexPd OpBpLWQJ0H1rVuHy51dqS+sCwFhR9u8mR3sMe63trt9oLUeL/5Yg+uV2/NB7iNw3qk 1nf5CRTW845C3WOP2kMLlqc9VT9FZOrthU/YPN2we6ANEFcx7jpYtmWA7EVkm4i1/6 q+6HbyC89t3LQ== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 06/17] arm64/mte: Standardise GMID field name definitions Date: Wed, 8 Jun 2022 14:31:40 +0100 Message-Id: <20220608133151.614373-7-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220608133151.614373-1-broonie@kernel.org> References: <20220608133151.614373-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1901; h=from:subject; bh=7l9GjeRKhGs6NwSMIlcV22CF/iM9WhBxxtMzMYzZX98=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBioKS9KdOWk9dAHdwKjQIz4Ul5zHP7EbyP8lijkKDh hO7hv8GJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYqCkvQAKCRAk1otyXVSH0FXeB/ 4vMfiMEONYtCnV4OTlQKYds4EeZKhy/f6x5gBvgJCMTL9dNDY6vLxyh4TGGDcnGljtKu1tTphkwAnM iqlf5RZpOs3gq9durT1qxOHiTOiSLKIEQXNDyYBjOgVsgbbZ3Zpv9Os1oPPenub0++ppigfrfyEwy4 4Fa9NnG2UdcLZal+v6jJnCaNGgEvrRdKePPkj0FylRVHMY0ikxfyP7duvzE32pZZzXqqW/MpqGVYvq o9WlAUKvT8CO9vpRh+C96mVEHUTIdL4B2X7duTu3VF7sgNuQbv2zCl8GtxKFr5TC4UIkRlhyOIIK3R MdH/D3GKISRmOmZ275zdSuL9A29FoW X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220608_063312_995381_1EDFA943 X-CRM114-Status: GOOD ( 14.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Usually our defines for bitfields in system registers do not include a SYS_ prefix but those for GMID do. In preparation for automatic generation of defines remove that prefix. No functional change. Signed-off-by: Mark Brown --- arch/arm64/include/asm/sysreg.h | 4 ++-- arch/arm64/kernel/cpufeature.c | 2 +- arch/arm64/lib/mte.S | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 6589d2ed2cf5..9a2f659edeee 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -1137,8 +1137,8 @@ #define SYS_RGSR_EL1_SEED_MASK 0xffffUL /* GMID_EL1 field definitions */ -#define SYS_GMID_EL1_BS_SHIFT 0 -#define SYS_GMID_EL1_BS_SIZE 4 +#define GMID_EL1_BS_SHIFT 0 +#define GMID_EL1_BS_SIZE 4 /* TFSR{,E0}_EL1 bit definitions */ #define SYS_TFSR_EL1_TF0_SHIFT 0 diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 3446144b477a..a16d1f1d6bbe 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -459,7 +459,7 @@ static const struct arm64_ftr_bits ftr_dczid[] = { }; static const struct arm64_ftr_bits ftr_gmid[] = { - ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, SYS_GMID_EL1_BS_SHIFT, 4, 0), + ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, GMID_EL1_BS_SHIFT, 4, 0), ARM64_FTR_END, }; diff --git a/arch/arm64/lib/mte.S b/arch/arm64/lib/mte.S index eeb9e45bcce8..1b7c93ae7e63 100644 --- a/arch/arm64/lib/mte.S +++ b/arch/arm64/lib/mte.S @@ -18,7 +18,7 @@ */ .macro multitag_transfer_size, reg, tmp mrs_s \reg, SYS_GMID_EL1 - ubfx \reg, \reg, #SYS_GMID_EL1_BS_SHIFT, #SYS_GMID_EL1_BS_SIZE + ubfx \reg, \reg, #GMID_EL1_BS_SHIFT, #GMID_EL1_BS_SIZE mov \tmp, #4 lsl \reg, \tmp, \reg .endm -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel