From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751348AbdFXJVw (ORCPT ); Sat, 24 Jun 2017 05:21:52 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:35427 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751266AbdFXJVv (ORCPT ); Sat, 24 Jun 2017 05:21:51 -0400 Date: Sat, 24 Jun 2017 11:21:43 +0200 (CEST) From: Thomas Gleixner To: "Paul E. McKenney" cc: Brian Norris , Heiko Stuebner , Linus Walleij , linux-rockchip@lists.infradead.org, Julia Cartwright , LKML , linux-gpio@vger.kernel.org, John Keeping , linux-pm@vger.kernel.org, Doug Anderson , Peter Zijlstra , Tony Lindgren Subject: Re: [PATCH for 4.12] Revert "pinctrl: rockchip: avoid hardirq-unsafe functions in irq_chip" In-Reply-To: <20170623224049.GP3721@linux.vnet.ibm.com> Message-ID: References: <20170517225634.GA11404@google.com> <20170527021900.GA119873@google.com> <20170623205911.GA143883@google.com> <20170623224049.GP3721@linux.vnet.ibm.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Jun 2017, Paul E. McKenney wrote: > On Sat, Jun 24, 2017 at 12:12:49AM +0200, Thomas Gleixner wrote: > > which added that RCU locking stuff and thereby broke the long existing > > bus_lock() facility of the interrupt core. > > > > irq_bus_lock/unlock was explicitely made to allow sleeping locks for > > interrupt chips which hang behind slow busses like i2c or spi. It took us > > quite some effort to get this done and that patch broke it permanently. > > > > I'm not sure what to do here. This is an ever recurring issue simply > > because RT requires that sleeping locks can be taken inside rcu locked > > regions. So sooner than later we need a resoilution for that problem. > > The usual advice would be for 4990d4fe327b ("PM / Wakeirq: Add automated > device wake IRQ handling") to use SRCU rather than RCU. Is there some > reason that won't work? I can't see one. So yes, we should rather convert that stuff to SRCU instead of playing ping pong forever. Thanks, tglx