Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1634211imw; Tue, 5 Jul 2022 12:46:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vYwWtPjeNS/VzRfLAP9N5K1M/WUjHIJ+bD29hVOO5adpNMnU4opIpVJdfNqHUNtM3GB1Iw X-Received: by 2002:a05:6402:500b:b0:431:78d0:bf9d with SMTP id p11-20020a056402500b00b0043178d0bf9dmr48482730eda.184.1657050393781; Tue, 05 Jul 2022 12:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657050393; cv=none; d=google.com; s=arc-20160816; b=0SQ1hSATSdXlkivhJG5JE4PTI79itdWJxdk4tWW7KZyiSlr548Hvzg9yWIBtI18Vgr HwL7mhbd0WMyQdImkNR8i40e4V7RWB2p+TjPKZiyCtuoW8sDQoQHNfPIcdUQT3ibwhTg 6LbjAuOGY4YniOphdB4QXuudxmXEuTfnRAyxJVQg3OHp7QYg+1NGldd2j/SV7bAQnHpV 6KiVLEjYuFiurt1WMbCyqWOIpqB+kJb8AvAVmuU4382R15/gkmVUEEjWT2NR+s3XfErc H8oEvAY2uqmrDAuX7jT8UvlNWDM9rBq+s6TY02prEU6RwdGYIEsgW3zBCGtse6ulolTo HE0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ia61xjYZRZJlY+9xb00BGdCtYvU+CPGhICs6f5ZBvAY=; b=FfIucx80fMT4BbdROyYAHTYWB4w8dMkv6FFQMvegvP1qX68oqPUqAI2YsIgVrjyN2H LqtZnlj3mry5D3r0I1hSs3O+/K5Ha4R3nIDbexEEh+xsHRmXgrOzUL4OIrSdT2hI+m48 lRIUhxqG+ewX/3MU2pyEPCsaJK4ePBLoqFyR1F0Y9dcr4uNO1dinCCLWGApY3LnU7J/e 2Jn2xugXybQD0ev0nz3giRIQZt2kKSnzUByDga0RcEisQOlT+/+Nmm7Kfg0lasbKfo7W rlBy8yTqyflQzsY/gmvnLDiElDGEePatcZ9GS4lWET9o2ofKPdwjZyCgdKLp1jqlpiON xQpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=LgY3wj15; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt9-20020a170907728900b006feb72b4371si5270277ejc.936.2022.07.05.12.46.06; Tue, 05 Jul 2022 12:46:33 -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=@conchuod.ie header.s=google header.b=LgY3wj15; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232122AbiGETFE (ORCPT + 99 others); Tue, 5 Jul 2022 15:05:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230042AbiGETEy (ORCPT ); Tue, 5 Jul 2022 15:04:54 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81EDF1F2F4 for ; Tue, 5 Jul 2022 12:04:52 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id a5so4184968wrx.12 for ; Tue, 05 Jul 2022 12:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ia61xjYZRZJlY+9xb00BGdCtYvU+CPGhICs6f5ZBvAY=; b=LgY3wj15rZfyPkNFwy/Q/05dDlJOgaYzX0JTd0xz7r/ylNZFU6sm8GCVNQ2urRAVdm CkscfoU23VZ+NxtXrj6d1CYcK5/gqnhrW6BraIrqUGrymi2gro2CDc5rPQmr7D8x5S1q IIXzb7QwpcDzFyyqHAC/hmNBNEpXIxhuEKa9OVvi9S8siKSrSTl5DySskUngGK4T0/wt CL4huuFlUJFA68LQHfh6XwxZs7l1MXp/kXCnzlX1lck+s3fQ7DCQ2Jak74KKrnW52WsY okuchUG6xc3pPxY4ap5GCU8TcXHvCy3l58VQQ4CbAdEsCLNecF1COBWun3N17gYEaooA D5MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ia61xjYZRZJlY+9xb00BGdCtYvU+CPGhICs6f5ZBvAY=; b=IY0dWYT3RosniW+qocReUyGrIycKQjrfdI2oYq+tVEXra6HMrJjKKRFv/VIWkvFkZ0 32U9SIRck0Fzt/FMOybAIcwh+GYD5TFHvgJdGFbK+R4B55leT3PSemkPpq703mPVnWVd R0d7Qg0Zr/IMAZhP9Om5dANhYlFr3qsVpbWGZTC0WMPiduWiq66+PAaDdetAoTZp18If 796mq6b2Il1ksD2KKOxjDYMl7hucPyNubhWXn1wISHVi22uRlGAKpF7BUFw9s91IV4MR WAomCnIRi+gNHf5G6NgAJdXVMup9cax555eUYjiWkgfAhOj5wAxtOfryiYOn9SZvBEGC ypaw== X-Gm-Message-State: AJIora9h68UnBktYta6v/oAtwZ2oNDk4hIK/5rThePn9eKNjVcogPr1n NUPynkyu0XR9+8FdQMgbjpxrWg== X-Received: by 2002:adf:fb46:0:b0:210:2316:dd02 with SMTP id c6-20020adffb46000000b002102316dd02mr34750910wrs.557.1657047892078; Tue, 05 Jul 2022 12:04:52 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id d7-20020a5d5387000000b0021d5c52f4b4sm9912961wrv.34.2022.07.05.12.04.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 12:04:51 -0700 (PDT) From: Conor Dooley To: Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daire McNamara , Conor Dooley , Niklas Cassel , Damien Le Moal , Geert Uytterhoeven , Zong Li , Emil Renner Berthing , Jonas Hahnfeld Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Brice Goglin Subject: [PATCH 3/5] riscv: dts: sifive: Add fu740 topology information Date: Tue, 5 Jul 2022 20:04:34 +0100 Message-Id: <20220705190435.1790466-4-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705190435.1790466-1-mail@conchuod.ie> References: <20220705190435.1790466-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Conor Dooley The fu740 has no cpu-map node, so tools like hwloc cannot correctly parse the topology. Add the node using the existing node labels. Reported-by: Brice Goglin Link: https://github.com/open-mpi/hwloc/issues/536 Signed-off-by: Conor Dooley --- arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi index 7b77c13496d8..43bed6c0a84f 100644 --- a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi +++ b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi @@ -134,6 +134,30 @@ cpu4_intc: interrupt-controller { interrupt-controller; }; }; + + cpu-map { + cluster0 { + core0 { + cpu = <&cpu0>; + }; + + core1 { + cpu = <&cpu1>; + }; + + core2 { + cpu = <&cpu2>; + }; + + core3 { + cpu = <&cpu3>; + }; + + core4 { + cpu = <&cpu4>; + }; + }; + }; }; soc { #address-cells = <2>; -- 2.37.0