Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3323676rwa; Tue, 23 Aug 2022 02:50:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR4eckLbaQ0TnMLewvJF5gED+5jP21BAQLWYKWd154uw5Wu/I2noDY7vQoI+EVaZKYKKSRpT X-Received: by 2002:a17:907:7f19:b0:73d:79c5:8d3a with SMTP id qf25-20020a1709077f1900b0073d79c58d3amr6905176ejc.663.1661248257687; Tue, 23 Aug 2022 02:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661248257; cv=none; d=google.com; s=arc-20160816; b=05e3zh4YDP6VI2wZDxTimujC9jyro0a2Gu8hqH2uhKWLzJMZR1Yf30XrKkOvxCkp9S zYow4wnBZuelm/mf+acxMlj9KvxpZikFgl1h0YWFqFlTBdMNREYk4Zpe/rOACcL3U+Os WmZ82IL38IFKQcsZXR21ElyQeNARBJSA9k5Nymo6RrZIiF5Jkh3bJkfY2ETISuIW6/z+ ryetHvQfs1pxZxalJNR3pZQ/HwPLZPnEwO2rsgdYiXL08lxZW1EkZoj6WUMkhG5sDDX9 uu6qwjEpvV2UeW72HMAqYZEBET9+9i3xNMhXjhEmn1UY5qbttKHUw4oU3t1Za/KoETlb KCZw== 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=ug+lGuxAH4wU/cEVPMkZNBe1i4y8DtLQx5pVvf8T434=; b=aJfRQRxNsUkQh5lWEJJIIUMSpyA5cLJHQgDs5Da4DqHzCKfwNlHAASyYA1lM/pWu4e x7gf+JOb34wRoKNJVyVdUxkGj8puNNNNL9IeTiCU0tVpO/nAPAUUqGglAPQu51e0tyji YzuLC1dt/dcyIETmT5RfOt1yHky0Ll46CEMfqC0vgsSELi7ZoVrUnVF1K7INsiHuWBgi HcHNrjLmzI7xxi3MWoM9PeL/8tr2NSRhbYA8xtdy8X5Dih5d15qVt93IgDzLSx+wLTz1 233mWmRLU0KymLi0EBkbs2zcIf9HDRYIbV9ON+pYSteQK7FTZTyUT5mxvg9fzB9LAJ8d ej4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rBSMA8lb; 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 gs24-20020a170906f19800b00730a1f55ac8si9181750ejb.821.2022.08.23.02.50.29; Tue, 23 Aug 2022 02:50:57 -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=rBSMA8lb; 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 S1350128AbiHWJ2X (ORCPT + 99 others); Tue, 23 Aug 2022 05:28:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350194AbiHWJZe (ORCPT ); Tue, 23 Aug 2022 05:25:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F33975FCF; Tue, 23 Aug 2022 01:36:10 -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 dfw.source.kernel.org (Postfix) with ESMTPS id CDE5F614E1; Tue, 23 Aug 2022 08:34:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB2D5C433D6; Tue, 23 Aug 2022 08:34:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661243697; bh=xwWCPA28vI940tma+9qll3w9FqbWcIpnOhD8qGgH3tE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rBSMA8lbk7t4/n3nP1dwPkMzk6vjivj7Z6hMq2+aR2y5X+3WS+Q5IeU7p6XES+qUh IowbN9IVqoWZeDFKGljbz92ZfWdyd8HQzl7i1RBK9g1qHvHyWYyBcexApKjYGd5ivY SV1fnccEYRXKqHLecrJWovgI9I/41sXV6VVBaSYs= 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 332/365] riscv: dts: sifive: Add fu540 topology information Date: Tue, 23 Aug 2022 10:03:53 +0200 Message-Id: <20220823080132.111184627@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 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 e3172d0ffac4..24bba83bec77 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