Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp13185692rwd; Fri, 23 Jun 2023 17:41:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6EImaASi5nxWb3vW93l5ziXMNseQ0mPAiYMuCFnPRyN42TRLt4BRA6sNxRbrU0ojZrLjas X-Received: by 2002:ac8:5a89:0:b0:3ff:210e:e050 with SMTP id c9-20020ac85a89000000b003ff210ee050mr18007026qtc.15.1687567305652; Fri, 23 Jun 2023 17:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687567305; cv=none; d=google.com; s=arc-20160816; b=sVPaipqgZoHVPO4O4uKjQIVZnwso5YxJdj+/fA9rQF80PJmASqYn+UE6BlNAPrPzql arDHUWJD/6kivNGI06UlNf16I0dNY8IbzH+Im0m1Gsxkl1qn7yFQ7F6FL57Dw5axr7TX NHHb/1Sn0Y+qNsuHKkmsV8s4aFGQjhF4TTYXI0SQ5dJLVm7/F8JXa2fqPPiK08oW+z1S uOKOg5f88JC1h2PSay3KO6OH4kQyGUIGm0+5mvrWjoOP1XzvyTrANHRBLDyW9K+U7jP3 4FwZD6PmFJ/VIhF1wf9wgrwmczw8ZPK1BZ9/nhYkCX3mTdYmvU+cnKCz6xYySaRZGYsN gaxQ== 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:dkim-signature; bh=7xPBiOV590KyrvCfPrfg3HGfvOAZZIKRMPcI3/sL3KU=; fh=vxyhpR6Y5azxhMomJUql6U8wroWrPWC3BM4MyC376aU=; b=yVoZRGwU9A7jnVjcez7je8YabGGPcC+XJZOFa+9pDBdl1vtbCIYDBPkbFzD4JcbgM3 HvI6DHteMZedsr+EvyEq+ThhkhMxZy8nhyxnPSS8mESJ8gtRw/36h0E7LqC/GhZjycb/ iE1bWaWOlmHgT4E8SDOXx6RA4Jyv8AYtxmb/yT+6UO12XORov+9A22haLNpXROj603RP 0dBJgseIdtJl4CzNlcAwkYqXPcn9l086j3fOLETkO23adR+1Q2lB8ukKMUMD+CjMRlFb 8SuR2ICme0HYdvae9fwredr3eYE5cZBnvouEcaVW6sHLP5Sb9rgB1Ypj9TZ4bAGdm07Y J/MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mQgayS+d; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a632c0d000000b00543a6cc74bfsi487770pgs.634.2023.06.23.17.41.33; Fri, 23 Jun 2023 17:41:45 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mQgayS+d; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230087AbjFXAMg (ORCPT + 99 others); Fri, 23 Jun 2023 20:12:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbjFXAMe (ORCPT ); Fri, 23 Jun 2023 20:12:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AE7C273D for ; Fri, 23 Jun 2023 17:12:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 70F0A61B4E for ; Sat, 24 Jun 2023 00:12:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68425C433C8; Sat, 24 Jun 2023 00:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687565550; bh=7xPBiOV590KyrvCfPrfg3HGfvOAZZIKRMPcI3/sL3KU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mQgayS+dAenzmv9UpmDOE40oRy2E5d3izLewRqlcANE4CiboFjJk4xu/aRnjARl8H Zz+8n7xtKZTAUJAC9FN0Li1j69dnaILz1qVQjHOeHMl6iAAEOVkpyIG1mNLsmhQjSz Ac8VbW9MltakkSL6y+n8vPKuNO/FUmvlUHLIscV5OXvAf6hJmzi/aV2nNLYPbBG4dk y5oJtSGrW6TEWpkFiHmEY5DuRY2LR2sM7XuD6ZzSM+LFiMra72DLlvHSO8OLg0vsSl 8JnJ54XhWlVRD6Z91vucVKZSjfpgkNLuDIsFwtF5lXtadcWV8TAjETmP0WkPbIupLJ RA+6jUEAF5EUw== Date: Sat, 24 Jun 2023 01:12:26 +0100 From: Conor Dooley To: Evan Green Cc: Palmer Dabbelt , Albert Ou , Andrew Jones , Anup Patel , Conor Dooley , Heiko Stuebner , Palmer Dabbelt , Paul Walmsley , Sunil V L , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH] RISC-V: Show accurate per-hart isa in /proc/cpuinfo Message-ID: <20230624-mortally-parking-68f6bc1dd5ee@spud> References: <20230623222353.3742384-1-evan@rivosinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Gxx+ADrwk7P5WV3t" Content-Disposition: inline In-Reply-To: <20230623222353.3742384-1-evan@rivosinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 --Gxx+ADrwk7P5WV3t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Evan, On Fri, Jun 23, 2023 at 03:23:53PM -0700, Evan Green wrote: > In /proc/cpuinfo, most of the information we show for each processor is > specific to that hart: marchid, mvendorid, mimpid, processor, hart, > compatible, and the mmu size. But the ISA string gets filtered through a > lowest common denominator mask, so that if one CPU is missing an ISA > extension, no CPUs will show it. >=20 > Now that we track the ISA extensions for each hart, let's report ISA > extension info accurately per-hart in /proc/cpuinfo. No, you can't do this as it breaks the assumptions of userspace that this shows the set supported across all harts. Sorry, but NAK. Cheers, Conor. --Gxx+ADrwk7P5WV3t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZJY06gAKCRB4tDGHoIJi 0jKQAQD+d6MrxtGHBk7NIHGkyEg81xZjoOJGzYQbnAsNIs4PewD/SbbVzF51iu9y /tV+pkvbs4VzLZw9XIcyPwfvVIda+Ao= =fdGx -----END PGP SIGNATURE----- --Gxx+ADrwk7P5WV3t--