Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1682943rwb; Sun, 14 Aug 2022 09:26:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR47x8CQxO4rGgjW/xjVGWCisc19zdrq+xwf/U2SL+uD3MHvYyUf45G+sLGnu6qqYPG9MUnj X-Received: by 2002:a17:903:40c3:b0:16f:1d75:6f47 with SMTP id t3-20020a17090340c300b0016f1d756f47mr13134976pld.159.1660494398252; Sun, 14 Aug 2022 09:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660494398; cv=none; d=google.com; s=arc-20160816; b=hOL9kMw9hs6HE7wxS/2ON9ndh2AGO7eCgBwNQlaIdWdPSrUkqHTUIUlah9jOnF/Iul 9u7e1ZOKqO8rHUt+1VShf2D8MS4spqRcvYJ52ZGh6T3rbDAYQ6bQeCukul5R2Jv1JUU1 c6u7HvnlmLBUCnuptFi19xDlQEfxXtDTyQHcSr0DiSmXEFGo4duqMmJ/4HSOUM+DWELp FAJJCHIg+Tfj+sVzbQMYG3gqvKryb+2mYGARr3O1T18yQeQBzLYR6pKsmJbAosCQb8Tq 35gqO7NbICBs9P4Bx+9TbCTp6yM77mRBtUqMADDb1lK8ys87k465m+dIHg36IADGQo9+ 98IQ== 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=gocdRDap4w3ChVMnAvlt6/62LUdmQWLV3QQSiDWpXeE=; b=C737SPiFGrNyOl8+OM92sRNxTF+/+5tkEXQx6XESfaZoOQr7DfzBjQ2J28kW4SV52w Vy5Hna57fbAkG/Qg993w7DtLUJ4xWtuRoLUIgltDuM6sgLZ47iC7/buJYqu1ZHB+rJZK efvzHEtFUXZ0lM8576eA0IrgGPwC/5fwQMPQpJkvq0LdxXT5O4SozIWzZMUgZpM9a/yC 4oDgr2lD8HJVv/vDazJ12knj9RN1YK90wjFhY1prym2I8DHBaXUw7FbPafd71zS7dIBo oeVvTLDmyhTA4KRiYQPWktuwgq/sYk2Z7Lvc6zvlGH7Rt15qE+pipwDPPKzrSokkiVdT byQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HC9Lo8Nu; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 17-20020a631651000000b0041e27a782a5si8807950pgw.144.2022.08.14.09.26.27; Sun, 14 Aug 2022 09:26:38 -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=@kernel.org header.s=k20201202 header.b=HC9Lo8Nu; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240358AbiHNQWk (ORCPT + 99 others); Sun, 14 Aug 2022 12:22:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240818AbiHNQVi (ORCPT ); Sun, 14 Aug 2022 12:21:38 -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 94944140CC; Sun, 14 Aug 2022 09:20:04 -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 4B786B80B37; Sun, 14 Aug 2022 16:20:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62147C433C1; Sun, 14 Aug 2022 16:20:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660494002; bh=DwkobU+BMVJXJJWUeB8LPhbQL15JLQM4IwAWMPhJRpA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HC9Lo8NuhW6O6Mwvx067K3FL1AXcnyMxHJS7PzeUuabs2gmN7Ndidh5oMuuzEdNOs vUEP4mGag/Wo1gEraZI72BTihkdNML5XaFlO/Q3s+ylHjK+yFYoeWc/1a7Vrw4u7Wz Uxz15VPgUst+H0WK8oxOo3o+ttMWqxOXG/ffc27K8hOikdPVSHV9/X9TeY2Vvaqac0 duOBPMWrqtDwKMmUe3+jivpOaIYwF1G+UFQNAAXwvrKjGwdXOnho55mc2Eo81bSPjN Lux4AtDH/By1qqnBPeml6iXe8BSpq6eRTU4AcWAgfI8XJ6NFOCm5h6qmhgfGZI8WyC Yovb1FFDBrNGw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Conor Dooley , Brice Goglin , Sudeep Holla , Sasha Levin , daire.mcnamara@microchip.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH AUTOSEL 5.19 08/48] riscv: dts: microchip: Add mpfs' topology information Date: Sun, 14 Aug 2022 12:19:01 -0400 Message-Id: <20220814161943.2394452-8-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220814161943.2394452-1-sashal@kernel.org> References: <20220814161943.2394452-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 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 88d319c6abaeb37f0e2323275eaf57a8388e0265 ] The mpfs 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 Reviewed-by: Sudeep Holla Signed-off-by: Sasha Levin --- arch/riscv/boot/dts/microchip/mpfs.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/riscv/boot/dts/microchip/mpfs.dtsi b/arch/riscv/boot/dts/microchip/mpfs.dtsi index 496d3b7642bd..e3793916a1e5 100644 --- a/arch/riscv/boot/dts/microchip/mpfs.dtsi +++ b/arch/riscv/boot/dts/microchip/mpfs.dtsi @@ -142,6 +142,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>; + }; + }; + }; }; refclk: mssrefclk { -- 2.35.1