Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6542591yba; Tue, 14 May 2019 09:14:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWlGBm6tcRfBjeOsb7OCpBCfGPIzWUroJdQuKCxqd3rmqE7iAqsGiH/MCOW8QTrV7ZSz7f X-Received: by 2002:a17:902:304:: with SMTP id 4mr2131142pld.120.1557850481059; Tue, 14 May 2019 09:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557850481; cv=none; d=google.com; s=arc-20160816; b=0RhxkSFsequ+vtGj4smoUhURL/6EMiuyfg8pAz/x8w/ZVanDlD0vf3jBpScaCcWP5H keaciUSIUnjCTY2ykUSoj2oU9fAhbLPtli6MlIZosdeL4boosmDA9CHXGEJkrZP1Qvj9 DwgSrwi4ZgzeVrhEExjcSdyb/lxLkO9/NIZZPOuKJbrtkBjWIHihuToG1GXMk4+ouZwy 9RGJWpsc8C1UEpTR2byPfnCvjaFJLSEaqPPkI5cASluvg03SUNXlGPrVGhl/Flg5Iu78 xDtdp0dW9HfJFXas0nn5OgN8qAo+YQarD7c9Wy6RzJuINfGSfXcgiBItgB8eAe7kjWeB SQoQ== 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=zfQddiOq+yGGXgJWvgghz1ralncjsTYvFgLd2q9NqWE=; b=Gd9Ozns4dtwTeoDu9hOrjQDetwWri7O6WPBZRro5ubL2vLrQIVOhjfPsPwErHjYR64 pLo1VAnRK3ZVJG0A0Pnzl68cIdYbeProZdAAqCSz3NnWZ+1PRieUfOIM3GLvgarLNUKc GMKN4sg8ayonyznwPmB3/qZ7UYZh90QyhmQgwoe5vByhZm3jgOaxpJyxWvNEsJrk1vFu 6so2ZFdiR8g1ET90Nx96FEEEdvZI8wZR9yYPuysTDTR4+W17+FM/734NXNSU6pcYEjyD C/316uJUHn0eRorUKTdozdq3hRQE2S0nv5FFwrd5r/ljsiSt3Xbybdwq3U9Ubd9WRdw2 7gEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="nNZvEWx/"; 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 t9si19543982pgv.294.2019.05.14.09.14.26; Tue, 14 May 2019 09:14:41 -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="nNZvEWx/"; 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 S1726599AbfENQM5 (ORCPT + 99 others); Tue, 14 May 2019 12:12:57 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:35830 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbfENQM4 (ORCPT ); Tue, 14 May 2019 12:12:56 -0400 Received: by mail-lj1-f195.google.com with SMTP id m20so3107106lji.2 for ; Tue, 14 May 2019 09:12:54 -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=zfQddiOq+yGGXgJWvgghz1ralncjsTYvFgLd2q9NqWE=; b=nNZvEWx/rFjfVThvl7XDlvrse2Tx/2cWqc4X+mp+jVlfV3qf+s7ufqbSaIalYSrw80 0eA0gHN629gImnlapJQJFp342J9gRE4yv7EZBFHDV5MZjL0x9RqlDFQP/irmJTLe88aS //Cfoia50oc2JNU0LsOPP1pAv53HFseGLC1k3oobOzAG043Q62ylR8CVyHmPTpTHFRuo w59D2+URas9X9dCu9eRGIS8+IV8S62UvBUuwtHZrWbX3vGDeyJLEsePQwbno3ovBkbCT W8WeBULQUWutSOpvNwxljTy0RLBP0AX0rCFicu+qf3A2r5AdFhXmjM5PkBCgeaxklOPB 8CEA== 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=zfQddiOq+yGGXgJWvgghz1ralncjsTYvFgLd2q9NqWE=; b=W3eLecOJ5qsBs9O6w0mSmEI/ZLnkHsDDKWRr7NEJ7QWjo/3WE2M98X/+NqF4Lct8Lo nYsUy1WkNfUTbxzz2ezcJbjoCsoQedogRbMIzbKN0PVwWO2X8H8n/p+TquOH7yT7winf iO1g73eTBEV8m3AnLD6yGvgWHpZf7TKNqjpz70dHB4woQcQLjdVQ36de3EzZPEQbm5mv a10ziK/eNrr5VX67nYg0eVAKUCgjolA8OYuIERWZiv0m9K5OA4SMNQwR7B0TJCq06oHh qS5PV+HX98SA9EAGgwEVZiUwKUOWgrOsWvLusKragNSgVxDQsoioUPCje7Ar3v3QXCsN C2+g== X-Gm-Message-State: APjAAAXc1KrdQ1Wnb2gpjixYuZsk7nHviD36aAeftWisti9AUCuhrRJ9 eorpwcfSzLYGCHu/epyDbAL0OA== X-Received: by 2002:a2e:9b92:: with SMTP id z18mr7595076lji.190.1557850373861; Tue, 14 May 2019 09:12:53 -0700 (PDT) Received: from centauri.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id j1sm799183lja.17.2019.05.14.09.12.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 14 May 2019 09:12:50 -0700 (PDT) Date: Tue, 14 May 2019 18:12:49 +0200 From: Niklas Cassel To: Amit Kucheria Cc: Linux Kernel Mailing List , linux-arm-msm , Bjorn Andersson , Andy Gross , David Brown , Li Yang , Shawn Guo , devicetree Subject: Re: [PATCHv1 6/8] arm64: dts: qcom: msm8996: Add PSCI cpuidle low power states Message-ID: References: <8648ba97d49a9f731001e4b36611be9650e37f37.1557486950.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8648ba97d49a9f731001e4b36611be9650e37f37.1557486950.git.amit.kucheria@linaro.org> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 10, 2019 at 04:59:44PM +0530, Amit Kucheria wrote: > Add device bindings for cpuidle states for cpu devices. > > Signed-off-by: Amit Kucheria > --- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 28 +++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > index c761269caf80..b615bcb9e351 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 = <&LITTLE_CPU_PD>; > 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 = <&LITTLE_CPU_PD>; > next-level-cache = <&L2_0>; > }; > > @@ -115,6 +117,7 @@ > compatible = "qcom,kryo"; > reg = <0x0 0x100>; > enable-method = "psci"; > + cpu-idle-states = <&BIG_CPU_PD>; > 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 = <&BIG_CPU_PD>; > next-level-cache = <&L2_1>; > }; > > @@ -151,6 +155,30 @@ > }; > }; > }; > + > + idle-states { > + entry-method="psci"; Please add a space before and after "=". > + > + LITTLE_CPU_PD: little-power-down { In Documentation/devicetree/bindings/arm/idle-states.txt they seem to use labels such as CPU_SLEEP_0_0 for the first cluster and CPU_SLEEP_1_0 for the second cluster. Please also consider my comment in patch 4/8. > + compatible = "arm,idle-state"; > + idle-state-name = "standalone-power-collapse"; > + arm,psci-suspend-param = <0x00000004>; > + entry-latency-us = <40>; > + exit-latency-us = <40>; Where did you get the latency values from? Downstream seems to use qcom,latency-us = <80> for "fpc". (Sure downstream also defines "fpc-def", but that seems to require additional psci code/calls that doesn't exist upstream.) > + min-residency-us = <300>; > + local-timer-stop; Are you sure that the local timer is stopped? the equivalent DT property to "local-timer-stop" in downstream is "qcom,use-broadcast-timer", and this property seems to be missing from this node: https://source.codeaurora.org/quic/la/kernel/msm-4.4/tree/arch/arm/boot/dts/qcom/msm8996-pm.dtsi?h=msm-4.4#n158 You could try to remove "local-timer-stop", if it is really needed, then the system should hang without this property. > + }; > + > + BIG_CPU_PD: big-power-down { > + compatible = "arm,idle-state"; > + idle-state-name = "standalone-power-collapse"; > + arm,psci-suspend-param = <0x00000004>; > + entry-latency-us = <40>; > + exit-latency-us = <40>; Where did you get the latency values from? Downstream seems to use qcom,latency-us = <80> for "fpc". (Sure downstream also defines "fpc-def", but that seems to require additional psci code/calls that doesn't exist upstream.) > + min-residency-us = <300>; > + local-timer-stop; Are you sure that the local timer is stopped? the equivalent DT property to "local-timer-stop" in downstream is "qcom,use-broadcast-timer", and this property seems to be missing from this node: https://source.codeaurora.org/quic/la/kernel/msm-4.4/tree/arch/arm/boot/dts/qcom/msm8996-pm.dtsi?h=msm-4.4#n247 You could try to remove "local-timer-stop", if it is really needed, then the system should hang without this property. > + }; > + }; > }; > > thermal-zones { > -- > 2.17.1 >