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 4EF97C43334 for ; Wed, 8 Jun 2022 13:34:31 +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=rnhOb3szbesY9+IQ9Xpsp+ZkJB+7P5vcfekBceE7ZT0=; b=qW0q/AiMrDF3gV YbdxQELSorNSCoV17VAtmyZYr9a1oEin3Jrbm+l7HQToHL4xlCJ9nP62PAzOtfbZHZhGgg4bwETHI VDGCUaCvdUDi/8N47A9OA+tW/asMIsgUFDB4mxiIah/GC/vGNMYfKtTgnMlKM9hE84nEwbAiySssR l3NOSL9L1OymyfLVMFPvnPizD4llyN7LbNUOQP6azImx3TUhHUakrfwpITXIQekWeeCxKwqEfFWYa w+XFtinAfyHsUhYhN/a/0Y4MH97qRBX8YL4wqVvX3dqJ6zslFUMhNEzkYfjezVs6BMPY5j9ru7thf 3LUDYWRPohBEQh4n1tVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyvoK-00DCeb-TY; Wed, 08 Jun 2022 13:33: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 1nyvo0-00DCX3-3q for linux-arm-kernel@lists.infradead.org; Wed, 08 Jun 2022 13:33:05 +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 B68F6B827B2; Wed, 8 Jun 2022 13:33:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33C0AC341C4; Wed, 8 Jun 2022 13:33:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654695181; bh=MSuzEmwB2EWc/SQzkcgZYXGSUh8YlQuIVK/3BVRer/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jKTvHeA0R6F4SG1Xlc9t52Drqg75+pq7ep8bIqHEq5p06BxyAktbk0hoQQPyo5AG6 V75eB10E3hwY5wvdZWIbYuPH7Xbu1qU6F048+TB33mdXigRVUJfSRTSJ7jTirrB729 r38k1kNHULx+LEVea6Ly7iPrvRiDikxv/GKmvSRJo8mQ0I0e3A3Akwp5VBHZFqCCGL X95HNPR00kJJlwSRiQtJNWmPXP1TvfqVkV/dPgMjnkTv3OJDwTXpX6zVfW76tM2xU/ AS8whNMH/bJKbXYaKZTyZgnyMZwmCbp8dS/W+9wtC5TO8tsC/BLZ6VQp4C0QZlJM5u 8WZkcRwzdlT4g== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 01/17] arm64/cpuinfo: Restore define for AIVIVT cache type Date: Wed, 8 Jun 2022 14:31:35 +0100 Message-Id: <20220608133151.614373-2-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=2157; h=from:subject; bh=MSuzEmwB2EWc/SQzkcgZYXGSUh8YlQuIVK/3BVRer/s=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBioKS5fc9R23A3CxptEyLmQ8B/fLSCHk34CiA838Fo VR/R1RqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYqCkuQAKCRAk1otyXVSH0F6JB/ 4xwwX1bUHs10P8+O9oFYoLlVeMCUGOwB2Rc0Dw/LEEmt7BhuGSDQP+Kh0sgwE8+IJLsqcQg8Sb6JnV RM/ZmwFQtXHDvukaieVunBMs88eJ04014uRcClzacGgafxkkHEmL3p9YeCwKHWZC1d0svE6hJcBpTT mIgDRwcw8kirAgsuWHP9Iq9OoRmt/XyZkdhcWZHwkhcsHLq0j2zr2q1qfySbSyzbeWBtxAo9I+q3r2 0tzo5AChl4mFer0vhmMb16neicNpvcytcJ5SYYg3edrZI9hjVcLW/h3ygiOzvWoukbwes76ytTQ/Jq 9UsX3H+clHhAhzlcgqj9FWG1EzRIY7 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_063304_487772_D7EBD84E X-CRM114-Status: GOOD ( 16.23 ) 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 In 155433cb365ee466 ("arm64: cache: Remove support for ASID-tagged VIVT I-caches") we removed all the support fir AIVIVT cache types and renamed all references to the field to say "unknown" since support for AIVIVT caches was removed from the architecture. Since the correspoding removal from the architecture was done by documenting this value as reserved but still listing the original meaning and naming in order to facilitiate automatic generation of the headers for the system registers rename the kernel internal defines back to AIVIVT. The decoded value displayed to userspace is left as "RESERVED/UNKNOWN" so there is no user visible impact. Signed-off-by: Mark Brown --- arch/arm64/include/asm/cache.h | 2 +- arch/arm64/kernel/cpuinfo.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/include/asm/cache.h b/arch/arm64/include/asm/cache.h index 7c2181c72116..23bfcd92f6ca 100644 --- a/arch/arm64/include/asm/cache.h +++ b/arch/arm64/include/asm/cache.h @@ -25,7 +25,7 @@ #define CTR_L1IP(ctr) (((ctr) >> CTR_L1IP_SHIFT) & CTR_L1IP_MASK) #define ICACHE_POLICY_VPIPT 0 -#define ICACHE_POLICY_RESERVED 1 +#define ICACHE_POLICY_AIVIVT 1 #define ICACHE_POLICY_VIPT 2 #define ICACHE_POLICY_PIPT 3 diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index 8eff0a34ffd4..e3990b39126d 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -35,7 +35,7 @@ static struct cpuinfo_arm64 boot_cpu_data; static const char *icache_policy_str[] = { [ICACHE_POLICY_VPIPT] = "VPIPT", - [ICACHE_POLICY_RESERVED] = "RESERVED/UNKNOWN", + [ICACHE_POLICY_AIVIVT] = "RESERVED/UNKNOWN", [ICACHE_POLICY_VIPT] = "VIPT", [ICACHE_POLICY_PIPT] = "PIPT", }; @@ -347,7 +347,7 @@ static void cpuinfo_detect_icache_policy(struct cpuinfo_arm64 *info) case ICACHE_POLICY_VPIPT: set_bit(ICACHEF_VPIPT, &__icache_flags); break; - case ICACHE_POLICY_RESERVED: + case ICACHE_POLICY_AIVIVT: case ICACHE_POLICY_VIPT: /* Assume aliasing */ set_bit(ICACHEF_ALIASING, &__icache_flags); -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel