Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754311AbbHFC5i (ORCPT ); Wed, 5 Aug 2015 22:57:38 -0400 Received: from mail-by2on0120.outbound.protection.outlook.com ([207.46.100.120]:39904 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752269AbbHFC5h (ORCPT ); Wed, 5 Aug 2015 22:57:37 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=scottwood@freescale.com; Message-ID: <1438829848.2097.129.camel@freescale.com> Subject: Re: [PATCH 1/3] Powerpc: mpc85xx: refactor the PM operations From: Scott Wood To: Chenhui Zhao CC: , , , Tang Yuantian , Tang Yuantian Date: Wed, 5 Aug 2015 21:57:28 -0500 In-Reply-To: <1438769477.21522.0@remotesmtp.freescale.net> References: <1438334444-31919-1-git-send-email-b29983@freescale.com> <1438387178.19345.77.camel@freescale.com> <1438601578.7515.2@remotesmtp.freescale.net> <1438633568.2097.35.camel@freescale.com> <1438769477.21522.0@remotesmtp.freescale.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.0-fta1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:448:8100:f9f:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: BY2PR04CA0067.namprd04.prod.outlook.com (10.255.247.35) To CY1PR03MB1487.namprd03.prod.outlook.com (25.163.17.17) X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1487;2:xzW/6lgVUO8AcuNbujzxY6fupg4nay6OMEyrwWj5XNH80m4HDJRRNq6D84bgLMRJsqT4j2iCvfHL1Df7ipnKcb+BhvvcnnjgIZBMsMP2GjcyLFcMleqHxz+XOtQvgPH0BydctNANJK0fV5Dq0fTthw+3WrZzNoSfk5+Pjoq5/lA=;3:Lg7KEU9EXwqaeBND/E1JrWlcG3mtfCIy7jRjFyDdkIc8Upbn0iI0+93Q/Ru5nLhI1Mn8Kp9b+Rl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ZMy6Qi7tjQa+tY1AegSIqx0Qh19ciX77IpiClwipWmnEC71Np8SoGOtIbcVkcWHzyS3KRtb1fSUAR54rzpARxqk6oWhJ7ffyXSM6Y7SQSFoHOsfeWR3vb1b0OGfizXmk0460udYEYTlQJjVX7gMctrMV1xnNmzCIiukMEFwHb5Rok/PN3MRwuAzu7MRY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR03MB1487;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1487; X-Forefront-PRVS: 06607E485E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(199003)(377424004)(57704003)(189002)(377454003)(76176999)(81156007)(42186005)(103116003)(64706001)(50226001)(101416001)(50986999)(105586002)(23676002)(106356001)(93886004)(40100003)(77156002)(62966003)(122386002)(5820100001)(189998001)(5001920100001)(4001540100001)(110136002)(5001960100002)(97736004)(33646002)(46102003)(87976001)(5001860100001)(77096005)(4001450100002)(86362001)(92566002)(68736005)(47776003)(5001830100001)(50466002)(2950100001)(19580395003)(36756003)(19580405001)(99106002)(3826002)(5001840100002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR03MB1487;H:[IPv6:2601:448:8100:f9f:12bf:48ff:fe84:c9a0];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjAzTUIxNDg3OzIzOnZxS3padmhTN2tIalNOUytrdFpzWWxrN2Fo?= =?utf-8?B?M0pVTzFzVHZaeVo1OTJSc2U3b0VaNERPTktSUTNZMmRBZXpqYlZ6ejgwM0h4?= =?utf-8?B?NTREMXU2dk4yWVhlZVRIeEVWbnBKbFdUNmszWGdZVC8walJxRERQZGlKVG1C?= =?utf-8?B?M25sYml2R3F0NmhIazlCWFFnM0I0Y1pKZjhCT1NZcCtm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YwlZ6R6kpahWw=;20:XpdRjCJGiOPW4I+VQFpZyHYs3m2qT14GpVKiOh9qdw882aC5+oPQomRPFDjh1suX5GRe0PVEbPHJE68iPAJnUQ== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2015 02:57:34.0855 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1487 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1235 Lines: 37 On Wed, 2015-08-05 at 18:11 +0800, Chenhui Zhao wrote: > On Tue, Aug 4, 2015 at 4:26 AM, Scott Wood > wrote: > > On Mon, 2015-08-03 at 19:32 +0800, Chenhui Zhao wrote: > > > > > > > > > On Sat, Aug 1, 2015 at 7:59 AM, Scott Wood > > > wrote: > > > > > > > > > > Could you explain irq_mask()? Why would there still be IRQs > > > destined > > > > for > > > > this CPU at this point? > > > > > > This function just masks irq by setting the registers in RCPM (for > > > example, RCPM_CPMIMR, RCPM_CPMCIMR). Actually, all irqs to this CPU > > > have been migrated to other CPUs. > > > > So why do we need to set those bits in RCPM? Is it just caution? > > Setting these bits can mask interrupts signalled to RCPM from MPIC as a > means of > waking up from a lower power state. So, cores will not be waked up > unexpectedly. Why would the MPIC be signalling those interrupts if they've been masked at the MPIC? -Scott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/