Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3413052rwa; Tue, 23 Aug 2022 04:29:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR4NEW1XBjyWe5Ri+eFh12Z64UXzG1L17bR7BICTMp2ArQcBjSAr5xJ8SoJETrZMwGAZu4hN X-Received: by 2002:a17:902:8d8a:b0:16f:21fb:b97a with SMTP id v10-20020a1709028d8a00b0016f21fbb97amr24041537plo.160.1661254158685; Tue, 23 Aug 2022 04:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661254158; cv=none; d=google.com; s=arc-20160816; b=vrs/i1I68U82Fjse+shhiP1FW4ohyWjHp+8fDdVtHZ6IBoPh9UlYyBoym5mjaXe0gk lyzGp++S9ES997SLopuvPZABfBlUiecNi1vbYwpiUPbHTsrU0rxHcD1H3sZQvM/jbwQj EsbkhDO8RzRQS1qiPFpda9FeSolhpKOEtGhCp0XiGLl7jJpDxOfqn+UJw5YWlmG9RYhr 25Big/KDA+DEMuD/BpTvE1THm9ByEQeyiLyiMyxnqiHcVOt1o2aclPV2K8NlsX32Yytj aPfogrlCNe23IslaTH8OgxnMZJNjAMhqG5QTM/syalN5rzbdADLTtxd65gL9HgQpSzwU xcPw== 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=tZwKR6t3OB4F4YSIpGYaxyS1ch7Z05hZAVDVWx0Xd4c=; b=DaeB5BolLSM2wm9XGwl/BYcjK6yu1jUwJBbzZ8Q2/xf/9J2EL9HQuNpXEl+e22Mk+I UH9Y7p2IUhd7+ktyPJ52jNBo5SENXpQcSKA5D6ymmm0l/zHbeCyr2oO5wsXjqzoqVlE5 Stohpt+YidHGGmEdDZkpkoys1GUkSBqHi7Kcb7xlQ76b3ecnsMOU/hjANp6twGXJO2sA u96lTTIu+DvbRU0y+5jLllhEE5sV1ksaimCGuH6UPL15F73+GiovucqynhSIPiCb7O+e g4VCFzrB0gDJuusNf21TuytU8e0sTWoDlOiIrCYJAq6pm/JKwUa50uC+B9iKEsgG42AM 932w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RN8bv2UG; 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 z198-20020a6333cf000000b00403f98eb964si11534133pgz.202.2022.08.23.04.29.07; Tue, 23 Aug 2022 04:29:18 -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=RN8bv2UG; 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 S1354279AbiHWK3T (ORCPT + 99 others); Tue, 23 Aug 2022 06:29:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353238AbiHWKNM (ORCPT ); Tue, 23 Aug 2022 06:13: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 B3D0671993; Tue, 23 Aug 2022 01:59:13 -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 42904B81C28; Tue, 23 Aug 2022 08:59:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A29CC433D6; Tue, 23 Aug 2022 08:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245150; bh=zXMtss4VfpDdXbj9MI1myaQXhSHrO2BJtp5vYDd2ldY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RN8bv2UGCZYscDDLWHRqEf2eZLwVcju0JUQkMirLZvtFyLLYWJFzxYQH/B/gBtDiS BuoQ0kyAC9fxefo7Jf5iHtUMt3mYMulc2okV/ndJMGbHZsnWPKN21+UwQ4IwKiSAQF 8momqaieaqv+zCZOzP9vRJUL5FMgsPOlU4a8duRY= 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.15 215/244] riscv: dts: sifive: Add fu740 topology information Date: Tue, 23 Aug 2022 10:26:14 +0200 Message-Id: <20220823080106.686362291@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080059.091088642@linuxfoundation.org> References: <20220823080059.091088642@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 abbb960f90a0..454079a69ab4 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