Re: USB memory stick has "end_request: I/O error...."

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 8/12/10, jimmy jiang <jiangyuqing@xxxxxxxxxxx> wrote:
> Hello,
>
> I am debugging a EHCI USB driver for CI13612 chip. When I plug in a USB
> memory stick and try to copy a 20KB file to the flash, all the stuff on
> the memory stick got erased and finally the system shows up some error
> message "end_request: I/O error, dev sda, sector 31160"

Whick kernel version are you using?

>
> It is okay to copy any files from the USB memory stick to
> other file system.
>
> The memory stick is VFAT file system which can work under windows.
>
> Could anybody help me to find the root cause of the issue?
>
> Thanks.
>
> The following is the console debug information.
>
> SCSI subsystem initialized
> usbcore: registered new interface driver usbfs
> usbcore: registered new interface driver hub
> usbcore: registered new device driver usb
> usbcore: registered new interface driver ub
> Driver 'sd' needs updating - please use bus_type methods
> SCSI Media Changer driver v0.25
> Driver 'ch' needs updating - please use bus_type methods
> ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> ehci_hcd: block sizes: qh 128 qtd 96 itd 192 sitd 96
> platform ci13612-hcd: CI13612A EHCI USB Host Controller
> drivers/usb/core/inode.c: creating file 'devices'
> drivers/usb/core/inode.c: creating file '001'
> platform ci13612-hcd: new USB bus registered, assigned bus number 1
> platform ci13612-hcd: reset command 080002 (park)=0 ithresh=8
>                      period=1024 Reset HALT
> platform ci13612-hcd: park 3
> platform ci13612-hcd: ...powerdown ports...
> platform ci13612-hcd: irq 31, io mem 0x20004a0000
> platform ci13612-hcd: reset command 080b02 park=3 ithresh=8
>                      period=1024 Reset HALT
> platform ci13612-hcd: init command 080b01 park=3 ithresh=8
>                      period=1024 RUN
> platform ci13612-hcd: USB 2.0 started, EHCI 1.00
> usb usb1: default language 0x0409
> usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
> usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> usb usb1: Product: CI13612A EHCI USB Host Controller
> usb usb1: Manufacturer: Linux 2.6.29 ci13612_hcd
> usb usb1: SerialNumber: ci13612-hcd
> usb usb1: uevent
> usb usb1: usb_probe_device
> usb usb1: configuration #1 chosen from 1 choice
> usb usb1: adding 1-0:1.0 (config #1, interface 0)
> usb 1-0:1.0: uevent
> hub 1-0:1.0: usb_probe_interface
> hub 1-0:1.0: usb_probe_interface - got id
> hub 1-0:1.0: USB hub found
> hub 1-0:1.0: 1 port detected
> hub 1-0:1.0: standalone hub
> hub 1-0:1.0: individual port power switching
> hub 1-0:1.0: individual port over-current protection
> hub 1-0:1.0: Single TT
> hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
> hub 1-0:1.0: power on to power good time: 20ms
> hub 1-0:1.0: local power source is good
> hub 1-0:1.0: enabling power on all ports
> drivers/usb/core/inode.c: creating file '001'
> Initializing USB Mass Storage driver...
> usbcore: registered new interface driver usb-storage
> USB Mass Storage support registered.
> usbcore: registered new interface driver libusual
> usbcore: registered new interface driver usbtest
> platform ci13612-hcd:GetStatus port 1 status 80001803 POWER sig=j CSC CONNECT
> hub 1-0:1.0: port 1: status 0101 change 0001
> hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
> hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
> usb 1-1: default language 0x0409
> usb 1-1: New USB device found, idVendor=090c, idProduct=1000
> usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> usb 1-1: Product: DISK 2.0
> usb 1-1: Manufacturer: USB
> usb 1-1: SerialNumber: Q0T7LOLQGKK67OSF
> usb 1-1: uevent
> usb 1-1: usb_probe_device
> usb 1-1: configuration #1 chosen from 1 choice
> usb 1-1: adding 1-1:1.0 (config #1, interface 0)
> usb 1-1:1.0: uevent
> ub 1-1:1.0: usb_probe_interface
> ub 1-1:1.0: usb_probe_interface - got id
> usb-storage 1-1:1.0: usb_probe_interface
> usb-storage 1-1:1.0: usb_probe_interface - got id
> scsi0 : SCSI emulation for USB Mass Storage devices
> usb-storage: device found at 2
> usb-storage: waiting for device to settle before scanning
> drivers/usb/core/inode.c: creating file '002'
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> usb-storage: device scan complete
> scsi 0:0:0:0: Direct-Access USB DISK 2.0 0403 PQ: 0 ANSI: 0 CCS
> sd 0:0:0:0: [sda] 15925248 512-byte hardware sectors:(8.15 GB/7.59 GiB)
> sd 0:0:0:0: [sda] Write Protect is off
> sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
> sd 0:0:0:0: [sda] Assuming drive cache: write through
> sd 0:0:0:0: [sda] 15925248 512-byte hardware sectors:(8.15 GB/7.59 GiB)
> sd 0:0:0:0: [sda] Write Protect is off
> sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
> sd 0:0:0:0: [sda] Assuming drive cache: write through
>  sda: sda1
> sd 0:0:0:0: [sda] Attached SCSI removable disk
> sd 0:0:0:0: Attached scsi generic sg0 type 0
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> sd 0:0:0:0: [sda] Unhandled error code
> sd 0:0:0:0: [sda] Result: hostbyte=0x05 driverbyte=0x00
> end_request: I/O error, dev sda, sector 31160
> Buffer I/O error on device sda1, logical block 31080
> lost page write due to I/O error on sda1
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> usb 1-1: usb-storage timed out on ep0in len=0/64
> usb 1-1: usb-storage timed out on ep0in len=0/64
> usb 1-1: usb-storage timed out on ep0in len=0/64
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> usb 1-1: device descriptor read/64, error -110
> usb 1-1: usb-storage timed out on ep0in len=0/64
> usb 1-1: usb-storage timed out on ep0in len=0/64
> usb 1-1: usb-storage timed out on ep0in len=0/64
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> usb 1-1: device descriptor read/64, error -110
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> usb 1-1: usb-storage timed out on ep0in len=0/64
> usb 1-1: usb-storage timed out on ep0in len=0/64
> usb 1-1: usb-storage timed out on ep0in len=0/64
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> usb 1-1: device descriptor read/64, error -110
> usb 1-1: usb-storage timed out on ep0in len=0/64
> usb 1-1: usb-storage timed out on ep0in len=0/64
> usb 1-1: usb-storage timed out on ep0in len=0/64
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> usb 1-1: device descriptor read/64, error -110
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> usb 1-1: usb-storage timed out on ep0out len=0/0
> usb 1-1: usb-storage timed out on ep0out len=0/0
> usb 1-1: device not accepting address 2, error -110
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
> usb 1-1: usb-storage timed out on ep0out len=0/0
> usb 1-1: usb-storage timed out on ep0out len=0/0
> usb 1-1: device not accepting address 2, error -110
> hub 1-0:1.0: logical disconnect on port 1
> hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
> usb 1-1: USB disconnect, address 2
> usb 1-1: unregistering device
> usb 1-1: usb_disable_device nuking all URBs
> usb 1-1: unregistering interface 1-1:1.0
> 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
> end_request: I/O error, dev sda, sector 13736960
> sd 0:0:0:0: rejecting I/O to offline device
> FAT: unable to read inode block for updating (i_pos 497281)
> usb 1-1:1.0: uevent
> usb 1-1: uevent
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: device descriptor read/64, error -110
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: device descriptor read/64, error -110
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: device descriptor read/64, error -110
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: khubd timed out on ep0in len=0/64
> usb 1-1: device descriptor read/64, error -110
> usb 1-1: khubd timed out on ep0out len=0/0
> usb 1-1: khubd timed out on ep0out len=0/0
> usb 1-1: device not accepting address 5, error -110
> usb 1-1: khubd timed out on ep0out len=0/0
> usb 1-1: khubd timed out on ep0out len=0/0
> usb 1-1: device not accepting address 6, error -110
> hub 1-0:1.0: unable to enumerate USB device on port 1
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
>

Does the issue occur only for larger files?

Is the issue reproducible on other memory sticks?

Could you enable "USB Mass Storage verbose debug" option in menuconfig
and see if the issue still occurs.

Regards,
Maulik
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux