Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2589560imd; Fri, 2 Nov 2018 14:09:27 -0700 (PDT) X-Google-Smtp-Source: AJdET5fJG57+yGM91K0B+chTS25rUCNf1juu9DikGPcdDDrrctRGHNuMEFhBBGXCutjNZQWa7fun X-Received: by 2002:a17:902:b7c5:: with SMTP id v5-v6mr1635229plz.40.1541192967863; Fri, 02 Nov 2018 14:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541192967; cv=none; d=google.com; s=arc-20160816; b=N/Cq533zAqNQm+NTLH4XnD9siC6ZdUMnnzzR6ESKNsrU+CLzGI0civrHVdEuKXnlF+ 1R3IUbglDqPEzd2dtLbA1TOJcfrg4qfEIpjmIndwclAp9lUL3tqXxay9y7AvUQwZA9hP 8XJqXDAVGicnjkQdxa+Crfbnr8PGSVyfZvbkiXACJ3tbIMJzOOTEGkasfNc6skLp6yug i5hnzZdleqm8DyoGk/lDPwGKq4D6rC9CusDr6gLDcAyr4jrligAZpMQdSokELkR11YVd vrCHYh4pqSVKta1v185AQ1E7eGV3TbBiuItWmhRX8xHzTvHufCVKHj1AGfYO1+QzqEPg aiZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=okCr7TtU05t1jfc0bpOXfrSTGbI/hRDPuk9ZzZjNq3M=; b=JVvrkHleKRe4lJbv17DXhC8DP1z9cgViIe41YYwazPQrwJBSVzTHW1vJGCBxv68tiy 2YJystU2CyN0T/RWaTeX5MpjtkdpOBtSKhuAFihe5ICB0X8NJwjMFoGyhEB3dIkues9R Jfxg3EtkVKM4egczMz3VPRHOXDZ0sKOSJ2ptK/PU3odiRwyeU3G1wmsaIjXPFMD+N6is J7GTgrbckdWpzVPYUOK9ZaGcJpcja/acoMuVjvSvUxp1wsyfop4/ElVTvs9GRbEJhyyl +GzmyttSacf15fGs62+6ei/nU21/7HfQ4jOqYssDT8wKcVwu9W6peJDRX0LUxQBSKRrR MM8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1EGTIqaM; 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=pass (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 e133-v6si35370587pfh.289.2018.11.02.14.09.12; Fri, 02 Nov 2018 14:09:27 -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=pass header.i=@kernel.org header.s=default header.b=1EGTIqaM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728128AbeKCGRO (ORCPT + 99 others); Sat, 3 Nov 2018 02:17:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:45172 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726051AbeKCGRO (ORCPT ); Sat, 3 Nov 2018 02:17:14 -0400 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EE7C520862 for ; Fri, 2 Nov 2018 21:08:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541192911; bh=okCr7TtU05t1jfc0bpOXfrSTGbI/hRDPuk9ZzZjNq3M=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=1EGTIqaMnZ20WvwhrK5HJyKVXq+8oGrclAwcKwhe6KGPk/tWCDuXruwFjHJMHl/mC zec748CUpp6hh3JnYmZikYdQslK3KRiciR4vtCM2g06v1I8yLGkzTPOSrH8/Tra/wr AXGhHX6wcfzkqRuZ67Blfq0324kiMHAonhgX0+4E= Received: by mail-wr1-f42.google.com with SMTP id y3-v6so2982337wrh.10 for ; Fri, 02 Nov 2018 14:08:30 -0700 (PDT) X-Gm-Message-State: AGRZ1gIdyMrDNljV7fHZkX9pNH/l4USjkIH+GFIPQ86R55L6GdbhgA3L tGmEYKzRn76JY4AohT89xg/4Tl3IbROkndH3NuCx+w== X-Received: by 2002:a5d:410d:: with SMTP id l13-v6mr11379896wrp.61.1541192909398; Fri, 02 Nov 2018 14:08:29 -0700 (PDT) MIME-Version: 1.0 References: <1541113468-22097-1-git-send-email-atish.patra@wdc.com> <1541113468-22097-2-git-send-email-atish.patra@wdc.com> <20181102133100.GA13130@e107155-lin> <20181102155038.GA21067@e107155-lin> <0c94f752-cc18-ae0c-36e7-7e0dd6b1d307@wdc.com> In-Reply-To: <0c94f752-cc18-ae0c-36e7-7e0dd6b1d307@wdc.com> From: Rob Herring Date: Fri, 2 Nov 2018 16:08:17 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 1/2] dt-bindings: topology: Add RISC-V cpu topology. To: atish.patra@wdc.com Cc: Sudeep Holla , Rob Herring , linux-riscv@lists.infradead.org, palmer@sifive.com, Anup Patel , hch@infradead.org, Damien.LeMoal@wdc.com, Thomas Gleixner , Mark Rutland , Linux Kernel Mailing List , devicetree@vger.kernel.org, alankao@andestech.com, Zong Li Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 2, 2018 at 3:53 PM Atish Patra wrote: > > On 11/2/18 8:50 AM, Sudeep Holla wrote: > > On Fri, Nov 02, 2018 at 10:11:38AM -0500, Rob Herring wrote: > >> On Fri, Nov 2, 2018 at 8:31 AM Sudeep Holla wrote: > >>> > >>> On Fri, Nov 02, 2018 at 08:09:39AM -0500, Rob Herring wrote: > >>>> On Thu, Nov 1, 2018 at 6:04 PM Atish Patra wrote: > >>>>> > >>>>> Define a RISC-V cpu topology. This is based on cpu-map in ARM world. > >>>>> But it doesn't need a separate thread node for defining SMT systems. > >>>>> Multiple cpu phandle properties can be parsed to identify the sibling > >>>>> hardware threads. Moreover, we do not have cluster concept in RISC-V. > >>>>> So package is a better word choice than cluster for RISC-V. > >>>> > >>>> There was a proposal to add package info for ARM recently. Not sure > >>>> what happened to that, but we don't need 2 different ways. > >>>> > >>> > >>> We still need that, I can brush it up and post what Lorenzo had previously > >>> proposed[1]. We want to keep both DT and ACPI CPU topology story aligned. > >> > >> Frankly, I don't care what the ACPI story is. I care whether each cpu > > > > Sorry I meant feature parity with ACPI and didn't refer to the mechanics. > > > >> arch does its own thing in DT or not. If a package prop works for > >> RISC-V folks and that happens to align with ACPI, then okay. Though I > >> tend to prefer a package represented as a node rather than a property > >> as I think that's more consistent. > >> > > > > Sounds good. One of the reason for making it *optional* property is for > > backward compatibility. But we should be able to deal with that even with > > node. > > > > If you are introducing a package node, can we make cluster node > optional? I feel it is a redundant node for use cases where one doesn't > have a different grouped cpus in a package. Certainly not. A common doc can make every level optional and each arch can define what's mandatory. > We may have some architecture that requires cluster, it can be added to > the DT at that time, I believe. > > >> Any comments on the thread aspect (whether it has ever been used)? > >> Though I think thread as a node level is more consistent with each > >> topology level being a node (same with package). > >> > > Not 100% sure, the only multi threaded core in the market I know is > > Cavium TX2 which is ACPI. > > > > Any advantages of keeping thread node if it's not being used. If I am > not wrong, we can always use multiple cpuN phandles to represent SMT > nodes. It will result in less code and DT documentation as well. It's more consistent to make each level a node IMO and we've already discussed and defined it this way. I don't see how it's really less code or documentation. BTW, powerpc defined threads with multiple reg entries in the cpu nodes. You could do that if you wanted. Rob