2011-03-16 22:18:42

by Mihai Donțu

[permalink] [raw]
Subject: [b43] usb device disconnects automatically after 1s

Hi,

I have just upgraded to 2.6.38 and discovered that I can't use my wireless
device (BCM4312 802.11a/b/g). I press Fn + F2, the bluetooth led lights
and after a second it turns off by itself. In dmesg I'm seeing the following:

[ 88.167212] usb 1-2.2: new full speed USB device using ehci_hcd and address 5
[ 88.782330] usb 1-2.2: USB disconnect, address 5

I switched to 2.6.37 until I'll have some time to bisect this. In the mean
time I have attached the output of lspci, interrupts and dmesg.

Thanks,

--
Mihai Donțu


Attachments:
dmesg.txt.gz (16.53 kB)
interrupts.txt (1.53 kB)
lspci.txt (7.26 kB)
Download all attachments

2011-03-16 22:23:11

by Mihai Donțu

[permalink] [raw]
Subject: Re: [b43] usb device disconnects automatically after 1s

Added linux-usb and linux-wireless to CC.

On Thursday 17 March 2011 00:18:31 Mihai Donțu wrote:
> Hi,
>
> I have just upgraded to 2.6.38 and discovered that I can't use my wireless
> device (BCM4312 802.11a/b/g). I press Fn + F2, the bluetooth led lights
> and after a second it turns off by itself. In dmesg I'm seeing the
> following:
>
> [ 88.167212] usb 1-2.2: new full speed USB device using ehci_hcd and
> address 5
> [ 88.782330] usb 1-2.2: USB disconnect, address 5
>
> I switched to 2.6.37 until I'll have some time to bisect this. In the mean
> time I have attached the output of lspci, interrupts and dmesg.
>
> Thanks,

--
Mihai Donțu


Attachments:
interrupts.txt (1.53 kB)
lspci.txt (7.26 kB)
dmesg.txt.gz (16.53 kB)
Download all attachments

2011-03-16 22:35:08

by Rafał Miłecki

[permalink] [raw]
Subject: Re: [b43] usb device disconnects automatically after 1s

2011/3/16 Mihai Donțu <[email protected]>:
> Added linux-usb and linux-wireless to CC.
>
> On Thursday 17 March 2011 00:18:31 Mihai Donțu wrote:
>> Hi,
>>
>> I have just upgraded to 2.6.38 and discovered that I can't use my wireless
>> device (BCM4312 802.11a/b/g). I press Fn + F2, the bluetooth led lights
>> and after a second it turns off by itself. In dmesg I'm seeing the
>> following:
>>
>> [   88.167212] usb 1-2.2: new full speed USB device using ehci_hcd and
>> address 5
>> [   88.782330] usb 1-2.2: USB disconnect, address 5
>>
>> I switched to 2.6.37 until I'll have some time to bisect this. In the mean
>> time I have attached the output of lspci, interrupts and dmesg.

I suspect it's WMI related. What is your machine?

Please check:
https://bugzilla.kernel.org/show_bug.cgi?id=31002
http://comments.gmane.org/gmane.linux.acpi.devel/49577

I can't help you more, I just noticed such a issue reported on ACPI
ML, you have to dig into this yourself (or someone else may help you).

--
Rafał

2011-03-16 23:07:30

by Mihai Donțu

[permalink] [raw]
Subject: Re: [b43] usb device disconnects automatically after 1s

On Thursday 17 March 2011 00:35:02 Rafał Miłecki wrote:
> 2011/3/16 Mihai Donțu <[email protected]>:
> > Added linux-usb and linux-wireless to CC.
> >
> > On Thursday 17 March 2011 00:18:31 Mihai Donțu wrote:
> >> Hi,
> >>
> >> I have just upgraded to 2.6.38 and discovered that I can't use my
> >> wireless device (BCM4312 802.11a/b/g). I press Fn + F2, the bluetooth
> >> led lights and after a second it turns off by itself. In dmesg I'm
> >> seeing the following:
> >>
> >> [ 88.167212] usb 1-2.2: new full speed USB device using ehci_hcd and
> >> address 5
> >> [ 88.782330] usb 1-2.2: USB disconnect, address 5
> >>
> >> I switched to 2.6.37 until I'll have some time to bisect this. In the
> >> mean time I have attached the output of lspci, interrupts and dmesg.
>
> I suspect it's WMI related. What is your machine?

It's a Dell Latitude D520 but I can't find a link with full specs (in
English).

> Please check:
> https://bugzilla.kernel.org/show_bug.cgi?id=31002
> http://comments.gmane.org/gmane.linux.acpi.devel/49577
>
> I can't help you more, I just noticed such a issue reported on ACPI
> ML, you have to dig into this yourself (or someone else may help you).

Thanks for the links. I'll see if I can get anywhere from there.

--
Mihai Donțu

2011-03-17 01:11:41

by Joey Lee

[permalink] [raw]
Subject: Re: [b43] usb device disconnects automatically after 1s

Add Cc. to platform driver guys.

於 四,2011-03-17 於 01:06 +0200,Mihai Donțu 提到:
> On Thursday 17 March 2011 00:35:02 Rafał Miłecki wrote:
> > 2011/3/16 Mihai Donțu <[email protected]>:
> > > Added linux-usb and linux-wireless to CC.
> > >
> > > On Thursday 17 March 2011 00:18:31 Mihai Donțu wrote:
> > >> Hi,
> > >>
> > >> I have just upgraded to 2.6.38 and discovered that I can't use my
> > >> wireless device (BCM4312 802.11a/b/g). I press Fn + F2, the bluetooth
> > >> led lights and after a second it turns off by itself. In dmesg I'm
> > >> seeing the following:
> > >>
> > >> [ 88.167212] usb 1-2.2: new full speed USB device using ehci_hcd and
> > >> address 5
> > >> [ 88.782330] usb 1-2.2: USB disconnect, address 5
> > >>
> > >> I switched to 2.6.37 until I'll have some time to bisect this. In the
> > >> mean time I have attached the output of lspci, interrupts and dmesg.
> >
> > I suspect it's WMI related. What is your machine?
>
> It's a Dell Latitude D520 but I can't find a link with full specs (in
> English).
>
> > Please check:
> > https://bugzilla.kernel.org/show_bug.cgi?id=31002
> > http://comments.gmane.org/gmane.linux.acpi.devel/49577
> >
> > I can't help you more, I just noticed such a issue reported on ACPI
> > ML, you have to dig into this yourself (or someone else may help you).
>
> Thanks for the links. I'll see if I can get anywhere from there.
>

2011-03-17 02:37:04

by Alan Stern

[permalink] [raw]
Subject: Re: [b43] usb device disconnects automatically after 1s

On Thu, 17 Mar 2011, Mihai Donțu wrote:

> On Thursday 17 March 2011 00:35:02 Rafał Miłecki wrote:
> > 2011/3/16 Mihai Donțu <[email protected]>:
> > > Added linux-usb and linux-wireless to CC.
> > >
> > > On Thursday 17 March 2011 00:18:31 Mihai Donțu wrote:
> > >> Hi,
> > >>
> > >> I have just upgraded to 2.6.38 and discovered that I can't use my
> > >> wireless device (BCM4312 802.11a/b/g). I press Fn + F2, the bluetooth
> > >> led lights and after a second it turns off by itself. In dmesg I'm
> > >> seeing the following:
> > >>
> > >> [ 88.167212] usb 1-2.2: new full speed USB device using ehci_hcd and
> > >> address 5
> > >> [ 88.782330] usb 1-2.2: USB disconnect, address 5
> > >>
> > >> I switched to 2.6.37 until I'll have some time to bisect this. In the
> > >> mean time I have attached the output of lspci, interrupts and dmesg.
> >
> > I suspect it's WMI related. What is your machine?
>
> It's a Dell Latitude D520 but I can't find a link with full specs (in
> English).
>
> > Please check:
> > https://bugzilla.kernel.org/show_bug.cgi?id=31002
> > http://comments.gmane.org/gmane.linux.acpi.devel/49577
> >
> > I can't help you more, I just noticed such a issue reported on ACPI
> > ML, you have to dig into this yourself (or someone else may help you).
>
> Thanks for the links. I'll see if I can get anywhere from there.

Another thing you can try is to get usbmon traces under both 2.6.37 and
2.6.38. Instructions are in the kernel source file
Documentation/usb/usbmon.txt.

Alan Stern

2011-03-18 22:48:41

by Mihai Donțu

[permalink] [raw]
Subject: Re: [b43] usb device disconnects automatically after 1s

On Thursday 17 March 2011 04:36:54 Alan Stern wrote:
> On Thu, 17 Mar 2011, Mihai Donțu wrote:
> > On Thursday 17 March 2011 00:35:02 Rafał Miłecki wrote:
> > > 2011/3/16 Mihai Donțu <[email protected]>:
> > > > Added linux-usb and linux-wireless to CC.
> > > >
> > > > On Thursday 17 March 2011 00:18:31 Mihai Donțu wrote:
> > > >> Hi,
> > > >>
> > > >> I have just upgraded to 2.6.38 and discovered that I can't use my
> > > >> wireless device (BCM4312 802.11a/b/g). I press Fn + F2, the
> > > >> bluetooth led lights and after a second it turns off by itself. In
> > > >> dmesg I'm seeing the following:
> > > >>
> > > >> [ 88.167212] usb 1-2.2: new full speed USB device using ehci_hcd
> > > >> and address 5
> > > >> [ 88.782330] usb 1-2.2: USB disconnect, address 5
> > > >>
> > > >> I switched to 2.6.37 until I'll have some time to bisect this. In
> > > >> the mean time I have attached the output of lspci, interrupts and
> > > >> dmesg.
> > >
> > > I suspect it's WMI related. What is your machine?
> >
> > It's a Dell Latitude D520 but I can't find a link with full specs (in
> > English).
> >
> > > Please check:
> > > https://bugzilla.kernel.org/show_bug.cgi?id=31002
> > > http://comments.gmane.org/gmane.linux.acpi.devel/49577
> > >
> > > I can't help you more, I just noticed such a issue reported on ACPI
> > > ML, you have to dig into this yourself (or someone else may help you).
> >
> > Thanks for the links. I'll see if I can get anywhere from there.
>
> Another thing you can try is to get usbmon traces under both 2.6.37 and
> 2.6.38. Instructions are in the kernel source file
> Documentation/usb/usbmon.txt.

