Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2285284imd; Fri, 2 Nov 2018 08:51:38 -0700 (PDT) X-Google-Smtp-Source: AJdET5cyZAWw/5+KUyeCFeY1tOyoQtZ5FOyelzuFfGNwfn03tMX5Ge8IZXCKs+a87Vdg80+HG3RO X-Received: by 2002:a63:9f0a:: with SMTP id g10-v6mr10805969pge.232.1541173898051; Fri, 02 Nov 2018 08:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541173898; cv=none; d=google.com; s=arc-20160816; b=kThh38ISnB1GYi6LFZ9Dj34UlULLMLVUOnCvHq7Tbuz0x1aViAK8ecYc8KFn4x85FI v59O590O1FaniIRb1b4UGxvtyqBpEuSJidIWzGQoPoxZTc5IJ2hzR/Xn45UEg7GNhjVw av+W54GulxqQYG7gZDUwQSxSdxPMdEpRBMW11dxEhWPoY+rWuQNYVAGVuMKKNtRrhnlR Of6ATnVDpZtAR2MdAIoP5uMFqph8wHzO8vcS0ZT1ImR9SInCxWUz5e28WwHaOhwvddZr m8haWlIrlSLlWaFdhSlWcv7WSxOpAE1sdASpmbgO3/BUkehUJKoMEzdpQ6WVbk9jG6Kw 9kLg== 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=tJ2V05Zno4RbUs0/mY2vmk0GVlIHr7ohnegzljPIwRA=; b=jdrBHRr6matmWyq3y65zZq3Smlxd88gxm9F93IZEJlzG5OoeMirQJCRg8jJAMIs2lL L0jyx2asCFBARQQ/P6Sf7ALfi0DNQVSxK7gMBHqxMKL2OL22pfG7hCfPVGEZbluqOmof Raclc/kPCksVwUQSfPfRw9Nrkm7JaTN9am5vFS5iV/2LbpP7yTdASAuybvy/IQ+IKy5W P66yBx+nPAL3eRL2VbS9ksUiuEfdGPYWpx/WodNfxeaImlnA+4Jp5r0+gzPkOnlgpgXV 5KFvAykuzT7UrMbMtJ4V8SAC2zbxaFTOaOZj1uEggf3eHMGBjoxrs+Ewllj/TRmYxOCG Wsjg== 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 z8-v6si33196791plk.352.2018.11.02.08.51.23; Fri, 02 Nov 2018 08:51:38 -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 S1727941AbeKCA6T (ORCPT + 99 others); Fri, 2 Nov 2018 20:58:19 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:43306 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbeKCA6T (ORCPT ); Fri, 2 Nov 2018 20:58:19 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E40131596; Fri, 2 Nov 2018 08:50:46 -0700 (PDT) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 72CDA3F718; Fri, 2 Nov 2018 08:50:44 -0700 (PDT) Date: Fri, 2 Nov 2018 15:50:38 +0000 From: Sudeep Holla To: Rob Herring Cc: Atish Patra , linux-riscv@lists.infradead.org, Palmer Dabbelt , Anup Patel , Christoph Hellwig , Damien.LeMoal@wdc.com, Thomas Gleixner , Mark Rutland , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, alankao@andestech.com, Sudeep Holla , Zong Li Subject: Re: [RFC 1/2] dt-bindings: topology: Add RISC-V cpu topology. Message-ID: <20181102155038.GA21067@e107155-lin> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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. -- Regards, Sudeep