Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16385543rwd; Mon, 26 Jun 2023 09:16:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xg8vjWlrWfa5FPAQjWLS2m4RHpePFbBhTCAR0O1aQieQRGAG2fcBGYdnm1e0V8GhzEMqc X-Received: by 2002:a05:651c:10c6:b0:2b5:95ce:550d with SMTP id l6-20020a05651c10c600b002b595ce550dmr6671488ljn.10.1687796198208; Mon, 26 Jun 2023 09:16:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687796198; cv=none; d=google.com; s=arc-20160816; b=kV4glB8usYQsL8CBXqV5LCZZogKAcKKa6D9U9+/eKdSO4Mqtg0C/r5SZQXX5ju6JbS OjHihwXaU5Wu8wNVUj5oTP6iFeMMxHxDVjlwqcJhX9/BXXqeWL+1KKK8DQeoAWDlG8aj zXA36y57c8iPFxsLF9UhKUR27eYY5zFjlSChQ6rwB+43bDecIYgKPw1M2jlOh58b/j1W xsw1Ej5sAeDy+qiGMF5xIFxGlRwObjScTSA58vKy8SYrpIuQIgNchrVCuXMaIJzoWQzN VCKHwIdKUSkkP4BMbmAizaPkZe/iKE8049GpzTCSkTA1irhPgE6zB3sZX7rgKhY0O6d2 xEPg== 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=UeZ2gJ78a8GPVtCoXPkcAEj2A8pLXaEVQFdsULkrHhc=; fh=zVjhhes0jEpV8ZtLcyeREzDOQJ9JHnqYAgAL7ImQHX0=; b=B8EmqDieSDFbqM04I+fF+mN4ZUUEX1pK9tI5ngA2T8I1drhT5vwiuE1m9iXUH8PbwI VVBcWwzu9NrKDU5bJyo7D1gIVCDcIcFmDaFB4jw9qBXspyqL4RUInMkCyC7oR+0zmHvD 2FDbpdpHx32b0PBiN6/TJaJrWekuNDVYF1npnfsL5z0Ci/fDqey7hxlMpYcXneB6flkD pap+KYMfLtn15EpUi5s7y7JuJCPd950QMitJWy9Tkh3Qe3iKa0P8RWbKnY4i0EUSf8CK n05Effhhy/N8DnBW4trSO4tD0f2ZF/c9qnD67WUZyJxrh0T2w9n4tMrk6+sMrdKvg+dx I1WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=jEWUUYrw; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a1709065a9000b00978884c2f47si2985836ejq.867.2023.06.26.09.16.09; Mon, 26 Jun 2023 09:16:38 -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=@ventanamicro.com header.s=google header.b=jEWUUYrw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229779AbjFZQFq (ORCPT + 99 others); Mon, 26 Jun 2023 12:05:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbjFZQFo (ORCPT ); Mon, 26 Jun 2023 12:05:44 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E5AD1B1 for ; Mon, 26 Jun 2023 09:05:43 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-991aac97802so185698666b.1 for ; Mon, 26 Jun 2023 09:05:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1687795542; x=1690387542; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UeZ2gJ78a8GPVtCoXPkcAEj2A8pLXaEVQFdsULkrHhc=; b=jEWUUYrwq+I7qYap8fYbNnhmWuPRYIfZ90Rtqjw5+TT0j7h3+O+JlSrwo/JgaKqr4W p3Qc0lIur63SOy/9nVNGESmL8qMzDlfUfeRolhh3ZGgGofF39npPWZTXx/NLSjlFylXy OwcxhP2X1HmNyo1lGb9c7ba+as0ILVT3aLJr8kz5yGpQvybGcz0M4nZvMO5dSYvVShlp mJpEdNjO8YT3HiHGyScAYstiNItI56E8LEZzhXG9xGuEVa54plRs8mq3CLgHfH4fdsyG c3fQpSRDFKCZXUbc2gpQ2bDn6Oa10jBsu1RnUce4zLCCXVu1uwtApMJxK5/El3tzIZUS 0mtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687795542; x=1690387542; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UeZ2gJ78a8GPVtCoXPkcAEj2A8pLXaEVQFdsULkrHhc=; b=TfGzlLLEale3SAWmCFeFHXvBT0qsnOYP1dtMRvrALBHFhM172j/YgKWG/eHJQq1Fbu SSUNIKg+d2MkvEp26B9gsvSz5MG0lUjVMG8JBdYN8vq01aYu0V+aHJodNc66S52ZiHPX 8l1euLz/H4xuXihckIFR0lR/TWZzna/IvoDsEKKtCxfIjayKM2Xw/AGjeOn/nM4U8wHa MmQgMwM7YTeXV6ZZSSEzil59CIR4InnQ9YGTCCEufZgeu1SAvqufxsoA1kNR64NcRU9q rSwLJiNZKzt6NJtiqkqXycRN5hcODifreT22q+JLLa5X4Djv1rE8QByGWXWqCwRbItDu Jlhw== X-Gm-Message-State: AC+VfDyanOrz7ZJ2duKkty/0U8lUB1KhcgzU2W0NJ+w9AeFWodIbs1d9 ctIzotcKMHQ720aoU7K0TYQDwg== X-Received: by 2002:a17:907:983:b0:94e:2db:533e with SMTP id bf3-20020a170907098300b0094e02db533emr28662335ejc.49.1687795542064; Mon, 26 Jun 2023 09:05:42 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id b21-20020a170906491500b009828dac8425sm3421335ejq.105.2023.06.26.09.05.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 09:05:41 -0700 (PDT) Date: Mon, 26 Jun 2023 18:05:40 +0200 From: Andrew Jones To: Conor Dooley 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-4fb963235f3ab08383a6d9ab@orel> References: <20230626-provable-angrily-81760e8c3cc6@wendy> <20230626-silk-colonize-824390303994@wendy> <20230626-e3ea7beb39c584bfbf7ee836@orel> <20230626-dragonish-romp-9acf4846ae01@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230626-dragonish-romp-9acf4846ae01@spud> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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, 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) > > > > > > of_node_put(node); > > > } else { > > > - if (!acpi_get_riscv_isa(NULL, cpu_id, &isa)) > > > - print_isa(m, isa); > > > > > > > Extra blank line here to remove. Actually the whole 'else' can be removed > > because the print_mmu() call can be brought up above the > > 'if (acpi_disabled)' > > Can it be? I intentionally did not make that change - wasn't sure > whether re-ordering the fields in there was permissible. I agree we shouldn't change the order, but moving print_mmu() up won't, afaict. > > 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. > > 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. Yes, it would be nice for ACPI to be consistent. I'm not sure what can be done about that. Thanks, drew > > > > print_mmu(m); >