[PATCH 4.4 50/57] PM / wakeirq: Convert to SRCU

2017-07-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit ea0212f40c6bc0594c8eff79266759e3ecd4bacc upstream. The wakeirq infrastructure uses RCU to protect the list of wakeirqs. That breaks the irq bus

[PATCH 4.4 50/57] PM / wakeirq: Convert to SRCU

2017-07-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit ea0212f40c6bc0594c8eff79266759e3ecd4bacc upstream. The wakeirq infrastructure uses RCU to protect the list of wakeirqs. That breaks the irq bus locking infrastructure,

[PATCH 4.9 66/72] PM / wakeirq: Convert to SRCU

2017-07-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit ea0212f40c6bc0594c8eff79266759e3ecd4bacc upstream. The wakeirq infrastructure uses RCU to protect the list of wakeirqs. That breaks the irq bus

[PATCH 4.9 66/72] PM / wakeirq: Convert to SRCU

2017-07-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit ea0212f40c6bc0594c8eff79266759e3ecd4bacc upstream. The wakeirq infrastructure uses RCU to protect the list of wakeirqs. That breaks the irq bus locking infrastructure,

[PATCH 4.11 82/88] PM / wakeirq: Convert to SRCU

2017-07-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit ea0212f40c6bc0594c8eff79266759e3ecd4bacc upstream. The wakeirq infrastructure uses RCU to protect the list of wakeirqs. That breaks the irq bus

[PATCH 4.11 82/88] PM / wakeirq: Convert to SRCU

2017-07-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit ea0212f40c6bc0594c8eff79266759e3ecd4bacc upstream. The wakeirq infrastructure uses RCU to protect the list of wakeirqs. That breaks the irq bus locking infrastructure,

[PATCH 4.12 76/84] PM / wakeirq: Convert to SRCU

2017-07-19 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit ea0212f40c6bc0594c8eff79266759e3ecd4bacc upstream. The wakeirq infrastructure uses RCU to protect the list of wakeirqs. That breaks the irq bus

[PATCH 4.12 76/84] PM / wakeirq: Convert to SRCU

2017-07-19 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit ea0212f40c6bc0594c8eff79266759e3ecd4bacc upstream. The wakeirq infrastructure uses RCU to protect the list of wakeirqs. That breaks the irq bus locking infrastructure,

Re: [PATCH v2] PM / wakeirq: Convert to SRCU

2017-06-28 Thread Rafael J. Wysocki
On Monday, June 26, 2017 01:37:11 PM Brian Norris wrote: > 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

Re: [PATCH v2] PM / wakeirq: Convert to SRCU

2017-06-28 Thread Rafael J. Wysocki
On Monday, June 26, 2017 01:37:11 PM Brian Norris wrote: > 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

Re: [PATCH v2] PM / wakeirq: Convert to SRCU

2017-06-26 Thread Brian Norris
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

Re: [PATCH v2] PM / wakeirq: Convert to SRCU

2017-06-26 Thread Brian Norris
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

Re: [PATCH v2] PM / wakeirq: Convert to SRCU

2017-06-26 Thread Tony Lindgren
* Paul E. McKenney [170625 11:29]: > 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

Re: [PATCH v2] PM / wakeirq: Convert to SRCU

2017-06-26 Thread Tony Lindgren
* Paul E. McKenney [170625 11:29]: > 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

Re: [PATCH v2] PM / wakeirq: Convert to SRCU

2017-06-25 Thread Paul E. McKenney
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

Re: [PATCH v2] PM / wakeirq: Convert to SRCU

2017-06-25 Thread Paul E. McKenney
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

[PATCH v2] PM / wakeirq: Convert to SRCU

2017-06-25 Thread Thomas Gleixner
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

[PATCH v2] PM / wakeirq: Convert to SRCU

2017-06-25 Thread Thomas Gleixner
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

Re: PM / wakeirq: Convert to SRCU

2017-06-25 Thread Paul E. McKenney
On Sun, Jun 25, 2017 at 11:11:57AM +0200, Thomas Gleixner wrote: > On Sat, 24 Jun 2017, Paul E. McKenney wrote: > > On Sat, Jun 24, 2017 at 11:56:11AM +0200, Thomas Gleixner wrote: > > > static DECLARE_WAIT_QUEUE_HEAD(wakeup_count_wait_queue); > > > > > > +static struct srcu_struct wakeup_srcu;

Re: PM / wakeirq: Convert to SRCU

2017-06-25 Thread Paul E. McKenney
On Sun, Jun 25, 2017 at 11:11:57AM +0200, Thomas Gleixner wrote: > On Sat, 24 Jun 2017, Paul E. McKenney wrote: > > On Sat, Jun 24, 2017 at 11:56:11AM +0200, Thomas Gleixner wrote: > > > static DECLARE_WAIT_QUEUE_HEAD(wakeup_count_wait_queue); > > > > > > +static struct srcu_struct wakeup_srcu;

Re: PM / wakeirq: Convert to SRCU

2017-06-25 Thread Thomas Gleixner
On Sat, 24 Jun 2017, Paul E. McKenney wrote: > On Sat, Jun 24, 2017 at 11:56:11AM +0200, Thomas Gleixner wrote: > > static DECLARE_WAIT_QUEUE_HEAD(wakeup_count_wait_queue); > > > > +static struct srcu_struct wakeup_srcu; > > I suggest this to avoid the need for boot-time init_srcu_struct(): >

Re: PM / wakeirq: Convert to SRCU

2017-06-25 Thread Thomas Gleixner
On Sat, 24 Jun 2017, Paul E. McKenney wrote: > On Sat, Jun 24, 2017 at 11:56:11AM +0200, Thomas Gleixner wrote: > > static DECLARE_WAIT_QUEUE_HEAD(wakeup_count_wait_queue); > > > > +static struct srcu_struct wakeup_srcu; > > I suggest this to avoid the need for boot-time init_srcu_struct(): >

Re: PM / wakeirq: Convert to SRCU

2017-06-24 Thread Paul E. McKenney
On Sat, Jun 24, 2017 at 11:56:11AM +0200, 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 >

Re: PM / wakeirq: Convert to SRCU

2017-06-24 Thread Paul E. McKenney
On Sat, Jun 24, 2017 at 11:56:11AM +0200, 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 >

Re: PM / wakeirq: Convert to SRCU

2017-06-24 Thread Rafael J. Wysocki
On Saturday, June 24, 2017 02:13:35 PM Thomas Gleixner wrote: > 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

Re: PM / wakeirq: Convert to SRCU

2017-06-24 Thread Rafael J. Wysocki
On Saturday, June 24, 2017 02:13:35 PM Thomas Gleixner wrote: > 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

Re: PM / wakeirq: Convert to SRCU

2017-06-24 Thread Thomas Gleixner
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

Re: PM / wakeirq: Convert to SRCU

2017-06-24 Thread Thomas Gleixner
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

Re: PM / wakeirq: Convert to SRCU

2017-06-24 Thread Rafael J. Wysocki
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.

Re: PM / wakeirq: Convert to SRCU

2017-06-24 Thread Rafael J. Wysocki
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.

PM / wakeirq: Convert to SRCU

2017-06-24 Thread Thomas Gleixner
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

PM / wakeirq: Convert to SRCU

2017-06-24 Thread Thomas Gleixner
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