Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1493831ybm; Thu, 23 May 2019 01:53:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwo6R0uK7NX5c1pjrQW+YDYjYnFNjtcEmEJK6THrApENQaHRKx8UGSxkE1UbYQ4CbKZG5wp X-Received: by 2002:a17:90a:d683:: with SMTP id x3mr239412pju.42.1558601638179; Thu, 23 May 2019 01:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558601638; cv=none; d=google.com; s=arc-20160816; b=N+1dybcqCxCKHmx8h7coidQ2ktIFIcp+4aT9Jcsk12gyROTg0s+wziIAFprlxaQybV vLhoPy4LjQJwXn4hWtuxtWQnUzwAi122WG1F+/duvt3IObtuMnu6xzOEdFvvoIa0LnQp TF3Ixpio9BXOsb5d1Mfia1m1z7GYhjc4N3Ki6s2aeqtpVmGI9+bwtPep9gvLImLSgxGc 9FhfrgFoeuIllKyycOg5t2ly3N/0b1jhDBeVzLYtnWHZXCfhiCfDc0EbA6jMYnyOqxfH MdbuyrO8Rk02nhVZwpHyNup2mQfJh3NfMw1j55fysMfWG1hfAiom5nI2o07eWLbk0jHg zwLA== 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=eXg4RCwLuIOPEb/7GhE5vdb6+rQWErkA09fUIFkw7ws=; b=Pi/T7eB8hJ5/CLLb/ZYT+Hp/E4EPbL6M9kayNAKV3mC0LSTUdIUOCrSUmVeV0f7cqc /UmXlsqyXjh6qOR7lVDydIL4icyXTR70ATUCrN0gT+qHXwheLSamPTEPXKH7BX5mFHBx STu7676Jabk96vv8/bcY6Y71Ln5XBSP8JuihbVBSjlOEBPGR8nd5WZGx8+XOQce/2Iit EbeWdaDuGax2l6+7rqcJAcHSdDysspVQzijf5rmd8t9I/4j7E1iY3L0oTYIlykFgVHDs Ioj+RN6YwbzVzadp0JZBuwjcMkrFcL/D7fPqeOLz4Z1z7Z2WAmeMenbxLr1SO/1AII7K 5bWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="cGQ/xj15"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si28124579pgl.241.2019.05.23.01.53.39; Thu, 23 May 2019 01:53:58 -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=@kernel.org header.s=default header.b="cGQ/xj15"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730102AbfEWIwF (ORCPT + 99 others); Thu, 23 May 2019 04:52:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:34272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbfEWIwE (ORCPT ); Thu, 23 May 2019 04:52:04 -0400 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9633220675; Thu, 23 May 2019 08:52:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558601523; bh=GvIxnz2QDkzaDXhCwkyYIbh58BouSz387m9539g/2A8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cGQ/xj15H4e7wzpcSW5LwgkL0k2fAuxUfKby8GOqJq7U+CObYxAh8WO4TLHsuSU42 5OmnsByuClenpeucDd2R6GXBQ9Q2yBeqlfsJP9xf/abAQ4i3T1VngiNyi/Mf833qTw +QEBNS3NTcj3UbMAhjKZ/c3iC5Hv1hkYAHSrkH3c= Date: Thu, 23 May 2019 16:51:04 +0800 From: Shawn Guo To: Ran Wang , Bhaskar Upadhaya Cc: Li Yang , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: dts: ls1028a: Fix CPU idle fail. Message-ID: <20190523085104.GP9261@dragon> References: <20190517045753.3709-1-ran.wang_1@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190517045753.3709-1-ran.wang_1@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 17, 2019 at 12:57:53PM +0800, Ran Wang wrote: > PSCI spec define 1st parameter's bit 16 of function CPU_SUSPEND to > indicate CPU State Type: 0 for standby, 1 for power down. In this > case, we want to select standby for CPU idle feature. But current > setting wrongly select power down and cause CPU SUSPEND fail every > time. Need this fix. > > Fixes: 8897f3255c9c ("arm64: dts: Add support for NXP LS1028A SoC") > Signed-off-by: Ran Wang Leo, Bhaskar, Do you guys agree with it? Shawn > --- > arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 18 +++++++++--------- > 1 files changed, 9 insertions(+), 9 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > index b045812..bf7f845 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > @@ -28,7 +28,7 @@ > enable-method = "psci"; > clocks = <&clockgen 1 0>; > next-level-cache = <&l2>; > - cpu-idle-states = <&CPU_PH20>; > + cpu-idle-states = <&CPU_PW20>; > }; > > cpu1: cpu@1 { > @@ -38,7 +38,7 @@ > enable-method = "psci"; > clocks = <&clockgen 1 0>; > next-level-cache = <&l2>; > - cpu-idle-states = <&CPU_PH20>; > + cpu-idle-states = <&CPU_PW20>; > }; > > l2: l2-cache { > @@ -53,13 +53,13 @@ > */ > entry-method = "arm,psci"; > > - CPU_PH20: cpu-ph20 { > - compatible = "arm,idle-state"; > - idle-state-name = "PH20"; > - arm,psci-suspend-param = <0x00010000>; > - entry-latency-us = <1000>; > - exit-latency-us = <1000>; > - min-residency-us = <3000>; > + CPU_PW20: cpu-pw20 { > + compatible = "arm,idle-state"; > + idle-state-name = "PW20"; > + arm,psci-suspend-param = <0x0>; > + entry-latency-us = <2000>; > + exit-latency-us = <2000>; > + min-residency-us = <6000>; > }; > }; > > -- > 1.7.1 >