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 9F3B3ECAAA1 for ; Tue, 6 Sep 2022 00:06:32 +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=+9XUzxBVTTv4zd23IarNdefTAmoEUb37m/XQ9auaLCg=; b=cS46JiowBfaFJi FXw99TCSPh2NSUw55RRaYAOy56zsPLwH8ZLK8GOXHw/6DDLf0QfBs0f2sIcIpMyGzyKcw/NPwIj2R PK0GH4/Rpo3MIMxEB05ocWYhFj84tb2+k4BLGxtuHic4DCmhHh5DIcuG96DNw6DZncWATB3qVLGka mT6sXgcTPKWuQ+UwqM4zpbXoPS+0L34Ol8bB9n8qTanqZU3z8rIHPmzaR9DwyxnPfMeIOQZrnpxFM A+t8hZa8K6jMrHkUyizGrPjPXBKKGEehEEiP1lv2WQCp6dfqv6wO4Ng3nKcNdaC1jOoiIMq3TPIHn Ob7WQiliCE+Z6lFE/22w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVM5l-000XKv-F9; Tue, 06 Sep 2022 00:05:25 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVM4N-000WEE-SX for linux-arm-kernel@bombadil.infradead.org; Tue, 06 Sep 2022 00:04:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=fDJEkW+6w1AEFAsuP2zLNDZ39+1/wb+nLyopvwz6hDc=; b=eontg61RfQDAWAToihuVtXJXUV KTzUVMXeZIaSCfcvzfX9O9ugctlwVfwbSIlDIFmJbX9VOnwe/5Y8jKF7YNlBRselWk1X8Els7Y0Iu 51HyvjxPe0ngrPeCp088QVqmFKWHaZNy+On8XggZ1qzSerMGCRNZEbecubM4n147o5ROMIG3VnqHi VUCfltdiF7TXYNq21y5yGuPo1D6HWh93KzmSg0W3SJFMKjK1CcCSW0Ghi9ViZeTzejAh27K9/SjFo cYAS/xME3lLN0EMvJkfzBlgXRd2ljjeqcK1br59i2e1tTJwmRYJaUqV0dpDg+fEQtEaBy5OiQrdBn ClFMIV+A==; Received: from ams.source.kernel.org ([145.40.68.75]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVKzS-009zfh-Rv for linux-arm-kernel@lists.infradead.org; Mon, 05 Sep 2022 22:54:54 +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 D7659B81598; Mon, 5 Sep 2022 22:54:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DD9FC433B5; Mon, 5 Sep 2022 22:54:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662418487; bh=EWUZPOg4kdxA6miYH1V/1mHOI+34BXAe6EiiwrfWDY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nocYJIVsBaZmpL4EM7Wu8Yg9yEMcUGXRTEHDW398Pr1bKmFEG2SDs/E148hqZ4M+G zNXqSBOr6BXjoHAbKo3du5hfLOXqGd2Wx1QhCVd4jxJ6GaAse9nYriNWDWYRMTcCte j2n7UYMgIowRXhwVtX2J3pk2NYs6WLFpoMchjFBLPinLntmg8/L4tQ2XzO40oamkRR hQEtdXftz9lsLg9fJ4whjElEuMZrcSy2OTiCkhful3xqiYjavK+tAgQcY1c33Z0NfU ze14dN01leI+v7YgOCHYskUOnKmtWdwQncctuc894zAkXU48NN7pPwtCE8WOxUwJdu trSC/y+EYicdg== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , Kristina Martsenko , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v6 08/28] arm64/sysreg: Standardise naming of ID_AA64MMFR0_EL1.BigEnd Date: Mon, 5 Sep 2022 23:54:05 +0100 Message-Id: <20220905225425.1871461-9-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220905225425.1871461-1-broonie@kernel.org> References: <20220905225425.1871461-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=EWUZPOg4kdxA6miYH1V/1mHOI+34BXAe6EiiwrfWDY8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBjFn4NueO629iMOxrFCyG7AyuUtUc3KAZ6UqOQjx1W D5R5cLaJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYxZ+DQAKCRAk1otyXVSH0FLWB/ 486YGlqVZ7i3mjhyuxnCdBvSrgMyCgfVOr+mpIDfBSb21aq72xSdEi4C/GFM9pDNLI2VCTma5TJaEi Btd+j1IBKtLmmMNP7bStoLegnIUW7NzUKpp4km3Up737XZ1zzbpmOGrueRnffeh4uikRAMo45SDH9s ziyRF5q+BDLgiGVM4CV6fF64nZ5VY9TEncE2gkvbHL2bRZQYA57aNWZ0t6EPq+BhY9x4UrNiaZjQuA I55sA7u1UKvy7neU6dfuR/KoCjjtibL+E9kQIUKt2NlevXf4EwrlTRTwHInKC73B8LiBs5/QCrKIG/ gbDpRZWLJJmEu/o0TZr2EESJTSsyvP 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-20220905_235452_456488_96F6D5EC X-CRM114-Status: GOOD ( 16.84 ) 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 214325a7f627..d7b96dc9364b 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 e72bab4452e9..f1430c77911a 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 2e19cbdab50a..def03583523b 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