RE: USB 3.0 Drivers

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

 



Hello Ms. Sharp,

I'm not sure of your formatting.  Did you get 30 Mega*bits* per second, or
30 Mega*bytes*?
I?m getting 30 Megabytes/s (about USB2 speed not 3).

FYI, you won't get USB 2.0 devices to work any faster under a USB 3.0 host
controller.  Also, depending on how you are measuring, you may be seeing the
speedup by the disk cache utilization, in which case you're measuring the
speed of memory, not the speed of the actual device.
Of course a USB 2.0 device will not work at the speed of USB 3.0 if
connected to a USB 3.0 port.
I?m measuring the speed by copying a file from my external HDD to the OS
HDD.

By turning on CONFIG_USB_XHCI_HCD_DEBUGGING, the driver will print a lot of
messages.  If you turn that configuration option off, you'll get better
performance.  So run the latest release kernel (2.6.37-rc5) or the latest
stable kernel (2.6.36.2) without CONFIG_USB_XHCI_HCD_DEBUGGING turned on.
Then you won't have bugs from older kernels, and you'll get better
performance.
I have tested Ubuntu 10.04 with 2.6.36 kernel and Ubuntu 10.10 with
2.6.37-rc2. In both case I have the same error which is bug reported but not
fixed.
I have the same bug that this two:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/647973
http://web.archiveorange.com/archive/v/u1yF73zHn2N1QI2D1LPY

Please find attached my dmesg output where you can see my error: xhci_hcd
0000:04:00.0: WARN: Stalled endpoint
 
Please let me know if you need more information concerning my configuration.
Thank you in advance.
Best Regards.
Jean-Antoine Hours


-----Message d'origine-----
De : Sarah Sharp [mailto:sarah.a.sharp@xxxxxxxxxxxxxxx] 
Envoyé : lundi 13 décembre 2010 18:59
À : Jean-Antoine Hours
Cc : linux-usb@xxxxxxxxxxxxxxx
Objet : Re: USB 3.0 Drivers

On Mon, Dec 13, 2010 at 05:56:09PM +0100, Jean-Antoine Hours wrote:
> Hello,
> 
> Thank you for answering so quickly.
> Before using your sources (with Ubuntu 10.04 kernel), there was a lot 
> of bug with my USB 3.0 card (unable to boot if the external hdd was 
> connected to the USB3 card).
> Now everything seems to be working well, I can reboot without problem 
> and the xhci_hdc driver is lunched at startup correctly if I'm not
mistaken.
> The problem now is the speed; you saw a lot of bulk transfers because 
> I was copying something in order to see the speed.
> I'm in USB 2 speed: 30Mo/s in average. Once I don't know why but I was 
> at 70Mo/s.

I'm not sure of your formatting.  Did you get 30 Mega*bits* per second, or
30 Mega*bytes*?

(FYI, you won't get USB 2.0 devices to work any faster under a USB 3.0 host
controller.  Also, depending on how you are measuring, you may be seeing the
speedup by the disk cache utilization, in which case you're measuring the
speed of memory, not the speed of the actual device.
You'd need to use the O_DIRECT flag, and to tell the block layer to drop
caches before doing any serious performance measurements.)

> So to summarize the biggest problem is the speed and (I don't know if 
> it is an error) the end of my dmesg: [186.240362] xhci_hcd 
> 0000:02:00.0: @37809000
> 00000000 00000000 00000000 01033800
> I don't know what means this line but there are a lot of them...

By turning on CONFIG_USB_XHCI_HCD_DEBUGGING, the driver will print a lot of
messages.  If you turn that configuration option off, you'll get better
performance.  So run the latest release kernel (2.6.37-rc5) or the latest
stable kernel (2.6.36.2) without CONFIG_USB_XHCI_HCD_DEBUGGING turned on.
Then you won't have bugs from older kernels, and you'll get better
performance.

Sarah Sharp

