From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752265AbdF3Ntm (ORCPT ); Fri, 30 Jun 2017 09:49:42 -0400 Received: from foss.arm.com ([217.140.101.70]:42602 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751840AbdF3Ntl (ORCPT ); Fri, 30 Jun 2017 09:49:41 -0400 Subject: Re: [patch 0/5] genirq: Distangle irq_request/release_resources() from irq_desc->lock To: Thomas Gleixner , LKML References: <20170629213334.375848050@linutronix.de> Cc: Linus Walleij , Brian Norris , Heiko Stuebner , linux-rockchip@lists.infradead.org, Julia Cartwright , linux-gpio@vger.kernel.org, John Keeping , Doug Anderson From: Marc Zyngier Organization: ARM Ltd Message-ID: <36bdf915-6741-c3a6-cfa3-75ccb3769d93@arm.com> Date: Fri, 30 Jun 2017 14:49:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170629213334.375848050@linutronix.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/06/17 22:33, Thomas Gleixner wrote: > The irq_request/release_resources() callbacks are a problem on RT as they > are called under irq_desc->lock with interrupts disabled. > > Aside of that calling them under irq_desc->lock is conceptually wrong and > has a (hard to trigger and probably theoretical) issue in free_irq(). See > patch 4/5 for a detailed explanation. > > The series contains also a fix for the exynos gpio driver, which fiddles > with the irq masking in the resource callbacks, which is bogus and > potentially harmful. > > Finally it moves the irq timings deallocation out of the spin locked region. > > Thanks, > > tglx > --- > drivers/pinctrl/samsung/pinctrl-exynos.c | 4 -- > include/linux/irqdesc.h | 3 + > kernel/irq/irqdesc.c | 1 > kernel/irq/manage.c | 47 +++++++++++++++++++------------ > 4 files changed, 34 insertions(+), 21 deletions(-) For the series: Reviewed-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny...