From owner-freebsd-usb@FreeBSD.ORG Thu Oct 20 11:44:37 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88B08106566B for ; Thu, 20 Oct 2011 11:44:37 +0000 (UTC) (envelope-from znek@mulle-kybernetik.com) Received: from muller.mulle-kybernetik.com (port-212-202-151-204.static.qsc.de [212.202.151.204]) by mx1.freebsd.org (Postfix) with ESMTP id CF26B8FC17 for ; Thu, 20 Oct 2011 11:44:36 +0000 (UTC) Received: (qmail 40363 invoked from network); 20 Oct 2011 11:45:18 -0000 Received: from unknown (HELO zoidberg.z.net) (znek@212.202.151.205) by mail.mulle-kybernetik.com with AES128-SHA encrypted SMTP; 20 Oct 2011 11:45:18 -0000 From: =?iso-8859-1?Q?Marcus_M=FCller?= Mime-Version: 1.0 (Apple Message framework v1084) Date: Thu, 20 Oct 2011 13:44:33 +0200 In-Reply-To: <201110200911.21936.hselasky@c2i.net> To: freebsd-usb@freebsd.org References: <201110200911.21936.hselasky@c2i.net> Message-Id: X-Mailer: Apple Mail (2.1084) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: bad performance of aue device when used with nVidia nForce MCP79 USB X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2011 11:44:37 -0000 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=85 I suspect hw.usb.ehci is not = available here (or is this another bug?) root@creutzfeld:(/home/znek)# sysctl hw.usb =20 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=20 > 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ehci_pci.c (revision 226546) +++ ehci_pci.c (working copy) @@ -459,6 +459,7 @@ } =20 /* 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 =3D ehci_init(sc); if (!err) { err =3D device_probe_and_attach(sc->sc_bus.bdev); Thanks, Marcus