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 8A774C00140 for ; Mon, 15 Aug 2022 16:48:52 +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=19hB9nUcVMQ16FwnTT7BF/aYz9b8IG+wFnssikhQHjA=; b=0R4Mxjzd42BFmA cbQTpxQ+x0pJHWB3KyODlzeSq5kTu6GCjY6YfPAh6/EcdJcTXB+RdF5LFAjAv78qGsgddxn3gH8V/ /gM6KLfhApYp8TZ0OPtO0s2a+TQ+j2pG9scva80YDj7ypq5q/3QOeDStNfIc7JTi6H4zeBbMsqLKQ lXTUE8sfr3OgTjSQ4qG0SlenFEpza0ew/CynXtYZ5SybhtR5szutzdxJ+dsqiHAYAGcU7c6co5svj Q4z/t5E1xIAJI7yo32rBph98JZ49zMKx9vRswX5VH94zqgN8Z1SlWYwQt4PipBN5ehfQInAa7aokb yQzQjKPhqisW1HTcboFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNdFd-001qyr-3x; Mon, 15 Aug 2022 16:47:41 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNcw4-001cZ5-On for linux-arm-kernel@lists.infradead.org; Mon, 15 Aug 2022 16:27:32 +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 5A61EB80FE3; Mon, 15 Aug 2022 16:27:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF547C43140; Mon, 15 Aug 2022 16:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660580846; bh=vgbADkdvCGX6woXx7q1wLPbTRJOmsLyNV6RjmejMDAY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o+ttldHnAZkxXxB83ucpaVl9XtJC5mPwZiiasVbeia4FAJVJfnPIQxmNAtNJwfcl/ VbCyBE5HP1Y+qRP7tClagSuwmsR6u3jw0yNptfLrypE7/Fs3PVpkEgbmuSoyF1KKDv 65yBcgrEzbfatjI/Q/zR3yofOZOjni/Vi+NiDbmjTKgF5S7FNrg3oVLg+/M3I3/wfD RXe6IMLsxjeA3aOr7Z34DO8J/Iyh+PF5IgC/emVlpCXQvEz8Jqy2zuAmEEH/Yqqal8 BiSIm15/IY+cWePU3oKGsv56qSBtWCESmc48zuPaySJVV+eufeeXZZvuG1VTc5CX90 7mvCVseR8/ZXg== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 08/28] arm64/sysreg: Standardise naming of ID_AA64MMFR0_EL1.BigEnd Date: Mon, 15 Aug 2022 17:26:28 +0100 Message-Id: <20220815162648.781802-9-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220815162648.781802-1-broonie@kernel.org> References: <20220815162648.781802-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3733; i=broonie@kernel.org; h=from:subject; bh=vgbADkdvCGX6woXx7q1wLPbTRJOmsLyNV6RjmejMDAY=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBi+nO0cAsB6Rdd/CHgofOxbv7puKCyYLNsxUojTyjy 12lgQgSJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYvpztAAKCRAk1otyXVSH0HjzB/ 9MEZ/8VyemPEWJQAq1eUC8y6wQ/iMt80rEp8YKzzzZovQ3wg9aSBdWhB9DawjB8p5zxf5HZuDRLwPm V0W3GzgC95IgzBVWUEeiGjpgshxGraJUNVK6HAA5N+1tMAZnCh88zpWuwoypg9G3wriGMTaBq3giuu fbKo6y0/1f6R5551LrXY3b4m4Xl0qAAaavnKx85VxtO8Q/Z2DHtlPjtOg8BVJSygwPxyFPIoFwYi3C sgG1DQurU+n5SDJXkDCfqIl0wndDYhH6J2W9BhGgE8Tijfei/gYXwCNywj3JVYgyV5QW07X45AyFJN zJdDOMISkosv08RmheMeDHuYm6dyxL 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-20220815_092729_137317_8C281E9D X-CRM114-Status: GOOD ( 16.83 ) 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 For some reason we refer to ID_AA64MMFR0_EL1.BigEnd as BIGENDEL. Remove the EL from the name, bringing the naming into sync with DDI0487H.a. Due to the large amount of MixedCase in this register which isn't really consistent with either the kernel style or the majority of the architecture the use of upper case is preserved. No functional changes. Signed-off-by: Mark Brown --- arch/arm64/include/asm/cpufeature.h | 4 ++-- arch/arm64/include/asm/sysreg.h | 2 +- arch/arm64/kernel/cpufeature.c | 2 +- arch/arm64/kvm/hyp/include/nvhe/fixed_config.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h index f61c0a35bc0e..0da2d07dd903 100644 --- a/arch/arm64/include/asm/cpufeature.h +++ b/arch/arm64/include/asm/cpufeature.h @@ -597,7 +597,7 @@ static inline s64 arm64_ftr_value(const struct arm64_ftr_bits *ftrp, u64 val) static inline bool id_aa64mmfr0_mixed_endian_el0(u64 mmfr0) { - return cpuid_feature_extract_unsigned_field(mmfr0, ID_AA64MMFR0_EL1_BIGENDEL_SHIFT) == 0x1 || + return cpuid_feature_extract_unsigned_field(mmfr0, ID_AA64MMFR0_EL1_BIGEND_SHIFT) == 0x1 || cpuid_feature_extract_unsigned_field(mmfr0, ID_AA64MMFR0_EL1_BIGENDEL0_SHIFT) == 0x1; } @@ -738,7 +738,7 @@ static inline bool system_supports_mixed_endian(void) mmfr0 = read_sanitised_ftr_reg(SYS_ID_AA64MMFR0_EL1); val = cpuid_feature_extract_unsigned_field(mmfr0, - ID_AA64MMFR0_EL1_BIGENDEL_SHIFT); + ID_AA64MMFR0_EL1_BIGEND_SHIFT); return val == 0x1; } diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index b50d7a9928c7..cc70d0ebffa2 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -744,7 +744,7 @@ #define ID_AA64MMFR0_EL1_TGRAN16_SHIFT 20 #define ID_AA64MMFR0_EL1_BIGENDEL0_SHIFT 16 #define ID_AA64MMFR0_EL1_SNSMEM_SHIFT 12 -#define ID_AA64MMFR0_EL1_BIGENDEL_SHIFT 8 +#define ID_AA64MMFR0_EL1_BIGEND_SHIFT 8 #define ID_AA64MMFR0_EL1_ASID_SHIFT 4 #define ID_AA64MMFR0_EL1_PARANGE_SHIFT 0 diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index f09c37f3ab46..4c0bc39d1dc3 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -351,7 +351,7 @@ static const struct arm64_ftr_bits ftr_id_aa64mmfr0[] = { ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64MMFR0_EL1_BIGENDEL0_SHIFT, 4, 0), /* Linux shouldn't care about secure memory */ ARM64_FTR_BITS(FTR_HIDDEN, FTR_NONSTRICT, FTR_LOWER_SAFE, ID_AA64MMFR0_EL1_SNSMEM_SHIFT, 4, 0), - ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64MMFR0_EL1_BIGENDEL_SHIFT, 4, 0), + ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64MMFR0_EL1_BIGEND_SHIFT, 4, 0), ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64MMFR0_EL1_ASID_SHIFT, 4, 0), /* * Differing PARange is fine as long as all peripherals and memory are mapped diff --git a/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h b/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h index fad5406fc71a..0ece26707fc0 100644 --- a/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h +++ b/arch/arm64/kvm/hyp/include/nvhe/fixed_config.h @@ -74,7 +74,7 @@ * - Non-context synchronizing exception entry and exit */ #define PVM_ID_AA64MMFR0_ALLOW (\ - ARM64_FEATURE_MASK(ID_AA64MMFR0_EL1_BIGENDEL) | \ + ARM64_FEATURE_MASK(ID_AA64MMFR0_EL1_BIGEND) | \ ARM64_FEATURE_MASK(ID_AA64MMFR0_EL1_SNSMEM) | \ ARM64_FEATURE_MASK(ID_AA64MMFR0_EL1_BIGENDEL0) | \ ARM64_FEATURE_MASK(ID_AA64MMFR0_EL1_EXS) \ -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel