RE: usb device getting disconnected

2012-08-07 Thread Sadasivan Shaiju
Hi  Alen/Peter ,

I  do  get  the  following error   while   the  system  is  up  and
running  .  Basically  the  USB  device   get  disconnected  .  Any
insight  into  the  problem ?


[160549.977172] hub 2-1:1.0: state 7 ports 6 chg  evt 0010^M
[160549.977275] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
1^M
[160549.977400] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
2^M
[160549.977524] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
3^M
[160549.977528] hub 2-1:1.0: port 4, status 0100, change 0001, 12 Mb/s^M
[160549.977650] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
4^M
[160549.977652] usb 2-1.4: USB disconnect, address 3^M
[160549.977654] usb 2-1.4: unregistering device^M
[160549.977656] usb 2-1.4: unregistering interface 2-1.4:1.0^M
[160549.92] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
5^M
[160549.977897] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
6^M
[160549.978020] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
7^M
[160549.978146] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
8^M
[160549.978269] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
9^M
[160549.978394] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
10^M
[160549.978519] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
11^M
[160549.978644] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
12^M
[160549.978770] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
13^M
[160549.978894] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
14^M
[160549.979018] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
15^M
[160549.979144] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
16^M
[160549.979269] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
17^M
[160549.979393] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
18^M
[160549.979517] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
19^M
[160549.979642] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
20^M
[160549.979768] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
21^M
[160549.979892] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
22^M
[160549.980016] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
23^M
[160549.980142] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
24^M
[160549.980266] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
25^M
[160549.980391] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
26^M
[160549.980516] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
27^M


Regards,
Shaiju.


-Original Message-
From: Alan Stern [mailto:st...@rowland.harvard.edu]
Sent: Sunday, July 29, 2012 2:54 PM
To: shaiju shaiju
Cc: 'Sadasivan Shaiju'; 'Peter Chen'; 'USB list'
Subject: RE: usb device getting disconnected and connect back again.

On Sun, 29 Jul 2012, shaiju shaiju wrote:

 Hi  Alen,

 This  error  is  intermittent  .  It  doesn't  happen  always .

Then there may not be any way to determine the cause.  Perhaps the
firmware in the USB device intermittently crashes.

Alan Stern
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: usb device getting disconnected

2012-08-07 Thread Peter Chen
 [160549.977524] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 3^M
 [160549.977528] hub 2-1:1.0: port 4, status 0100, change 0001, 12 Mb/s^M
 [160549.977650] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 4^M
 [160549.977652] usb 2-1.4: USB disconnect, address 3^M
 [160549.977654] usb 2-1.4: unregistering device^M
 [160549.977656] usb 2-1.4: unregistering interface 2-1.4:1.0^M
 [160549.92] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 5^M
 [160549.977897] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 6^M
 [160549.978020] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 7^M
 [160549.978146] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 8^M
 [160549.978269] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 9^M
 [160549.978394] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 10^M
 [160549.978519] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 11^M
 [160549.978644] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 12^M
 [160549.978770] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 13^M
 [160549.978894] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 14^M
 [160549.979018] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 15^M
 [160549.979144] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 16^M
 [160549.979269] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 17^M
 [160549.979393] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 18^M
 [160549.979517] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 19^M
 [160549.979642] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 20^M
 [160549.979768] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 21^M
 [160549.979892] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 22^M
 [160549.980016] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 23^M
 [160549.980142] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 24^M
 [160549.980266] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 25^M
 [160549.980391] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 26^M
 [160549.980516] ehci_hcd :00:1d.0: detected XactErr len 0/4096 retry
 27^M


 Regards,
 Shaiju.


 -Original Message-
 From: Alan Stern [mailto:st...@rowland.harvard.edu]
 Sent: Sunday, July 29, 2012 2:54 PM
 To: shaiju shaiju
 Cc: 'Sadasivan Shaiju'; 'Peter Chen'; 'USB list'
 Subject: RE: usb device getting disconnected and connect back again.

 On Sun, 29 Jul 2012, shaiju shaiju wrote:

 Hi  Alen,

 This  error  is  intermittent  .  It  doesn't  happen  always .

 Then there may not be any way to determine the cause.  Perhaps the
 firmware in the USB device intermittently crashes.

