Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16399760rwd; Mon, 26 Jun 2023 09:27:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4FWSPrUkCgEBNe/1LnbUoSc0jt/dshl24+bS03yznn8VU1T0MnXZ2sh7NvyEf81BRxFKgT X-Received: by 2002:a05:6512:3ba7:b0:4f9:6221:8fb7 with SMTP id g39-20020a0565123ba700b004f962218fb7mr10047958lfv.11.1687796846044; Mon, 26 Jun 2023 09:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687796846; cv=none; d=google.com; s=arc-20160816; b=cQ4mB0gtO/a+et7YQNHuibta9p4H8NPwYRyjot8wUeGloEbhopZ/0+8N95g4ZmlUCG tflqais8AXb817v3/fbTxnBS18F3y4MqAw+EjihG0owz+FEqq2WizuQP1HKEhRZlG7re 1/MJGxwWnwzptMpapjKtoGseXCm5oEIf0RLKV/7VxoOKNL5RI2Lt8LI1xfYFcgdurelH OTdpoKw+JyiEj2OyZ2lLHoqby2cpnP7dkc6F+gVnvtYZVNUGE2LLfAu1BtNxEM608Rcl 668OpM0k7KESoZMBd/lO7MrkMSo0/dXfX9kqTz0QxYKs5+ysB9fTRo2QX8JseP4Blw71 bFgA== 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=5sPCrPmfnha19GEiGHRJfmtKcu817yXj6j2MuljApa4=; fh=wHQJR3AUFrOHCqfMcvkY9/lr7UtIcuDn2IheCQ+wAbQ=; b=ds5kkjQI32cXbHgwiH/xTnZhn/bRovamisgnxp7d9oysJObhjqvQkQ2cd5UdC6lN3n ClNtqHjJRM70pj5G+SnN7hmgKW1a45sktH1RXXSfUcLflrevVIkvyKQSgLsSezeI5gW/ wuv9gU2mjqxkPanzvCh5rkqxHOQGqZB5Fg/ogDWGz/itKtvRtVxEc1k3lKE7J2E1HnLl 4Ybbw4x797gm+SPh5U/NoInNKclyPF/wcXoHus2nfZr1xol0AC57CR3YFUcfy+DxliKY Ud6XGyYf/Qcb+PRjLTLi1h0mRxGgE3sR/z6ev+xFJIXqVXbe4dgC4vrS8INqWQ0kaJCi t6Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YQWDgI8H; 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 a7-20020a50e707000000b0051a53f2684fsi2836174edn.576.2023.06.26.09.27.01; Mon, 26 Jun 2023 09:27:26 -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=YQWDgI8H; 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 S230491AbjFZQUJ (ORCPT + 99 others); Mon, 26 Jun 2023 12:20:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231770AbjFZQTh (ORCPT ); Mon, 26 Jun 2023 12:19:37 -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 9B17E35AA; Mon, 26 Jun 2023 09:16:22 -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 7BA9E60EF2; Mon, 26 Jun 2023 16:16:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39BFBC433C0; Mon, 26 Jun 2023 16:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687796174; bh=/iE/mdrFZ8SKthRa8x308zaIEO82vNYA2gw6ycABPNs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YQWDgI8Hj7lQNISM1z6icdXlreFAk1suAVegJRGogbCl0du7p8lBH+V/dtMB95/V2 DW2X5kfdEZXDoqwaZpZheXYI/EIXN4s7GSZbhID3LwcMBU61sxcFxnV7DDbvFRCfRM 5vfh6hbbnsFCANjiAZKQCXm1P99MKHwFL0kVAyehEhwMzgJfUwmMvEQ9tC4gi2Jfv3 526UWKnUNKagtMIxWYRhVA9gzGvr9ZuDj3MFUYeGImw9j6C+oEbiPo2FBA1cGCucSO i2q7EE9cXHRCAtkyw18xzwDxqWy6V6JTCw/K5pkrdj8bQoyI9odv9tKphIp97jcEoU eL851uwjcGmPA== Date: Mon, 26 Jun 2023 17:16:09 +0100 From: Conor Dooley To: Andrew Jones Cc: Conor Dooley , palmer@dabbelt.com, Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Albert Ou , Heiko Stuebner , Evan Green , Sunil V L , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/9] RISC-V: don't parse dt/acpi isa string to get rv32/rv64 Message-ID: <20230626-ragweed-whenever-5b22e180dcd1@spud> References: <20230626-provable-angrily-81760e8c3cc6@wendy> <20230626-silk-colonize-824390303994@wendy> <20230626-e3ea7beb39c584bfbf7ee836@orel> <20230626-dragonish-romp-9acf4846ae01@spud> <20230626-4fb963235f3ab08383a6d9ab@orel> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jMse1ygduPkCUrcY" Content-Disposition: inline In-Reply-To: <20230626-4fb963235f3ab08383a6d9ab@orel> 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 --jMse1ygduPkCUrcY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 26, 2023 at 06:05:40PM +0200, Andrew Jones wrote: > On Mon, Jun 26, 2023 at 04:51:29PM +0100, Conor Dooley wrote: > > On Mon, Jun 26, 2023 at 05:14:15PM +0200, Andrew Jones wrote: > > > On Mon, Jun 26, 2023 at 12:19:39PM +0100, Conor Dooley wrote: > > > > From: Heiko Stuebner > > > > @@ -333,8 +335,6 @@ static int c_show(struct seq_file *m, void *v) > > > > =20 > > > > of_node_put(node); > > > > } else { > > > > - if (!acpi_get_riscv_isa(NULL, cpu_id, &isa)) > > > > - print_isa(m, isa); > > > > =20 > > >=20 > > > Extra blank line here to remove. Actually the whole 'else' can be rem= oved > > > because the print_mmu() call can be brought up above the > > > 'if (acpi_disabled)' > >=20 > > Can it be? I intentionally did not make that change - wasn't sure > > whether re-ordering the fields in there was permissible. >=20 > I agree we shouldn't change the order, but moving print_mmu() up won't, > afaict. D'oh, I'm an eejit. Sure, I'll do that for v2. Thanks! > > One of the few things I know does parsing of /proc/cpuinfo is: > > https://github.com/google/cpu_features/blob/main/src/impl_riscv_linux.c > > and that doesn't seem to care about the mmu, but does rely on > > vendor/uarch ordering. > >=20 > > Makes me wonder, does ACPI break things by leaving out uarch/vendor > > fields, if there is something that expects them to exist? We should > > not intentionally break stuff in /proc/cpuinfo, but can't say I feel any > > sympathy for naively parsing it. >=20 > Yes, it would be nice for ACPI to be consistent. I'm not sure what can be > done about that. Print "unknown", until there's a way of passing the info? Speaking of being an eejit, adding new fields to the file would probably break some really naive parsers & quite frankly that sort of thing can keep the pieces IMO. Ditto if adding more extensions breaks someone that expects _zicbom_zicboz that breaks when _zicbop is slid into the middle. --jMse1ygduPkCUrcY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZJm5yQAKCRB4tDGHoIJi 0oSJAP9DZr4lbIRf+EuOJgKIQKEp7BEpNK9BQbDD0GJ9UftDEQD+MwGzlvSN+V3L QSl86QHkdGu8v0hD14oLc7nu5jyINwU= =olyw -----END PGP SIGNATURE----- --jMse1ygduPkCUrcY--