Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3570272ybd; Tue, 25 Jun 2019 05:02:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNjEZKCmQQByAki4VYxpE5KnSCkTo+ScxZUKaRHYyc6+PqNFJpvCtkecaikbUYI9umt3QH X-Received: by 2002:a63:10a:: with SMTP id 10mr34618268pgb.263.1561464128887; Tue, 25 Jun 2019 05:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561464128; cv=none; d=google.com; s=arc-20160816; b=qecCE7zMVVOefFiPz5GycuFcrqu/rFxSgse4Xx8ei6WaI2aYuciA1YAAOPr3Uq7U3s TvpGXhujAehW5Zaj9bxqpJNfJYnMUGRIc38MQFGzXguulNtgheOKrcbhEzn9TgjSyZQi 5G/+mNphrzk9OwN8X+MtOmE8x/6g6BrCDsit3lUF0XMEz/rtAs1t6DmWLk+RFoyRbAQ4 9PcDdeGD94auIloa8o4UBTeQ8L5kfodH+/UqzZFbOG9eD98H0GgYYF65DWqWe2JSaExV Is4R9K9pvHfAI/D0B107+2MK1vU1x0A8WO+El5VSgHJogBjm+031GxpxlmT3G85QMXMd Cx5w== 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:to:from:cc:in-reply-to:subject:date; bh=hRi4ajiGUFKeMzAjuhkh1DNYz0dIJRV7lfjpx0rM/iM=; b=pqGt6O7f8zMGE5wbj5vSF0ZJSqwe8rXkeiF5ZGXv5fVcYMdBSmD3GfoTySaHxeVZ3W GkAedrTMlK8r7/EJNCKeEOsHQRiWZfyMbqJMdSpTDTZzzUkJU5cbWrMZpyS7mH9RfAGl 6EwMHj75QA8keapAQS0QVA1wuWzQt6IubUZLF9AhGaSnD+LdkEbSB1yIoFg16KUk0A0h Bq90Rx7h/gLJx2HISbKUwIzpGR5r4O33KqpD5l3F7Z3xVu7QGbWO+X8nUPEfOp4ePRfc QQyGSTPkQJ9sjtacrYa8NgfrWT0bkWhyrmJ6CWA8xwGAPCwnddw7bcLlD3Sd7/AaHXRq ifog== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay6si195668plb.203.2019.06.25.05.01.52; Tue, 25 Jun 2019 05:02:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731653AbfFYJjb (ORCPT + 99 others); Tue, 25 Jun 2019 05:39:31 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34043 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731645AbfFYJjb (ORCPT ); Tue, 25 Jun 2019 05:39:31 -0400 Received: by mail-pg1-f196.google.com with SMTP id p10so8696361pgn.1 for ; Tue, 25 Jun 2019 02:39:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=hRi4ajiGUFKeMzAjuhkh1DNYz0dIJRV7lfjpx0rM/iM=; b=VFswgXdW5lGHn1HX4yqbhwljgb8zOb1tFK8yZP+wlY9KlRx69pYJdqyeNgkQySt8p0 TRTT+fzdoGvBnNQTaGEHUK0tC5rvqMYqfDcu7Ayz4FvAsPm0W0ad5bMgCEe0S991Wljo xkvSXvQxN8nrEUil4bfwexa5iMTYDSkjABVsMxKXKO2RdHmWHXZKnMbBSF7a6TTLUYby IE4cyVF1/OOfr8mL5LwaEfWAD7nXUGmLBX4tpiTO7ziYc60prPoTDt/HprFz/oRZaPO/ BHTKHLA/Jzq4y35Kjd70FPVqcWeTftwF5rnOfXZfPGp+wOCuzGWeNCMAF63CjzpmAk0u 8qag== X-Gm-Message-State: APjAAAW6c33aqf6xhqMzZOFT/BBs/F7mo79ykDyXxaWbKczkwVpErfFl n3Lh2v4ETpf7OTxDCximDB9wECRyO9heG48f X-Received: by 2002:a17:90a:bb94:: with SMTP id v20mr31266695pjr.88.1561455570111; Tue, 25 Jun 2019 02:39:30 -0700 (PDT) Received: from localhost (220-132-236-182.HINET-IP.hinet.net. [220.132.236.182]) by smtp.gmail.com with ESMTPSA id p6sm13409409pgs.77.2019.06.25.02.39.29 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 25 Jun 2019 02:39:29 -0700 (PDT) Date: Tue, 25 Jun 2019 02:39:29 -0700 (PDT) X-Google-Original-Date: Tue, 25 Jun 2019 02:38:09 PDT (-0700) Subject: Re: [PATCH] riscv: Add cpu topology DT entry. In-Reply-To: <20190624223819.14320-1-atish.patra@wdc.com> CC: linux-kernel@vger.kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, aou@eecs.berkeley.edu, anup@brainfault.org, Atish Patra , yash.shah@sifive.com, robh+dt@kernel.org, Paul Walmsley , linux-riscv@lists.infradead.org From: Palmer Dabbelt To: Atish Patra Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 24 Jun 2019 15:38:19 PDT (-0700), Atish Patra wrote: > 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"; Reviewed-by: Palmer Dabbelt