Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2871900imm; Mon, 13 Aug 2018 01:50:37 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxe9MLof9hdgkdmZSQ4F10AB6p/zvgAq089d2eKfS9jW/oUWXkMOY1jV1VObiTG5x/LFSsb X-Received: by 2002:a63:9e0a:: with SMTP id s10-v6mr16058997pgd.326.1534150237025; Mon, 13 Aug 2018 01:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534150236; cv=none; d=google.com; s=arc-20160816; b=es1zXpIX1PZMrvTf8wG/BrZF12InKsGxcEdBBo99YcPK1jvojoU54Oo7/D0diLxtRb h8BeUhihWI7zPBBNHUNU80qMcjgXFrs6qxp3uTG1V5eiMn+cZ+9c0DNE7gmCSnNtRJLD RdEQ4RwtAI1l9MRk4hn/MWJ7Y8K64bVkJ8iCY1SrYpeMtMVQq39Qu1SqrKQYyHfgF628 g13FbXukItagVJYeJYsajwaM/xW87ZWY2kgvPTsG2kStcVzpVGWDFIomR4qDDI09V830 2FIkqpLtcaTkxmUt+hyojB9UTHOZbm9cg6DlnEwi2JjFTSD7nOvaQa+XlXF5pT1Kmy73 994Q== 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=d88mczoZR+YC+l4aVxqwI48iMVSPFb9D7oDtnwELC8M=; b=UQCWB+ebEJrIB/wBYUkf3Bhx+jkbEBxV6nq4SMrwgDXtb4wCCNDCX+PmnsXsyVV+a+ ZvwB6b0dzSLXInR85S40lFaigKHYXkTY1vUWTcLKYnR1+rgAV9ItJlAbGFH9KqHhW7b6 2FYxGviOR04ULJEsSYhsdi7Cvs0U0+pyFDLJChFn498lWJEuCHML/7NphYdBiltNLKDx jaB/Oe1xFWUPyDKuZQAlULCLXYUK5yXh7wIKPhOwWL3mkLJXQQXH9at/pJVFYtQyM4TD 7vObb+VaEw7GlqlZRzd/8Ne0R+RR5ySIYGJceW6jloCWM/XAbNQT51Ko8YZJjB+yLvU9 pYoQ== 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 d1-v6si11893774plr.455.2018.08.13.01.50.22; Mon, 13 Aug 2018 01:50:36 -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 S1728770AbeHMLHA convert rfc822-to-8bit (ORCPT + 99 others); Mon, 13 Aug 2018 07:07:00 -0400 Received: from gloria.sntech.de ([185.11.138.130]:40096 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728582AbeHMLHA (ORCPT ); Mon, 13 Aug 2018 07:07:00 -0400 Received: from wd0180.dip.tu-dresden.de ([141.76.108.180] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fp8AX-00013D-Op; Mon, 13 Aug 2018 10:25:41 +0200 From: Heiko Stuebner To: Tao Huang Cc: Caesar Wang , Mark Rutland , devicetree@vger.kernel.org, Brian Norris , Xing Zheng , Masahiro Yamada , Catalin Marinas , dbasehore@chromium.org, Will Deacon , dianders@chromium.org, Rob Herring , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, tony.xie@rock-chips.com, David Wu , cf@rock-chips.com, Jianqun Xu , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] arm64: dts: rockchip: Add idle-states to device tree for rk3399 Date: Mon, 13 Aug 2018 10:25:41 +0200 Message-ID: <3578407.YVa0lydFsh@phil> In-Reply-To: References: <1467793254-10808-1-git-send-email-wxt@rock-chips.com> <5620784.b19SH5PkdR@phil> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tao, Am Sonntag, 12. August 2018, 18:24:45 CEST schrieb Tao Huang: > On 2018年08月10日 04:09, Heiko Stuebner wrote: > > Am Mittwoch, 6. Juli 2016, 10:20:54 CEST schrieb Caesar Wang: > > > >> 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. > Yes, we have another values. So the values of this patch are wrong. > > > > There also was a cluster-idle state added for a while but that seems to > > cause audio issues according to the CrOS history. > > DMA or Audio driver should add PM_QOS_CPU_DMA_LATENCY or other methods to avoid the effects of idle. > Idle itself is good. Thanks for the clarification. Do you know if some from Rockchip plans on submitting a new version of the patch with changed timings and cluster-sleep? Otherwise I can also just pull the values from the vendor kernel so that we get idle states in mainline as well. Thanks Heiko