Modify

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#8124 closed defect (no_response)

USB broken..ohci works but with i/o errors..ehci IRQ issue with NEC D720101

Reported by: naximov@… Owned by: developers
Priority: response-needed Milestone: Backfire 10.03.1
Component: packages Version: Backfire 10.03.1 RC3
Keywords: Cc:

Description

Platform is MI424WR Actiontec router. Using NEC D720101 based pci usb2 controller.

  1. ehci installs but complains about wrong IRQ being used by the controller. Thus, nothing on the bus is detected.

Someone else already reported this problem here:
http://www.mail-archive.com/linux-usb-devel@lists.sourceforge.net/msg31956.html

  1. ohci installs detects all the attached devices. However, as soon as the files are read, usb resets and i/o errors occur. Most of the time errors occur after about 5-6 MB read. Somtimes later. In very rare instances, i was able to copy a 100mb file without errors, but it is very unstable. Seem to be related to data buffering in the memory and its state. vfat, ext2, ext3 all behave the same. Makes no difference whether magnetic or flash media is used on the usb bus. Here is a dump trying to copy a file:

root@OpenWrt:/mnt# ls -al
drwxr-xr-x 3 root root 4096 Oct 22 07:01 .
drwxr-xr-x 6 root root 0 Jul 12 12:41 ..
-rwxr-xr-x 1 root root 6455296 Oct 22 06:07 1
-rwxr-xr-x 1 root root 6455296 Oct 22 06:07 2
-rwxr-xr-x 1 root root 6455296 Oct 22 06:08 3
-rwxr-xr-x 1 root root 6455296 Oct 22 06:08 4
-rwxr-xr-x 1 root root 6455296 Oct 22 07:01 5
-rwxr-xr-x 1 root root 6455296 Oct 22 06:09 6
-rwxr-xr-x 1 root root 3522560 Oct 22 06:05 k
drwx------ 2 root root 16384 Oct 22 05:47 lost+found
-rwxr-xr-x 1 root root 6455296 Oct 22 06:00 r
-rwxr-xr-x 1 root root 634880 Oct 22 06:01 test
root@OpenWrt:/mnt# cp 1 a
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00
sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 03 ad 37 00 00 f0 00
end_request: I/O error, dev sda, sector 240951
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00
sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 03 ad 37 00 00 08 00
end_request: I/O error, dev sda, sector 240951
cp: read error: Input/output error
root@OpenWrt:/mnt# usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2
sd 0:0:0:0: Device offlined - not ready after error recovery
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x05 driverbyte=0x00
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 00 29 47 00 00 f0 00
end_request: I/O error, dev sda, sector 10567
Buffer I/O error on device sda1, logical block 1313
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 1314
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 1315
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 1316
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 1317
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 1318
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 1319
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 1320
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 1321
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 1322
lost page write due to I/O error on sda1
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 00 2a 37 00 00 f0 00
end_request: I/O error, dev sda, sector 10807
Aborting journal on device sda1.
sd 0:0:0:0: rejecting I/O to offline device

Attachments (0)

Change History (9)

comment:1 Changed 7 years ago by anonymous

Platform is MI424WR Actiontec router. IXP425 cpu. Using NEC D720101 based pci usb2 controller. 
1. ehci installs but complains about wrong IRQ being used by the controller. Thus, nothing on the bus is detected.
Someone else already reported this problem here: 
http://www.mail-archive.com/linux-usb-devel@lists.sourceforge.net/msg31956.html 
2. ohci installs detects all the attached devices. However, as soon as the files are read, usb resets and i/o errors occur. Most of the time errors occur after about 5-6 MB read. Somtimes later. In very rare instances, i was able to copy a 100mb file without errors, but it is very unstable.  Seem to be related to data buffering in the memory and its state. vfat, ext2, ext3 all behave the same. Makes no difference whether magnetic or flash media is used on the usb bus. Here is a dump trying to copy a file:
root@OpenWrt:/mnt# ls -al                                               
drwxr-xr-x    3 root     root         4096 Oct 22 07:01 .               
drwxr-xr-x    6 root     root            0 Jul 12 12:41 ..              
-rwxr-xr-x    1 root     root      6455296 Oct 22 06:07 1               
-rwxr-xr-x    1 root     root      6455296 Oct 22 06:07 2               
-rwxr-xr-x    1 root     root      6455296 Oct 22 06:08 3               
-rwxr-xr-x    1 root     root      6455296 Oct 22 06:08 4               
-rwxr-xr-x    1 root     root      6455296 Oct 22 07:01 5               
-rwxr-xr-x    1 root     root      6455296 Oct 22 06:09 6               
-rwxr-xr-x    1 root     root      3522560 Oct 22 06:05 k               
drwx------    2 root     root        16384 Oct 22 05:47 lost+found      
-rwxr-xr-x    1 root     root      6455296 Oct 22 06:00 r               
-rwxr-xr-x    1 root     root       634880 Oct 22 06:01 test            
root@OpenWrt:/mnt# cp 1 a                                               
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
sd 0:0:0:0: [sda] Unhandled error code                                  
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00                 
sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 03 ad 37 00 00 f0 00       
end_request: I/O error, dev sda, sector 240951                          
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
usb 1-2: reset full speed USB device using ohci_hcd and address 2       
sd 0:0:0:0: [sda] Unhandled error code                                  
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00                 
sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 03 ad 37 00 00 08 00       
end_request: I/O error, dev sda, sector 240951                          
cp: read error: Input/output error                                      
root@OpenWrt:/mnt# usb 1-2: reset full speed USB device using ohci_hcd and address 2
usb 1-2: reset full speed USB device using ohci_hcd and address 2                   
usb 1-2: reset full speed USB device using ohci_hcd and address 2                   
usb 1-2: reset full speed USB device using ohci_hcd and address 2                   
usb 1-2: reset full speed USB device using ohci_hcd and address 2                   
sd 0:0:0:0: Device offlined - not ready after error recovery                        
sd 0:0:0:0: [sda] Unhandled error code                                              
sd 0:0:0:0: [sda] Result: hostbyte=0x05 driverbyte=0x00                             
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 00 29 47 00 00 f0 00                   
end_request: I/O error, dev sda, sector 10567                                       
Buffer I/O error on device sda1, logical block 1313                                 
lost page write due to I/O error on sda1                                            
Buffer I/O error on device sda1, logical block 1314                                 
lost page write due to I/O error on sda1                                            
Buffer I/O error on device sda1, logical block 1315                                 
lost page write due to I/O error on sda1                                            
Buffer I/O error on device sda1, logical block 1316                                 
lost page write due to I/O error on sda1                                            
Buffer I/O error on device sda1, logical block 1317                                 
lost page write due to I/O error on sda1                                            
Buffer I/O error on device sda1, logical block 1318                                 
lost page write due to I/O error on sda1                                            
Buffer I/O error on device sda1, logical block 1319                                 
lost page write due to I/O error on sda1                                            
Buffer I/O error on device sda1, logical block 1320                                 
lost page write due to I/O error on sda1                                            
Buffer I/O error on device sda1, logical block 1321                                 
lost page write due to I/O error on sda1                                            
Buffer I/O error on device sda1, logical block 1322                                 
lost page write due to I/O error on sda1                                            
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: rejecting I/O to offline device                                         
sd 0:0:0:0: [sda] Unhandled error code                                              
sd 0:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00                             
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 00 2a 37 00 00 f0 00                   
end_request: I/O error, dev sda, sector 10807                                       
Aborting journal on device sda1.                                                    
sd 0:0:0:0: rejecting I/O to offline device


