Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2932976ybd; Mon, 24 Jun 2019 15:40:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEe7jpoFDlqoFEN82b0361/y+CpPUcGfBpihbOW7JCLqLopsvPxuNEG6sxReqfxk4IDTjO X-Received: by 2002:a63:a046:: with SMTP id u6mr19481066pgn.122.1561416041195; Mon, 24 Jun 2019 15:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561416041; cv=none; d=google.com; s=arc-20160816; b=Q/VTDJXXpP+GDnbcwejmo3Y0tSkY6B/9UOUCpgSvKexdkJpWH/1cG2wb7Nrz5IqvtU 815ZuP1EFw14orTwgqJqdUDEmtHqkBPzQgBTk2JWkFDE+j6RMzS4l9QVOjvxRZu2sqb9 xHWTvxsshLhJrgKw7QfqF4VthS8/gjX+OaVxIhfpUL4J5FJc4GaqSSbPCmfVD3ONyWtI rZafCup5mghEe3YBYLA62Flr9j44l6BCa1xMtAN36OmCECIxmyveoq7extbvVw/xeA2o 95JYffIybez4NXOcV6yA8X4mxoT2fVafwvOl4LSCTshTU2cO+r5J96TM2ci0s76uFJb/ z0Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr :dkim-signature; bh=Zkz7Zm10wZR420zdTpKGwITvvRQ4EMYkMaYmHAAbros=; b=mc97WSk1vTHCJ1HGP9lOgVH231vXdLizbDhbiiuupVNdPaRFB5THVt7NasnLik7V3f tERiG2bWUF+x+OvSS32GcSu4m2MqD8525yTz6hwtz32d1mhpt4IaJUZZKvH6WoMgAKzT SFejAdwwIq+RPxylCsdR+qgii9bJBk2htLbB5E4NYlg7VF3wfKWoOA1abzMv6amBiRe/ 1ZIzevto7R9/QDLemMgS85afDofickjM9d6w4w24eg0cN6MtmzIe+hB5vl/Jm44mLHfk 8frrGO7XvGQW6sLWQN/TF6wIuallO4e4bS/depy4JFCjawRCL0SYMnK8OcMzxJJN2DkB wXzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=CigVOVk5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si12097137plb.20.2019.06.24.15.40.25; Mon, 24 Jun 2019 15:40:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=CigVOVk5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726928AbfFXWjE (ORCPT + 99 others); Mon, 24 Jun 2019 18:39:04 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:55769 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbfFXWjE (ORCPT ); Mon, 24 Jun 2019 18:39:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1561415945; x=1592951945; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=amaL0k2oUBluhz5amtgozZ38Lqs3Jm8acq5qCLADl/0=; b=CigVOVk5rNeTLtOrVr37e4eIpG2j8X2rjPTsuQfS6E6dswCG7E8zNHT+ oHVGB5xAFcH2sgg+od0AI/BFmCCOtJWJ4srw1BJOuSMePrc0YqN3wdncd ijenbyMMIov7wfwDWGuN8t9+QPdZN5nl2fLKaDoT+iUKIaDjl21tOZwcX LNcMbQ3ug8DohKPK7K4bcfcS1RwAUYTmN2nWGTin2TRmdmE3/jp6IvQOE Kemv+FByEk/ceKDqf0Wv4LlYd1XNF0aLGWE35sKpoiIa1c+DsjcGYfIwT IdBZ7MhJ+xPLhuN6nyKdpxqXzA3z54ehv2pk52Gvg1+JjwIUQL7ID3uJ0 Q==; X-IronPort-AV: E=Sophos;i="5.63,413,1557158400"; d="scan'208";a="112639901" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 25 Jun 2019 06:38:52 +0800 IronPort-SDR: hOZJrM82do9XHd01VWm9Rd3nqlX57UDL02fa0kh1lfjiUmoZFXXn8PNuHX6VcIXjtPDy3bjRWV DKemYyP4m/+3OyNzu1hY7t2nlgJ+Hv0fKu+XZ2MQ8U0JZGfRPz72wQmAW/ZW16L16vPkBIf1aC UiK8Ydfp29+5Ay1qblnjGpVzmR64o54hkXO9mZwlM7srsVWSZktrNK1gZgfSYyYWsy6B1f51Sg QxVmvvFYylZfOxZe/dmVgyntexUgVDOudCHjtalNtyjwV56ff7y8Y084Ki8n2aE8oysiAJcVru 5QZ8XAryEr/Avm5ck4ZE+ly3 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 24 Jun 2019 15:38:10 -0700 IronPort-SDR: jYLXl3hSQmhk2KvSiMaIW/VEw3gCbmz1B8E1cNVXFGHRCN1oqPhMfM4xfeynB4tzA9GtbHJI5e hg3N+OzdzF3tW2Yh3CsZMkaGDrSj46aRvbxxkdVXy0j2Jz3JPYgaWpldwq5vg1qi/DvOAcOkn+ sGXiaWy0cdep5J1lVBRrLDaJKF3vWuklHa1SG/KdeGgSxExWduUNMk8sGlTJpMBKY6n73vj8jx LAiSMnIrzgiB67YyIjXq+4OyTDgfKSsGQqTtr0e/VBt/69hSjueSOlDJsw9pwNZ0jpb7zgFKfg /Eo= Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip02.wdc.com with ESMTP; 24 Jun 2019 15:38:49 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Albert Ou , Anup Patel , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Palmer Dabbelt , Paul Walmsley , Rob Herring , Yash Shah Subject: [PATCH] riscv: Add cpu topology DT entry. Date: Mon, 24 Jun 2019 15:38:19 -0700 Message-Id: <20190624223819.14320-1-atish.patra@wdc.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, there is no CPU topology defined for RISC-V. The following series adds topology support in RISC-V. http://lists.infradead.org/pipermail/linux-riscv/2019-June/005072.html Add a DT node for unleashed that describes the CPU topology present in HiFive Unleashed. Signed-off-by: Atish Patra --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi index 83f40b00ab63..907564f4f07a 100644 --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi @@ -22,6 +22,24 @@ #address-cells = <1>; #size-cells = <0>; timebase-frequency = <1000000>; + + cpu-map { + cluster0 { + core0 { + cpu = <&cpu1>; + }; + core1 { + cpu = <&cpu2>; + }; + core2 { + cpu = <&cpu3>; + }; + core3 { + cpu = <&cpu4>; + }; + }; + }; + cpu0: cpu@0 { compatible = "sifive,e51", "sifive,rocket0", "riscv"; device_type = "cpu"; -- 2.21.0