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 1ABB4C433EF for ; Mon, 4 Jul 2022 17:06:24 +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=MiHNGfqEXtlfdLnxDlN3iOOx4fOUqdq2wgvplIYoQ6U=; b=E7OXC1DDly8IT4 Ebs7eR5RoqoQJKEE6w8S0ukErzq0Qj0rhIpRHnNMbcuuskPXUVOnQeVxyY9vCGfVOCyp4cGHazvOK 3s+g6hvjmU+0AuXY+0wDgCFdQH2gQJ/QNenVWGP6MO8NqHfR3xgwmy6AJWbDevJSVvJ5xQYBQ00iX XeojvuLP7qqKjl4D6DuwNA/FbNSA3qI8OteIUmQmUnchgu4Co+khYnsiPWLXmvOi4qwKJk63+B5FM 3pID3rtBxl2CMchHSCGdykPqxn6J0iR98BHwIop6HSmVi9XwT9F592AWrmsS3+6sKelR5QImyTnUj 8vVNGptQqRhDLhRPeGlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8PVl-00AA99-Gg; Mon, 04 Jul 2022 17:05:25 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8PU6-00A9Kc-Rs for linux-arm-kernel@lists.infradead.org; Mon, 04 Jul 2022 17:03:44 +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 ams.source.kernel.org (Postfix) with ESMTPS id 90672B81177; Mon, 4 Jul 2022 17:03:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D359BC341CD; Mon, 4 Jul 2022 17:03:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656954220; bh=PaS2j8K/6zs60P4aeWQZf/pQXIdCQ9F2dRBgtTgd69c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yy/A6kApaxvqtgmjf2dey2veMAULB/08CFW4WgYMqHuS+Ys5bw9mkWLg9MxKh94L7 PRR3MYhFeI4nXOONj1rLxN2AbgYN9XupCOQz7N+YN1oO2LPoE9kK9MENTzc1VhG8I6 U0khEQTlRN9AnfchTaR6yGItXu4Am+Wy+D0b8K8TJ04ztK3gflUDOfTkWJyhc+zehs Ftp+KEAz6JahEZKjNyDX4/GivyWJ35znx0nZ4WSpU6rpXiEyirOYxh0OV/bl3hQJKb SXlO6uKGDgalzLhx/ioox9rDV4zLrAvSZugz4qk9lIVlAj6/AN/s4/skHZgyIR17AQ OwKjKaC4jbE9Q== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , Joey Gouly , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v7 08/28] arm64/mte: Standardise GMID field name definitions Date: Mon, 4 Jul 2022 18:02:42 +0100 Message-Id: <20220704170302.2609529-9-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220704170302.2609529-1-broonie@kernel.org> References: <20220704170302.2609529-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1901; h=from:subject; bh=PaS2j8K/6zs60P4aeWQZf/pQXIdCQ9F2dRBgtTgd69c=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiwx00tltjou//yrq4htYc97AwpigCec//FegbyICA P3HvXZuJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYsMdNAAKCRAk1otyXVSH0Dn5B/ 4ufyBP3YWlqRVocEHG4iq3fYMHdEnY9U3mOreMudJMRu5tCxv0aHDtKp37ZOfvosG3B7Rn6Pj4CyEW GFZBcYxuXs/klOcYj0BwT685zGwkb/a569ajn+gPN9xR+ZKdINmFH/uShnImarPgch0qBLfcFnbAZj 5hesIFyKDHyvHm5CPO/VXHgW8eUSQoQ48tc/064bPwELT4Q0Jl/sD4B7T1Mz6hyX5wq24LfoCNDKwH wp0z7Jet6jiuKpWPtHi1hmhqibGHtXELWIj8Hft17FPP3DJx8B6py2iwczTqF6WROOQKnmpastNF6I fubFo1POZkmed8Tye9grAzTKfPtGlz 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-20220704_100343_227332_3D14ED13 X-CRM114-Status: GOOD ( 14.95 ) 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 e62baf910249..cc6a847f8bdd 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -1136,8 +1136,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 b9c5b11c17c3..7d838b5f7e20 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