Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2451260imm; Thu, 9 Aug 2018 13:11:17 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwww6bRAyzCvU/bQ4JiT+cuxTH14tQexUIt73a49gdZgFF5uRf0jR1p6LzG0laJHJ9xYKSf X-Received: by 2002:a62:2c95:: with SMTP id s143-v6mr3828238pfs.3.1533845477861; Thu, 09 Aug 2018 13:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533845477; cv=none; d=google.com; s=arc-20160816; b=U1buGsnt4cIx/08gJxu6vnuHUSqKaZyZZ37GzL2Ytk3iICB+7hcUzHbFxZE2EhochJ n/5nMbsaOI2e2ev0PSN5AiF8C9IuQCcTv4wcr35TT85PTUVTk2NJeKG8XVaNoJ5wN1RV Ktv53bN8crlAZtTQKPENfYlmc70Wg/02UiXc6HNZYLeexkqCv2EZcr3Ld39yQeobpsqE GyckBMBrioCCcusHc4va0XchxztrwNNi3o908NlUgVzxNtKJDHhz+ePrzflPSFZFX0Qf 1KaQkV+jV/goRElO7cmDPoFnAB1YyPNJ9D7ZWmuToa6UVm6Sx8xTrh6CLF+723d5COTt x7Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=xTGXbDiw5hqjGqkawY4nDwwvOa1dosnWSx6yhEIX3J8=; b=0yPQWgzbnOMR+Ce5N0fi5BiPusvnJXcy+Pv3GppTFSqLA8e2PzhzirivswhQHZp/Jn SimcvXd/35FZAeq7n4ttGlIVoPqQAXcobNIJsk6vXEmm4jjMiFG4AcfkCxHJuZQjwl9a P1u8NosHb0w90zXUO9S0TDeBY4VfE9Fx5mpKKnsjmszFuGP2Gn/deRDTv9G6U++WGA17 0kP2Qy+hNKBHM6WatJSw27uy5Sqx6DSkNPSvNQs14TykP00wxY7a2GN6fmWQuxU8IRH8 WPuUbylNcEXV2OqIH4xmZwOVlKwAFYJ6BmdWGLfYHsihLc26z5PV1WN2uT0YRg9eyNli 7xOw== 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 a13-v6si7939881pgj.495.2018.08.09.13.11.03; Thu, 09 Aug 2018 13:11:17 -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 S1727141AbeHIWg2 (ORCPT + 99 others); Thu, 9 Aug 2018 18:36:28 -0400 Received: from gloria.sntech.de ([185.11.138.130]:44748 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbeHIWg2 (ORCPT ); Thu, 9 Aug 2018 18:36:28 -0400 Received: from p5b127c76.dip0.t-ipconnect.de ([91.18.124.118] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fnrFf-0002vB-SS; Thu, 09 Aug 2018 22:09:43 +0200 From: Heiko Stuebner To: Caesar Wang Cc: dianders@chromium.org, linux-rockchip@lists.infradead.org, cf@rock-chips.com, linux-arm-kernel@lists.infradead.org, tony.xie@rock-chips.com, dbasehore@chromium.org, Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Brian Norris , Jianqun Xu , Xing Zheng , Masahiro Yamada , David Wu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: rockchip: Add idle-states to device tree for rk3399 Date: Thu, 09 Aug 2018 22:09:42 +0200 Message-ID: <5620784.b19SH5PkdR@phil> In-Reply-To: <1467793254-10808-1-git-send-email-wxt@rock-chips.com> References: <1467793254-10808-1-git-send-email-wxt@rock-chips.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 6. Juli 2016, 10:20:54 CEST schrieb Caesar Wang: > As the rk3399 ATF had been supported on ARM github [0], so we can add > idle-states for rk3399. > This patch adds idle-states bindings data collected through tests > experiments (latency and energy consumption) on rk3399 evb2 board. > > You can see detail idle-states definitions on document [1]. > > * arm,psci-suspend-param: power_state parameter to pass to the PSCI > suspend call. > * entry-latency: Worst case latency required to enter the idle state. The > exit-latency may be guaranteed only after entry-latency has passed. > * min-residency: Minimum period, including preparation and entry, for a > given idle state to be worthwhile energywise > * min-residency: Minimum period, including preparation and entry, for a > given idle state to be worthwhile energywise. > > [0]: > https://github.com/ARM-software/arm-trusted-firmware > [1]: > Documentation/devicetree/bindings/arm/psci.txt > Documentation/devicetree/bindings/arm/idle-states.txt > > Signed-off-by: Caesar Wang Looks like this patch slipped through the cracks and nobody reposted them over time. > arch/arm64/boot/dts/rockchip/rk3399.dtsi | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi > index a6dd623..12ce265 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi > @@ -101,6 +101,18 @@ > }; > }; > > + idle-states { > + entry-method = "psci"; > + cpu_sleep: cpu-sleep-0 { > + compatible = "arm,idle-state"; > + local-timer-stop; > + arm,psci-suspend-param = <0x0010000>; > + entry-latency-us = <350>; > + exit-latency-us = <600>; > + min-residency-us = <1150>; Looking at the chromeos kernel, there are some more patches adapting this idle-state to use different timings. There also was a cluster-idle state added for a while but that seems to cause audio issues according to the CrOS history. In any case, I'll try to look at this shortly. Heiko