Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1487734yba; Thu, 16 May 2019 23:22:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHEKn/E507lEkEIz1MGj5DLx7SUITP/Iq1+nBO/CwOGTl0PN9XoiGCaf+CS4FINtQiOXis X-Received: by 2002:a63:1344:: with SMTP id 4mr54392460pgt.448.1558074128635; Thu, 16 May 2019 23:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558074128; cv=none; d=google.com; s=arc-20160816; b=ShLtOfhw7P2RchJAa3blcGQph1SgiBLElOtoHoTd8ny0QgoW+Rkma+CYFQ7l0uGvfC ywyq3ZSu3wxnSrHHjPivn4t8knP7GX+bXgADAgRLsVWuG7qkI7jxZQ+/bwXU9zSbLQ1p MVu1vtJEdsa1uZ4Hn4Ah47CpKImliG6ViURIE1+IsXBhqgtRhz/y66DT2oS33c72uceo hWcXq6pTDRfySUoj2zk6ke8e48jhrm2ZxQHdZLFPMryogPCPYiDNePQgSTuEXhpcI4XA lp+1WR6uVOQxrd1u4Shr+JpKU6fLLKmyF8T1IaT/R3c1MUViDnke7GWlwcIq7mggIygk /knQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=OYYAwnQA86Kn7eR/Vrap+X3vdPz/122qs7gJCQ2IY/c=; b=iaN89VEaIQlQZUjX1eGijBdaVZ2omE0iXQQo/iVYqqPJ8EjZgvrbPLCrisPS9QzYBt zbG7mE/JzKHZ9qiHvhTZnRLRiDA2xIujiydAVE2t5dzYvtuwVJ0JGLf9LJzmBYxlxl2u kTRpJMhQtMzyvLLTrTqGyR1uX+NoRZqmuirPyoCqXOog1HW/nkzE35NOtXTf9pncjJpt 98tESBwtyufJqThbz2Kyh15hPQUM1ehvMvFr+490OeNOXKGPY9gkygIh4jr3MsaNX5hP WsfXKhnB4JgJy5tP1SfrfhV+LMYFeTXZjqbt1Gc60mcp2sLjhWwz9ZsrP/0uMuJeQdmB UjBg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n184si5507305pgn.574.2019.05.16.23.21.52; Thu, 16 May 2019 23:22:08 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727709AbfEQE4Q (ORCPT + 99 others); Fri, 17 May 2019 00:56:16 -0400 Received: from inva021.nxp.com ([92.121.34.21]:45868 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725929AbfEQE4Q (ORCPT ); Fri, 17 May 2019 00:56:16 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1FE9C200015; Fri, 17 May 2019 06:56:14 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 61AA9200005; Fri, 17 May 2019 06:56:10 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 7596E40250; Fri, 17 May 2019 12:56:05 +0800 (SGT) From: Ran Wang To: Shawn Guo , Li Yang , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ran Wang Subject: [PATCH v2] arm64: dts: ls1028a: Fix CPU idle fail. Date: Fri, 17 May 2019 12:57:53 +0800 Message-Id: <20190517045753.3709-1-ran.wang_1@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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