Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3465473rwa; Tue, 23 Aug 2022 05:20:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Ub2lVHBMXmCjbmiLQkSC/R7OadPuKfryHxNx0rA+wwtJefNuIhsDSkD0gSqVuyUo4qJgg X-Received: by 2002:a05:6a00:2192:b0:52f:6541:6819 with SMTP id h18-20020a056a00219200b0052f65416819mr25186149pfi.83.1661257220104; Tue, 23 Aug 2022 05:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661257220; cv=none; d=google.com; s=arc-20160816; b=R+Iv8XorZK9a28fRKOpnQcle1uoLWYkEG+bfYbgV/kQXzLhNe8laKeFZTjMEk9aihQ rTeCWYkjngvkyhaMYBMPjWmspEbMMa1wjCnxt5RebdaFpE0VuWWUm3zk8hqDTQWfOM45 LSMd1ltTppzYZcLURsL52TF88aCllrh9f0nP15C4BdF/uPAVXIdTExaMnjFgFPygWPHY KF54TO0TpTycIvNp6VWGp3ADYDbNW1uGQ3dHGUZtnExHuUNOkBYj+BoxUqAAxmiBnYQr kbN0g/NUFktg8GaVGP4Ipwg/jkeNFCijLLpi4s7lBEGjjgrUHeSCKl7/LwR9HUlr4hkD kgow== 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=tx0Rv0TRQXofZOHob3+e9fE/Nw3lcikMdf2gtfwzCFA=; b=ResLUG0rwXSj13n4V2WlxTt/eUMM4/hDXsaVgAcjNcpss68cgdilAuLOlp70BbZHI0 jjYJgn2x+1j7t5fJSCWQs6ULvToruF6rRlD2Ak+IQqgtP+LtqYTE3YuSCHn0RWudR94u oiZ29QYwrI/yDvedJW50JChBmufdBblt7t8iIJc4zHpwoPxL6LKX0KtyII78uyPTrZ39 sQLBkh5BMfipZcvjO4mfMBm8lw7b+UoiXsFJR4hlVy+llX9oWbVOS7KUcscPnEgfOSbh g+4Ztch5oCyNH8X1jQUE46f/ag0Vq13UCAueD7YLxHST4P1yyQoAZYTpkYE8wlxZqJsp 4pJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BngnfUD+; 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 e10-20020a170902e0ca00b0016becaaa23csi13843722pla.434.2022.08.23.05.20.08; Tue, 23 Aug 2022 05:20:20 -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=BngnfUD+; 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 S244103AbiHWKcs (ORCPT + 99 others); Tue, 23 Aug 2022 06:32:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353565AbiHWKNw (ORCPT ); Tue, 23 Aug 2022 06:13:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50B2A6C121; Tue, 23 Aug 2022 01:59:48 -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 E5B66B81C3A; Tue, 23 Aug 2022 08:59:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36504C433C1; Tue, 23 Aug 2022 08:59:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245185; bh=lhcGVfedXLvlZmgQ5jX75/1UekAf+1RD+VFUn9Vc6Ro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BngnfUD+WcRJaZMi7UBztfHxpazAvrkZl2Z3ptJ5BhE64/HM4tjDKSPyUsgsjE6BJ XORWfisui738hhVPNtdJg8cjW34qG8R96YkCLS+/slByxNyyITMjSk0eQ2Cibqd3oa V+x8levffI+NcGYbY7QizEt8JHpDLN67UENEtvNk= 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.15 216/244] riscv: dts: canaan: Add k210 topology information Date: Tue, 23 Aug 2022 10:26:15 +0200 Message-Id: <20220823080106.726302489@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 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 780416d489aa..fa9162e3afa3 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