I'm unable to get a usbmon dump on 2.6.37. Strangely, the only USB device
making noise (on 0u) is my mouse's wireless receiver. I had no such problem on
2.6.38 though.

--
Mihai Donțu


Attachments:
2.6.37-config.gz (17.40 kB)
2.6.37-lsusb.txt.gz (2.07 kB)
2.6.38-1.mon.out.gz (951.00 B)
Download all attachments

2011-03-19 01:38:22

by Alan Stern

[permalink] [raw]
Subject: Re: [b43] usb device disconnects automatically after 1s

On Sat, 19 Mar 2011, Mihai Donțu wrote:

> > Another thing you can try is to get usbmon traces under both 2.6.37 and
> > 2.6.38. Instructions are in the kernel source file
> > Documentation/usb/usbmon.txt.
>
> I'm unable to get a usbmon dump on 2.6.37. Strangely, the only USB device
> making noise (on 0u) is my mouse's wireless receiver. I had no such problem on
> 2.6.38 though.

I noticed your config has CONFIG_USB_EHCI_TT_NEWSCHED disabled. You
really should enable it (although I doubt that it is responsible for
this problem, since 2.6.37 works without it).

The 2.6.38 usbmon trace shows pretty much what you might expect: The
device connects and is initialized and enumerated normally, then 2
seconds later it disconnects. We really need to see a 2.6.37 usbmon
trace to compare for differences.

Can you try again? If usbmon isn't working, there's something _very_
strange going on.

Alan Stern

2011-04-02 15:45:00

by Mihai Donțu

[permalink] [raw]
Subject: Re: [b43] usb device disconnects automatically after 1s

On Wed, 16 Mar 2011 19:11:31 -0600
"Joey Lee" <[email protected]> wrote:

> Add Cc. to platform driver guys.
>
> 於 四,2011-03-17 於 01:06 +0200,Mihai Donțu 提到:
> > On Thursday 17 March 2011 00:35:02 Rafał Miłecki wrote:
> > > 2011/3/16 Mihai Donțu <[email protected]>:
> > > > Added linux-usb and linux-wireless to CC.
> > > >
> > > > On Thursday 17 March 2011 00:18:31 Mihai Donțu wrote:
> > > >> Hi,
> > > >>
> > > >> I have just upgraded to 2.6.38 and discovered that I can't use
> > > >> my wireless device (BCM4312 802.11a/b/g). I press Fn + F2, the
> > > >> bluetooth led lights and after a second it turns off by
> > > >> itself. In dmesg I'm seeing the following:
> > > >>
> > > >> [ 88.167212] usb 1-2.2: new full speed USB device using
> > > >> ehci_hcd and address 5
> > > >> [ 88.782330] usb 1-2.2: USB disconnect, address 5
> > > >>
> > > >> I switched to 2.6.37 until I'll have some time to bisect this.
> > > >> In the mean time I have attached the output of lspci,
> > > >> interrupts and dmesg.
> > >
> > > I suspect it's WMI related. What is your machine?
> >
> > It's a Dell Latitude D520 but I can't find a link with full specs
> > (in English).
> >
> > > Please check:
> > > https://bugzilla.kernel.org/show_bug.cgi?id=31002
> > > http://comments.gmane.org/gmane.linux.acpi.devel/49577
> > >
> > > I can't help you more, I just noticed such a issue reported on
> > > ACPI ML, you have to dig into this yourself (or someone else may
> > > help you).
> >
> > Thanks for the links. I'll see if I can get anywhere from there.

Today I had some time on my hands and decided to get this working.
Which I did. So the difference between 2.6.37 and 2.6.38 is that now I
have to invoke rfkill to enable my wireless device, because pressing
Fn + F2 toggles the hard and soft lock states of the device _but_ only
to 'yes'. Pressing the key combination again will only remove the hard
lock. On 2.6.37 it would remove both. For example:

On 2.6.37:
# rfkill list 0 # wifi disabled
0: dell-wifi: Wireless LAN
Soft blocked: yes
Hard blocked: yes

# rfkill list 0 # wifi enabled (via Fn + F2)
0: dell-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no

(rfkill events)
1301758599.537508: idx 0 type 1 op 2 soft 0 hard 0
1301758600.561087: idx 2 type 1 op 2 soft 0 hard 0

On 2.6.38:
# rfkill list 0 # wifi disabled
0: dell-wifi: Wireless LAN
Soft blocked: yes
Hard blocked: yes

# rfkill list 0 # wifi enabled (via Fn + F2)
0: dell-wifi: Wireless LAN
Soft blocked: yes
Hard blocked: no

(rfkill events)
1301758830.251541: idx 0 type 1 op 2 soft 1 hard 0

Is there supposed to be a piece of software that listens for these
events and toggles the soft state whenever the hard state changes?

Thanks,

--
Mihai Donțu