Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3qwKZf4H1qzDqB3 for ; Thu, 28 Apr 2016 11:52:10 +1000 (AEST) In-Reply-To: <1461301069-12331-2-git-send-email-mikey@neuling.org> To: Michael Neuling From: Michael Ellerman Cc: mikey@neuling.org, Joerg-Stephan Vogt , Frederic Barrat , Vaibhav Jain , Wolfgang Bolz1 , imunsie@au1.ibm.com, andrew.donnellan@au1.ibm.com, Frank Haverkamp , linuxppc-dev@lists.ozlabs.org Subject: Re: [2/2] cxl: Poll for outstanding IRQs when detaching a context Message-Id: <3qwKZf0gF2z9t74@ozlabs.org> Date: Thu, 28 Apr 2016 11:52:09 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2016-22-04 at 04:57:49 UTC, Michael Neuling wrote: > When detaching contexts, we may still have interrupts in the system > which are yet to be delivered to any CPU and be acked in the PSL. > This can result in a subsequent unrelated process getting an spurious > IRQ or an interrupt for a non-existent context. > > This polls the PSL to ensure that the PSL is clear of IRQs for the > detached context, before removing the context from the idr. > > Signed-off-by: Michael Neuling > Tested-by: Andrew Donnellan > Acked-by: Ian Munsie > Tested-by: Vaibhav Jain Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/2bc79ffcbb817873cc43d63118 cheers