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 75939C433EF for ; Mon, 20 Jun 2022 12:47:51 +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=yjOdDsNemb2+Q5 HWlSn3LPJ53CKbhVvnvEGdgPHDMon1dPTOxUqO1ncoLVaLgHxJmaP9/6E9/TJVzIg6Pl5arOqRjlA re2VNByyBMFtZ4pQtNRVLcFoA0y+51wf2iXFhaTng1FBYXjcg55MbwGyiqlJV2meHDZLZ4wUjy/nw 9u0LX4kboaigm4MXfFu4TRVcy6iTOfcedh4LrKYbeLSWxHnHPwVJqmy0mC/ErRh8mG4yekk/U+If9 XHwi00ZKi2EmCU7JIfZI395CgweFERzeGdI5/QnvHK6gZXL3vlFxXAHgwMq0g54RBCGM4RuXPiVy7 3pkzuY06fJHkL3IWgQGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3Gng-000WkA-UU; Mon, 20 Jun 2022 12:46:41 +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 1o3GlN-000VYf-KE for linux-arm-kernel@lists.infradead.org; Mon, 20 Jun 2022 12:44:19 +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 9CA36614A3; Mon, 20 Jun 2022 12:44:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99D4DC341C4; Mon, 20 Jun 2022 12:44:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655729056; bh=MSuzEmwB2EWc/SQzkcgZYXGSUh8YlQuIVK/3BVRer/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=da6MrKu5t1zJfVjl+PRVTN2gCxzC80RtFGk6XKf1H+QKZWVUbq1Sp1092MlH4lCnl ft7cK1tq6z/zlv6uwRV2xQVOtrx/xtyMByonq+1np0lgplzOrNNm86jLUjW8ksHi3P evUZ7X9/RqQzCrQKc6wHUcChA0r91OncFAZTFEYWBWK78LMOZr2zK1ULmhFOmEtKGS F3vHgkj6I5rhPLH1IdcN2kkrAFR7SBlNvuVTsfTNZkpl4VMGHncneyK0LYxKlrz/ef FRszU9hc/13ygIqCMEe9bID1ma4AgbjWq6MrdXyyt38zqwKDW+ISN3RBnxTkjM3M9C XPE6z4KZ7rabw== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , Joey Gouly , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v4 01/26] arm64/cpuinfo: Restore define for AIVIVT cache type Date: Mon, 20 Jun 2022 13:43:42 +0100 Message-Id: <20220620124407.482398-2-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220620124407.482398-1-broonie@kernel.org> References: <20220620124407.482398-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/pANAwAKASTWi3JdVIfQAcsmYgBisGuCfc9R23A3CxptEyLmQ8B/fLSCHk34CiA838Fo VR/R1RqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYrBrggAKCRAk1otyXVSH0D2zB/ 9fp5kSwJgMoKjV8fNCzFapP1l7ssrzpC6qWjepapJ1cTYrnnT35ePibQB5LmUGMhihn0+e9PeQ2ZTA E+H62pstWWC0vJh2akhNwAN1A3dOT0aL3qPEzeIYc3WiEKQrWmIXH1zrDGDORWbGWtbSd0/g++Hmmo acie+r3ar+F6epIHz/HBygApSfPXI6apdI5hkxPHiJmeEBnuaANbN8czhMYNLXbKNb83KDv9KINVLO WsgP1swYRxxB/jt5/2wqHR6FZ0OEn0+hW+Zpbw7H32+Y2TWCwzhh7uz2OemMOoHwu6hW3xNWxt9uMR 86/XjdUM9TX4F8HavqbRbZDxZHxs99 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-20220620_054417_837957_40F79037 X-CRM114-Status: GOOD ( 16.01 ) 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