Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3397567rwa; Tue, 23 Aug 2022 04:13:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR6OtkhgZE5QXP81DhwD02Euico8wEETqXGHlgNUxhs86yUS3B6sBK7TMtbblwbFTvNftuYB X-Received: by 2002:a63:5b16:0:b0:42a:8c1b:819a with SMTP id p22-20020a635b16000000b0042a8c1b819amr10320557pgb.424.1661253222368; Tue, 23 Aug 2022 04:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253222; cv=none; d=google.com; s=arc-20160816; b=wGrRbj5v0XsDv7DDLCiGiVUCMmAf1cCWEVo40FxeIsJEqAtDHfxdhjgk1BeQCuOAsI s6q8Q990O5AYYdJKAgVpKyIA4+6iQOkU+Lu9unzD8V0eEQkI58/q0MlK7FJhKg0sK5OH 6NAc5nrKOrbLjYBMW4Lrm/Eb0+YhOkpS74FaNwNZcu9B68nFUCg99mIRJokmXNbFNbeG IpufnoU+qI01PzSWQhro9cxZdm6wTOOCUz43d5P+b4U1/+mYE5G1hqVQcmWfc4bpfVu3 q8VSaMIlxQzKgFopUyv+xQ3QReG0Ibw+Xfwm+u2TybRoN/Td3ZIolsKFqJeTrIbPkKAR vSGA== 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=BaWvSMkpGPTJKiVFN/TX84csRjXI+YXVbVIJGpJjpg0=; b=SFWuBm9+bDoKX0jxjAQGgvbo5WNF0xkqcb7n+3qEkP8jHeTpQ+wrWae2hxNfClQ9qL 0Mmx+cPhkymQeWKFMIxdrsNQiVJBR8IhC0ebDS9IP9ivDrhRwCqJytxoc9O69yyFXuYF +/yA+AZdRqnlPUTUYFmePshHzt7ReKJ56eWLqqNZKm6zJywFbFI9EnRRa78pn1snJ8C/ yswn0eXp1K2eH11IbC8Af/woIVC68gzZjPWb5+c8YMTOkxCD+5BRbpADRfb/qOcdcQG1 z1xqCC1CYPHQK0SR5mm3maFpvpnT3FCJNQxEAivOulDuLVUODW0pzfoZPSuKFVAExPmF tvVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L3XigLwJ; 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 cp8-20020a056a00348800b005184183372csi14061629pfb.350.2022.08.23.04.13.31; Tue, 23 Aug 2022 04:13:42 -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=L3XigLwJ; 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 S1350234AbiHWJ3G (ORCPT + 99 others); Tue, 23 Aug 2022 05:29:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350719AbiHWJ0T (ORCPT ); Tue, 23 Aug 2022 05:26:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41F6276764; Tue, 23 Aug 2022 01:36:31 -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 94EFB6132D; Tue, 23 Aug 2022 08:35:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A08B0C433D6; Tue, 23 Aug 2022 08:35:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661243715; bh=q4e5RPgusHolD8fcDqoi4kybf9uPxbFOEi5uXMdW6QA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L3XigLwJA8a+fsIwKhEaIhL7mGFePqQJLCkPPWE6DP87nS/5iINKQsIoU0rgighLO 3Uh+JrywlsCXXU7jwniHPNwvNL6eO/mG3n5OaIGgmmlxrYT3wjT9WC2o3rLxdfr1bJ Nx2xfueRKKV8mxIZPx/FjhxD7ArTjg/L+Pz9xfB8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brice Goglin , Conor Dooley , Damien Le Moal , Palmer Dabbelt , Sasha Levin Subject: [PATCH 5.19 334/365] riscv: dts: canaan: Add k210 topology information Date: Tue, 23 Aug 2022 10:03:55 +0200 Message-Id: <20220823080132.189132574@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 d9d193dea8666bbf69fc21c5bdcdabaa34a466e3 ] The k210 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: Damien Le Moal Link: https://lore.kernel.org/r/20220705190435.1790466-6-mail@conchuod.ie Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/boot/dts/canaan/k210.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/riscv/boot/dts/canaan/k210.dtsi b/arch/riscv/boot/dts/canaan/k210.dtsi index 44d338514761..ec944d1537dc 100644 --- a/arch/riscv/boot/dts/canaan/k210.dtsi +++ b/arch/riscv/boot/dts/canaan/k210.dtsi @@ -65,6 +65,18 @@ compatible = "riscv,cpu-intc"; }; }; + + cpu-map { + cluster0 { + core0 { + cpu = <&cpu0>; + }; + + core1 { + cpu = <&cpu1>; + }; + }; + }; }; sram: memory@80000000 { -- 2.35.1