From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0117.outbound.protection.outlook.com [65.55.169.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id C7CD51A0EF4 for ; Thu, 8 Jan 2015 04:04:59 +1100 (AEDT) Message-ID: <1420650283.4961.52.camel@freescale.com> Subject: Re: [RFC] PPC: MPIC: necessary readback after EOI? From: Scott Wood To: Benjamin Herrenschmidt Date: Wed, 7 Jan 2015 11:04:43 -0600 In-Reply-To: <1420641876.5830.32.camel@kernel.crashing.org> References: <20150105174616.GA3159@rhlx01.hs-esslingen.de> <1420481454.4961.16.camel@freescale.com> <1420641876.5830.32.camel@kernel.crashing.org> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Cc: Purcareata Bogdan , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Andreas Mohr List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2015-01-07 at 15:44 +0100, Benjamin Herrenschmidt wrote: > On Mon, 2015-01-05 at 12:10 -0600, Scott Wood wrote: > > It would have been nice if a code comment explained why it was doing the > > readback... I don't see any particular need to wait for EOI completion > > here (unlike when masking). > > The EOI is what causes the MPIC to drop it's EE output to the CPU, if the > EOI is processed too slowly & asynchronously (posted write + 33Mhz MPIC) > we observe cases of spurrious interrupts. We had some macs basically getting > a spurrious irq for every MPIC interrupts... Shouldn't reading INTACK be what causes the MPIC to drop its EE output? -Scott