Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1733171pxp; Mon, 7 Mar 2022 00:54:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCXwnkB1B3Q+L+j+/dyhlc0huvhihn+AAxCyr3ivqAiUexvfr8E5qk/rxP2b2NNbRFnB0C X-Received: by 2002:a17:906:5d0e:b0:6da:97a8:95bd with SMTP id g14-20020a1709065d0e00b006da97a895bdmr8179483ejt.442.1646643272403; Mon, 07 Mar 2022 00:54:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646643272; cv=none; d=google.com; s=arc-20160816; b=ICHvyexUNfPvI4IhKWox6KLQhnozXw54ponQMMI2MoVjp+kgiTR0rWcEoyk2tG2bkU sNKaoHJnLVP134WN/UoRjV8qVSIR90nD4qFOnUoJIFGM9KpuSysJ5FH3/770xneryb5D qGsNxf335yn5So9kXpMyZM7Hfi39afi/DdPMLGJuR8hJIUfYKCaoO6WKH/b5MdsfFGgT MZrVnduccT1JDao5mdt7H+NXmUxFi95mHwiZGB8Ms9YOaMWMGkSnLHmX//DSuJE5DZUu rLCSTDYbQK8q9DbOMDQvYJ6xfEocTQ3KGDGLWyyVyTew0RXW3HKYaEllllSwn3o1hLJm gdHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=3NoERitEaQZg+YR8xYgCXAFCfcgFBJLAAKNP32Az4J4=; b=mhtNSwqppzDnM11ZRuVqFK25z804QWoEiFVNB4908VYXsdoIN+B2y5N7Hm9xqpswNk kMIj9QtFe4LK/IqzjFfvwTNmulGU2UTMGyGKW2tqmUptau2JRXxE0gnQqXe3ZwWckHCS V54CAgAu4VzovqU9bpyyd9NhEEGsWloou7pxzp45eUd1pN7M85gkxV45WHau8KTDXKY9 1MyKcMWiV6Wwp0QS+C1rPwtybFiIYhnGJ3S39CX/Ue3I/71fyxdmwO8yw7BKsA0O3WIX UiN3kPYmB9F2Xy7hTnz6s5oAb2lVObXsYX+s3ftBwpZt2ujnArwk5LXWxgkKcBK+f+qJ CAPA== 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=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020aa7d84a000000b004163769a3fesi2641562eds.608.2022.03.07.00.54.09; Mon, 07 Mar 2022 00:54:32 -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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231444AbiCGIoj (ORCPT + 99 others); Mon, 7 Mar 2022 03:44:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229715AbiCGIog (ORCPT ); Mon, 7 Mar 2022 03:44:36 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6473533E0F for ; Mon, 7 Mar 2022 00:43:42 -0800 (PST) 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 EBB88B81017 for ; 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220307030417.22974-1-rongwei.wang@linux.alibaba.com> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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