From mboxrd@z Thu Jan 1 00:00:00 1970 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 E4B33C433F5 for ; Mon, 7 Mar 2022 08:44: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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gUlgtHytpORk9SW1mDMnWYuCXR2uVcmcc5Va7zP8YP4=; b=Z1B9GmpOa3YvaG ILWtQ/49ErMBAcOuDZRvYhM8wKrDWR2q+xXiQw3wr31H+j8c9tLEA9VQmjxHhSdFPA4jxFy50ONjM S3VOVYggPoAE9ZLLfDLP2wMhUnW4zHgFcOifGYnVGgYZadOlh0CT3j7EULi4iIXOyOBNLoEVxga6R gYbGsn9cVXFWR70PMuMxD6u5nOMhbfQ2kEZKILXEh1Gj9UeRg12nvNUtKNyKUgPk7nrQ+PMFpTdHe kRBSjIMVRpDyiqkATsoknrnn4D1N9OypfFk0Zpwyacg82pEN7lbmCo8Ryeit14tkgPyQt+MulOHMi 1QqtvYITPz4pg28cHPwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nR8y1-00GWLt-Gz; Mon, 07 Mar 2022 08:43:45 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nR8xy-00GWKK-0y for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 08:43:43 +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 A0AD5B80F93; Mon, 7 Mar 2022 08:43:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5F73C340F3; Mon, 7 Mar 2022 08:43:37 +0000 (UTC) Date: Mon, 7 Mar 2022 08:43:34 +0000 From: Catalin Marinas To: Rongwei Wang Cc: will@kernel.org, maz@kernel.org, joey.gouly@arm.com, mark.rutland@arm.com, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC] arm64: improve display about CPU architecture in cpuinfo Message-ID: References: <20220307030417.22974-1-rongwei.wang@linux.alibaba.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220307030417.22974-1-rongwei.wang@linux.alibaba.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_004342_250541_E2AE0C2F X-CRM114-Status: GOOD ( 15.77 ) 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 On Mon, Mar 07, 2022 at 11:04:17AM +0800, Rongwei Wang wrote: > 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"); In hindsight, 'aarch64' would have made more sense since 8/9/10 whatever are just marketing. That said, we should not apply this patch as it has potential ABI implications. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel