Skip to contentSkip to conversation

Problem with commit "USB: EHCI: remove ASS/PSS polling timeout"

DISCUSSION Jean Delvare 3 participants 4 messages Feb 26, 2013 Stable branch

lore
Share & tools
lore

Jean Delvare

author Tested-by Piergiorgio Sartor
#0 lore raw

Hi Alan, Greg,

Since kernel 3.7.7, my Hauppauge Nova-T 500 Dual DVB-T TV card stopped working reliably. Half of the boots it will work, the other half it won't, with different error messages. For example

dib0700: firmware download failed at 7 with -110

or

usb 2-1: device not accepting address 2, error -110 usb 2-1: new high-speed USB device number 3 using ehci_hcd usb 2-1: device descriptor read/64, error -110 usb 2-1: device descriptor read/64, error -110 usb 2-1: new high-speed USB device number 4 using ehci_hcd usb 2-1: device not accepting address 4, error -110 usb 2-1: new high-speed USB device number 5 using ehci_hcd usb 2-1: device not accepting address 5, error -110 hub 2-0:1.0: unable to enumerate USB device on port 1

I bisected it and found:

269ef9f3805a5ec17ddf3dd5f13d5e09598c155b is the first bad commit commit 269ef9f3805a5ec17ddf3dd5f13d5e09598c155b

Author: Alan Stern <[email protected]>
Date:   Fri Jan 25 16:52:45 2013 -0500

USB: EHCI: remove ASS/PSS polling timeout

commit 55bcdce8a8228223ec4d17d8ded8134ed265d2c5 upstream.

This patch (as1647) attempts to work around a problem that seems to affect some nVidia EHCI controllers. They sometimes take a very long time to turn off their async or periodic schedules. I don't know if this is a result of other problems, but in any case it seems wise not to depend on schedule enables or disables taking effect in any specific length of time.

The patch removes the existing 20-ms timeout for enabling and disabling the schedules. The driver will now continue to poll the schedule state at 1-ms intervals until the controller finally decides to obey the most recent command issued by the driver. Just in case this hides a problem, a debugging message will be logged if the controller takes longer than 20 polls.

I don't know if this will actually fix anything, but it can't hurt.

I am apparently not the only one complaining about this commit, for example the following bug resulted in this commit being reverted from all affected openSUSE kernels one week ago:
https://bugzilla.novell.com/show_bug.cgi?id=804367

Reverting this patch on top of kernel 3.7.9 make my TV card work again.

So please revert this commit upstream as well as in 3.8 and 3.7 stable kernel series.

As a side note, I am very curious how a commit with comment "I don't know if this will actually fix anything" ever made it into a stable kernel tree. I thought there were stable kernel tree rules and one of them was "it must fix a real bug that bothers people"?

Thanks,

Signature · 1 line
Jean Delvare
#1 lore raw
Quoted 5 lines · Jean Delvare

Hi Alan, Greg,

Since kernel 3.7.7, my Hauppauge Nova-T 500 Dual DVB-T TV card stopped working reliably. Half of the boots it will work, the other half it won't, with different error messages. For example

Yes, I know. Other people have already reported the same problem -- but only for EHCI controllers made by VIA. Do you also have a VIA EHCI controller?

Quoted 2 lines

So please revert this commit upstream as well as in 3.8 and 3.7 stable kernel series.

I intend to as soon as the current merge window closes.

Or should I do it sooner? Greg, if I send in a reversion patch now, will it get pushed to Linus within the merge window?

Quoted 4 lines

As a side note, I am very curious how a commit with comment "I don't know if this will actually fix anything" ever made it into a stable kernel tree. I thought there were stable kernel tree rules and one of them was "it must fix a real bug that bothers people"?

Somebody reported a problem, and I wrote a series of two patches to fix it. With the two patches together the problem went away, but we never tried to figure out whether either one of them would have sufficed. I simply submitted both patches.

Alan Stern

#2 lore raw
Quoted 12 lines · Alan Stern
Quoted 5 lines · Jean Delvare

Hi Alan, Greg,

Since kernel 3.7.7, my Hauppauge Nova-T 500 Dual DVB-T TV card stopped working reliably. Half of the boots it will work, the other half it won't, with different error messages. For example

Yes, I know. Other people have already reported the same problem -- but only for EHCI controllers made by VIA. Do you also have a VIA EHCI controller?

Quoted 7 lines
Quoted 2 lines

So please revert this commit upstream as well as in 3.8 and 3.7 stable kernel series.

I intend to as soon as the current merge window closes.

Or should I do it sooner? Greg, if I send in a reversion patch now, will it get pushed to Linus within the merge window?

Yes, I can and will get it in as soon as possible, as people are having problems with this, and I want to get it fixed in the 3.8.y releases as well.

thanks,

greg k-h

#3 lore raw
In reply to Alan Stern

Hi Alan,

Quoted 8 lines · Alan Stern
Quoted 3 lines · Jean Delvare

Since kernel 3.7.7, my Hauppauge Nova-T 500 Dual DVB-T TV card stopped working reliably. Half of the boots it will work, the other half it won't, with different error messages. For example

Yes, I know. Other people have already reported the same problem -- but only for EHCI controllers made by VIA. Do you also have a VIA EHCI controller?

Yes, VIA VT6212L:

01:04.0 USB Controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 62) 01:04.1 USB Controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 62) 01:04.2 USB Controller [0c03]: VIA Technologies, Inc. USB 2.0 [1106:3104] (rev 65)

Quoted 7 lines
Quoted 2 lines

So please revert this commit upstream as well as in 3.8 and 3.7 stable kernel series.

I intend to as soon as the current merge window closes.

Or should I do it sooner? Greg, if I send in a reversion patch now, will it get pushed to Linus within the merge window?

I see no reason to delay it. The merge window is when more patches are allowed to go in, not fewer. When a commit caused a regression in a stable kernel series, the right time to get it fixed is "as soon as possible."

Thanks,

Signature · 1 line
Jean Delvare