Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752265AbeAIJ0I (ORCPT + 1 other); Tue, 9 Jan 2018 04:26:08 -0500 Received: from mail-ve1eur01on0071.outbound.protection.outlook.com ([104.47.1.71]:61712 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751515AbeAIJ0E (ORCPT ); Tue, 9 Jan 2018 04:26:04 -0500 From: Anson Huang To: Dong Aisheng , Stefan Agner CC: "shawnguo@kernel.org" , "kernel@pengutronix.de" , Fabio Estevam , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: RE: [PATCH 1/7] ARM: imx: add timer stop flag to ARM power off state Thread-Topic: [PATCH 1/7] ARM: imx: add timer stop flag to ARM power off state Thread-Index: AQHTg+i0mcyFXwcqt0Kuq0Q3Zp+77aNrTu8AgAAAgTA= Date: Tue, 9 Jan 2018 09:25:59 +0000 Message-ID: References: <20180102164223.15230-1-stefan@agner.ch> <20180109092232.GA26312@b29396-OptiPlex-7040> In-Reply-To: <20180109092232.GA26312@b29396-OptiPlex-7040> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-originating-ip: [199.59.231.64] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB6PR0401MB2631;7:Tx7PEQ/MzJE/V12orhfzm/hBWiRnVm8kvQDGeW08V2DGcc+AgMwRMRhGLzi9LPwSZxv/3szTdwUp0uJBuUkm6ewtH9BG0jGL2h8gArMFEtUdRdchEJY82Rcz4e+3F/dm8bcmGgVOdaXqiaMMGyMAi5IciSJ2E3pgYAYiVCdc12L2vwPyR36yAtyvekU2RcZbvbNhxQ5EkoBFA4oJz75o2hffWrMtyO2lttWLefSZoefzTYi42v655R3Ly9xI2uoz x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 11d7859c-c111-479f-5bbe-08d55742fea6 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:DB6PR0401MB2631; x-ms-traffictypediagnostic: DB6PR0401MB2631: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(9452136761055)(185117386973197)(85827821059158)(258649278758335); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(3231023)(944501075)(10201501046)(93006095)(93001095)(6055026)(6041268)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DB6PR0401MB2631;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DB6PR0401MB2631; x-forefront-prvs: 0547116B72 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(39860400002)(39380400002)(346002)(396003)(366004)(13464003)(377424004)(24454002)(189003)(199004)(81166006)(68736007)(105586002)(3280700002)(33656002)(14454004)(2900100001)(5660300001)(229853002)(2950100002)(8676002)(478600001)(316002)(97736004)(81156014)(106356001)(86362001)(7736002)(8936002)(54906003)(110136005)(575784001)(3660700001)(76176011)(99286004)(5250100002)(66066001)(25786009)(3846002)(53936002)(7696005)(53546011)(2906002)(6436002)(55016002)(305945005)(9686003)(6246003)(74316002)(59450400001)(39060400002)(102836004)(6506007)(6116002)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0401MB2631;H:AM3PR04MB1315.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-microsoft-antispam-message-info: qdnCp3anyzTser0Rjv0EyTYngFJwbnIwHmgzSWcG12iDP1Ubg3QgeA6BNE1O6gf+0GoMNRl4MNThiu4pcdoNeA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11d7859c-c111-479f-5bbe-08d55742fea6 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2018 09:25:59.3629 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2631 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Best Regards! Anson Huang > -----Original Message----- > From: Dong Aisheng [mailto:dongas86@gmail.com] > Sent: 2018-01-09 5:23 PM > To: Stefan Agner > Cc: shawnguo@kernel.org; kernel@pengutronix.de; Fabio Estevam > ; robh+dt@kernel.org; mark.rutland@arm.com; > linux-arm-kernel@lists.infradead.org; devicetree@vger.kernel.org; linux- > kernel@vger.kernel.org; Anson Huang ; dl-linux-imx > > Subject: Re: [PATCH 1/7] ARM: imx: add timer stop flag to ARM power off state > > On Tue, Jan 02, 2018 at 05:42:17PM +0100, Stefan Agner wrote: > > When the CPU is in ARM power off state the ARM architected timers are > > stopped. The flag is already present in the higher power WAIT mode. > > > > This allows to use the ARM generic timer on i.MX 6UL/6ULL SoC. > > Without the flag the kernel freezes when the timer enters the first > > time ARM power off mode. > > > > Cc: Anson Huang > > Signed-off-by: Stefan Agner > > It seems ok at my side. > Did you meet the real issue? If yes, how to reproduce? > > Both mx6sx and mx6ul are using GPT which do not need that flag, suppose we > should remove it, right? > Anson can help confirm it. For UP system like i.MX6SX, we do NOT enable "cortex-a9-twd-timer", so local timer is NOT used, GPT is used instead, GPT's clock is NOT disabled when cpuidle, so I think we should remove all these Timer stop flag for 6SX CPUIDLE. Anson. > > Regards > Dong Aisheng > > > --- > > arch/arm/mach-imx/cpuidle-imx6sx.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm/mach-imx/cpuidle-imx6sx.c > > b/arch/arm/mach-imx/cpuidle-imx6sx.c > > index c5a5c3a70ab1..d0f14b761ff7 100644 > > --- a/arch/arm/mach-imx/cpuidle-imx6sx.c > > +++ b/arch/arm/mach-imx/cpuidle-imx6sx.c > > @@ -89,6 +89,7 @@ static struct cpuidle_driver imx6sx_cpuidle_driver = { > > */ > > .exit_latency = 300, > > .target_residency = 500, > > + .flags = CPUIDLE_FLAG_TIMER_STOP, > > .enter = imx6sx_enter_wait, > > .name = "LOW-POWER-IDLE", > > .desc = "ARM power off", > > -- > > 2.15.1 > >