Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1359823imu; Tue, 11 Dec 2018 18:22:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/X7YwQK/PVzunRZTSaWMNqzXjPMgI3NaSQ+i9HFy8G94IhEo6nJZrkTAttrzLikxt2Zhu3/ X-Received: by 2002:a17:902:4523:: with SMTP id m32mr18143560pld.53.1544581371150; Tue, 11 Dec 2018 18:22:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544581371; cv=none; d=google.com; s=arc-20160816; b=tpiUbmFwUK8/8S6Wa/C7AByXej0aRuaMAXU9kiCTMhE78AxY4tpHYVjzNI8HJmuoij FHlixAY45GE1m3t8qopm8hVUrC347DUCGURjA9C2kjn5ly88a1WvLkRNY3ppExgETLkn p12rIlSHPYYLdif0yPqFAwv//UdMyVzCuL25pBAfI3Ud9y+mUY8MTDggMgdCfU6XaZEW YEJsr7DhwG1Z8t0ltu3kvf+Etj4aqPPa76Kx4lUXoU1Cw6gMcvYaXTf0c/7ttAfHhYNR BZznbi0CTyMhP62sDuIXYNHJPbhWorqYC4ZTvqiS0MVUZ+SQppID5wIFp3CY0a9Erb2f yvpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hzI/A0LY6wZYrVXrit/7ykfGzVkCjWR3jJLQbnY6hpY=; b=YMkKiKBPQ5MMfjUNMeyO1gABBX1W05438Cm67jOztowK5LrXMjlWyVnEcSeJmaxbaO 2KuBfZN2EQxLSPsG/QPMA26yQLN0vOOl/jijbp8JtX+vxqFAb+XHNI07ifxcfAxIp5N7 okD864tKNo1ViVTWku+jFqSF/T6B8GADIovwkRTAAEet5d4MHvMV1ZwzeYvxqALvWlq/ qM8wSuDs1ULhDcv3oBYftoVFdyDqNaNZtE6zrg0o4+Ak1obU2BOQjPp6p+akXzPdrbtT aGH14BhSGq6zlGtIoc6umvtmGZ7hqjYUn5OUyO9EnpMyuR/GHkjCEyTVcrymenJbZAjb xyuA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j135si13234661pgc.517.2018.12.11.18.22.35; Tue, 11 Dec 2018 18:22:51 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726354AbeLLCVP (ORCPT + 99 others); Tue, 11 Dec 2018 21:21:15 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:43852 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbeLLCVP (ORCPT ); Tue, 11 Dec 2018 21:21:15 -0500 Received: by mail-oi1-f195.google.com with SMTP id u18so13795617oie.10; Tue, 11 Dec 2018 18:21:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hzI/A0LY6wZYrVXrit/7ykfGzVkCjWR3jJLQbnY6hpY=; b=Vv3DCGfXYW6bb94SLVgn3s0fb5oG2+1Chbtk6jnyke3Cxvtd2/Ic9T0L1I2EH1hoRY 7T9biPvhgYZ4WCR4usWMjUERHB784/S9TBR2ztgOsyVcpIwTr71kEH6mLzAFpvXJO6bW OdSM24N0F2EAIT0wCaav84QPsvUkYrnSSUNgduU/KRpFE7M6yhRVdRaIkI/bfnM1Ff1s oZG1ZlcijixKEs6bvlIDcdh8a7qKf4+OCPnvx8Gis3wtCmSUN9Rdb7D9ywAJSJmLInot +LlFu0+G2uCdZvzSLvopoHLE8s9QIZokGbuLD8QqPgt5VYGWE08OlreTG36RI9bE9Vue OcLA== X-Gm-Message-State: AA+aEWZm55l/+FLEWav5wNDVMsG+yx5Wczk93SA6QjPeEwVWUw84jyVo GzgSywusc3WY4y4nWkys/w== X-Received: by 2002:aca:b388:: with SMTP id c130mr177489oif.123.1544581274202; Tue, 11 Dec 2018 18:21:14 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id e81sm7036415oig.8.2018.12.11.18.21.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Dec 2018 18:21:13 -0800 (PST) Date: Tue, 11 Dec 2018 20:21:12 -0600 From: Rob Herring To: Atish Patra Cc: Sudeep Holla , "linux-kernel@vger.kernel.org" , Albert Ou , Anup Patel , Ard Biesheuvel , Catalin Marinas , "devicetree@vger.kernel.org" , Dmitriy Cherkasov , Greg Kroah-Hartman , Ingo Molnar , Jeremy Linton , Juri Lelli , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , "linux-riscv@lists.infradead.org" , Mark Rutland , Morten Rasmussen , Palmer Dabbelt , "Peter Zijlstra (Intel)" , "Rafael J. Wysocki" , Thomas Gleixner , Will Deacon Subject: Re: [RFT PATCH v1 2/4] dt-binding: cpu-topology: Move cpu-map to a common binding. Message-ID: <20181212022112.GA14213@bogus> References: <1543534100-3654-1-git-send-email-atish.patra@wdc.com> <1543534100-3654-3-git-send-email-atish.patra@wdc.com> <20181203165521.GB17883@e107155-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 03, 2018 at 09:23:42AM -0800, Atish Patra wrote: > On 12/3/18 8:55 AM, Sudeep Holla wrote: > > On Thu, Nov 29, 2018 at 03:28:18PM -0800, Atish Patra wrote: > > > cpu-map binding can be used to described cpu topology for both > > > RISC-V & ARM. It makes more sense to move the binding to document > > > to a common place. > > > > > > The relevant discussion can be found here. > > > https://lkml.org/lkml/2018/11/6/19 > > > > > > > Looks good to me apart from a minor query below in the example. > > > > Reviewed-by: Sudeep Holla > > > > > Signed-off-by: Atish Patra > > > --- > > > .../{arm/topology.txt => cpu/cpu-topology.txt} | 81 ++++++++++++++++++---- > > > 1 file changed, 67 insertions(+), 14 deletions(-) > > > rename Documentation/devicetree/bindings/{arm/topology.txt => cpu/cpu-topology.txt} (86%) > > > > > > diff --git a/Documentation/devicetree/bindings/arm/topology.txt b/Documentation/devicetree/bindings/cpu/cpu-topology.txt > > > similarity index 86% > > > rename from Documentation/devicetree/bindings/arm/topology.txt > > > rename to Documentation/devicetree/bindings/cpu/cpu-topology.txt > > > index 66848355..1de6fbce 100644 > > > --- a/Documentation/devicetree/bindings/arm/topology.txt > > > +++ b/Documentation/devicetree/bindings/cpu/cpu-topology.txt > > > > [...] > > > > > +Example 3: HiFive Unleashed (RISC-V 64 bit, 4 core system) > > > + > > > +cpus { > > > + #address-cells = <2>; > > > + #size-cells = <2>; > > > + compatible = "sifive,fu540g", "sifive,fu500"; > > > + model = "sifive,hifive-unleashed-a00"; > > > + > > > + ... > > > + > > > + cpu-map { > > > + cluster0 { > > > + core0 { > > > + cpu = <&L12>; > > > + }; > > > + core1 { > > > + cpu = <&L15>; > > > + }; > > > + core2 { > > > + cpu0 = <&L18>; > > > + }; > > > + core3 { > > > + cpu0 = <&L21>; > > > + }; > > > + }; > > > + }; > > > + > > > + L12: cpu@1 { > > > + device_type = "cpu"; > > > + compatible = "sifive,rocket0", "riscv"; > > > + reg = <0x1>; > > > + } > > > + > > > + L15: cpu@2 { > > > + device_type = "cpu"; > > > + compatible = "sifive,rocket0", "riscv"; > > > + reg = <0x2>; > > > + } > > > + L18: cpu@3 { > > > + device_type = "cpu"; > > > + compatible = "sifive,rocket0", "riscv"; > > > + reg = <0x3>; > > > + } > > > + L21: cpu@4 { > > > + device_type = "cpu"; > > > + compatible = "sifive,rocket0", "riscv"; > > > + reg = <0x4>; > > > + } > > > +}; > > > > The labels for the CPUs drew my attention. Is it intentionally random > > (or even specific) or just chosen to show anything can be used as labels ? > > SiFive generates the device tree from RTL directly. So I am not sure if they > assign random numbers or a particular algorithm chooses the label. I tried > to put the exact ones that is available publicly. > > https://github.com/riscv/riscv-device-tree-doc/blob/master/examples/sifive-hifive_unleashed-microsemi.dts Oh, that's really terrible. I wouldn't care as this was just source level stuff, but labels are part of the ABI with overlays. Rob