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 AE7BEC433EF for ; Mon, 7 Mar 2022 12:37:09 +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: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6NO8Bw1kFdqneqgw9SqZ0wM+hNosCxwmO6sW6mg0UfU=; b=ZX2Nc5cD41rgOF ou2nznJ1PMsV6Xow/Ry29/D53I4MQxWTcc3uM2zPpfF9TZNb6OPelymaGTJ84NrbwwdJMcJr2hg7n vSfgrc9WW5uRz2aHmSDYRh/3vgh94iMJNR2wM+xGVy/Alryv/TOUyyFwyDAEfrQbg9YhVYR4Rmm8V e4hBP/efStXEnN1IXAgOWjgKo7j6ROB8uX2YMwo9perI8OioFReT/GQjZh+ZUJgS1RDKrim1xc96S pY6uT2vnx4/heFAaRhEhtO+kKonBeJs+9aDIuJ0RT3t/6YYf5Ofh1I6e+48sqCwl4nKk+uqQAKyb/ 3PTBp5PFd8siwfvUMn0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRCaN-0002UK-Qi; Mon, 07 Mar 2022 12:35:36 +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 1nRCOe-00HYRO-LQ for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 12:23:30 +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 26997B811BB; Mon, 7 Mar 2022 12:23:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05B09C340F5; Mon, 7 Mar 2022 12:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646655805; bh=4FU9MVXnmckZgKV5S9qqzP2l0zaOcBmfWx7Vs1t8lqI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FEyVbZ3OMoFOMHm9xiM2pbQmIdXKk8PQB+ppsCAu2MUeqmRpvHUqFoU/CLCEYw7zR IW187SpKnAxUn/r0+sVcC5P3uqJb8IupAzV2EChROuAsqQmZJTi1s+h+ctBvpcsISR j6E5jRMUTvxdZSsCZNXhABPUzEp4RNauUWVoW7vhkF5FC5JqoRY3mwkZU8c4GexMYD ffbgyPgcFja6Zjep/wIoV2XGW/gynERjEL2UT/BMc9avTRtDttOlYGmrHAFRTN2W0Q 2D/60vehzS3COdMqIGoQe8wAS4ZBha4eTi1N1HXoilcsq4UuQWqHu/m1ayNRLSr1Sx 9IjrrmlIU4PgQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nRCOW-00CmSd-DG; Mon, 07 Mar 2022 12:23:21 +0000 Date: Mon, 07 Mar 2022 12:23:20 +0000 Message-ID: <87bkyi0x53.wl-maz@kernel.org> From: Marc Zyngier To: Rongwei Wang Cc: catalin.marinas@arm.com, will@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 In-Reply-To: References: <20220307030417.22974-1-rongwei.wang@linux.alibaba.com> <87h78a178u.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: rongwei.wang@linux.alibaba.com, catalin.marinas@arm.com, will@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 X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_042329_035054_1BBCB55A X-CRM114-Status: GOOD ( 27.16 ) 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, 07 Mar 2022 12:13:50 +0000, Rongwei Wang wrote: > > > > On 3/7/22 4:45 PM, Marc Zyngier wrote: > > On Mon, 07 Mar 2022 03:04:17 +0000, > > Rongwei Wang wrote: > >> > >> Now, it is unsuitable for both ARMv8 and ARMv9 to show a > >> fixed string "CPU architecture: 8" in /proc/cpuinfo. > > > > Please read the various threads that have been going on over the past > > 10+ years about *why* we don't allow this sort of change (TL;DR: it > > breaks userspace, and we don't do that). > > > > Also, there is no material difference between v8 and v9 that would be > > observable from userspace outside of the "Features:" line. And if that > > doesn't convince you, just think of '8' as the number of bytes > > used by > I got your point. It seems that we can regard '8' as the number of > bytes. But what make me do this is that 'CPU architecture: 8' is > confusing, especially those responsible for testing. > And I believe that most people regard this '8' as ARMv8, maybe not. That was the original intention. But given that there is no userspace visible difference between v8, v9 and whatever comes after it, this is a pointless change. My comment about the size of a VA was just a joke, and not something to be taken seriously. > In fact, I'm not sure it has potential ABI implications, so seek your > advice. Plenty of userspace programs parse /proc/cpuinfo. If you replace '8' with anything else, they will fail. Which is why although your patch makes sense, it comes 10 years too late, and we can't change this anymore. Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel