usb-storage write error

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

 



Hi,

This is my first message to the list. I would like to report an error
I've having trying to use several pen drives that I have. They have FAT32
partitions.

I'm using an Ubuntu 9.10 x64 with a kernel 2.6.31 recompiled in order to get the
usb storage and usb message, nothing else. My workstation is an HP with AMD
64 bits.

My problem is that I can read the pen drive ok, but when I try to copy something
big (like an avi) to the pen the write operation always fails. I've follow this
to the dmesg entries in the kernel.log. This is an excerpt:

[  638.088820] usb-storage: ***thread awakened.
[  638.088824] usb-storage: Command WRITE_10 (10 bytes)
[  638.088827] usb-storage:  2a 00 00 24 31 b6 00 00 f0 00
[  638.088843] usb-storage: Bulk Command S 0x43425355 T 0x261 L 122880 F 0 Trg 0
LUN 0 CL 10
[  638.088849] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[  638.088976] usb-storage: Status code 0; transferred 31/31
[  638.088980] usb-storage: -- transfer complete
[  638.088983] usb-storage: Bulk command transfer result=0
[  638.088988] usb-storage: usb_stor_bulk_transfer_sglist: xfer 122880 bytes, 19
entries
[  638.107998] usb-storage: Status code 0; transferred 122880/122880
[  638.108002] usb-storage: -- transfer complete
[  638.108005] usb-storage: Bulk data transfer result 0x0
[  638.108009] usb-storage: Attempting to get CSW...
[  638.108012] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[  638.112231] usb-storage: Status code 0; transferred 13/13
[  638.112235] usb-storage: -- transfer complete
[  638.112238] usb-storage: Bulk status result = 0
[  638.112243] usb-storage: Bulk Status S 0x53425355 T 0x261 R 0 Stat 0x0
[  638.112248] usb-storage: scsi cmd done, result=0x0
[  638.112253] usb-storage: *** thread sleeping.

This is the incorrect write op:

[  638.112305] usb-storage: queuecommand called
[  638.112318] usb-storage: *** thread awakened.
[  638.112323] usb-storage: Command WRITE_10 (10 bytes)
[  638.112326] usb-storage:  2a 00 00 24 32 a6 00 00 f0 00
[  638.112341] usb-storage: Bulk Command S 0x43425355 T 0x262 L 122880 F 0 Trg 0
LUN 0 CL 10
[  638.112346] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[  638.112480] usb-storage: Status code 0; transferred 31/31
[  638.112484] usb-storage: -- transfer complete
[  638.112488] usb-storage: Bulk command transfer result=0
[  638.112492] usb-storage: usb_stor_bulk_transfer_sglist: xfer 122880 bytes, 17
entries
[  638.126146] usb-storage: Status code -32; transferred 84992/122880
[  638.126150] usb-storage: clearing endpoint halt for pipe 0xc0010200
[  638.126156] usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000
index=02 len=0
[  641.120038] usb-storage: Timeout -- cancelling URB
[  641.120140] usb-storage: usb_stor_clear_halt: result = -2
[  641.120147] usb-storage: Bulk data transfer result 0x4
[  641.120152] usb-storage: -- transport indicates error, resetting
[  641.120160] usb-storage: usb_stor_pre_reset

And then the device is missing, but the write led on the pen drive is
still blinking.

The lspi command reports (only usb related devices here):

00:13.0 USB Controller: ATI Technologies Inc SB600 USB (OHCI0) (prog-if 10)
       Subsystem: Micro-Star International Co., Ltd. Device 7297
       Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
       Memory at fe02f000 (32-bit, non-prefetchable) [size=4K]
       Kernel driver in use: ohci_hcd

00:13.1 USB Controller: ATI Technologies Inc SB600 USB (OHCI1) (prog-if 10)
       Subsystem: Micro-Star International Co., Ltd. Device 7297
       Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 17
       Memory at fe02e000 (32-bit, non-prefetchable) [size=4K]
       Kernel driver in use: ohci_hcd

00:13.2 USB Controller: ATI Technologies Inc SB600 USB (OHCI2) (prog-if 10)
       Subsystem: Micro-Star International Co., Ltd. Device 7297
       Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
       Memory at fe02d000 (32-bit, non-prefetchable) [size=4K]
       Kernel driver in use: ohci_hcd

00:13.3 USB Controller: ATI Technologies Inc SB600 USB (OHCI3) (prog-if 10)
       Subsystem: Micro-Star International Co., Ltd. Device 7297
       Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 17
       Memory at fe02c000 (32-bit, non-prefetchable) [size=4K]
       Kernel driver in use: ohci_hcd

00:13.4 USB Controller: ATI Technologies Inc SB600 USB (OHCI4) (prog-if 10)
       Subsystem: Micro-Star International Co., Ltd. Device 7297
       Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
       Memory at fe02b000 (32-bit, non-prefetchable) [size=4K]
       Kernel driver in use: ohci_hcd

00:13.5 USB Controller: ATI Technologies Inc SB600 USB Controller
(EHCI) (prog-if 20)
       Subsystem: Micro-Star International Co., Ltd. Device 7297
       Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
       Memory at fe02a000 (32-bit, non-prefetchable) [size=256]
       Capabilities: <access denied>
       Kernel driver in use: ehci_hcd

and my pen drive dmesg info:

[  431.502566] ehci_hcd 0000:00:13.5: GetStatus port 5 status 001803 POWER sig=j
CSC CONNECT
[  431.502574] hub 1-0:1.0: port 5: status 0501 change 0001
[  431.610056] hub 1-0:1.0: state 7 ports 10 chg 0020 evt 0000
[  431.610078] hub 1-0:1.0: port 5, status 0501, change 0000, 480 Mb/s
[  431.670045] ehci_hcd 0000:00:13.5: port 5 high speed
[  431.670055] ehci_hcd 0000:00:13.5: GetStatus port 5 status 001005 POWER
sig=se0 PE CONNECT
[  431.730070] usb 1-5: new high speed USB device using ehci_hcd and address 2
[  431.790080] ehci_hcd 0000:00:13.5: port 5 high speed
[  431.790091] ehci_hcd 0000:00:13.5: GetStatus port 5 status 001005 POWER
sig=se0 PE CONNECT
[  431.883970] usb 1-5: default language 0x0409
[  431.885089] usb 1-5: udev 2, busnum 1, minor = 1
[  431.885094] usb 1-5: New USB device found, idVendor=0951, idProduct=1603
[  431.885099] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  431.885107] usb 1-5: Product: DataTraveler 2.0
[  431.885111] usb 1-5: Manufacturer: Kingston
[  431.885115] usb 1-5: SerialNumber: 200706200000000059188244
[  431.885269] usb 1-5: uevent
[  431.885309] usb 1-5: usb_probe_device
[  431.885315] usb 1-5: configuration #1 chosen from 1 choice
[  431.886312] usb 1-5: adding 1-5:1.0 (config #1, interface 0)

Is it a known bug? Can I help with more info? I've the complete dmesg
file (1.2MB) Any help is welcome!!

Regards,
Jorge


--
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