Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2249913imw; Wed, 6 Jul 2022 02:41:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uOrLH2kwcVSwJAXzDr38UzhwkRxO5Cv7ofg0GarIS8C3BOxBwA/HpL8WgxoJn5vK0iqtB3 X-Received: by 2002:a17:906:b6c7:b0:726:60aa:1b81 with SMTP id ec7-20020a170906b6c700b0072660aa1b81mr38775865ejb.383.1657100504306; Wed, 06 Jul 2022 02:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657100504; cv=none; d=google.com; s=arc-20160816; b=l7o5nXDYkGe2/crvM6gojn/1MZeIESr7FFnAOnGzp6yIwDOOyWELuGKXyJ5iEGo/zl EVp53rk8PRWDvTTsQX7eRhIf9h+iGs8enrh/0uzfnxNhFJK8exKWijeLp4Ip5u23ig+p Lrdg0Lha3F0SN8F97Sfv+IMMilym0KFcyKMrtXtnvFSdtypi2ntzFVhJsp5SamBzuN+d +QHPQeYXw1AUYCIA81tLRFzCxScMqiQ+AvO3gjXXK3/U7/5XxJ9n+2D/FRDu1XToaBnP b3oTGuYaqr/P10H6bXSuDpRkJV4nQujLzqyesxfghudIdcRrCQCHGtz5EiFDY7yfrdh7 BeEQ== 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; bh=wgWZiSkZGEmB1fslaCMWSBdMFUFIefHvaK8XTJeJQ4U=; b=nTbZRClXDHyj/o5MR6PT7vhtz4JrgFzBbdn5CQeepIM0jiZXWJgONgnoIwXUPmJgY0 RmuJZOq6T0WeWGej7Mhxmf2KN9Cn+V8o+QkiCd0wzwMQ/Kqir9RFLBzPlEuwHSKW1Cq5 wXACwoWHIQGsFJRsNR8c76yFNT3JtdOSctYua8m0KB9qBRWM0WCjnIl6ajW5zY0VEniO +xuX4UAJyuFpPoo01/xPFqzVuak0gz376V/Y0URcaWJGNH0EQrjMicGV6kqNSxLKdgTv LCc5dmgYTW8MdpzyJguWK73ijQgvP4KGoR1kveaOl7NQUejB1SQyTpWPG7bs5ljZYpz9 Ltnw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa15-20020a170907868f00b007269a156f59si18216645ejc.348.2022.07.06.02.41.19; Wed, 06 Jul 2022 02:41:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232377AbiGFJUI (ORCPT + 99 others); Wed, 6 Jul 2022 05:20:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232277AbiGFJUH (ORCPT ); Wed, 6 Jul 2022 05:20:07 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7DFD11581C; Wed, 6 Jul 2022 02:20:05 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 753EC15A1; Wed, 6 Jul 2022 02:20:05 -0700 (PDT) Received: from bogus (unknown [10.57.39.193]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D9FEA3F66F; Wed, 6 Jul 2022 02:20:00 -0700 (PDT) Date: Wed, 6 Jul 2022 10:18:50 +0100 From: Sudeep Holla To: Conor.Dooley@microchip.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, Daire.McNamara@microchip.com, niklas.cassel@wdc.com, damien.lemoal@opensource.wdc.com, geert@linux-m68k.org, zong.li@sifive.com, kernel@esmil.dk, hahnjo@hahnjo.de, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Brice.Goglin@inria.fr Subject: Re: [PATCH 0/5] RISC-V: Add cpu-map topology information nodes Message-ID: <20220706091850.deealvovinkzjrml@bogus> References: <20220705190435.1790466-1-mail@conchuod.ie> <20220705201931.nfwi5rlku7ykmydr@bogus> <8f07796a-d9a2-3301-aafb-7fbec4d5b1a2@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8f07796a-d9a2-3301-aafb-7fbec4d5b1a2@microchip.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,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 Tue, Jul 05, 2022 at 08:33:39PM +0000, Conor.Dooley@microchip.com wrote: > > > On 05/07/2022 21:19, Sudeep Holla wrote: > > On Tue, Jul 05, 2022 at 08:04:31PM +0100, Conor Dooley wrote: > >> From: Conor Dooley > >> > >> It was reported to me that the Hive Unmatched incorrectly reports > >> its topology to hwloc, but the StarFive VisionFive did in [0] & > >> a subsequent off-list email from Brice (the hwloc maintainer). > >> This turned out not to be entirely true, the /downstream/ version > >> of the VisionFive does work correctly but not upstream, as the > >> downstream devicetree has a cpu-map node that was added recently. > >> > >> This series adds a cpu-map node to all upstream devicetrees, which > >> I have tested on mpfs & fu540. The first patch is lifted directly > >> from the downstream StarFive devicetree. > >> > > > > Reviewed-by: Sudeep Holla > > > > I would recommend to have sane defaults in core risc-v code in case of > > absence of /cpu-map node as it is optional. The reason I mentioned is that > > Conor mentioned how the default values in absence of the node looked quite > > wrong. I don't know if it is possible on RISC-V but on ARM64 we do have > > default values if arch_topology fails to set based on DT/ACPI. > > > > Yeah the defaults are all -1. I'll add some sane defaults for a v2. Sorry I didn't mean it to be part of this series. This series of DT changes are just fine on their own. -- Regards, Sudeep