From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Norris Subject: Re: [PATCH v2] PM / wakeirq: Convert to SRCU Date: Mon, 26 Jun 2017 13:37:11 -0700 Message-ID: <20170626203709.GA11099@google.com> References: <20170624135320.GS3721@linux.vnet.ibm.com> <20170625144559.GA3721@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pf0-f175.google.com ([209.85.192.175]:36629 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751477AbdFZUhU (ORCPT ); Mon, 26 Jun 2017 16:37:20 -0400 Received: by mail-pf0-f175.google.com with SMTP id q86so5512260pfl.3 for ; Mon, 26 Jun 2017 13:37:20 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Thomas Gleixner Cc: "Paul E. McKenney" , 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 , "Rafael J. Wysocki" On Sun, Jun 25, 2017 at 07:31:13PM +0200, Thomas Gleixner wrote: > The wakeirq infrastructure uses RCU to protect the list of wakeirqs. That > breaks the irq bus locking infrastructure, which is 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 > --- > drivers/base/power/wakeup.c | 32 ++++++++++++++++++-------------- > 1 file changed, 18 insertions(+), 14 deletions(-) This resolves the warnings I've seen, for sure. And I don't seem to have any new suspend/resume problems, so: Tested-by: Brian Norris