Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934390AbbEMMX1 (ORCPT ); Wed, 13 May 2015 08:23:27 -0400 Received: from mail-bl2on0128.outbound.protection.outlook.com ([65.55.169.128]:44212 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754502AbbEMMXY (ORCPT ); Wed, 13 May 2015 08:23:24 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; Message-ID: <55534225.1050305@freescale.com> Date: Wed, 13 May 2015 15:23:01 +0300 From: Purcareata Bogdan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Bogdan Purcareata , , , , CC: Subject: Re: [PATCH] powerpc/mpic: Remove WHOAMI readback after EOI References: <1427193823-14597-1-git-send-email-bogdan.purcareata@freescale.com> In-Reply-To: <1427193823-14597-1-git-send-email-bogdan.purcareata@freescale.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.88.166.1] X-ClientProxiedBy: DB3PR08CA0023.eurprd08.prod.outlook.com (25.161.51.161) To BL2PR03MB180.namprd03.prod.outlook.com (10.255.230.156) X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB180;2:R4LeorajtH33p2Q1TqJVMuFfLmTjLFBeo8GblVD+MwIwKODaR1Bz8Nm8PImFod1B;2:JtjamDAzR/e6HywCtjZU2sj2dIvd3YHguapdZfKWIcu7g1xs3Vac+N0jyGLF3kKKmZzfNuQOJ/msYy1FyyJYEKMXSICxIvG94jpnmtXjpoL/tnJvJgXJBy8ckZWdWfG8UJR7QIKNjrRs9xdxjLp4Dg==;6:1wnPqf2nCh3HpopTF6BfmB+bl72Pm4IJpghC+5p4QSpzhtcxKa2QLLggtEOOsjz1qtDoboOHXHJ9v5bZ2Ya9J3W3RoR2HAu80LBUjJt6eBk/SX+vF5/n60A65Tt7nyiDvo8CJv/uG813AF51y8UCk1b4ZmRD51thVykHerhOru/9V6GUSw32z6aznHtPHGW8mtBMuZt6IznSwYK5wD/nl/Sc2q7aNOCJImdov0qo7/lchVqNFUQhfuQ7VVvj6LyasBFWewkxkXZ9JBaswSNmffkQTwLMp4GCqdX9ZS4+Mad/bSNQxebQqLXEaJ5mMA+F/laAbUTxO4zkGzfyUtrr6/Ecfl1pbsAE+dPnWu+//O9iMDI0WvyyHysR57+XI/D6M/i6vMjARp+TYUlnJHMPtVZy7bEE9yuucLXZWwG68dsIumyRFy8Igh+puQrIAvlKVQAFlNlENAmyhUMCKYJKiyZQniKEkYcJI3i+7cy88tfEqu1L8oDl1MrCAWMwQIDeG08EU7SXZv9tgyyYGP6/RH1frgI6rOyw78MiwwhqeaYvhkFNqJMiZuep/Oej9mjnWdFsjiS9Z8pufoW/2phDVYPiPryvz24nb/uPN7mvp74= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB180; 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:BL2PR03MB180;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB180; X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB180;3:2QZhEupTSSNvCqdF/7wDTj1xr45iF7uiV6zQq7dXdmizMZzK/+lWhnc+0OZTfEKs+DOBHhcKpuZ++m3a2uEPvRJE1p0e/XX2K7YPn2udoomfK9+fw1UpgwUujrSS50pg9pdQjvRwzWTv9eQeVo23tGjbtIqOVIz5+WOJJWHnJ9zX1rGujrMBjRdS5s3PEsnCDcBbmEH1inRluCjqoTRFNtqq/0Kvb+HO3kjtZDQvSpYL45r4mytJKkGTK3egTUkbY7mm/denaU0xHm9vXRDIbsOy1jRtuaoZwi+ygsD3m8o= X-Forefront-PRVS: 0575F81B58 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(979002)(6049001)(6009001)(24454002)(51704005)(117636001)(99136001)(15975445007)(23746002)(86362001)(92566002)(77096005)(77156002)(62966003)(47776003)(50466002)(2950100001)(64126003)(40100003)(59896002)(46102003)(65806001)(66066001)(189998001)(65956001)(5001770100001)(42186005)(87976001)(122386002)(36756003)(5001960100002)(65816999)(2201001)(4001350100001)(87266999)(54356999)(50986999)(83506001)(76176999)(81156007)(19580395003)(19580405001)(2101003)(42262002)(62816006)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR03MB180;H:[10.171.74.46];FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;BL2PR03MB180;9:PkIpT/xEiMCHG5L9pCrDe9blaB14ecb6fjYViqq?= =?Windows-1252?Q?a0r3AWZC1LcNmW4M2QhXkJCAMNSttDrB4VqTzSidcmKgYIF05fu/5JTF?= =?Windows-1252?Q?RgSW8V0AQPjxj7AboQ9plGr34j14HUu26OcKmXmuUxGqKpwnGtoM/Jyy?= =?Windows-1252?Q?LHgoMyOlFi0Klzh69F8HiXymT8ITPSjmx92ZG7SRNxxMAobD8kTW0U0F?= =?Windows-1252?Q?tR89t4gB523KEBzeGoltyrGyNGw0qA8kfwi78sOw123o1qdLSXzgoNBS?= =?Windows-1252?Q?QRt9mM7SViytUnQn2r7pLpiQzXfQLcYD1UAAxxVb6oSndKR4AhmejUSE?= =?Windows-1252?Q?5bym2nn/gPtI3x0p75R9jS8Rs6rScIEqb17bL6A2az1zhvrA91Z5My18?= =?Windows-1252?Q?TaFeGvkPZOeuHRz0vRbNvmtQdLaUagV0/kGOgu7c9zyKS2VK7NKWisMi?= =?Windows-1252?Q?BTs6BDv9wZAWSqz4rE4pm9EkkGH5dKqOY1tGr/7nneHXVc4I0SEFezLx?= =?Windows-1252?Q?wK9cVWrSoJD58zvVz1aOXVe+FNXk1PT+0JAtfn7TqZ/46GKWVZphS5OO?= =?Windows-1252?Q?vNRtTcJ93CbyHI29VGmOJIqIjNjjjjBlPlQuO5wh4n/m8hwkOOdT/6Cs?= =?Windows-1252?Q?35gK0JPOvVj4ZaAzBkPMvM8Qr+ILMRC0q72xNrhM7tq1LrRevwMdBUcm?= =?Windows-1252?Q?pfwmW8H23HzF9vLVGrAsJOFIX7NHQb1Az47iypa0d9kj9I/gcvXrEY3m?= =?Windows-1252?Q?yrQhyJ9rgCjVVGSsZJaYeu+3ekMPvYRpuF7vnDAvMbVqx+piK8vxGSzi?= =?Windows-1252?Q?kBcNYleowW4ehBrzBYYzxQpBWiefQcQSLyx9yyT/eyKYxh8LVMpw3hNz?= =?Windows-1252?Q?8X9kaBteM3x9tNORNuDxVKn0wwWYGD3ugZOdfWyYlaEA9GGB9zEhOwt3?= =?Windows-1252?Q?wiLWNseg50xC5G3xI77OGKZAzA+qjwCIRwAluVEx0QagvDbaREUCyNmY?= =?Windows-1252?Q?ynzplkITrHm3Z0heHIg4skAzwk+UorK4/9e2v0Km5EXJO0cmDXIZ0dL4?= =?Windows-1252?Q?ZrOX2Y4KAX1gqygw/qAUu9VSdhbvx2ELDt5Z9YpE6zsybvC9jho7VX7k?= =?Windows-1252?Q?SuvmBoYVPvOCrtPxAruf7DayLvSTZVhpdbUWJ0DA0RZlPjsT1TZse6EP?= =?Windows-1252?Q?ETQ+494r/6XxqhNxpfDbSwEhpmrGq0lnxuAZ7vXmjmHpV3IqtI4N1BMW?= =?Windows-1252?Q?6ODxh4IMKgpQPnZ80mhDZNmMKaMWuQfK/goTc+bbFbu1eFha1hF6mzAS?= =?Windows-1252?Q?ed8Rq+Wu38R6q/n4hxOeZaQqginUSXwrEKR/h3LvWmys=3D?= X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB180;3:Ofu9EHeCKeXv1lZNY8uN3/tbzzbxhiNbWx6HtTeDlpBBNC/ve0nKR0upo5Rc011cWIM87RCRzkXz8TxnQ2XlMOE7BpUf0QbB39ayMvlkT7MlBpUrjc7z9719IPY8x0t/9R7WlB2Bj1MClSN6+6b54A==;10:ziEQihw86L4vw0gSQUXJ1wN6lB/RzqC2Od+iCc9wjQR0cGtQEm+LjB9X0dfk0u2phAMbS9V90+49rS4PjHCxTKBJadrF9lMuQx2/NSqN3sU=;6:fa2rB0KNCoYd44p9AF11qrHG7qU8cxcGmO1C7cvnsjLWaatP/XyzJf/x7UiepLPc X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2015 12:23:21.5809 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB180 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1406 Lines: 38 Ping? On 24.03.2015 12:43, Bogdan Purcareata wrote: > After previous discussions regarding the subject [1][2], there's no clear > explanation or reason why the call was needed in the first place. The sensible > argument is some sort of synchronization between the CPU and the MPIC, which > hasn't been pointed out precisely and is no longer required (at least on BookE > platforms). > > The benefit of this change is saving a MMIO trap per interrupt when running in a > KVM guest. > > [1] https://patchwork.ozlabs.org/patch/429098/ > [2] https://patchwork.ozlabs.org/patch/433557/ > > Signed-off-by: Bogdan Purcareata > --- > arch/powerpc/sysdev/mpic.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c > index bbfbbf2..045e72a9 100644 > --- a/arch/powerpc/sysdev/mpic.c > +++ b/arch/powerpc/sysdev/mpic.c > @@ -655,7 +655,6 @@ static inline struct mpic * mpic_from_irq_data(struct irq_data *d) > static inline void mpic_eoi(struct mpic *mpic) > { > mpic_cpu_write(MPIC_INFO(CPU_EOI), 0); > - (void)mpic_cpu_read(MPIC_INFO(CPU_WHOAMI)); > } > > /* > -- 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/