[3.19-rc3] tg3: BUG: sleeping function called from invalid context

2015-01-12 Thread Peter Hurley
On 3.19-rc3, I'm seeing this might_sleep() warning [1] from the tg3_open() call stack. Let me know if I need to bisect this. Regards, Peter Hurley [1] [ 17.203009] BUG: sleeping function called from invalid context at /home/peter/src/kernels/mainline/kernel/irq/manage.c:104 [ 17.203067] in_

Re: [3.19-rc3] tg3: BUG: sleeping function called from invalid context

2015-01-12 Thread Prashant Sreedharan
On Mon, 2015-01-12 at 19:59 -0500, Peter Hurley wrote: > On 3.19-rc3, I'm seeing this might_sleep() warning [1] from the tg3_open() > call stack. Let me know if I need to bisect this. > > Regards, > Peter Hurley > > [1] > > [ 17.203009] BUG: sleeping function called from invalid context at >

Re: [3.19-rc3] tg3: BUG: sleeping function called from invalid context

2015-01-12 Thread Michael Chan
On Mon, 2015-01-12 at 19:59 -0500, Peter Hurley wrote: > [ 17.203009] BUG: sleeping function called from invalid context at > /home/peter/src/kernels/mainline/kernel/irq/manage.c:104 > [ 17.203067] in_atomic(): 1, irqs_disabled(): 0, pid: 1106, name: ip > [ 17.203092] 2 locks held by ip/110

Re: [3.19-rc3] tg3: BUG: sleeping function called from invalid context

2015-01-13 Thread Peter Hurley
On 01/12/2015 09:30 PM, Prashant Sreedharan wrote: > On Mon, 2015-01-12 at 19:59 -0500, Peter Hurley wrote: >> On 3.19-rc3, I'm seeing this might_sleep() warning [1] from the tg3_open() >> call stack. Let me know if I need to bisect this. >> >> Regards, >> Peter Hurley >> >> [1] >> >> [ 17.203009

Re: [3.19-rc3] tg3: BUG: sleeping function called from invalid context

2015-01-13 Thread Peter Hurley
On 01/13/2015 01:49 AM, Michael Chan wrote: > On Mon, 2015-01-12 at 19:59 -0500, Peter Hurley wrote: >> [ 17.203009] BUG: sleeping function called from invalid context at >> /home/peter/src/kernels/mainline/kernel/irq/manage.c:104 >> [ 17.203067] in_atomic(): 1, irqs_disabled(): 0, pid: 1106,

Re: [3.19-rc3] tg3: BUG: sleeping function called from invalid context

2015-01-13 Thread Michael Chan
On Tue, 2015-01-13 at 07:47 -0500, Peter Hurley wrote: > > tp->lock is held in this code path. If synchronize_irq() sleeps in > > wait_event(desc->wait_for_threads, ...), we'll get the warning. > > > > The synchronize_irq() call is to wait for any tg3 irq handler to finish > > so that it is guar

Re: [3.19-rc3] tg3: BUG: sleeping function called from invalid context

2015-01-14 Thread Peter Hurley
On 01/12/2015 09:30 PM, Prashant Sreedharan wrote: > On Mon, 2015-01-12 at 19:59 -0500, Peter Hurley wrote: >> On 3.19-rc3, I'm seeing this might_sleep() warning [1] from the tg3_open() >> call stack. Let me know if I need to bisect this. >> >> Regards, >> Peter Hurley >> >> [1] >> >> [ 17.203009