Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1731657pxp; Mon, 7 Mar 2022 00:51:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzd58XDQRQKC3LB8zulZ6EDb3mJ2XpVPD8q9c24NieynH5aAh/A7RITfTSH1gtsj9wV3Kbp X-Received: by 2002:a17:907:168a:b0:6da:9167:47dc with SMTP id hc10-20020a170907168a00b006da916747dcmr8300421ejc.126.1646643111165; Mon, 07 Mar 2022 00:51:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646643111; cv=none; d=google.com; s=arc-20160816; b=MxX/lJ7Tmx/DufbVANfaRBjF5qFFr3bTtRfH9TJVt9fljbl83RpH1lGMUB+xRLRbcD Ejb9iZ9DsQdD0nDaq0Ffo5rSv2F2i50bURJdo6bbqcuxMr+djnoUk5SPiX3nEVz+7FQh enRHkNJ8ijgKSKrK9CkrVNGYGquNPJbMnrI5iJOJY1PeipJ9SFNz0BkZvPllch0KuJgg v0maKIboZG2uZQjFri3CenZMn5hldNGKNu/vPKGM/+4spVK42Vv1rwH2KdgrtbHgSo0z Z47ER0CJgRA8yHVDjcVjwSE+lPEvPI1UCJfn042puFatz/n9F0PTkaHeJLmL2JMVNbdt m4SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=VJAz/2J3KEa7wI0nHn9zqPJvByQBDlI3Y+ad4WQRJS4=; b=e3otWy7/7bFfOL/zmI/IzanJos8cZcPgt55hyFEcEyKkNBlsbzCKlevCcVNYtsoKC5 S3CC2fZNsaaahD/MfdbjPGoruX2vuqLxyDCXZPQDtVaNh3lP0mXpod/36+cZJSxtBTDC Utq7NtuncN7S1rCobC+8J66ZQwFr591drze8xxOa3pzIwcgVHyR2QzauI7IlUT8mQsN2 Cd7pGc4XsL7sm63VIatPhdirOFVZAKdPazVodbCBv78hWnswZLw5wZmuJWm7AP3UhJfm k6/YEihL3NeD2OFjAv91vMa6pHThX2C8j6O0ePiUV3paoPBQ1cn80IbIjKAEJn257yW6 HruQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a170906c18b00b006d128468688si7419512ejz.187.2022.03.07.00.51.28; Mon, 07 Mar 2022 00:51:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234909AbiCGDFW (ORCPT + 99 others); Sun, 6 Mar 2022 22:05:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231468AbiCGDFT (ORCPT ); Sun, 6 Mar 2022 22:05:19 -0500 Received: from out199-4.us.a.mail.aliyun.com (out199-4.us.a.mail.aliyun.com [47.90.199.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7122613F4C for ; Sun, 6 Mar 2022 19:04:24 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04407;MF=rongwei.wang@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0V6OXvO._1646622258; Received: from localhost.localdomain(mailfrom:rongwei.wang@linux.alibaba.com fp:SMTPD_---0V6OXvO._1646622258) by smtp.aliyun-inc.com(127.0.0.1); Mon, 07 Mar 2022 11:04:19 +0800 From: Rongwei Wang To: catalin.marinas@arm.com, will@kernel.org, maz@kernel.org, joey.gouly@arm.com, mark.rutland@arm.com, akpm@linux-foundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH RFC] arm64: improve display about CPU architecture in cpuinfo Date: Mon, 7 Mar 2022 11:04:17 +0800 Message-Id: <20220307030417.22974-1-rongwei.wang@linux.alibaba.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now, it is unsuitable for both ARMv8 and ARMv9 to show a fixed string "CPU architecture: 8" in /proc/cpuinfo. Signed-off-by: Rongwei Wang --- arch/arm64/kernel/cpuinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index 330b92e..6d9b7e8 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -195,7 +195,7 @@ static int c_show(struct seq_file *m, void *v) seq_printf(m, "CPU implementer\t: 0x%02x\n", MIDR_IMPLEMENTOR(midr)); - seq_printf(m, "CPU architecture: 8\n"); + seq_printf(m, "CPU architecture: aarch64\n"); seq_printf(m, "CPU variant\t: 0x%x\n", MIDR_VARIANT(midr)); seq_printf(m, "CPU part\t: 0x%03x\n", MIDR_PARTNUM(midr)); seq_printf(m, "CPU revision\t: %d\n\n", MIDR_REVISION(midr)); -- 1.8.3.1