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 F06F0C433EF for ; Thu, 9 Jun 2022 17:10:44 +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=XX9UmqYICiUqj0 kFn+l5/2V/oTkLtkuAIptwD1N8zxYSmwvgkDu2P91NZb6fEJ4VvmndojS5ctM1zREiUcrWpbjHvBV RqYWpx6sft1oKYWdCESBP//bc1mce5yBVBat1VlCkE14yOG4r9HeyZDKjoQevsSwMTBLMtkP2KDq+ GcN2a3JKLORY/FPqZFYoP7xkv6tDYJI+vBtxrH8P95l+NC1RFdxB6dzlPP9IQA1zQQ4uWwnyAX2tQ RuBd70XcD6WdaQrA18UL9wObuuM/LQCPm6r4z0apN/IVoSGLswHYZEBQbaJK4gMSLEJbKAcYgi6xE wGAn8h0PqTiadcPLfAYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzLf0-002zWP-Ey; Thu, 09 Jun 2022 17:09:30 +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 1nzLem-002zPN-EN for linux-arm-kernel@lists.infradead.org; Thu, 09 Jun 2022 17:09:17 +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 8F35C61985; Thu, 9 Jun 2022 17:09:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97A15C341C0; Thu, 9 Jun 2022 17:09:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654794555; bh=MSuzEmwB2EWc/SQzkcgZYXGSUh8YlQuIVK/3BVRer/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DsUMKTHc8CO0d9rISSCx+MFe+ZGWfNV1EIUXunpbvVK6fUADOYo7YZCU8tDwlh48o IwjDy/y3WMCsZduRfYWHnoP8YDXsQGKvzYkKSIPGA6uWg9d/3I8Lu/jfZR9PMU0WG7 sCxtH/7y7r4DxvN4xikZDa57TJgzXKGvzzVN0A9/Ty9vEF8/5fUsX8gVtjziHLQULa ZCdvv9gpEszjIGI5y9j3XwbebXyoPoH4+/ilAEvdf7hzaLwbJhJq0bP85avLnOnLpt NnZozMY4M7HYcZK9Drs/HdLH7p+0eqGAEwbjgJeUPkVR1BLa/5I4SDBQdWlllOZcI8 N7FTexp0fkNkg== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , Joey Gouly , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v3 01/26] arm64/cpuinfo: Restore define for AIVIVT cache type Date: Thu, 9 Jun 2022 18:08:35 +0100 Message-Id: <20220609170900.1641343-2-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220609170900.1641343-1-broonie@kernel.org> References: <20220609170900.1641343-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/pANAwAKASTWi3JdVIfQAcsmYgBioikWfc9R23A3CxptEyLmQ8B/fLSCHk34CiA838Fo VR/R1RqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYqIpFgAKCRAk1otyXVSH0MIEB/ 9BPvXb/lLI7mNBSyfAiUipmJ0vEkJ/ODnSA1EB8dugjO0pb0Hiv3n1J8U+d6hfgc1WW8Nao4C+cp9l nPcJIAdIAlwUrz+Z0U1/626wc4Yjp9KIGS1js7ZzfOP6UHDGgEPoLET6/VZXkgm+j+8/0kzez6Iie6 6fkq5PFpZo5nKTpgJIhe513qy45AjWixi0PZuFpLe1peO0VPD2QDMwyZruAkx9/JoAbYWMvHpLlAMC 1f0hSboogkwBKC28YVBvu5T6A3L8g1fikMZ6I0DbXMVdRZSEt9TPO6LQVIraz2c52CBsBcHBLbzAZ9 /cog9xNaCP93PiqNryese7W8mouncS 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-20220609_100916_594510_5C9B0A5F X-CRM114-Status: GOOD ( 16.25 ) 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