Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10786 closed defect (fixed)

AGV2+W, bcm63xx EHCI USB driver spams over-current messages.

Reported by: fredrik.ohrn@… Owned by: florian
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Using snapshot build r29732 (kernel 2.6.39.4) the EHCI USB driver spams dmesg with over-current messages continuously:

[   60.128000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   60.136000] bcm63xx_ehci bcm63xx_ehci.0: BCM63XX integrated EHCI controller
[   60.144000] bcm63xx_ehci bcm63xx_ehci.0: new USB bus registered, assigned bus number 1
[   60.176000] bcm63xx_ehci bcm63xx_ehci.0: irq 18, io mem 0xfffe1300
[   60.192000] bcm63xx_ehci bcm63xx_ehci.0: USB 2.0 started, EHCI 1.00, overcurrent ignored
[   60.200000] hub 1-0:1.0: USB hub found
[   60.204000] hub 1-0:1.0: 2 ports detected
[   60.520000] hub 1-0:1.0: over-current condition on port 2
[   60.732000] hub 1-0:1.0: over-current condition on port 2
[   60.944000] hub 1-0:1.0: over-current condition on port 2
[   61.156000] hub 1-0:1.0: over-current condition on port 2
...
...

Even though the driver indicates that over-current is ignored it still spams dmesg like mad. It does not matter if something is connected to the (single) USB port on the device or not.

Attachments (0)

Change History (18)

comment:1 Changed 6 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to accepted

comment:2 Changed 6 years ago by anonymous

Turns out an easy workaround is to add the ignore-oc option when loading the module, edit /etc/modules.d/40-usb2 to read:

ehci-hcd ignore-oc

comment:3 Changed 6 years ago by desigabri

+1

wanted to open the same thicket (and others about 63xx AGV2+W) but my requestes to open new tickets are detected as spam.

Turns out an easy workaround is to add the ignore-oc option when loading the module, edit /etc/modules.d/40-usb2 to read:

ehci-hcd ignore-oc

thanks I'll try it

comment:4 Changed 6 years ago by desigabri

because the device isn't accessible during this USB OC trouble, then I can't modify the 40-usb2 file.

I can't do it too if I run filesafe mode because of only-read condition.

I don't know where add this option into the source files

comment:5 Changed 6 years ago by florian

I have another patch to fix that problem which is not requiring the module parameter, I will check it later.

comment:6 Changed 6 years ago by florian

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed with r29773

comment:7 follow-up: Changed 6 years ago by desigabri

  • Resolution fixed deleted
  • Status changed from closed to reopened

I'm sorry,
I tryed the last 63xx trunk compiling it --> unsuccesfully

made a clean linux/target --> unsuccesfully

made a clean --> unsuccesfully

deleted all the trunk and svn again the full trunk,compiled again --> unsuccesfully

I got every time the same error:

touch /home/desigabri/OFFICINA/openwrt/trunk/63xx/staging_dir/target-mips_uClibc-0.9.32/root-brcm63xx/stamp/.kmod-bcm63xx-spi_installed
make[3]: Leaving directory `/home/desigabri/OFFICINA/openwrt/trunk/63xx/package/kernel'
make[2]: Leaving directory `/home/desigabri/OFFICINA/openwrt/trunk/63xx'
make[1]: *** [/home/desigabri/OFFICINA/openwrt/trunk/63xx/staging_dir/target-mips_uClibc-0.9.32/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/desigabri/OFFICINA/openwrt/trunk/63xx'
make: *** [world] Errore 2
desigabri@faciolino-ubuntu:~/OFFICINA/openwrt/trunk/63xx$ 

comment:8 Changed 6 years ago by desigabri

anyway as the starting ticket I got this typicall log (without your latest patch)

[   22.956000] usbcore: registered new interface driver usbfs
[   22.960000] usbcore: registered new interface driver hub
[   22.976000] usbcore: registered new device driver usb
...
[   30.156000] NET: Registered protocol family 24
[   30.724000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   30.732000] bcm63xx_ehci bcm63xx_ehci.0: BCM63XX integrated EHCI controller
[   30.740000] bcm63xx_ehci bcm63xx_ehci.0: new USB bus registered, assigned bus number 1
[   30.772000] bcm63xx_ehci bcm63xx_ehci.0: irq 18, io mem 0xfffe1300
[   30.788000] bcm63xx_ehci bcm63xx_ehci.0: USB 2.0 started, EHCI 1.00, overcurrent ignored
[   30.796000] hub 1-0:1.0: USB hub found
[   30.800000] hub 1-0:1.0: 2 ports detected
...
[   31.316000] hub 1-0:1.0: over-current condition on port 2
[   31.584000] hub 1-0:1.0: over-current condition on port 2
[   31.920000] hub 1-0:1.0: over-current condition on port 2
[   32.224000] hub 1-0:1.0: over-current condition on port 2

where I can see that in some ways the EHCI just ignores OC

and that the overcurrent is related to the detected USB hub (on port 2)

...

hope not to botter you with my ignorance...

comment:9 Changed 6 years ago by florian

Please rebuild trunk with my latest patches.

comment:10 in reply to: ↑ 7 ; follow-up: Changed 6 years ago by desigabri

Replying to desigabri:

I'm sorry,
I tryed the last 63xx trunk compiling it --> unsuccesfully

made a clean linux/target --> unsuccesfully

made a clean --> unsuccesfully

deleted all the trunk and svn again the full trunk,compiled again --> unsuccesfully

I got every time the same error:

touch /home/desigabri/OFFICINA/openwrt/trunk/63xx/staging_dir/target-mips_uClibc-0.9.32/root-brcm63xx/stamp/.kmod-bcm63xx-spi_installed
make[3]: Leaving directory `/home/desigabri/OFFICINA/openwrt/trunk/63xx/package/kernel'
make[2]: Leaving directory `/home/desigabri/OFFICINA/openwrt/trunk/63xx'
make[1]: *** [/home/desigabri/OFFICINA/openwrt/trunk/63xx/staging_dir/target-mips_uClibc-0.9.32/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/desigabri/OFFICINA/openwrt/trunk/63xx'
make: *** [world] Errore 2
desigabri@faciolino-ubuntu:~/OFFICINA/openwrt/trunk/63xx$ 

As I reported, I did it unsuccesfully. Then I wrote about the log that I got before the patch to add a thought/comment

comment:11 in reply to: ↑ 10 Changed 6 years ago by me again

Please rebuild trunk with my latest patches. 

As I wanted to report, I did it unsuccesfully.
Then I wrote about the log that I got before the patch to add a thought/comment

Compiling the 29773 trunk got me errors reported before:
also after a target/linux clean
also after a clean
also after having deleted the full trunk, svn the trunk again, and rebuilt it from stratch.
May be I wasn't anought bright about my explanation due my poor english.

comment:12 Changed 6 years ago by fredrik.ohrn@…

The driver works fine after the fix in r29773, this bug can be closed.

comment:13 Changed 6 years ago by florian

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:14 Changed 6 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

latest build, r31568, still needs adding ignore-oc parameter to ehci-hcd

comment:15 Changed 6 years ago by florian

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:16 Changed 6 years ago by fredrik.ohrn@…

Hi Florian,

The excessive over-current messages are back in snapshot build r32131 (kernel 3.3.8).

comment:17 Changed 6 years ago by jogo

My bad, I dropped the ignore_oc when updating to 3.3. Should be now really fixed again with r32221.

comment:18 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.