> -----Message d'origine-----
> De : Sarah Sharp [mailto:sarah.a.sharp@xxxxxxxxxxxxxxx]
> Envoyé : lundi 13 décembre 2010 17:33
> À : Jean-Antoine Hours
> Cc : linux-usb@xxxxxxxxxxxxxxx
> Objet : Re: USB 3.0 Drivers
> 
> On Mon, Dec 13, 2010 at 01:54:58PM +0100, Jean-Antoine Hours wrote:
> > Hello Ms. Sharp,
> > 
> >  
> > 
> > First I would like to thank you for your support on the USB 3.0 drivers.
> > 
> > I followed you how to and I now finding myself sending you my dmesg 
> > output log with CONFIG_USB_XHCI_HCD_DEBUGGING enabled in the kernel.
> > 
> > You'll see a the end of the dmesg output there is my problem, I had 
> > it also with the Ubuntu 10.04 default kernel (before compiling a new 
> > one with your xhci driver).
> 
> I see a lot of successful bulk transfers.  On a high level, what is 
> your issue?  Can you point me to a line number in the log file where 
> the issue starts?
> 
> > Do you have any idea where the problem could come from?
> > 
> >  
> > 
> > My configuration is following :
> > 
> > Motherboard : Zotac 9300 itx wifi r0
> > 
> > USB 3.0 PCI 1X card
> > 
> > External enclosure 4-Bays connected on USB 3.0
> 
> The log file Jean-Antoine sent me is here, if anyone wants to take a 
> look at
> it:
> 
> http://minilop.net/~sarah/xhci-log-2010-12-12-13-14.rar
> 
> Sarah Sharp
> 
[   58.850073] usb 5-3: new high speed USB device using xhci_hcd and address 4
[   58.872662] xhci_hcd 0000:02:00.0: WARN: short transfer on control ep
[   58.873286] xhci_hcd 0000:02:00.0: WARN: short transfer on control ep
[   58.873910] xhci_hcd 0000:02:00.0: WARN: short transfer on control ep
[   58.874535] xhci_hcd 0000:02:00.0: WARN: short transfer on control ep
[   58.875911] xhci_hcd 0000:02:00.0: WARN: short transfer on control ep
[   58.876538] xhci_hcd 0000:02:00.0: WARN: short transfer on control ep
[   58.877057] scsi7 : usb-storage 5-3:1.0
[   59.872691] scsi 7:0:0:0: Direct-Access     WDC WD20 EARS-00MVWB0          PQ: 0 ANSI: 2 CCS
[   59.872971] scsi 7:0:0:1: Direct-Access     SAMSUNG  HD103UJ               PQ: 0 ANSI: 2 CCS
[   59.873243] scsi 7:0:0:2: Direct-Access     SAMSUNG  HD103UJ               PQ: 0 ANSI: 2 CCS
[   59.873735] sd 7:0:0:0: Attached scsi generic sg1 type 0
[   59.875153] sd 7:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   59.875304] sd 7:0:0:1: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   59.875472] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   59.876077] sd 7:0:0:0: [sdb] Write Protect is off
[   59.876081] sd 7:0:0:0: [sdb] Mode Sense: 28 00 00 00
[   59.876084] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[   59.876363] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   59.876876] sd 7:0:0:1: [sdc] Write Protect is off
[   59.876879] sd 7:0:0:1: [sdc] Mode Sense: 28 00 00 00
[   59.876882] sd 7:0:0:1: [sdc] Assuming drive cache: write through
[   59.877201] sd 7:0:0:1: Attached scsi generic sg2 type 0
[   59.877995] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   59.878418] sd 7:0:0:2: Attached scsi generic sg3 type 0
[   59.878506] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[   59.878699] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   59.879341] sd 7:0:0:1: [sdc] Assuming drive cache: write through
[   59.890567]  sdb: sdb1
[   59.890724] sd 7:0:0:2: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[   59.901017]  sdc: sdc1
[   59.901153] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   59.901985] sd 7:0:0:2: [sdd] Write Protect is off
[   59.901988] sd 7:0:0:2: [sdd] Mode Sense: 28 00 00 00
[   59.901990] sd 7:0:0:2: [sdd] Assuming drive cache: write through
[   59.902962] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   59.903518] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[   59.903522] sd 7:0:0:0: [sdb] Attached SCSI disk
[   59.903656] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   59.904128] sd 7:0:0:1: [sdc] Assuming drive cache: write through
[   59.904132] sd 7:0:0:1: [sdc] Attached SCSI disk
[   59.904734] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   59.905259] sd 7:0:0:2: [sdd] Assuming drive cache: write through
[   60.013771]  sdd: sdd3
[   60.040728] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   60.041301] sd 7:0:0:2: [sdd] Assuming drive cache: write through
[   60.041306] sd 7:0:0:2: [sdd] Attached SCSI disk
[   60.710499] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   60.720311] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   62.021115] EXT4-fs (sdc1): warning: maximal mount count reached, running e2fsck is recommended
[   62.023011] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
[   62.435616] EXT4-fs (sdb1): warning: maximal mount count reached, running e2fsck is recommended
[   62.577567] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   62.741537] EXT4-fs (sdd3): warning: maximal mount count reached, running e2fsck is recommended
[   62.743292] EXT4-fs (sdd3): mounted filesystem with ordered data mode. Opts: (null)
[   90.719578] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.726838] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.731033] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.731855] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.732850] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.733590] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.734714] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.735855] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.742516] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.743881] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.745237] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.751399] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.752936] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.754484] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[   90.866515] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.753983] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.761322] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.765050] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.765848] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.766719] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.767531] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.768653] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.769774] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.775366] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.776727] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.778074] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.783422] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.784941] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1823.789470] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint
[ 1824.259108] xhci_hcd 0000:02:00.0: WARN: Stalled endpoint

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

  Powered by Linux