From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752847AbbIRJFG (ORCPT ); Fri, 18 Sep 2015 05:05:06 -0400 Received: from www.linutronix.de ([62.245.132.108]:56452 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752221AbbIRJFD (ORCPT ); Fri, 18 Sep 2015 05:05:03 -0400 Date: Fri, 18 Sep 2015 11:04:23 +0200 (CEST) From: Thomas Gleixner To: Kohji Okuno cc: LKML , Marc Zyngier Subject: Re: [PATCH] genirq: Fix bad IRQ_ONSHOT in forced IRQ setting In-Reply-To: <20150918.093556.101988084572410337.okuno.kohji@jp.panasonic.com> Message-ID: References: <20150917.172108.1981672043896471427.okuno.kohji@jp.panasonic.com> <20150917.184811.962668245011757228.okuno.kohji@jp.panasonic.com> <20150918.093556.101988084572410337.okuno.kohji@jp.panasonic.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Sep 2015, Kohji Okuno wrote: > From: Thomas Gleixner > Date: Thu, 17 Sep 2015 23:10:02 +0200 > > On Thu, 17 Sep 2015, Kohji Okuno wrote: > >> > >> When 1st sdio IRQ is happend, sdhci_irq() returns IRQ_WAKE_THREAD. > >> After this, sdhci_irq() is not called in case of threadirqs. > > > > What kind of system is that? > > > > Can you provide the output of /proc/interrupts please? > > > > I think your patch is fine. I just want to understand why we don't see > > any more interrupts. > > > > Thanks, > > > > tglx > > Hi tglx, > > My system is arm, and I connect SDIO WiFi card. > In fact, I use kernel 3.18.11 base. But, I think sources concerned > with this are same. > > This is my "/proc/interrupts". > > CPU0 CPU1 CPU2 CPU3 > 46: 20672 0 0 0 GIC 46 mmc1 > > In drivers/irqchip/irq-gic.c:gic_set_type(), irq46 is set as > IRQ_TYPE_LEVEL_HIGH. That's weird. The flow is: interrupt() mask() ret = primary_handler() if (ret == WAKE_THREAD) wake_thread() else unmask() thread_handler() .... unmask() So if an interrupt is triggered on the device while the interrupt is masked it should be raised again immediately when the unmask happens because its level type. I'm wondering why that doesn't work. Thanks, tglx