comment:2 follow-up: Changed 7 years ago by sniperpr@…

did you use 猫大 NEC card?

comment:3 follow-up: Changed 7 years ago by jow

This NEC controller is known be broken. It has silicon issues which will cause the whole USB host to crash if an USB 1.1 device is used/accessed. The Fonera 2.0g suffers from the same issue and the problem has never been fixed. The recommended workaround is to use an USB hub between the host port and the USB 1.1 device.

comment:4 in reply to: ↑ 3 Changed 7 years ago by anonymous

Replying to jow:

This NEC controller is known be broken. It has silicon issues which will cause the whole USB host to crash if an USB 1.1 device is used/accessed. The Fonera 2.0g suffers from the same issue and the problem has never been fixed. The recommended workaround is to use an USB hub between the host port and the USB 1.1 device.

I already had read the tread on Fonera and used a powered USB2 hub in between the flash drive and the controller, which made no difference at all. Also the drives I tried were USB2 devices. This issue seems to be related to data mishandling by OHCI. Every time it fails the RAM becomes full and never clears unless you reboot. I can understand that the USB2 is broken, but i can't see why the OHCI does not work. This must be a bug in ohci related to PCI bus or IXP425 CPU. If I can get the USB1 speeds working reliably, that would be enough.

comment:5 in reply to: ↑ 2 Changed 7 years ago by anonymous

Replying to sniperpr@…:

did you use 猫大 NEC card?

I used PER-C20U NEC card made by AAEON. Made in Taiwan. Very high quality components and assembly.

comment:6 Changed 7 years ago by anonymous

Similar problem for me, on a NSLU2 running latest Backfire trunk (26 Nov 2010). Note also how the USB disk is discovered fist as sda, then as sdb:

usb 2-1: reset full speed USB device using ohci_hcd and address 2
usb 2-1: USB disconnect, address 2
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 12 ae cb 00 00 80 00
end_request: I/O error, dev sda, sector 1224395
Buffer I/O error on device sda2, logical block 790640
Buffer I/O error on device sda2, logical block 790641
Buffer I/O error on device sda2, logical block 790642
Buffer I/O error on device sda2, logical block 790643
Buffer I/O error on device sda2, logical block 790644
Buffer I/O error on device sda2, logical block 790645
Buffer I/O error on device sda2, logical block 790646
Buffer I/O error on device sda2, logical block 790647
Buffer I/O error on device sda2, logical block 790648
Buffer I/O error on device sda2, logical block 790649
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 12 af 4b 00 00 80 00
end_request: I/O error, dev sda, sector 1224523
usb 2-1: new full speed USB device using ohci_hcd and address 3
usb 2-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 1:0:0:0: Direct-Access General USB Flash Disk 1100 PQ: 0 ANSI: 0 CCS
usb-storage: device scan complete
sd 1:0:0:0: [sdb] 7831552 512-byte logical blocks: (4.00 GB/3.73 GiB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Assuming drive cache: write through

sdb: sdb1 sdb2 sdb3 < sdb5 >

sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Attached SCSI removable disk

comment:7 Changed 7 years ago by jow

Is this stil lthe case on RC5 ?

comment:8 Changed 6 years ago by nbd

  • Resolution set to no_response
  • Status changed from new to closed

comment:9 in reply to: ↑ description Changed 4 years ago by anonymous

Where is the fireware???

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.