From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754892AbdFXMNs (ORCPT ); Sat, 24 Jun 2017 08:13:48 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:35600 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751314AbdFXMNq (ORCPT ); Sat, 24 Jun 2017 08:13:46 -0400 Date: Sat, 24 Jun 2017 14:13:35 +0200 (CEST) From: Thomas Gleixner To: "Rafael J. Wysocki" cc: "Paul E. McKenney" , Brian Norris , Heiko Stuebner , Linus Walleij , linux-rockchip@lists.infradead.org, Julia Cartwright , LKML , linux-gpio@vger.kernel.org, John Keeping , Linux PM , Doug Anderson , Peter Zijlstra , Tony Lindgren , "Rafael J. Wysocki" Subject: Re: PM / wakeirq: Convert to SRCU In-Reply-To: Message-ID: References: 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 Sat, 24 Jun 2017, Rafael J. Wysocki wrote: > On Sat, Jun 24, 2017 at 11:56 AM, Thomas Gleixner wrote: > > The wakeirq infrastructure uses RCU to protect the list of wakeirqs. That > > breaks the irq bus locking infrastructure, which allows sleeping functions > > to be called so interrupt controllers behind slow busses, e.g. i2c, can be > > handled. > > > > The wakeirq functions hold rcu_read_lock and call into irq functions, which > > in case of interrupts using the irq bus locking will trigger a > > might_sleep() splat. > > > > Convert the wakeirq infrastructure to Sleepable RCU and unbreak it. > > > > Fixes: 4990d4fe327b ("PM / Wakeirq: Add automated device wake IRQ handling") > > Reported-by: Brian Norris > > Suggested-by: Paul E. McKenney > > Signed-off-by: Thomas Gleixner > > Cc: stable@vger.kernel.org > > OK > > I guess it would be good to get this into 4.12? I think so, but it probably wants some testing and breeding in next. Thanks, tglx