Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3402011rwa; Tue, 23 Aug 2022 04:17:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7LJhXhFnup0fE+Fkt3vdGgUafeBAvpzR1X8lWMv6Sv2YfT0z2NgQP5poRyai8oaS6P8h4a X-Received: by 2002:a17:902:c184:b0:172:ecca:8d1d with SMTP id d4-20020a170902c18400b00172ecca8d1dmr8552497pld.154.1661253476560; Tue, 23 Aug 2022 04:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253476; cv=none; d=google.com; s=arc-20160816; b=GZH6nwQ7nE6G0fadpSj/U9SKVwcJ2YkSeS7TC9DSL+qIXqVM+p8Q+ebogkZFf5rsqB fVMWzvWt3CacojTIF4DnIPhB2YeNcs5y0TbiECbmjAJdiXW/b6T3MfBzzK6xeS5C5fBN VoQgQJMpLcsmCZ+iHjhE6Eyg7H8saQ01mWG8i4KJgIynZxBOi1dkul7OeTBPIR+8sIdh bz/a0GfTtYuMcXhe/M4nLF1/Vs3NAvPoku8pWI4G2J0NkCeNZJ6QiW9Z/WjlGtAmkkrq SswuwsuSgUJJJUSKa0dpbdFV0QBcre/3/t1bVpijSuHW36HLAY/r0QjJANzr0EwlKYc0 420A== 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=8QHse/lQSQ4G6ZB/Vr6W/kdsUTasSJCbAjRlX7zDCYU=; b=F3GbBO6yO2xYCJKUmQhkW+8p2Z2/prflm+8vYWd+whxHvl7Mf+vrc0Da4bauAlHNkq 9AnhCaD78CUuulew5Hz3IJOLeppYCqXso8mdd3f7bXC9cvz/vHEuZ3mMyK1jvHg4/oDE LC7VPDLfoVUmqwHHW4R7d09Jq1vByy6Dd5hh4/lABVGPYWJ9JTbOLuo0lFa1crYVa02a abI+5PjK7Ey+Ig8QDS2wELAsYdPM/bZQHbzgqFc9ogjL/d3fku02u29GtJMRL/vxGRMP kXrYgbiIlgXoxGTKx0PittSVgluaI7PeoLyIXH4ky8nQHS4P3IM0bq1x2jyZM8SQg2UC 90zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XIAJBjVc; 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 q206-20020a632ad7000000b00429f03c0ed5si15653625pgq.592.2022.08.23.04.17.45; Tue, 23 Aug 2022 04:17:56 -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=XIAJBjVc; 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 S1354322AbiHWK1f (ORCPT + 99 others); Tue, 23 Aug 2022 06:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353931AbiHWKMS (ORCPT ); Tue, 23 Aug 2022 06:12:18 -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 1F16C3054C; Tue, 23 Aug 2022 01:58:40 -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 D5B20B81C3E; Tue, 23 Aug 2022 08:58:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28315C433D6; Tue, 23 Aug 2022 08:58:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245117; bh=dgjbgDlxAfjjvEvgGnYLvzEkwhOO16Ktjk5n5ZW0IDE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XIAJBjVczR8o+ogBMgbVKoksZn3LqprnPLLqz2dKk1cfjm2mmMFbRQ6LnJRMN3K8f dlUyvV7BoLDUv3f3EuSK6IVPx4SJYvP38aqsgGwzrBuyInXPQYS77h42oqZhhwUJHw J0ft6xDL7pP77ekLWytehG7cCkgRiFyBCjyh8nUk= 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 214/244] riscv: dts: sifive: Add fu540 topology information Date: Tue, 23 Aug 2022 10:26:13 +0200 Message-Id: <20220823080106.649183844@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 af8f260abc608c06e4466a282b53f1e2dc09f042 ] The fu540 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-3-mail@conchuod.ie Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi index 64c06c9b41dc..87d6e5a4253f 100644 --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi @@ -133,6 +133,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