Message ID | 1477042377-13485-1-git-send-email-chenhui.zhao@nxp.com (mailing list archive) |
---|---|
State | Rejected, archived |
Headers | show
Return-Path: <linux-pm-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B6DCC607F0 for <patchwork-linux-pm@patchwork.kernel.org>; Fri, 21 Oct 2016 09:48:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A79D329FA7 for <patchwork-linux-pm@patchwork.kernel.org>; Fri, 21 Oct 2016 09:48:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B45229FA9; Fri, 21 Oct 2016 09:48:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A73C29FA7 for <patchwork-linux-pm@patchwork.kernel.org>; Fri, 21 Oct 2016 09:48:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932481AbcJUJsH (ORCPT <rfc822;patchwork-linux-pm@patchwork.kernel.org>); Fri, 21 Oct 2016 05:48:07 -0400 Received: from mail-dm3nam03on0065.outbound.protection.outlook.com ([104.47.41.65]:31840 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932469AbcJUJsF (ORCPT <rfc822;linux-pm@vger.kernel.org>); Fri, 21 Oct 2016 05:48:05 -0400 X-Greylist: delayed 895 seconds by postgrey-1.27 at vger.kernel.org; Fri, 21 Oct 2016 05:48:05 EDT Received: from BY2PR03CA060.namprd03.prod.outlook.com (10.141.249.33) by SN1PR0301MB1630.namprd03.prod.outlook.com (10.162.130.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.12; Fri, 21 Oct 2016 09:33:08 +0000 Received: from BN1BFFO11FD021.protection.gbl (2a01:111:f400:7c10::1:167) by BY2PR03CA060.outlook.office365.com (2a01:111:e400:2c5d::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16 via Frontend Transport; Fri, 21 Oct 2016 09:33:08 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD021.mail.protection.outlook.com (10.58.144.84) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.669.7 via Frontend Transport; Fri, 21 Oct 2016 09:33:07 +0000 Received: from localhost.localdomain ([10.193.20.174]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u9L9X2tm011251; Fri, 21 Oct 2016 02:33:03 -0700 From: Chenhui Zhao <chenhui.zhao@nxp.com> To: <linux-pm@vger.kernel.org>, <rjw@rjwysocki.net>, <daniel.lezcano@linaro.org>, <linux-kernel@vger.kernel.org> CC: <z.chenhui@gmail.com>, Chenhui Zhao <chenhui.zhao@nxp.com> Subject: [PATCH] cpuidle: remove cpu_pm calls when entering a idle state Date: Fri, 21 Oct 2016 17:32:57 +0800 Message-ID: <1477042377-13485-1-git-send-email-chenhui.zhao@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131215159880728249; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(7846002)(81156014)(48376002)(77096005)(104016004)(36756003)(626004)(189998001)(50466002)(87936001)(2906002)(586003)(97736004)(49486002)(92566002)(5001770100001)(33646002)(4326007)(8666005)(11100500001)(105606002)(106466001)(229853001)(47776003)(8936002)(5660300001)(68736007)(19580395003)(86362001)(19580405001)(305945005)(50226002)(2201001)(85426001)(8676002)(6666003)(50986999)(81166006)(356003)(5003940100001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB1630; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD021; 1:Cj5yXajciUgB/oVpLagdp4X0+fwBvjbws2R9RemoL5g2xiKHV1N8xyO1QmZmlb0YXREAV2qxmL5BtjKDQrVUwd65eEn1dakB1XP9wsh4IpZZvHPOXAQvqwRGjG6AdS5e+3KQs5bqP7jkXCqny0cLkkXGpj3IIZYSNDkbAARmdD/Qubqdy8B/0/RWyBiKc/uBjvElVtAzmAnml6MTmg4gxGr8OZgkJ2QTWYz4bJfb3vB3XTyiRDejfPe5jwkptB70hzUJR8wHscXCmquR1356mHZe0TiN2nb8+l/Uo/dd1Laka0bzvO0sahw5pGq9S4IkN526D9c75h7IdjuIa9NmeuetKoRNl102k3bYB49DiB2ELUR0B0XT0ANWZIXim0HyfNIKQ8v/yrswFn+g095IhmJfDHh84wzcRel4ZxifzQ/h4wNQWl0WqzsZbSu99+qVIojQ/Kot2mm34hQnkxGh9/jPjvRv4PPWTKX4ZCEP9NFsUEcSUf/FGnk/y2q1FA/FV9XCX/pDiH737QaLTOjFID5M3NHWYbYwHbL3Av5CnDE6Cnfaz7J1x63yO8Qj4Emeu9gSZ633FeyTt1ImhThkZJyv5fsRQqzTxlMAqLH6RAjb9G12kEk2am+94QMmgRadg7j7AgHZujHAgzn2BH8l3M8FFH1Q/Z14O/M05vQ3Qd4/d6tB1sa4VrE1UqtVk4Dr2q6ojX7OfxmbWLgk91D+mXEf5UeyXphFDKSsnFzwacA= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: ee9bb6a7-23e9-4c39-dd58-08d3f995444a X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1630; 2:kFOQI9E9xR2Y/8CeQRaSy6vHQ6mQPE9hKKtKOvAV0oUZCnQEf0v2UcTFmtkXXVztpG4PVugJNZ0qoLdHYTSEpmR+BGOF0LOH6H6cbHB+O4lcFMpN6hf440cbweOF12R0UN9+TC4L6bZsB6B2S3RFElv68nfmCE0GzE0mQm5U7BQ6mWrJ7cajBO0tpEE2sgchlAz/8sbPqvj+7nUhZa23/w==; 3:fEJFV2PrTlQxfQvSNGfHBWgysZnNxET9b98A74wIk4Ir+0iG4BdAAPWoT6o6V7x3H9nyRTTMALQhGrq1B+dBOckx7XEEEenS+tu8WZQFh2HcvDGKlBjxAguzYkbdBzNA+xzowzE8b95MT6zbdSmhSm2HvWT2ekBhQExdqfgvZpWUlplchtt9z6BAaFR2NdF3rSqRSjbuykAxvwc0vO7aN5g6QpHKiweB5Q9QKE639WXvaglveisObgcR7rrkxJwu; 25:xjIuSwRwjMUZnKmPylJJsVZm/l08s8+unW+o8LBHIIzIi1H8gaH+nQDE8xtU4D0ICzd7z5Bs200NliHkHHCRHXEsEujzeEuymmM1/5SRs2KlfdOdG4RpwCtFgVyh3rEDVPHvR74OPG96t8/qjCOD8iaO9nlJELHPD/+tGkg5qpS7nF3IWxmxfgYsDzzhwYVvID7CqK1k6UiyiO4Az+ZaD+U37VZfD5ejSbQ2CV57NsffVCUMV+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C4nSzLtVrbkiTdOBA03jdsRMYkSdDP96yVrJwAIrNCuhAgVynSFJlaLLHqyZzgEDaez+5Q5hPH3D3b1WmyWBn/gc3dgVEH6TiTSq7wlxOy5pp+ X-Microsoft-Antispam-PRVS: <SN1PR0301MB1630682AAA96E194F30A89C195D40@SN1PR0301MB1630.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13023025)(5005006)(13024025)(8121501046)(13015025)(13017025)(13018025)(10201501046)(3002001)(6055026); SRVR:SN1PR0301MB1630; BCL:0; PCL:0; RULEID:(400006); SRVR:SN1PR0301MB1630; X-Forefront-PRVS: 01026E1310 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB1630; 23:YFz3u7+PBHetKG5MKKGhSDgdQbj1l2GmmzMCGsa?= =?us-ascii?Q?caF5QtplrgIECZI4HXsQOYlR9LYaBlPZXrhzQSJ+urnl61/1LWM5oET0QsXV?= =?us-ascii?Q?aLuQXBjfgxrAXYb+EBpd2AHrxyQPFUTxXeEudFGu+vkz4Iida7dFWpY095hp?= =?us-ascii?Q?bQNBSZnYu6YgQ/EFZL5IKdHMzdzi4+nd4fcKDtIatFL0oaZchXrlAbl7fDbV?= =?us-ascii?Q?tI+VjLyRtjT3TCebrqfp2O6g3EDt7Juix92yGuHaGIUhQ4YNMbdd4tT6WIWC?= =?us-ascii?Q?jeXaL4nX6Uk/bY3obCYuMw/MSEMOktaTK74o7SnraIT2j7REHRW0oi5n7Us1?= =?us-ascii?Q?1Om3sweOimiIbDRRRzMY+G7RYA0DKaLQGnKGUbPJ4gmAxLQoOKH0XjVwcWuS?= =?us-ascii?Q?5OMmMq1Cxmd0F5Zgps5WTC62bJnJ+fNWM+XqfhqYDiztb6D7Cq3Oa6joX/2r?= =?us-ascii?Q?QTsr51qR+xHHP+VOjnFjk4hRS1aoDrZl+Vj4vLjCJ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5hCP6sgkOvL+YT4fQA1GT6t596NQ+yKJulgy17K9Jj3hGJe5/1Ynvn9bApJlnaID2f1zY4SyggrMzZpA+LXv8Qiil34yOf+f80ReogBSqDXseJ/VzIeGb+3VZaGJJ+DdZVwKHKjWeor9uSqyg318sf; 5:geKycKFlVhqkeQ+dP0mtiBB+lnZWs0BOln+Naqp4oinWrqjKurpNs54DdBl1WMTRVPH36zguoYee1eRgUMyM6Pu7hp+8AOsNETsyuQgHZ2UWak4YsmdI3Pdj/rM7fIoqaVTUP5mL79rfIKkFoO0Tu4ADVvcVB0LoxCMzo0dgxSgtz0F55d9SEM8cL/p0DdSE; 24:wLlf40Y90nr/HoDBOd2duISwhgzST2jC+Iyh/xDiCzJcdFZJjSFOkfLF9rKHZQPBNlRKqsiED1e3DWGeWFEg6goqxh/Y92CVzgHn4knWJT0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1630; 7:OapnLDINWCRmQX9gwjJLHGjNa6m1BieceffzzYe47muyj7xIERpCQ0ig97TyeSAhUOBI45w7Lx8gbT0AnBt7DuzEftrFAaUBPBSkH5Js/ACPkpaEQzmEvWWD5vV3Ubh42C5jricMxkuMZxIEuggRN/WkvtmDwdOKGTJIugjCCxBVcZ0H/zpiiLaqgaLLR226l/1IsWEop06NplN7/DGRcRZGuxYE8fOK9I9LKvTCoL0mplUzsaingHTndRxfpjQ99ZxMZeXPBrPGg+3Q7O9PnJ0DU2Hlcl9/QppMnfzN6cfw5NVGe6uOS+XmdhavcAQ9wFHOXsFdXHMrfoTwqQdDsJDVIAkfU3sn/TLT9WiFDDw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2016 09:33:07.8700 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1630 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Hi Chenhui, On Fri, Oct 21, 2016 at 10:32 AM, Chenhui Zhao <chenhui.zhao@nxp.com> wrote: > The functions, cpu_pm_enter and cpu_pm_exit, assume that CPU would > be reset when entering and exiting a idle state. If that is not the > case, they would cause issue. > So are you OK to break all the states that would be reset ? This is not a proper solution. Can you provide more details on the issue you are facing ? What platform ? which idle states ? and so on.. Regards, Sudeep -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index bb31373..063af89 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -261,12 +261,7 @@ static inline int cpuidle_register_governor(struct cpuidle_governor *gov) return idx; \ } \ \ - __ret = cpu_pm_enter(); \ - if (!__ret) { \ - __ret = low_level_idle_enter(idx); \ - cpu_pm_exit(); \ - } \ - \ + __ret = low_level_idle_enter(idx); \ __ret ? -1 : idx; \ })
The functions, cpu_pm_enter and cpu_pm_exit, assume that CPU would be reset when entering and exiting a idle state. If that is not the case, they would cause issue. Signed-off-by: Chenhui Zhao <chenhui.zhao@nxp.com> --- include/linux/cpuidle.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)