Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1752710ybm; Tue, 21 May 2019 21:01:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGtv8tF8MJ4AhD1wScdychTeixu7kr1oDbUUuJcJZbmdhI7HKbcKbuOyq1ZUihO0qYLPbj X-Received: by 2002:a17:902:54f:: with SMTP id 73mr87869327plf.140.1558497688836; Tue, 21 May 2019 21:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558497688; cv=none; d=google.com; s=arc-20160816; b=ntT4ukvrv8IL9Gx1n4ETTXqmAP6ty1jDTj1FNE7Fp8I0F9U5RLQ5ZZXZC5weJhgftv mKRGI1l89s9xO17y45GCmnc26VzAUrSzzbs9Uujn16/4D0j/vba+9kasuqAfpZHByqtp NbDQJqmYIItmJj1toaykslAksbhRtTvDeSt0UGfsqFV/y0JpjCxXqAuU3iVVvn23tqxF +S1fNkBEj5wbQXokbyV1zMXWjhWqzT9vnWv2brVQct3CpQ4P+0beK9qwgHaFwp26Umvy gAbmlzxx6Hspq6SPIwV1joSi4q9O1Ph2MfihEcSxHaVheuFJQHqQybHnmi9onx3S82Qy xWFw== 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:dkim-signature; bh=4mGp/RVFJWnTD/Q9wDJvqePP0STvNYmZjwcAHTYvGuA=; b=sSmOW2WCbE0tfYStnD3fj9n6rkute/t7SpkVIYwRmdwgrFaxER8gpbexAYAUjohpFn tVRvU9vU8pCWoe9nMETvJ0nz9G7iJtL2nInD1u3JVizHcFzsFCXq2SxpWObjvxAfsUvL tMZXNSp37doJwB8c6oWs414y9SWWlYwYxd02F6qoJQnL0lF/tcOTiSPEYT0SKC7d3koS JewaSy7krY0OMvfGliL4EekzjZ81pb4rsQmn0qQXM/2FQzF4g05ZhF+exLa7952H/g4d zbGOq6XQj0u+6HsOVhSvI1Skwr6cH/tC6mf8L1Q00HXEJ9+uWDJ51J45jwlxav1zaV/j g41Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lmvy3Lil; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b40si24230981plb.107.2019.05.21.21.01.08; Tue, 21 May 2019 21:01:28 -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=@linaro.org header.s=google header.b=lmvy3Lil; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728210AbfEVD7v (ORCPT + 99 others); Tue, 21 May 2019 23:59:51 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:36150 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727733AbfEVD7v (ORCPT ); Tue, 21 May 2019 23:59:51 -0400 Received: by mail-pl1-f196.google.com with SMTP id d21so389230plr.3 for ; Tue, 21 May 2019 20:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4mGp/RVFJWnTD/Q9wDJvqePP0STvNYmZjwcAHTYvGuA=; b=lmvy3Lil+GnYr+FE7U2+jS9pdx2E8qSCKzedcOVr2rTy/BvwqQPNKeArOrGk2F1hAT vlLTJwTIpuQ8Ze6IajIJ/J2yzjpOoET5dX8xnHQf49XILpP8ZMgvE750UBMR+7HXWtdo 8MY9W5HbnnFdAzNsT/mgl2pqZoM9acxeah349NLcYXMi1282OUlzcDUd32oJ0F/HA9EB PbxhEoCBvICEIVQQma69HWM9qNveB+wnnJPtTyALqZgKThyU3rFQo5Bzr/wGO57A/S7H 8+N5UH3ewRr04bd9mLjkOH/qI2NbwVOSOhgXnFkz/mAxWlf3gMynTezFAH7OAsB/9xxs OBRQ== 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=4mGp/RVFJWnTD/Q9wDJvqePP0STvNYmZjwcAHTYvGuA=; b=jjMJUZKuA/1jadjBUP4mImFmiKZ7JZzvJ+V0kzdeqf/2Te55NnU92DBgWb1q3Gx+TY t44bFCqlLD6FJ/UOAt3DEm72Sq15wlbaDNkad9egkiZUCMbxzGS9ZsNo2BV/HPQC0aQ4 nLWwnkgxKbnNwMpgCNMBrIvw7BNmmNUBSpDkz2t0UQ02nlPq1dJXqOphwo4VLxh9xcXn iIDy6vMndhCThdJMDmXKopdnHTQ9qIHr4TfPMyfrwHXtxARQlQnESVl5XH47c67lxS8p BR5IlhSygLkGwkXg5e2kffsjpVHeDHrMPQfVzinm92TC8tZ6/qz1rF1lou3lZPSuBabT jLoA== X-Gm-Message-State: APjAAAWx491l5TkvMshuQ3gHBL/iY3RTRjdovoiMq7hJGXOj0bF+TvCp 5Ajxn0GgRjoCRU8+FIfje5K7uQ== X-Received: by 2002:a17:902:2aab:: with SMTP id j40mr64546756plb.238.1558497590003; Tue, 21 May 2019 20:59:50 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id h13sm23043665pgk.55.2019.05.21.20.59.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 May 2019 20:59:49 -0700 (PDT) Date: Tue, 21 May 2019 20:59:46 -0700 From: Bjorn Andersson To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, agross@kernel.org, niklas.cassel@linaro.org, marc.w.gonzalez@free.fr, sibis@codeaurora.org, daniel.lezcano@linaro.org, Andy Gross , David Brown , Li Yang , Shawn Guo , "Raju P.L.S.S.S.N" , mkshah@codeaurora.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 8/9] arm64: dts: qcom: sdm845: Add PSCI cpuidle low power states Message-ID: <20190522035946.GO3137@builder> References: <67d61032221b069082222347fb56effe17d4a7c3.1558430617.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67d61032221b069082222347fb56effe17d4a7c3.1558430617.git.amit.kucheria@linaro.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 21 May 02:35 PDT 2019, Amit Kucheria wrote: > From: "Raju P.L.S.S.S.N" > > Add device bindings for cpuidle states for cpu devices. > > Cc: > Signed-off-by: Raju P.L.S.S.S.N > Reviewed-by: Evan Green > [amit: rename the idle-states to more generic names and fixups] > Signed-off-by: Amit Kucheria > Acked-by: Daniel Lezcano > --- Applied Thanks, Bjorn > arch/arm64/boot/dts/qcom/sdm845.dtsi | 69 ++++++++++++++++++++++++++++ > 1 file changed, 69 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index 5308f1671824..a0ae6bf033ee 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -119,6 +119,7 @@ > compatible = "qcom,kryo385"; > reg = <0x0 0x0>; > enable-method = "psci"; > + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 &CLUSTER_SLEEP_0>; > qcom,freq-domain = <&cpufreq_hw 0>; > #cooling-cells = <2>; > next-level-cache = <&L2_0>; > @@ -136,6 +137,8 @@ > compatible = "qcom,kryo385"; > reg = <0x0 0x100>; > enable-method = "psci"; > + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 > + &CLUSTER_SLEEP_0>; > qcom,freq-domain = <&cpufreq_hw 0>; > #cooling-cells = <2>; > next-level-cache = <&L2_100>; > @@ -150,6 +153,8 @@ > compatible = "qcom,kryo385"; > reg = <0x0 0x200>; > enable-method = "psci"; > + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 > + &CLUSTER_SLEEP_0>; > qcom,freq-domain = <&cpufreq_hw 0>; > #cooling-cells = <2>; > next-level-cache = <&L2_200>; > @@ -164,6 +169,8 @@ > compatible = "qcom,kryo385"; > reg = <0x0 0x300>; > enable-method = "psci"; > + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 > + &CLUSTER_SLEEP_0>; > qcom,freq-domain = <&cpufreq_hw 0>; > #cooling-cells = <2>; > next-level-cache = <&L2_300>; > @@ -178,6 +185,8 @@ > compatible = "qcom,kryo385"; > reg = <0x0 0x400>; > enable-method = "psci"; > + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1 > + &CLUSTER_SLEEP_0>; > qcom,freq-domain = <&cpufreq_hw 1>; > #cooling-cells = <2>; > next-level-cache = <&L2_400>; > @@ -192,6 +201,8 @@ > compatible = "qcom,kryo385"; > reg = <0x0 0x500>; > enable-method = "psci"; > + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1 > + &CLUSTER_SLEEP_0>; > qcom,freq-domain = <&cpufreq_hw 1>; > #cooling-cells = <2>; > next-level-cache = <&L2_500>; > @@ -206,6 +217,8 @@ > compatible = "qcom,kryo385"; > reg = <0x0 0x600>; > enable-method = "psci"; > + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1 > + &CLUSTER_SLEEP_0>; > qcom,freq-domain = <&cpufreq_hw 1>; > #cooling-cells = <2>; > next-level-cache = <&L2_600>; > @@ -220,6 +233,8 @@ > compatible = "qcom,kryo385"; > reg = <0x0 0x700>; > enable-method = "psci"; > + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1 > + &CLUSTER_SLEEP_0>; > qcom,freq-domain = <&cpufreq_hw 1>; > #cooling-cells = <2>; > next-level-cache = <&L2_700>; > @@ -228,6 +243,60 @@ > next-level-cache = <&L3_0>; > }; > }; > + > + idle-states { > + entry-method = "psci"; > + > + LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { > + compatible = "arm,idle-state"; > + idle-state-name = "little-power-down"; > + arm,psci-suspend-param = <0x40000003>; > + entry-latency-us = <350>; > + exit-latency-us = <461>; > + min-residency-us = <1890>; > + local-timer-stop; > + }; > + > + LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { > + compatible = "arm,idle-state"; > + idle-state-name = "little-rail-power-down"; > + arm,psci-suspend-param = <0x40000004>; > + entry-latency-us = <360>; > + exit-latency-us = <531>; > + min-residency-us = <3934>; > + local-timer-stop; > + }; > + > + BIG_CPU_SLEEP_0: cpu-sleep-1-0 { > + compatible = "arm,idle-state"; > + idle-state-name = "big-power-down"; > + arm,psci-suspend-param = <0x40000003>; > + entry-latency-us = <264>; > + exit-latency-us = <621>; > + min-residency-us = <952>; > + local-timer-stop; > + }; > + > + BIG_CPU_SLEEP_1: cpu-sleep-1-1 { > + compatible = "arm,idle-state"; > + idle-state-name = "big-rail-power-down"; > + arm,psci-suspend-param = <0x40000004>; > + entry-latency-us = <702>; > + exit-latency-us = <1061>; > + min-residency-us = <4488>; > + local-timer-stop; > + }; > + > + CLUSTER_SLEEP_0: cluster-sleep-0 { > + compatible = "arm,idle-state"; > + idle-state-name = "cluster-power-down"; > + arm,psci-suspend-param = <0x400000F4>; > + entry-latency-us = <3263>; > + exit-latency-us = <6562>; > + min-residency-us = <9987>; > + local-timer-stop; > + }; > + }; > }; > > pmu { > -- > 2.17.1 >