public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* usb-starge not working in the latest kernel 2.4
@ 2003-08-29  1:42 Tomita, Haruo
  2003-08-29 14:09 ` Alan Stern
  0 siblings, 1 reply; 8+ messages in thread
From: Tomita, Haruo @ 2003-08-29  1:42 UTC (permalink / raw)
  To: Alan Stern
  Cc: USB development list, SCSI development list, David Brownell,
	Tomita, Haruo

Dear Alan,

I've tested usb-storage with the 2.6.0-test2-bk2 kernel version,
It seems that 2.6 kernel version is stable. 
However, 2.4 version is unstable.

The host  controller mPD270100 of NEC and VT6202 of VIA.
When it tested in a high speed multihub, it operated about two weeks. 
However, it became the following errors when the number of devices was one.
I think that it is not failure of a device.
Is it the problem of error handling?

This error was generated in the latest kernel 2.4.22.

usb-storage: usb_stor_transfer_partial(): xfer 2048 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 2048/2048
usb-storage: usb_stor_transfer_partial(): transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x7862f6 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command READ_10 (10 bytes)
usb-storage: 28 00 00 02 e5 23 00 00 01 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x7862f7 Trg 0 LUN 0 L 2048 F 128 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_transfer_partial(): xfer 2048 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 2048/2048
usb-storage: usb_stor_transfer_partial(): transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x7862f7 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command READ_10 (10 bytes)
usb-storage: 28 00 00 02 e5 24 00 00 3f 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x7862f8 Trg 0 LUN 0 L 129024 F 128 CL 12
usb-storage: command_abort() called
usb-storage: Bulk command transfer result=-104
usb-storage: -- transport indicates command was aborted
usb-storage: Bulk reset requested
usb_control/bulk_msg: timeout
usb-storage: Bulk soft reset failed -110
usb-storage: scsi command aborted
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage: 00 00 00 00 00 00 00 00 3f 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x7862f9 Trg 0 LUN 0 L 0 F 0 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: command_abort() called
usb-storage: -- transport indicates command was aborted
usb-storage: Bulk reset requested
usb_control/bulk_msg: timeout
usb-storage: Bulk soft reset failed -110
usb-storage: scsi command aborted
usb-storage: *** thread sleeping.
usb-storage: device_reset() called
usb-storage: Bulk reset requested
usb_control/bulk_msg: timeout
usb-storage: Bulk soft reset failed -110
usb-storage: bus_reset() called
hub.c: port 1, portstatus 511, change 0, 480 Mb/s
hub.c: port 1 of hub 1 not reset yet, waiting 10ms
hub.c: port 1, portstatus 511, change 0, 480 Mb/s
hub.c: port 1 of hub 1 not reset yet, waiting 10ms
ehci_hcd 00:0c.2: port 1 high speed
ehci_hcd 00:0c.2: GetStatus port 1 status 001005 POWER sig=se0  PE CONNECT
hub.c: port 1, portstatus 503, change 10, 480 Mb/s
ehci_hcd 00:0c.2: devpath 1 ep0out 3strikes
hub.c: USB device not accepting new address (error=-71)
ehci_hcd 00:0c.2: GetStatus port 1 status 001803 POWER sig=j  CSC CONNECT
hub.c: port 1, portstatus 501, change 1, 480 Mb/s
hub.c: port 1 connection change
hub.c: port 1, portstatus 501, change 1, 480 Mb/s
usb.c: USB disconnect on device 00:0c.2-1 address 2
usb-storage: storage_disconnect() called
usb-storage: -- releasing main URB
usb-storage: -- usb_unlink_urb() returned -19
usb.c: kusbd: /sbin/hotplug remove 2
ehci_hcd 00:0c.2: free_config 1 devnum 2
hub.c: port 1, portstatus 501, change 0, 480 Mb/s
hub.c: port 1, portstatus 501, change 0, 480 Mb/s
hub.c: port 1, portstatus 501, change 0, 480 Mb/s
hub.c: port 1, portstatus 501, change 0, 480 Mb/s
hub.c: port 1, portstatus 511, change 0, 480 Mb/s
hub.c: port 1 of hub 1 not reset yet, waiting 10ms
hub.c: port 1, portstatus 511, change 0, 480 Mb/s
hub.c: port 1 of hub 1 not reset yet, waiting 10ms
ehci_hcd 00:0c.2: port 1 high speed
ehci_hcd 00:0c.2: GetStatus port 1 status 001005 POWER sig=se0  PE CONNECT
hub.c: port 1, portstatus 503, change 10, 480 Mb/s
hub.c: new USB device 00:0c.2-1, assigned address 3
usb.c: kmalloc IF dfe6d960, numif 1
usb.c: new device strings: Mfr=73, Product=87, SerialNumber=107
usb.c: USB device number 3 default language ID 0x409
Manufacturer: Plextor Corp.
Product: USB Storage Adapter
SerialNumber: 11100E000052487C
usb-storage: act_altsettting is 0
usb-storage: id_index calculated to be: 92
usb-storage: Array length appears to be: 98
usb-storage: USB Mass Storage device detected
usb-storage: Endpoints: In: 0xdfe641f4 Out: 0xdfe641e0 Int: 0xdfe64208 (Period 9)
usb-storage: Found existing GUID 093b001211100e000052487c
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
usb.c: usb-storage driver claimed interface dfe6d960
usb.c: kusbd: /sbin/hotplug add 3
hub.c: port 2, portstatus 100, change 0, 12 Mb/s
hub.c: port 3, portstatus 100, change 0, 12 Mb/s
hub.c: port 4, portstatus 100, change 0, 12 Mb/s
usb-storage: host_reset() requested but not implemented
scsi: device set offline - command error recover failed: host 0 channel 0 id 0 lun 0
SCSI cdrom error : host 0 channel 0 id 0 lun 0 return code = 6050000
 I/O error: dev 0b:00, sector 758928
 I/O error: dev 0b:00, sector 758932
 I/O error: dev 0b:00, sector 759180
 I/O error: dev 0b:00, sector 758928
 
P.S.
Please teach me how to analyze the root cause of this isseu.

Regards,
Haruo

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: usb-starge not working in the latest kernel 2.4
@ 2003-09-01 11:05 Tomita, Haruo
  0 siblings, 0 replies; 8+ messages in thread
From: Tomita, Haruo @ 2003-09-01 11:05 UTC (permalink / raw)
  To: Alan Stern; +Cc: USB development list, SCSI development list, David Brownell

Hi Alan,

Thank you for your replay.

A portion is omitted in the first half.

Haruo> usb-storage: bus_reset() called
Haruo> hub.c: port 1, portstatus 511, change 0, 480 Mb/s
Haruo> hub.c: port 1 of hub 1 not reset yet, waiting 10ms
Haruo> hub.c: port 1, portstatus 511, change 0, 480 Mb/s
Haruo> hub.c: port 1 of hub 1 not reset yet, waiting 10ms
Haruo> ehci_hcd 00:0c.2: port 1 high speed
Haruo> ehci_hcd 00:0c.2: GetStatus port 1 status 001005 POWER 
Haruo> sig=se0  PE CONNECT
Haruo> hub.c: port 1, portstatus 503, change 10, 480 Mb/s
Haruo> ehci_hcd 00:0c.2: devpath 1 ep0out 3strikes
Haruo> hub.c: USB device not accepting new address (error=-71)
 
Alan> This "not accepting new address" problem for ECHI was 
Alan> recently addressed  by a new patch.  See
Alan> http://sourceforge.net/mailarchive/message.php?msg_id=5927120
Alan> Maybe once that's fixed the error recovery will work better.

I think that this patch is related with usb reset.
If it goes through the transaction translator of a 2.0 hub, 
because after resetting the device, usb_reset_device() does a 
set_address(), but the ehci driver sends this to the device's previous 
address, when it's post-reset address is 0.
I will test using kernel 2.4.22-bk6.

Haruo> Please teach me how to analyze the root cause of this issue.
 
Alan> It's not easy to do.  Nothing special stands out.  
Alan> One small possibility 
Alan> is the length of the READ command where the error occurred: 
Alan> 129024 bytes.  
Alan> Check through earlier parts of the log and see if it contains 
Alan> successful 
Alan> READs or WRITEs for that much data.  Some devices have an 
Alan> upper limit on 
Alan> how much they can transfer in a single command and don't like 
Alan> it when that  limit is exceeded.

OK, I will think.

Alan> Did you said that the device works well when connected through a high
Alan> speed hub, but it fails when connected directly to the 
Alan> computer?

It seems that it stabilizes and operates 
when two devices are connected by high speed hub. 
However, it becomes an error in using only one device.
The high speed hub was used when using two devices.
In the case of one device, device connected the computer directly.

Thanks!!
Haruo

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: usb-starge not working in the latest kernel 2.4
@ 2003-09-01 11:05 Tomita, Haruo
  0 siblings, 0 replies; 8+ messages in thread
From: Tomita, Haruo @ 2003-09-01 11:05 UTC (permalink / raw)
  To: David Brownell, Alan Stern
  Cc: USB development list, SCSI development list, Tomita, Haruo

Hi Dave,

Thanks!!

Haruo>usb-storage: Command READ_10 (10 bytes)
Haruo>usb-storage: 28 00 00 02 e5 24 00 00 3f 00 00 00
Haruo>usb-storage: Bulk command S 0x43425355 T 0x7862f8 Trg 0 LUN 
Haruo> 0 L 129024 F 128 CL 12
Haruo>usb-storage: command_abort() called

Alan> It stopped working here.  The driver tried to send the next 
Alan> command but the drive never acknowledged receiving it.

Dave> It might also be useful to find just how many of those 126 KBytes
Dave> were successfully transferred before the abort.

How can it check?

Dave> Also:  is this one of those cases where 2.6 works and 2.4 doesn't?
Dave> The i/o patterns are very different ...
 
Is it the meaning that operation changes with  i/o patterns?
--
Haruo

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: usb-starge not working in the latest kernel 2.4
@ 2003-09-05 11:14 Tomita, Haruo
  2003-09-05 15:31 ` Alan Stern
  0 siblings, 1 reply; 8+ messages in thread
From: Tomita, Haruo @ 2003-09-05 11:14 UTC (permalink / raw)
  To: Alan Stern
  Cc: USB development list, SCSI development list, David Brownell,
	Tomita, Haruo

Hi Alan,

Alan> This "not accepting new address" problem for ECHI was 
Alan> recently addressed  by a new patch.  See
Alan> http://sourceforge.net/mailarchive/message.php?msg_id=5927120
Alan> Maybe once that's fixed the error recovery will work better.
 
I tested using kernel 2.4.22-bk6. It failed by the following two patterns.
1. Bulk command transfer result=-104
2.  usb_stor_bulk_msg() returned -32

The detailed message is as follows.

1. Bulk command transfer result=-104

usb-storage: Bulk status Sig 0x53425355 T 0x93534d R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command READ_10 (10 bytes)
usb-storage: 28 00 00 01 ce 21 00 00 01 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x93534e Trg 0 LUN 0 L 2048 F 128 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_transfer_partial(): xfer 2048 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 2048/2048
usb-storage: usb_stor_transfer_partial(): transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x93534e R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command READ_10 (10 bytes)
usb-storage: 28 00 00 01 ce 22 00 00 3f 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x93534f Trg 0 LUN 0 L 129024 F 128 CL 12
usb-storage: command_abort() called
usb-storage: Bulk command transfer result=-104
usb-storage: -- transport indicates command was aborted
usb-storage: Bulk reset requested
usb_control/bulk_msg: timeout
usb-storage: Bulk soft reset failed -110
usb-storage: scsi command aborted
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage: 00 00 00 00 00 00 00 00 3f 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x935350 Trg 0 LUN 0 L 0 F 0 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: command_abort() called
usb-storage: -- transport indicates command was aborted
usb-storage: Bulk reset requested
usb_control/bulk_msg: timeout
usb-storage: Bulk soft reset failed -110
usb-storage: scsi command aborted
usb-storage: *** thread sleeping.
usb-storage: device_reset() called
usb-storage: Bulk reset requested
usb_control/bulk_msg: timeout
usb-storage: Bulk soft reset failed -110
usb-storage: bus_reset() called
hub.c: port 1, portstatus 511, change 0, 480 Mb/s
hub.c: port 1 of hub 1 not reset yet, waiting 10ms
hub.c: port 1, portstatus 511, change 0, 480 Mb/s
hub.c: port 1 of hub 1 not reset yet, waiting 10ms
ehci_hcd 00:0c.2: port 1 high speed
ehci_hcd 00:0c.2: GetStatus port 1 status 001005 POWER sig=se0  PE CONNECT
hub.c: port 1, portstatus 503, change 10, 480 Mb/s
usb.c: ignoring set_interface for dev 3, iface 0, alt 0
usb-storage: Examinging driver usb-storage...skipping ourselves.
usb-storage: bus_reset() complete
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage: 00 00 00 00 00 00 00 00 3f 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x935351 Trg 0 LUN 0 L 0 F 0 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: command_abort() called
usb-storage: -- transport indicates command was aborted
usb-storage: Bulk reset requested
usb_control/bulk_msg: timeout
usb-storage: Bulk soft reset failed -110
usb-storage: scsi command aborted
usb-storage: *** thread sleeping.
scsi: device set offline - not ready or command retry failed after bus reset: host 0 channel 0 id 0 lun 0
SCSI cdrom error : host 0 channel 0 id 0 lun 0 return code = 50000
 I/O error: dev 0b:00, sector 473224
 I/O error: dev 0b:00, sector 473228
 I/O error: dev 0b:00, sector 473476
 I/O error: dev 0b:00, sector 473224

