From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E109C2C009F for ; Sat, 15 Jun 2013 12:02:36 +1000 (EST) Message-ID: <1371261741.21896.20.camel@pasglop> Subject: Re: Regression in RCU subsystem in latest mainline kernel From: Benjamin Herrenschmidt To: Steven Rostedt Date: Sat, 15 Jun 2013 12:02:21 +1000 In-Reply-To: <1371243967.9844.338.camel@gandalf.local.home> References: <1626500.7WAVXjfS9F@pcimr> <20130614122800.GL5146@linux.vnet.ibm.com> <1645938.As0LR1yeVd@pcimr> <1371243967.9844.338.camel@gandalf.local.home> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: linuxppc-dev , paulmck@linux.vnet.ibm.com, Rojhalat Ibrahim , linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2013-06-14 at 17:06 -0400, Steven Rostedt wrote: > I was pretty much able to reproduce this on my PA Semi PPC box. Funny > thing is, when I type on the console, it makes progress. Anyway, it > seems that powerpc has an issue with irq_work(). I'll try to get some > time either tonight or next week to figure it out. Does this help ? diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 5cbcf4d..ea185e0 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c @@ -162,7 +162,7 @@ notrace unsigned int __check_irq_replay(void) * in case we also had a rollover while hard disabled */ local_paca->irq_happened &= ~PACA_IRQ_DEC; - if (decrementer_check_overflow()) + if ((happened & PACA_IRQ_DEC) || decrementer_check_overflow()) return 0x900; /* Finally check if an external interrupt happened */ Cheers, Ben.