Re: Kernel Oops while disconnecting USB peripheral (always)

2012-08-07 Thread Sarbojit Ganguly
Sorry guys I was away due to personal emergency, however now I am back and will check the reply ASAP. On 28 July 2012 21:49, Alan Stern wrote: > On Sat, 28 Jul 2012, Daniel Mack wrote: > >> Hmm, interesting. Thanks for sharing this. I personally never saw this >> bug kicking in, but if I

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-08-07 Thread Sarbojit Ganguly
Sorry guys I was away due to personal emergency, however now I am back and will check the reply ASAP. On 28 July 2012 21:49, Alan Stern st...@rowland.harvard.edu wrote: On Sat, 28 Jul 2012, Daniel Mack wrote: Hmm, interesting. Thanks for sharing this. I personally never saw this bug kicking

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Alan Stern
On Sat, 28 Jul 2012, Daniel Mack wrote: > Hmm, interesting. Thanks for sharing this. I personally never saw this > bug kicking in, but if I understand your findings correctly, we would > need something like the following patch for snd-usb and the storage driver? > > Sarbojit, could you give this

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Daniel Mack
On 28.07.2012 15:25, Bjørn Mork wrote: > Daniel Mack writes: >> On 28.07.2012 14:27, Bjørn Mork wrote: >> >>> The reason is this change: >>> >>> 0998d0631 device-core: Ensure drvdata = NULL when no driver is bound >>> >>> >>> It will make bugs like this suddenly 100% reproducible. But the bugs

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Bjørn Mork
Daniel Mack writes: > On 28.07.2012 14:27, Bjørn Mork wrote: > >> The reason is this change: >> >> 0998d0631 device-core: Ensure drvdata = NULL when no driver is bound >> >> >> It will make bugs like this suddenly 100% reproducible. But the bugs >> *are* in the drivers, and may have been

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Daniel Mack
On 28.07.2012 14:27, Bjørn Mork wrote: > Daniel Mack writes: >> On 23.07.2012 16:47, Alan Stern wrote: >>> On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: That is why I provided two stacks, 1st one is when I tried to remove the USB hub (which connects a webcam + microphone)

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Bjørn Mork
Daniel Mack writes: > On 23.07.2012 16:47, Alan Stern wrote: >> On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: >>> That is why I provided two stacks, >>> >>> 1st one is when I tried to remove the USB hub (which connects a webcam >>> + microphone) >>> 2nd one is when I tried to remove an USB powered

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Daniel Mack
On 23.07.2012 17:04, Sarbojit Ganguly wrote: > On 23 July 2012 20:17, Alan Stern wrote: >> On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: >> >>> Hello Daniel, >>> >>> That is why I provided two stacks, >>> >>> 1st one is when I tried to remove the USB hub (which connects a webcam >>> + microphone)

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Daniel Mack
On 23.07.2012 17:04, Sarbojit Ganguly wrote: On 23 July 2012 20:17, Alan Stern st...@rowland.harvard.edu wrote: On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: Hello Daniel, That is why I provided two stacks, 1st one is when I tried to remove the USB hub (which connects a webcam +

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Bjørn Mork
Daniel Mack zon...@gmail.com writes: On 23.07.2012 16:47, Alan Stern wrote: On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: That is why I provided two stacks, 1st one is when I tried to remove the USB hub (which connects a webcam + microphone) 2nd one is when I tried to remove an USB powered

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Daniel Mack
On 28.07.2012 14:27, Bjørn Mork wrote: Daniel Mack zon...@gmail.com writes: On 23.07.2012 16:47, Alan Stern wrote: On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: That is why I provided two stacks, 1st one is when I tried to remove the USB hub (which connects a webcam + microphone) 2nd one is

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Bjørn Mork
Daniel Mack zon...@gmail.com writes: On 28.07.2012 14:27, Bjørn Mork wrote: The reason is this change: 0998d0631 device-core: Ensure drvdata = NULL when no driver is bound It will make bugs like this suddenly 100% reproducible. But the bugs *are* in the drivers, and may have been

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Daniel Mack
On 28.07.2012 15:25, Bjørn Mork wrote: Daniel Mack zon...@gmail.com writes: On 28.07.2012 14:27, Bjørn Mork wrote: The reason is this change: 0998d0631 device-core: Ensure drvdata = NULL when no driver is bound It will make bugs like this suddenly 100% reproducible. But the bugs *are*

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-28 Thread Alan Stern
On Sat, 28 Jul 2012, Daniel Mack wrote: Hmm, interesting. Thanks for sharing this. I personally never saw this bug kicking in, but if I understand your findings correctly, we would need something like the following patch for snd-usb and the storage driver? Sarbojit, could you give this a

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-23 Thread Daniel Mack
On 23.07.2012 17:04, Sarbojit Ganguly wrote: > On 23 July 2012 20:17, Alan Stern wrote: > Yes the issue is in evict() api which gets called when USB disconnect > is triggered. >> >> Alan Stern >> > > Even I was confused in the beginning but after thorough check I > confirmed its presence. I

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-23 Thread Sarbojit Ganguly
On 23 July 2012 20:24, Daniel Mack wrote: > On 23.07.2012 16:47, Alan Stern wrote: >> On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: >>> That is why I provided two stacks, >>> >>> 1st one is when I tried to remove the USB hub (which connects a webcam >>> + microphone) >>> 2nd one is when I tried to

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-23 Thread Sarbojit Ganguly
On 23 July 2012 20:17, Alan Stern wrote: > On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: > >> Hello Daniel, >> >> That is why I provided two stacks, >> >> 1st one is when I tried to remove the USB hub (which connects a webcam >> + microphone) >> 2nd one is when I tried to remove an USB powered

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-23 Thread Daniel Mack
On 23.07.2012 16:47, Alan Stern wrote: > On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: >> That is why I provided two stacks, >> >> 1st one is when I tried to remove the USB hub (which connects a webcam >> + microphone) >> 2nd one is when I tried to remove an USB powered external HDD. >> >> Just to

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-23 Thread Alan Stern
On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: > Hello Daniel, > > That is why I provided two stacks, > > 1st one is when I tried to remove the USB hub (which connects a webcam > + microphone) > 2nd one is when I tried to remove an USB powered external HDD. > > Just to make sure whether the

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-23 Thread Alan Stern
On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: Hello Daniel, That is why I provided two stacks, 1st one is when I tried to remove the USB hub (which connects a webcam + microphone) 2nd one is when I tried to remove an USB powered external HDD. Just to make sure whether the problem is

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-23 Thread Daniel Mack
On 23.07.2012 16:47, Alan Stern wrote: On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: That is why I provided two stacks, 1st one is when I tried to remove the USB hub (which connects a webcam + microphone) 2nd one is when I tried to remove an USB powered external HDD. Just to make sure

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-23 Thread Sarbojit Ganguly
On 23 July 2012 20:17, Alan Stern st...@rowland.harvard.edu wrote: On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: Hello Daniel, That is why I provided two stacks, 1st one is when I tried to remove the USB hub (which connects a webcam + microphone) 2nd one is when I tried to remove an USB

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-23 Thread Sarbojit Ganguly
On 23 July 2012 20:24, Daniel Mack zon...@gmail.com wrote: On 23.07.2012 16:47, Alan Stern wrote: On Mon, 23 Jul 2012, Sarbojit Ganguly wrote: That is why I provided two stacks, 1st one is when I tried to remove the USB hub (which connects a webcam + microphone) 2nd one is when I tried to

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-07-23 Thread Daniel Mack
On 23.07.2012 17:04, Sarbojit Ganguly wrote: On 23 July 2012 20:17, Alan Stern st...@rowland.harvard.edu wrote: Yes the issue is in evict() api which gets called when USB disconnect is triggered. Alan Stern Even I was confused in the beginning but after thorough check I confirmed its