2.  usb_stor_bulk_msg() returned -32

usb-storage: usb_stor_transfer_partial(): xfer 2048 bytes
usb-storage: usb_stor_bulk_msg() returned -32 xferred 0/2048
usb-storage: clearing endpoint halt for pipe 0xc0008280
usb-storage: usb_stor_clear_halt: result=0
usb-storage: usb_stor_transfer_partial(): unknown error
usb-storage: Bulk data transfer result 0x2
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x528063 R 2048 Stat 0x1
usb-storage: -- transport indicates command failure
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Bulk command S 0x43425355 T 0x528064 Trg 0 LUN 0 L 18 F 128 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_transfer_partial(): xfer 18 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18
usb-storage: usb_stor_transfer_partial(): transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x528064 R 0 Stat 0x0
usb-storage: -- Result from auto-sense is 0
usb-storage: -- code: 0x70, key: 0x2, ASC: 0x4, ASCQ: 0x1
usb-storage: Not Ready: LUN in process of becoming ready
usb-storage: scsi cmd done, result=0x2
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command READ_10 (12 bytes)
usb-storage: 28 00 00 03 11 63 00 00 01 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x528065 Trg 0 LUN 0 L 2048 F 128 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_transfer_partial(): xfer 2048 bytes
usb-storage: usb_stor_bulk_msg() returned -32 xferred 0/2048
usb-storage: clearing endpoint halt for pipe 0xc0008280
usb-storage: usb_stor_clear_halt: result=0
usb-storage: usb_stor_transfer_partial(): unknown error
usb-storage: Bulk data transfer result 0x2
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x528065 R 2048 Stat 0x1
usb-storage: -- transport indicates command failure
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Bulk command S 0x43425355 T 0x528066 Trg 0 LUN 0 L 18 F 128 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_transfer_partial(): xfer 18 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18
usb-storage: usb_stor_transfer_partial(): transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x528066 R 0 Stat 0x0
usb-storage: -- Result from auto-sense is 0
usb-storage: -- code: 0x70, key: 0x6, ASC: 0x28, ASCQ: 0x0
usb-storage: Unit Attention: not ready to ready transition
usb-storage: scsi cmd done, result=0x2
usb-storage: *** thread sleeping.
 I/O error: dev 0b:00, sector 804236
 I/O error: dev 0b:00, sector 804240
 I/O error: dev 0b:00, sector 804492
 I/O error: dev 0b:00, sector 804236

Regards,
Haruo 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-09-05 15:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-29  1:42 usb-starge not working in the latest kernel 2.4 Tomita, Haruo
2003-08-29 14:09 ` Alan Stern
2003-08-29 14:50   ` David Brownell
2003-08-29 15:12     ` Alan Stern
  -- strict thread matches above, loose matches on Subject: below --
2003-09-01 11:05 Tomita, Haruo
2003-09-01 11:05 Tomita, Haruo
2003-09-05 11:14 Tomita, Haruo
2003-09-05 15:31 ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox