Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1745185ybm; Tue, 21 May 2019 20:51:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqweu2urGw5WNw+07AbEVBdBT9VOZ0g+BBBNU9zq/mPiNPApK7ZANVlVIa0jy8VivT4BuQNA X-Received: by 2002:a62:e201:: with SMTP id a1mr92393381pfi.67.1558497079407; Tue, 21 May 2019 20:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558497079; cv=none; d=google.com; s=arc-20160816; b=TlX2PpkmjuYzmK4jqq+ji4AjvSTH7ZFRFNzJA4nS7XVg5lC5w20qGF+hSdXns4S+8i ZlW0XR9sqgxreM5qskBUIhqHMYHt8rCXMB9gRUER+7LENdEsciMY237lYPpgbG+Wc9RC NzCMmQf2M/atbkIvV9OcPYItprzM60TAZ33USj57dki2lDU1vX+sCM85a3dYV7sXDHJw gfECwiwYBvElw5XynP7l30wgx6uiiv0bB61t04+vqhw3PNNC6fJ6xR6HT6rLXp4+Qils U/fed3cCI/X8uxbwZAaQWYOyI+YtuswRtgYgS99fmoM5LZ5V7xpQJwZe3Zkx9JpRTjP5 xu2A== 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=+5eKx9BGX2PYwAXvbYXkSUqFGc5sUv/YklAZr9+T8Rw=; b=QKEDJdIPBRvjCr4oEKAGGiNyOQHcPMuxlH1kZOIQWYrEQAPAG2icbFAvq0c3cdNlM7 KOlkUBgurdbQBdDKr6XJnAgES9x7jn7gyAP0PigKN+vA/UInfIrII9Y+dbp/Q4qhRl2E 3hgVUFvfSBZ6OF8Ua3fKZPJSQppRqm/vWaSWkL8iqvyZncFqvju6fKhPu74WApJdf3Ty wZdSmYjLemlttb4wzk3q3Pros749RRdzg7eJoBAUpxwcTm24XsU/FkIh4T79dnHEhSZz FjkigzLJecPC99JRb5WKYGo/LLzqVCCCQM9eAgjCGoYppyob/VqcM+pBEc6+fNqmog+N lt4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tyAAgLvc; 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 p7si25940215pfb.213.2019.05.21.20.51.03; Tue, 21 May 2019 20:51:19 -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=tyAAgLvc; 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 S1728394AbfEVDt5 (ORCPT + 99 others); Tue, 21 May 2019 23:49:57 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36880 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727946AbfEVDt5 (ORCPT ); Tue, 21 May 2019 23:49:57 -0400 Received: by mail-pg1-f194.google.com with SMTP id n27so589242pgm.4 for ; Tue, 21 May 2019 20:49:56 -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=+5eKx9BGX2PYwAXvbYXkSUqFGc5sUv/YklAZr9+T8Rw=; b=tyAAgLvcoMiC8oNgVgpM66a4C26bapaZwCW6m/CC9aSsfe4zW++d7aOCFhCIN54Dnh I+hMnY3fIrQ3sRFlT2agmUpne7Rv661Yvq9rtEeq9VKo8UTLmE4KIN6u8MurOOks1vC/ Z4+/s5hEBnJ6rW9sU+07pUR9VT003WSUPsTzUoNchPwDezACujn/OA5T+Mi5tHHCtAka x0NLru9+XHhdP52IW1UXh1MWWGvtjlBNCMwYqDXWAPRpBKWU0WaRwsZBaoT3nM2hSu2J kfEGFjxmCkoWR4TgrH90NqT4s5HDSugQJly+yGhL38JtruG1Pd3yEHRnpJy/IkRYFJer iXFA== 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=+5eKx9BGX2PYwAXvbYXkSUqFGc5sUv/YklAZr9+T8Rw=; b=Jvi2peKCXP4IVFy5JrJongsHPScIJW8QujHVG0e4mijYT5LxsVA4VP/8MjOJKLFZ4a njBckiSyUQ7SbclN57FAWOPRFrAsdSJbVp/rpRD0OAWHm03I4Pw0SAK8MdzQqg94YZC2 95gHTS3/W3wOgrakFD+wssgSBHr6y9JvCsr/d+AcietJ1cGW8q+AYvf9V6c5WTiAGTo/ eD1lF8I3wJMGSt90VF1l6fAVGQIXtWW8pj/VRCywNAMlWD9l9wTt/8LVDaJYHFge6uVc eRb1gbPcTtRTskk/UHA4RICbcxVjbNydaA3YNj0iygGUbA3KLWVL+U9e88Mb433G2ets qSEA== X-Gm-Message-State: APjAAAXZ65GDlltoB7RJOO9y6hCpcVHqksetmQszJcyfMvcUg4WM7POu BfwdUShES/cRGYZ/Mc3Y/W3Txw== X-Received: by 2002:a63:b706:: with SMTP id t6mr81714275pgf.305.1558496996388; Tue, 21 May 2019 20:49:56 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 132sm23660233pga.79.2019.05.21.20.49.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 May 2019 20:49:55 -0700 (PDT) Date: Tue, 21 May 2019 20:49:53 -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 , devicetree@vger.kernel.org Subject: Re: [PATCH v2 6/9] arm64: dts: qcom: msm8996: Add PSCI cpuidle low power states Message-ID: <20190522034953.GM3137@builder> References: <2ffbb3f32484c03360ff7d6fa4668581ef298c9e.1558430617.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ffbb3f32484c03360ff7d6fa4668581ef298c9e.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: > Add device bindings for cpuidle states for cpu devices. > > msm8996 features 4 cpus - 2 in each cluster. However, all cpus implement > the same microarchitecture and the two clusters only differ in the > maximum frequency attainable by the CPUs. > > Signed-off-by: Amit Kucheria Applied Regards, Bjorn > --- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > index c761269caf80..4f2fb7885f39 100644 > --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi > @@ -95,6 +95,7 @@ > compatible = "qcom,kryo"; > reg = <0x0 0x0>; > enable-method = "psci"; > + cpu-idle-states = <&CPU_SLEEP_0>; > next-level-cache = <&L2_0>; > L2_0: l2-cache { > compatible = "cache"; > @@ -107,6 +108,7 @@ > compatible = "qcom,kryo"; > reg = <0x0 0x1>; > enable-method = "psci"; > + cpu-idle-states = <&CPU_SLEEP_0>; > next-level-cache = <&L2_0>; > }; > > @@ -115,6 +117,7 @@ > compatible = "qcom,kryo"; > reg = <0x0 0x100>; > enable-method = "psci"; > + cpu-idle-states = <&CPU_SLEEP_0>; > next-level-cache = <&L2_1>; > L2_1: l2-cache { > compatible = "cache"; > @@ -127,6 +130,7 @@ > compatible = "qcom,kryo"; > reg = <0x0 0x101>; > enable-method = "psci"; > + cpu-idle-states = <&CPU_SLEEP_0>; > next-level-cache = <&L2_1>; > }; > > @@ -151,6 +155,19 @@ > }; > }; > }; > + > + idle-states { > + entry-method = "psci"; > + > + CPU_SLEEP_0: cpu-sleep-0 { > + compatible = "arm,idle-state"; > + idle-state-name = "standalone-power-collapse"; > + arm,psci-suspend-param = <0x00000004>; > + entry-latency-us = <40>; > + exit-latency-us = <80>; > + min-residency-us = <300>; > + }; > + }; > }; > > thermal-zones { > -- > 2.17.1 >