From mboxrd@z Thu Jan 1 00:00:00 1970 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 3qwKZd73frzDqB2 for ; Thu, 28 Apr 2016 11:52:09 +1000 (AEST) In-Reply-To: <1461301069-12331-1-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: [1/2] cxl: Keep IRQ mappings on context teardown Message-Id: <3qwKZd5Y59z9t6M@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:48 UTC, Michael Neuling wrote: > Keep IRQ mappings on context teardown. This won't leak IRQs as if we > allocate the mapping again, the generic code will give the same > mapping used last time. > > Doing this works around a race in the generic code. Masking the > interrupt introduces a race which can crash the kernel or result in > IRQ that is never EOIed. The lost of EOI results in all subsequent > mappings to the same HW IRQ never receiving an interrupt. > > We've seen this race with cxl test cases which are doing heavy context > startup and teardown at the same time as heavy interrupt load. > > A fix to the generic code is being investigated also. > > Signed-off-by: Michael Neuling > cc: stable@vger.kernel.org # 3.8 > Tested-by: Andrew Donnellan > Acked-by: Ian Munsie > Tested-by: Vaibhav Jain Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/d6776bba44d9752f6cdf640046 cheers