Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp969972ybi; Tue, 16 Jul 2019 07:48:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqybGoskchOjQB+c2dSKspuogVBAY1wWKU2tR/mnzujOifl641+Ult3+TLtZPeMgeY5Dzrau X-Received: by 2002:a63:9245:: with SMTP id s5mr34914944pgn.123.1563288498081; Tue, 16 Jul 2019 07:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563288498; cv=none; d=google.com; s=arc-20160816; b=RXh5Zgc274vQDzizH/Z6WrTmcYfehb+4MRyJxyGMPWO7cq5OV+3lBKycY4RLfs8a0n 4+pacWCQAg9Y8R6OuIniqPxu3Ycih4M2GB+1Ok+YCcOtfDbNEPhJZV+0hQMUaFEgtGcB PPFXw02dAJD/KGia3f8LeTL30ZCJ/do43iiOjB+yhJeoL00UqqtM/J6NKLJv3a4O+lZU cF1UKSK3qS5y5TMDiYz9wa+cqOKTcG1sA1BwA0v3F8Ds5iEQvcsfpkYjSJo/odZXjgMh iVGC4uA5uYkGt1nChpQcT6q2Nn0oZcEJXLrMYM4JSUvZmGZH8lZrA1BlTzXHEy2kDgua 5ZfA== 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=mS8leKiMpf2GVPStA1kxuj3LsdPxD9GmNmSnZCj1Pz8=; b=F7sBsMsSAaw7QU/mzf3PegDKYCbHZbIofDTp7PT9QDn0hHQjtmUR+KtDLo4UonKxn9 GGwe6s9MR8ump5hDD4VJrd58heXuVmSwlUSrcyujTjYafzILkFoxv9dR6onEE0nbs0CN YjpuaEaN6DkryhVeQRk+QLF6/ksozsCSWfgX0SjRphJdcqcAJRHAhEda59sDKw6+euod bKoGOa8Rhlc7FFWBmc7vkFJD/B9UqKQ3wfoQCBmpjimI1Fvx28FVmMDUiMtS4qCSmneS AK33H/V8+vB/qg0E8kMSp3cwr6r8TB6/oukU5/kffoUl2DxnH2G5KllXAGqp6fM3nHCD Lp8Q== 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 o131si9240396pgo.445.2019.07.16.07.48.00; Tue, 16 Jul 2019 07:48:18 -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 S1728634AbfGPOrk (ORCPT + 99 others); Tue, 16 Jul 2019 10:47:40 -0400 Received: from foss.arm.com ([217.140.110.172]:35908 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726997AbfGPOrk (ORCPT ); Tue, 16 Jul 2019 10:47:40 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2B8F0337; Tue, 16 Jul 2019 07:47:39 -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 281E63F59C; Tue, 16 Jul 2019 07:47:36 -0700 (PDT) Date: Tue, 16 Jul 2019 15:47:30 +0100 From: Sudeep Holla To: Ulf Hansson Cc: Lorenzo Pieralisi , Mark Rutland , linux-arm-kernel@lists.infradead.org, "Rafael J . Wysocki" , Daniel Lezcano , "Raju P . L . S . S . S . N" , Amit Kucheria , Bjorn Andersson , Stephen Boyd , Niklas Cassel , Tony Lindgren , Kevin Hilman , Lina Iyer , Viresh Kumar , Vincent Guittot , Geert Uytterhoeven , Souvik Chakravarty , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Lina Iyer , Andy Gross , Sudeep Holla , David Brown Subject: Re: [PATCH 17/18] arm64: dts: Convert to the hierarchical CPU topology layout for MSM8916 Message-ID: <20190716144730.GA7250@e107155-lin> References: <20190513192300.653-1-ulf.hansson@linaro.org> <20190513192300.653-18-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190513192300.653-18-ulf.hansson@linaro.org> 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 Mon, May 13, 2019 at 09:22:59PM +0200, Ulf Hansson wrote: > From: Lina Iyer > > In the hierarchical layout, we are creating power domains around each CPU > and describes the idle states for them inside the power domain provider > node. Note that, the CPU's idle states still needs to be compatible with > "arm,idle-state". > > Furthermore, represent the CPU cluster as a separate master power domain, > powering the CPU's power domains. The cluster node, contains the idle > states for the cluster and each idle state needs to be compatible with the > "domain-idle-state". > > If the running platform is using a PSCI FW that supports the OS initiated > CPU suspend mode, which likely should be the case unless the PSCI FW is > very old, this change triggers the PSCI driver to enable it. > > Cc: Andy Gross > Cc: David Brown > Signed-off-by: Lina Iyer > Co-developed-by: Ulf Hansson > Signed-off-by: Ulf Hansson > --- [...] > @@ -166,12 +170,57 @@ > min-residency-us = <2000>; > local-timer-stop; > }; > + > + CLUSTER_RET: cluster-retention { > + compatible = "domain-idle-state"; > + arm,psci-suspend-param = <0x1000010>; > + entry-latency-us = <500>; > + exit-latency-us = <500>; > + min-residency-us = <2000>; > + }; > + > + CLUSTER_PWRDN: cluster-gdhs { > + compatible = "domain-idle-state"; > + arm,psci-suspend-param = <0x1000030>; > + entry-latency-us = <2000>; > + exit-latency-us = <2000>; > + min-residency-us = <6000>; > + }; > }; > }; I was trying to understand the composition of composite state parameters in this series and that made me look at these DT examples. What format does the above platform use ? I tried matching them to both original as well as extended format and I fail to understand. Assuming original format: State power_state PowerLevel StateType StateID SPC 0x40000002 0(core) 0(Retention) 0x2 (Res0 b[29]=1?) CLUSTER_RET 0x1000010 1(clusters) 0(Retention) 0x10 CLUSTER_PWRDN 0x1000030 1(clusters) 0(Retention?) 0x30 Now extended format: State power_state StateType StateID SPC 0x40000002 0(Retention) 0x40000002 (Res0 b[29]=1?) CLUSTER_RET 0x1000010 0(Retention) 0x1000010 CLUSTER_PWRDN 0x1000030 0(Retention?) 0x1000030 What am I missing ? -- Regards, Sudeep