Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3519616pxp; Tue, 8 Mar 2022 16:29:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxk+ptLArwbEy5vqj8EQNhFuWPu6GxSchbPHjiRTjW2w1QE6sKyICf/nITzE2kGbzHuCVY7 X-Received: by 2002:a17:902:7b8d:b0:14f:1aca:d95e with SMTP id w13-20020a1709027b8d00b0014f1acad95emr20356898pll.122.1646785777683; Tue, 08 Mar 2022 16:29:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646785777; cv=none; d=google.com; s=arc-20160816; b=rR7UmB7Ez1UNzDyiLNoD9E1eir3IhQDDI0301RdANzEplFzSGJMI4HibuUm5HuW6r6 Ukg1gSYs6DFSx/fMXhK/2t/oThWcdvVXilU6afnsClNSxB/81PixFzyuj16sjBV4ycE/ HEUGh3sEytxykBFsC3/y+IEp4p673Nr6JalKFH2qH5BkqsRNwBJt+T/glVXFNSCN2Wl9 jl7x/HeV9UouIa5RUmSqMu4gWdzlkcB9jjN1dcf9lD2Js5LQClVRMx6nR/H1jxWSHqXK 2Znue/ZLjveDoQQbd2dUyf8YiEIBTeUj5/UetUonNC2Lg3H9wCRP2j/CYBdwqSjvSopZ ziaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=EwNJ6vcuwAWnpkCBLf8tK97j16097dDp2sNIoTQu1C8=; b=rT4xngVudH10nl2L8XsAxwCS6MN177tFBB+poFD575NcXYPet+PzQ7/4NSHCsQfIKH Kz+pu17I8Rxaqi/mun6To0+r7S9wgVzlnG8vncaKMOmxRBNCBVF8m0d20B4zyHAaVj1T 9cptNjQIPnUVQhcaoD2wTEr+12BzqBYZuHU07uu6gPQserrYca2oducM9I+8zdEKTHQl PKx1KWG7w6vRivwYGCmkQxbBCK2ZCpygOTlgRpv26/iXmvl3/NJwgfsq8nn4Ki7tb/pt 31mLKTnGCMKqPy8GNaEDhlHPjsu4XE2soiCwuNCn3KCVbqBtuwZfJEgsKmVgd6StRQ0/ P3Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Z+Ek8w5l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id oa2-20020a17090b1bc200b001bd14e03042si4125204pjb.26.2022.03.08.16.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:29:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Z+Ek8w5l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CD140C42BA; Tue, 8 Mar 2022 15:48:51 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240865AbiCHR5P (ORCPT + 99 others); Tue, 8 Mar 2022 12:57:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234578AbiCHR5N (ORCPT ); Tue, 8 Mar 2022 12:57:13 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C9075640C for ; Tue, 8 Mar 2022 09:56:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EwNJ6vcuwAWnpkCBLf8tK97j16097dDp2sNIoTQu1C8=; b=Z+Ek8w5ltB58NLWb/l9GyVMPdh 4LxwGXFfcTuBD41J+rysdNoOsKxb7VBvSOFTzAH+7xT5d/t+Jw8kTMGXJEMPOW1z8Y2iHrtEHYlRu n3xjxawu4vo/7fXpi2/sgsyX8Cr7LavLUIbZKhrvbfg1uj6lxHNAw1jDB0Iy76dk6Pqdi7DtVWSl0 oofnaPH3Ws5sb9U6guvX+Z4MEOHanhOriTme74ThaoxAzAK39u65x9VVpV30+4e4F7dZj7bPDBtUS ffNeV6TBRtFYiPCxCKpSN33ONRjHHitWA8RyzicAdjoRiFzRzo+bn8PhL+B+0pQmg5XWw9yoCj5oD Pkwyk8OA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:57720) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nRe3y-0000ht-5r; Tue, 08 Mar 2022 17:55:58 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nRe3u-00074S-4Z; Tue, 08 Mar 2022 17:55:54 +0000 Date: Tue, 8 Mar 2022 17:55:54 +0000 From: "Russell King (Oracle)" To: Arnd Bergmann Cc: Robin Murphy , Marc Zyngier , Rongwei Wang , Catalin Marinas , Will Deacon , joey.gouly@arm.com, Mark Rutland , Andrew Morton , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH RFC] arm64: improve display about CPU architecture in cpuinfo Message-ID: References: <20220307030417.22974-1-rongwei.wang@linux.alibaba.com> <87h78a178u.wl-maz@kernel.org> <87bkyi0x53.wl-maz@kernel.org> <1b94af8b-a294-5765-4e1e-896f70db621f@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 08:30:07PM +0100, Arnd Bergmann wrote: > On Mon, Mar 7, 2022 at 5:48 PM Robin Murphy wrote: > > > And arguably it's not even too late, because 10 years ago this *did* say > > "AArch64". I don't remember all the exact details behind commit > > 44b82b7700d0 ("arm64: Fix up /proc/cpuinfo") - this just tickled enough > > of a memory to go and look up the git history - but I don't think we > > changed any of those fields without a real reason. > > > > The patch description does state that this was done for compatibility with > 32-bit architectures, which does make some sense. I suppose for similar > reasons, the arch/arm/ version of /proc/cpuinfo is now stuck at > 'CPU architecture: 7', even for ARMv8 or higher in aarch32 mode. > > The part that I find more annoying is how we leave out the one bit > of information that people are generally looking for in /proc/cpuinfo: > the name of the processor. Even though we already know the > exact processor type in order to handle the CPU errata, this is > always "model name\t: ARMv7 Processor rev %d (v7l)" on 32-bit, > and "model name\t: ARMv8 Processor rev %d (%s)" on 64-bit, > with the revision being the least important bit of information here... It would have been nice if one could read the processor name out of the processor itself... but alas that doesn't exist. Then we wouldn't need some way to translate MIDR values to the processor. Sadly, though, some MIDR values are not unique... -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!