From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25155C7618F for ; Tue, 16 Jul 2019 20:36:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E0FC420659 for ; Tue, 16 Jul 2019 20:36:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="gVAshI+c"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="lxqeIxL7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388568AbfGPUgf (ORCPT ); Tue, 16 Jul 2019 16:36:35 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41696 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728807AbfGPUgf (ORCPT ); Tue, 16 Jul 2019 16:36:35 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0B0EE61778; Tue, 16 Jul 2019 20:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563309394; bh=hofFwRcWzR8HLOCx0JLYE7YouqvH4oqoWzq69rSYnWk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gVAshI+cMlo+QAiwi0nx4iSoU/ncPLOvM5fCbM1+o+4gd1UcNZEI1EkEPthXsUWa2 OT3mPq4xmjl1zCwt93RJOdEaZd9mf+TwY7ix7hTK33gcJTtV2V7zmKIHrx4gGkvoUQ g2meXUA0pB3EmKchWbnUKWYg+RzrvcC65qKErylQ= Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8A23A60D35; Tue, 16 Jul 2019 20:36:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563309392; bh=hofFwRcWzR8HLOCx0JLYE7YouqvH4oqoWzq69rSYnWk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lxqeIxL7fH5wgBEIJ0eRhQRdb7GTxejCZarchIbaJIAS09QQkab2nu3r6udvHLYqk /bomMgRWEmfzlKzBIgRw90HK0pPIcct1a1Gr9EWMeMK6UxIBSSvgoBW8i+E/1Y5oyT wHBsZ+RKidkAiWX7UgwhDvAbCXnOUgqgGAsyE6LA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8A23A60D35 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Tue, 16 Jul 2019 14:36:31 -0600 From: Lina Iyer To: Sudeep Holla Cc: Ulf Hansson , 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 , 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 , David Brown Subject: Re: [PATCH 17/18] arm64: dts: Convert to the hierarchical CPU topology layout for MSM8916 Message-ID: <20190716203631.GC25567@codeaurora.org> References: <20190513192300.653-1-ulf.hansson@linaro.org> <20190513192300.653-18-ulf.hansson@linaro.org> <20190716144730.GA7250@e107155-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190716144730.GA7250@e107155-lin> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Tue, Jul 16 2019 at 08:47 -0600, Sudeep Holla wrote: >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. > This was meant to depict a hierarchical state format for OSI. >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 The composite state would comprise of CPU state and Cluster state. So for the last CPU entering idle - (CLUSTER_RET | SPC) 0x41000012 > CLUSTER_PWRDN 0x1000030 0(Retention?) 0x1000030 > (CLUSTER_PWRDN | SPC) 0x41000032 Hope this helps. Lina From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC6B9C7618F for ; Tue, 16 Jul 2019 20:36:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 815BE20659 for ; Tue, 16 Jul 2019 20:36:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MPV6Gh8i"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="lXxMM2xk"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="lxqeIxL7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 815BE20659 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xZ3kh5PzuvWIS3cTMJ57EEXkOA2aWsvA/bPcVvHVX54=; b=MPV6Gh8iWqRQVe+mwGlWCssxa GUFhx1TCi4LpPtifNikq3jjX9QPy6zW63cb4tS9dtafN9WzktkurGc4Vn0C/mTSWivqvq2bAaPrsP klCPIKfmJ0D20wLiFCi8f4hBpRXSuaQfWZ6xCd3T5ydlpQiByaLoCgPJ7YQb++QHpyHzGhJxNk/WE jQ+z2y0OmYPSVICk5o9BPIEqrhWChseVitOXm790Xb+I/OXfXAlBFEtx8DskADsYXpfMGZbQB0x8K +uxIBuA5CaDGlhXYAfiZ4crMcYhWKj/r9BHfr94uBALh0iYhMciRSY9qsh9s5qOOTy576HFff2WiW h8hQy6EYw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hnUBh-0000MQ-Lv; Tue, 16 Jul 2019 20:36:37 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hnUBe-0000Gq-JR for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2019 20:36:35 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E2AD760D35; Tue, 16 Jul 2019 20:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563309393; bh=hofFwRcWzR8HLOCx0JLYE7YouqvH4oqoWzq69rSYnWk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lXxMM2xkk+eaYYG0HrehOgXt9YpY7UsHsTNWX24dt1R4vyloC1lnt8yneZoXGqMza ZVpi3BhxrKPGhx2JbYFyfVzXNEbStS6i4ve23JxjY31b4PLh3v5rL74u1OY8xyEnJG lAB7fI63LqvmaYXUU1fbKIBzIPXxWAHd1uBexFHU= Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8A23A60D35; Tue, 16 Jul 2019 20:36:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563309392; bh=hofFwRcWzR8HLOCx0JLYE7YouqvH4oqoWzq69rSYnWk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lxqeIxL7fH5wgBEIJ0eRhQRdb7GTxejCZarchIbaJIAS09QQkab2nu3r6udvHLYqk /bomMgRWEmfzlKzBIgRw90HK0pPIcct1a1Gr9EWMeMK6UxIBSSvgoBW8i+E/1Y5oyT wHBsZ+RKidkAiWX7UgwhDvAbCXnOUgqgGAsyE6LA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8A23A60D35 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Tue, 16 Jul 2019 14:36:31 -0600 From: Lina Iyer To: Sudeep Holla Subject: Re: [PATCH 17/18] arm64: dts: Convert to the hierarchical CPU topology layout for MSM8916 Message-ID: <20190716203631.GC25567@codeaurora.org> References: <20190513192300.653-1-ulf.hansson@linaro.org> <20190513192300.653-18-ulf.hansson@linaro.org> <20190716144730.GA7250@e107155-lin> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190716144730.GA7250@e107155-lin> User-Agent: Mutt/1.11.3 (2019-02-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190716_133634_675766_44E1BCE6 X-CRM114-Status: GOOD ( 12.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Ulf Hansson , Geert Uytterhoeven , Tony Lindgren , Viresh Kumar , Bjorn Andersson , David Brown , Lina Iyer , Lorenzo Pieralisi , Kevin Hilman , Daniel Lezcano , Andy Gross , "Raju P . L . S . S . S . N" , Souvik Chakravarty , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stephen Boyd , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, Amit Kucheria , Niklas Cassel Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jul 16 2019 at 08:47 -0600, Sudeep Holla wrote: >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. > This was meant to depict a hierarchical state format for OSI. >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 The composite state would comprise of CPU state and Cluster state. So for the last CPU entering idle - (CLUSTER_RET | SPC) 0x41000012 > CLUSTER_PWRDN 0x1000030 0(Retention?) 0x1000030 > (CLUSTER_PWRDN | SPC) 0x41000032 Hope this helps. Lina _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel