Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3402887rwa; Tue, 23 Aug 2022 04:18:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR5GdpjiwqoVx27LWL/Gry/l/nXmh4rHopBIWzf9GDZU6rkE/b65ra0Oi4Xmfj9enwlC8eif X-Received: by 2002:a63:dd4b:0:b0:41d:e855:7137 with SMTP id g11-20020a63dd4b000000b0041de8557137mr20873208pgj.595.1661253525026; Tue, 23 Aug 2022 04:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253525; cv=none; d=google.com; s=arc-20160816; b=Aw5mfzppCMdaascRga4Me+8N1DAoJKrSfG05WTBr92ApS81++EjY0suuk9nC2glhXu fJYE7Ws58Jwq0DGKz27xSf/am6wzWVscimrU5LrwBXEcQNHxk9McMaLpq+jSKzi9a1+u D4qlo4fWxhb8PcklGWJg/ZdSyRmlraX70CmtfNXgHvEdjZ4TnSTnkYJrURQs/rZDO7xJ 4yrpc4y7t9SXPKwnSC2yJwAfmfOjV92ohCscfU5OKuHVsHfl4a37yN8bUOli+JdRRMsU q2MdhKTo6J1Ku5uxRq9WBsIcfnsj19ujP2GPDwSBYofmi8IZoWS9kh2Dq72VKTxRVz7m gtCw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kM6mKE0RExS24q41BNt8pz6mKg+t22tdbqXfVGeL5d8=; b=Ah3XyipG+OOfUlkqsMf0XcyMhiGsDuOrTunM7XZz9ZPJV3+L1qaxcnR/0ERv+mg4om bXXFm0JfEILTb6fsFKaq6xRSxriGcdfa2b9XGDXn+DF1wbk/SEsTPnc3eC0yx08ainqo FwQQOAJhqFEoGNu5/WRxxlJFD7S5wQCj2ocY9GRZGqWyb/MzoFRak+TALY8YsJ1xmhM4 L0O7yqgpWodA3G4kwrJbb1DxZbD+5zABL45vyPg1Dsnrny4549dhutfsGqyKRNNfAsDa 6ldKyBZMNwSb8aJBZAktPKSFHXNkRLU5Uo7tq+W7/uF1q0sIWlzLuia5RIoP9X/izM0I IMAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="mx//a14p"; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e24-20020a637458000000b0042268f5eb68si15455306pgn.130.2022.08.23.04.18.30; Tue, 23 Aug 2022 04:18:45 -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=@linuxfoundation.org header.s=korg header.b="mx//a14p"; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349803AbiHWJYk (ORCPT + 99 others); Tue, 23 Aug 2022 05:24:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237661AbiHWJWM (ORCPT ); Tue, 23 Aug 2022 05:22:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 104E08E9B7; Tue, 23 Aug 2022 01:35:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7D69CB81C62; Tue, 23 Aug 2022 08:35:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7832C433C1; Tue, 23 Aug 2022 08:35:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661243712; bh=cqi1K+RO/h6CzrfnFuokGsXKuj/66SUMCYKD3hLy4mA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mx//a14pXuE09VOHfJZEcgnc92LqpnvxUROxmyfNkMudpXRA6+00k8AMGzOSZEre1 /NDFk0/yO89uimkjekSFZnQCf+5P39orLU7joHLDNlCoDsqSiC5qrbY1sLigd/BimC NuvjKzF4EqoOOIKhKu71qJQun/S2Yliv10l7scWI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brice Goglin , Conor Dooley , Palmer Dabbelt , Sasha Levin Subject: [PATCH 5.19 333/365] riscv: dts: sifive: Add fu740 topology information Date: Tue, 23 Aug 2022 10:03:54 +0200 Message-Id: <20220823080132.150589788@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 [ Upstream commit bf6cd1c01c959a31002dfa6784c0d8caffed4cf1 ] 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 Link: https://lore.kernel.org/r/20220705190435.1790466-4-mail@conchuod.ie Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- 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 @@ 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.35.1