Re: bad performance of aue device when used with nVidia nForce MCP79 USB

2011-10-20 Thread Hans Petter Selasky
On Wednesday 19 October 2011 23:34:41 Marcus Müller wrote:
 Hi all!
 
 I need some advice how to best tackle this problem I'm having with an
 ADMtek USB To LAN Converter in conjunction with an nVidia nForce MCP79 USB
 chip:
 
 --- config begin ---
 root@creutzfeld:(~)# uname -a
 FreeBSD creutzfeld.z.net 8.2-STABLE FreeBSD 8.2-STABLE #7 r226546: Wed Oct
 19 22:08:28 CEST 2011 root@creutzfeld:/usr/obj/usr/src/sys/CREUTZFELD 
 amd64 root@creutzfeld:(~)# usbconfig list
 ugen0.1: OHCI root HUB nVidia at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
 pwr=SAVE ugen1.1: EHCI root HUB nVidia at usbus1, cfg=0 md=HOST spd=HIGH
 (480Mbps) pwr=SAVE ugen2.1: OHCI root HUB nVidia at usbus2, cfg=0
 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen3.1: EHCI root HUB nVidia at
 usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen3.2: USB To LAN
 Converter ADMtek at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
 ehci1: NVIDIA nForce MCP79 USB 2.0 controller mem 0xfae7e800-0xfae7e8ff
 irq 21 at device 6.1 on pci0 --- config end ---
 
 This ADMtek device gets roughly 10MBit downstream with the configuration
 above. When used with the same OS on a board with an Intel 82801GB/R
 (ICH7) USB 2.0 controller it gets 64MBit downstream, which is the maximum
 I can get from my ISP.
 
 I don't see anything unusual in the system messages, thus I suspect it's an
 issue with the USB implementation for the nForce chipset.
 
 What can I do in order to find out what's the bottleneck here?

Hi,

The Nvidia chipsets are quirked due to what looks like hardware issues. See 
sys/dev/usb/controller/ehci_pci.c. This affects performance.

Also see sysctl hw.usb.ehci.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: bad performance of aue device when used with nVidia nForce MCP79 USB

2011-10-20 Thread Marcus Müller

On 20.10.2011, at 09:11, Hans Petter Selasky wrote:

 Also see sysctl hw.usb.ehci.

root@creutzfeld:(/home/znek)# sysctl hw.usb.ehci
sysctl: unknown oid 'hw.usb.ehci'

Please note that im on 8.2-STABLE… I suspect hw.usb.ehci is not available here 
(or is this another bug?)

root@creutzfeld:(/home/znek)# sysctl hw.usb 
hw.usb.no_boot_wait: 0
hw.usb.debug: 0
hw.usb.usb_lang_mask: 255
hw.usb.usb_lang_id: 9
hw.usb.template: 0
hw.usb.power_timeout: 30
hw.usb.no_pf: 0
hw.usb.no_cs_fail: 0

 The Nvidia chipsets are quirked due to what looks like hardware issues. See 
 sys/dev/usb/controller/ehci_pci.c. This affects performance.

I commented out the specific quirks section in ehci_pci.c and now performance 
is as expected!

I didn't test any other USB devices on this board, yet. But the network device 
appears to be stable, thus I suspect the quirk setting based on vendor NVIDIA 
and NVIDIA2 is a bit too far fetched?

For reference, here is my patch:

Index: ehci_pci.c
===
--- ehci_pci.c  (revision 226546)
+++ ehci_pci.c  (working copy)
@@ -459,6 +459,7 @@
}
 
/* Doorbell feature workaround */
+/*
switch (pci_get_vendor(self)) {
case PCI_EHCI_VENDORID_NVIDIA:
case PCI_EHCI_VENDORID_NVIDIA2:
@@ -470,7 +471,7 @@
default:
break;
}
-
+*/
err = ehci_init(sc);
if (!err) {
err = device_probe_and_attach(sc-sc_bus.bdev);






Thanks,

  Marcus

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: bad performance of aue device when used with nVidia nForce MCP79 USB

2011-10-20 Thread Hans Petter Selasky
On Thursday 20 October 2011 13:44:33 Marcus Müller wrote:
 root@creutzfeld:(/home/znek)# sysctl hw.usb.ehci
 sysctl: unknown oid 'hw.usb.ehci'

Try adding:

options USB_DEBUG

In the kernel config file.

 
 Please note that im on 8.2-STABLE… I suspect hw.usb.ehci is not available
 here (or is this another bug?)

Unless the vendor provides information about which chipsets have the specified 
bugs or not, we cannot do much about it I think.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org