Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754459AbbHFEUo (ORCPT ); Thu, 6 Aug 2015 00:20:44 -0400 Received: from mail-by2on0140.outbound.protection.outlook.com ([207.46.100.140]:17120 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750793AbbHFEUm (ORCPT ); Thu, 6 Aug 2015 00:20:42 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; lists.ozlabs.org; dkim=none (message not signed) header.d=none; Date: Thu, 6 Aug 2015 12:20:37 +0800 From: Chenhui Zhao Subject: Re: [PATCH 1/3] Powerpc: mpc85xx: refactor the PM operations To: Scott Wood CC: , , , Tang Yuantian , "linuxppc-dev@lists.ozlabs.org" Message-ID: <1438834837.23384.0@remotesmtp.freescale.net> In-Reply-To: <1438829848.2097.129.camel@freescale.com> 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> <1438829848.2097.129.camel@freescale.com> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11OLC010;1:pfC8kvnYYjsit+sNHol3IOzu0b6mXRwjHamS8lksjgHH1gGQq8OP+WP6wJSfvz6e9h5S2WHOTQGH0tlb1Ppk5hTemcz1KlwOeEkvWaBg09/8jUfl6D2cH6uPQQ15D40VEHj6q5RYs/4TVDau9rB2LFmO7pJbk3qC2Ym2HXNLCuUnyjJrr1q7qI3+HfQ4MgqC8vxpVehDthmnPxbEi+SOLRzdBjJvqj/d2Br5tUlL7GCOV4Mhos+SJuun6RpGybKwNb0DNI4pXwiCmrV7QDaN1cCdwPppT96wPSwx+G4XQ8d1Hbccu2veMyDCXC6gpdRm2tMaf5xDAc8S+sNoTmjCgg== X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(339900001)(24454002)(377424004)(199003)(189002)(57704003)(377454003)(47776003)(110136002)(106466001)(64706001)(2950100001)(62966003)(77096005)(104016003)(68736005)(105606002)(97736004)(77156002)(46102003)(5001960100002)(87936001)(86362001)(76176999)(69596002)(88526003)(93886004)(19580405001)(19580395003)(4001450100002)(5001830100001)(85426001)(92566002)(50466002)(50986999)(50226001)(6806004)(189998001)(4001540100001)(81156007)(23676002)(5001860100001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR03MB575;H:az84smr01.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB575;2:/8KrXKxOzfGA38sZzO9yi47ho/Iblpk/Jnp41dXFFwA9oAdGptfN2QMlA3Z5ugrx8E3+6p6b02vhGZoU5tHnlB0M/AwKUHG956+iezIRt61Z+ZatuuJtY3plDFatOgML1VtIeSgUQXj9K3L2BKNFDA4zIIGllxXO0jambIU/l3Y=;3:tZTCUc5hFp8HM0hn3v4PeO5tTMXpHWoy93+NN6HmI10tti4mxvyfGhxtGVW8jlP7RsLQVXN6tzFjrOIO1XJmiyENvyQ3C1HIoYoj4r69mWCwYlbksKR1xd6BdPAnWvwJIxKtmczgOe9f+hMcscS+xpnKGiLjny3+JpjmX4ERoacNHImpUTs5n30tMK1xPfjr65I5ewHVGinW/OXpey3tCYvbpu2l2QcgcBBtvp8d6Gk=;25:FoC1z9LAM574FidRP0G+2LmFhQZ9bI5Gij0SKg5H0z+/2+Po4tlJTekitkoX2VzuAU6SUpxpkDNsJsYtV5KlDJaCfzQ6h/05WkcZ/aLk85Jt+vWuA3yoqcvzU8EF6F61GmtB9m3q4XKYmzAfpJMrRpeMvFVbQdwPObIwv/gNUlzE6QEJRhXAsmoU9ZOdCSGoIMDZUIvbF1ay8FsRpldhZMUoTurNnzyzi6EJ8PW0EuS4aBJGtSo1oFxdFifSWFkgZoN4H3cvcvgQBd8x3bszEg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB575; X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB575;20:okaIzigUgfpJPySPLfTuUS/bGJhhrMXDm3EpyLQdf1tLyVN+qjYDMnYF4xtsXiQglujfMbxtUlSlKsnRSfwemSNZJaV5f8l5V9jGV/74oLK6P9UM2Bb/3vN+eyfItPmzP2RN4klyUZvIUSYke8Fe3EQMEEMxSAuQAU5tUkaM4mB736p2NIhoga+ysp5wetMeq0BF5O2yATVlp1lz2X4/Kch0VruOhx2TqJp978/IYpM9BNkc7hehEz8Xgu5WaYBfEmjhn2RZg11KWT0Or2u8PI/O5cy1INKswPibdmdM6Oqrm+ld+o7yxIJFme5hv5A84+jBaEAA6EZv3JGTGEyCijzibngsiOlcHVm/QvugNNQ=;4:7WPVtADol15nAD2gKJBrxxcFM8ZlAhPOjc9bdJ6GiQxkwoTpNx5sta/G5hqhSXmzOJjrqML9WZjQuMynAPm0eIrfUAhd/VdZR2iXKgy19Vc/ClP4ZS6FMt/1EXS50Ox/GFDckVD+Y070ekp5p07jZBwu7TejQM6aoSfXAOXUl8l+b0jhk96Px5GxesdePNWc3AoI6ESBY8C/Y9PE/YBOcpMndiPQHNHrH+famh9O1jSGAArc+C7Xj1gY71Ehwtf5ZNVQl3h3LDdVI+sZwOTA+CkHdRF82yBL/dQsetqYtxY= 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:DM2PR03MB575;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB575; X-Forefront-PRVS: 06607E485E X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjAzTUI1NzU7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G4csWpdTC+TRDIqWEmOKl6/gVb2e2sYuuIQwvDCO8ipg=;20:BLOY3jznw553xPpLaGlsWHb3122fN1UEOgpZRyTx/FqLl/F78CV4wdx81M8cUsviNPw6eXwzI6ivHEpnSZt28w== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2015 04:20:39.7668 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB575 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1523 Lines: 51 On Thu, Aug 6, 2015 at 10:57 AM, Scott Wood wrote: > 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 > The interrupts to RCPM from MPIC are IRQ, Machine Check, NMI and Critical interrupts. Some of them didn't be masked in MPIC. -Chenhui -- 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/