Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754854AbbDUMUG (ORCPT ); Tue, 21 Apr 2015 08:20:06 -0400 Received: from www.linutronix.de ([62.245.132.108]:57916 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754148AbbDUMUE (ORCPT ); Tue, 21 Apr 2015 08:20:04 -0400 Date: Tue, 21 Apr 2015 14:20:22 +0200 (CEST) From: Thomas Gleixner To: Adrian-Ken Rueegsegger cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] genirq: Only call irq_ack if implemented by chip In-Reply-To: <552E31F8.5090407@codelabs.ch> Message-ID: References: <1429007347-7167-1-git-send-email-ken@codelabs.ch> <552E31F8.5090407@codelabs.ch> 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1389 Lines: 32 On Wed, 15 Apr 2015, Adrian-Ken Rueegsegger wrote: > To support PCI MSI(-X), we register our own platform-specific MSI > operations (x86_msi.setup_msi_irqs, etc) and implement an irq_chip that > simply provides the irq_mask and irq_unmask operations (by reusing the > "regular" mask_msi_irq/unmask_msi_irq). But why are you using the edge flow handler then? > After encountering a null pointer dereference due to the irq_chip not > providing an irq_ack operation, I examined the commit that changed the > source of the irq_ack call, noticing that only the check in > handle_edge_irq was dropped while the other call sites were kept. As the > commit message did not provide me with additional information for that > particular fragment of the change, I (prematurely) concluded that it was > not intentional. > > If it is a prerequisite for IRQ chips to provide the irq_ack operation > when used in conjunction with handle_edge_irq, then please ignore my > patch. In that case, I will adjust our chip implementation > accordingly. Yes, it is more or less. And I really want to avoid the extra conditional in the handler hotpath. Thanks, -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/