If the host has some errors, such like the PHY work abnormal, it will also
occur errors like this. It is hard to debug your problem, I suggestion try more
boards and do more tests to see if it is single board issue or the
issues for all
boards.



 Alan Stern
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: usb device getting disconnected and connect back again.

2012-07-29 Thread shaiju shaiju
Hi  Alan,

Here  is  the  full  log  .  During  a  reboot   the  usb  device  is
enumerated  in  High speed (480 Mb/s) .  The  it  change  status  to  full
Speed (12 Mb/s)   followed  by  a  disconnect  .  After  this  the  device
is  again  enumerated  back in   High speed .


[0.971658] ehci_hcd :00:1a.7: GetStatus port 2 status 001803 POWER
sig=j CSC CONNECT
[0.971664] hub 1-0:1.0: port 2: status 0501 change 0001
[0.985953] hub 2-0:1.0: state 7 ports 6 chg  evt 
[1.070025] hub 1-0:1.0: state 7 ports 6 chg 0004 evt 
[1.070033] hub 1-0:1.0: port 2, status 0501, change , 480 Mb/s
[1.121455] ehci_hcd :00:1a.7: port 2 high speed
[1.121459] ehci_hcd :00:1a.7: GetStatus port 2 status 001005 POWER
sig=se0 PE CONNECT
[1.161029] ata1: SATA link down (SStatus 0 SControl 310)
[1.172026] usb 1-2: new high speed USB device using ehci_hcd and address
2
[1.223323] ehci_hcd :00:1a.7: port 2 high speed
[1.223327] ehci_hcd :00:1a.7: GetStatus port 2 status 001005 POWER
sig=se0 PE CONNECT
[1.287204] usb 1-2: default language 0x0409
[1.288080] usb 1-2: udev 2, busnum 1, minor = 1
[1.288083] usb 1-2: New USB device found, idVendor=0e39, idProduct=2b00
[1.288086] usb 1-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[1.288089] usb 1-2: Product: eUSB
[1.288097] usb 1-2: Manufacturer: SMART
[1.288099] usb 1-2: SerialNumber: 23156507103421210411
[1.288196] usb 1-2: usb_probe_device
[1.288199] usb 1-2: configuration #1 chosen from 1 choice
[1.288331] usb 1-2: adding 1-2:1.0 (config #1, interface 0)
[1.288409] usb-storage 1-2:1.0: usb_probe_interface
[1.288414] usb-storage 1-2:1.0: usb_probe_interface - got id
[1.288463] scsi4 : SCSI emulation for USB Mass Storage devices
[1.288547] usb-storage: device found at 2
[1.288548] usb-storage: waiting for device to settle before scanning
..

[   47.261779] hub 8-0:1.0: local power source is good
[   47.261781] hub 8-0:1.0: trying to enable port power on non-switchable
hub
[   47.261799]
/scratch/abwaheed/asr/thr_0618/os/linux/drivers/usb/core/inode.c: creating
file '001'
[   47.356165] uhci_hcd :00:1a.0: port 2 portsc 0082,00
[   47.358026] hub 4-0:1.0: state 7 ports 2 chg  evt 
[   47.359329] hub 5-0:1.0: state 7 ports 2 chg  evt 
[   47.360184] hub 6-0:1.0: state 7 ports 2 chg  evt 
[   47.360188] hub 7-0:1.0: state 7 ports 2 chg  evt 
[   47.361181] hub 8-0:1.0: state 7 ports 2 chg  evt 
[   47.456243] hub 3-0:1.0: state 7 ports 2 chg  evt 
[   48.454151] usb usb4: suspend_rh (auto-stop)
[   48.454174] usb usb5: suspend_rh (auto-stop)
[   48.454194] usb usb6: suspend_rh (auto-stop)
[   48.454219] usb usb7: suspend_rh (auto-stop)
[   48.454238] usb usb8: suspend_rh (auto-stop)
[   48.454257] usb usb3: suspend_rh (auto-stop)
.
[  157.150578] hub 1-0:1.0: state 7 ports 6 chg  evt 0004
[  157.150593] ehci_hcd :00:1a.7: GetStatus port 2 status 001002 POWER
sig=se0 CSC
[  157.150604] hub 1-0:1.0: port 2, status 0100, change 0001, 12 Mb/s
[  157.150608] usb 1-2: USB disconnect, address 2
[  157.150611] usb 1-2: unregistering device
[  157.150614] usb 1-2: unregistering interface 1-2:1.0
[  208.704131] sd 4:0:0:0: Device offlined - not ready after error recovery
[  208.704158] sd 4:0:0:0: [sda] Unhandled error code
[  208.704160] sd 4:0:0:0: [sda] Result: hostbyte=DID_NO_CONNECT
driverbyte=DRIVER_OK
[  208.704164] sd 4:0:0:0: [sda] CDB: Write(10): 2a 00 00 00 00 21 00 00 08
00
[  208.704189] sd 4:0:0:0: [sda] Unhandled error code
[  208.704191] sd 4:0:0:0: [sda] Result: hostbyte=DID_NO_CONNECT
driverbyte=DRIVER_OK
[  208.704194] sd 4:0:0:0: [sda] CDB: Write(10): 2a 00 00 1c 00 21 00 00 08
00
[  208.821178] usb 1-2: usb_disable_device nuking all URBs
[  208.889097] ehci_hcd :00:1a.7: GetStatus port 2 status 001803 POWER
sig=j CSC CONNECT
[  208.993049] hub 1-0:1.0: debounce: port 2: total 100ms stable 100ms
status 0x501
[  209.044332] ehci_hcd :00:1a.7: port 2 high speed
[  209.044339] ehci_hcd :00:1a.7: GetStatus port 2 status 001005 POWER
sig=se0 PE CONNECT
[  209.095081] usb 1-2: new high speed USB device using ehci_hcd and address
3
[  209.146326] ehci_hcd :00:1a.7: port 2 high speed
[  209.146332] ehci_hcd :00:1a.7: GetStatus port 2 status 001005 POWER
sig=se0 PE CONNECT


[  209.154428] Pid: 9087, comm: find Tainted: P   2.6.32.39 #3
[  209.154431] Call Trace:
[  209.154439]  [81042364] ? warn_slowpath_common+0x76/0x8c
[  209.154442]  [810efa0b] ? mark_buffer_dirty+0x23/0x80
[  209.154447]  [81135c57] ? ext2_sync_super+0x37/0x4f
[  209.154451]  [811361d8] ? ext2_put_super+0x5c/0x10c
[  209.154455]  [810d23c1] ? generic_shutdown_super+0x4f/0xc5
[  209.154458]  [810d2457] ? kill_block_super+0x20/0x35

RE: usb device getting disconnected and connect back again.

2012-07-29 Thread shaiju shaiju
Hi  Alen,

This  error  is  intermittent  .  It  doesn't  happen  always .

Regards,
Shaiju.

-Original Message-
From: Alan Stern [mailto:st...@rowland.harvard.edu] 
Sent: Sunday, July 29, 2012 2:39 PM
To: shaiju shaiju
Cc: 'Sadasivan Shaiju'; 'Peter Chen'; 'USB list'
Subject: RE: usb device getting disconnected and connect back again.

On Sun, 29 Jul 2012, shaiju shaiju wrote:

 Hi  Alan,
 
 Here  is  the  full  log  .  During  a  reboot   the  usb  device  is
 enumerated  in  High speed (480 Mb/s) .  The  it  change  status  to  full
 Speed (12 Mb/s)   followed  by  a  disconnect  .  After  this  the  device
 is  again  enumerated  back in   High speed .

This happened because the device got into some sort of error state.  
Perhaps its firmware crashed.  If you collect a usbmon trace, that 
might give a clue as to the reason.

Alan Stern

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


RE: usb device getting disconnected and connect back again.

2012-07-29 Thread Alan Stern
On Sun, 29 Jul 2012, shaiju shaiju wrote:

 Hi  Alen,
 
 This  error  is  intermittent  .  It  doesn't  happen  always .

Then there may not be any way to determine the cause.  Perhaps the 
firmware in the USB device intermittently crashes.

Alan Stern

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