Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1695417imw; Tue, 5 Jul 2022 13:56:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uwyUZyKwb/8VSPV7UblJEQ4OpX9X12tj+EJeqAcCWTUvuLGWshEOOoFecSBO2ye8cUEOY5 X-Received: by 2002:a17:90a:5515:b0:1ed:50e2:853e with SMTP id b21-20020a17090a551500b001ed50e2853emr44982200pji.41.1657054579496; Tue, 05 Jul 2022 13:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657054579; cv=none; d=google.com; s=arc-20160816; b=xESV87iKlF8qh87n7vTczxPt7aU8X+renzRdPaZ93CCkEqs2EJNKJf3sHzJYeznw5H 2mXh5BT4u/K0eKboPeDHgBYSAbDYeLxWpr3RyWgtGiVo6LEHuNwZ6Wz5TYf+R2olB4Ot VkuAHGNzxtBGQlGH9gXtLbu85YpmZ9yNzAJiTvBMsSbN3CqbNRkWAdTyiX6hqL1a1Hwp QmTxviG+iSQOqeH/c7iKzETjCw4YseqyXz0B9IseFnEoyCjSTPJFURzcAf2Dm4TQgABv 44m/W9l2yDk7Qao2pTEGHHaY56B2VN55Smtp01Y1wVl97jMg5OySDG/ZYj3a43UBk4PR JTXw== 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=8JlwOHhkDU9MkaORZNs1WjLuevMooBTYr3yBD/1s3wA=; b=vtwBgaPolp40snATSGUlUYmun0I7zzQG39VtweFbyaLv3Nn3Yvl+6XAQ2N6izq4FaJ 8CBtOp2mHDveYaz6w8FHRKvXDHymrVI30RMiDp5x+kINjhnS2KTFQTkHV24uJTcDV9ap l0LnqJb0K7R2+HWhlclNL1aXng1uCXA04nc1OueXHoqc5SzhTaatrnngTIUNj4sL/pki ceRx1bEDt70nXj6thf/Cs8DXw/0DSRikEqW7yYk7/79SRbEwH//8O8iPOW3bprC/2luV V44myw6QCDJSmBha4i4H8+a7huLqel+vjuCajyEXPWKitY1ke3GKqujulrJ+jllS/o0m VMeA== 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 pm1-20020a17090b3c4100b001e4dd12a09esi14636540pjb.39.2022.07.05.13.56.07; Tue, 05 Jul 2022 13:56:19 -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 S230101AbiGEUUs (ORCPT + 99 others); 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> 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: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