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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57A80C43334 for ; Tue, 5 Jul 2022 20:20:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230059AbiGEUUs (ORCPT ); Tue, 5 Jul 2022 16:20:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbiGEUUr (ORCPT ); Tue, 5 Jul 2022 16:20:47 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7A6D413F35; Tue, 5 Jul 2022 13:20:46 -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 7F93C152B; Tue, 5 Jul 2022 13:20:46 -0700 (PDT) Received: from bogus (unknown [10.57.39.193]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A518A3F70D; Tue, 5 Jul 2022 13:20:42 -0700 (PDT) Date: Tue, 5 Jul 2022 21:19:31 +0100 From: Sudeep Holla To: Conor Dooley Cc: Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Sudeep Holla , Albert Ou , Daire McNamara , Conor Dooley , Niklas Cassel , Damien Le Moal , Geert Uytterhoeven , Zong Li , Emil Renner Berthing , Jonas Hahnfeld , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Brice Goglin Subject: Re: [PATCH 0/5] RISC-V: Add cpu-map topology information nodes Message-ID: <20220705201931.nfwi5rlku7ykmydr@bogus> References: <20220705190435.1790466-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220705190435.1790466-1-mail@conchuod.ie> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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. -- Regards, Sudeep