From owner-freebsd-current@FreeBSD.ORG Tue Jun 15 11:18:59 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FD2616A4CE for ; Tue, 15 Jun 2004 11:18:59 +0000 (GMT) Received: from gate1.psi.de (gate1.psi.de [194.115.214.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43B6943D5A for ; Tue, 15 Jun 2004 11:18:58 +0000 (GMT) (envelope-from thorsten@tgreiner.net) Received: from [172.18.1.50] (host-195.194.115.213.psi.de [194.115.213.195]) by gate1.psi.de (8.12.8/8.11.3) with ESMTP id i5FBIg1u029977; Tue, 15 Jun 2004 13:18:42 +0200 Received: from infra-nev-exf.psi.de ([194.115.215.7]) by [172.18.1.50] with Microsoft SMTPSVC(5.0.2195.6713); Tue, 15 Jun 2004 13:18:42 +0200 Received: from comm-nev1.nev.psi.de ([194.115.215.40]) by infra-nev-exf.psi.de with Microsoft SMTPSVC(5.0.2195.6713); Tue, 15 Jun 2004 13:18:41 +0200 Received: from localhost. ([192.168.142.128]) by comm-nev1.nev.psi.de (8.8.8+Sun/8.8.8) with ESMTP id NAA21119; Tue, 15 Jun 2004 13:18:40 +0200 (MET DST) Received: from localhost. (localhost [127.0.0.1]) by localhost. (8.12.11/8.12.11) with ESMTP id i5FBIerd010689; Tue, 15 Jun 2004 13:18:40 +0200 (CEST) (envelope-from thorsten@tgreiner.net) Received: (from thorsten@localhost) by localhost. (8.12.11/8.12.11/Submit) id i5FBIdFN010688; Tue, 15 Jun 2004 13:18:39 +0200 (CEST) (envelope-from thorsten@tgreiner.net) X-Authentication-Warning: localhost.: thorsten set sender to thorsten@tgreiner.net using -f Date: Tue, 15 Jun 2004 13:18:39 +0200 From: Thorsten Greiner To: Ian FREISLICH Message-ID: <20040615111839.GC1643@tybalt.nev.psi.de> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hwvH6HDNit2nSK4j" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: ED45 DF41 BE30 6FF5 DC4F 15C3 4538 6598 E865 F66A User-Agent: Mutt/1.5.6i X-OriginalArrivalTime: 15 Jun 2004 11:18:41.0437 (UTC) FILETIME=[8362ACD0:01C452CA] cc: current@freebsd.org Subject: Re: USB woes. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2004 11:18:59 -0000 --hwvH6HDNit2nSK4j Content-Type: multipart/mixed; boundary="SFyWQ0h3ruR435lw" Content-Disposition: inline --SFyWQ0h3ruR435lw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ian FREISLICH [2004-06-15 12:31]: > Do any of the USB gurus have any ideas? I hardly count as a guru, but you may want to try a little patch derived from the NetBSD usb stack which turns on bus mastering. This patch is needed on my little ASUS notebook to make USB work properly. Maybe it works in your case too, since the symptoms are similar. The file to patch is /usr/src/sys/dev/usb/uhci_pci.c. Cheers -Thorsten --=20 Never attribute to malice what can adequately be explained by incompetence. =20 This message is digitally signed. To verify its integrity, download a copy of GnuPG for your operating system from http://www.gnupg.org . --SFyWQ0h3ruR435lw Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="usb.patch-5.0" Content-Transfer-Encoding: quoted-printable --- uhci_pci.c.orig Wed Aug 28 22:24:49 2002 +++ uhci_pci.c Wed Jan 15 00:49:13 2003 @@ -224,6 +224,7 @@ uhci_softc_t *sc =3D device_get_softc(self); int rid; int err; + u_int32_t csr; =20 rid =3D PCI_UHCI_BASE_REG; sc->io_res =3D bus_alloc_resource(self, SYS_RES_IOPORT, &rid, @@ -282,6 +283,11 @@ sc->sc_bus.usbrev =3D USBREV_UNKNOWN; break; } + + /* Enable the device. */ + csr =3D pci_read_config(self, PCIR_COMMAND, 4); + pci_write_config(self, PCIR_COMMAND,=20 + csr | PCIM_CMD_BUSMASTEREN, 4); =20 err =3D bus_setup_intr(self, sc->irq_res, INTR_TYPE_BIO, (driver_intr_t *) uhci_intr, sc, &sc->ih); --SFyWQ0h3ruR435lw-- --hwvH6HDNit2nSK4j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAztsPRThlmOhl9moRAogUAKCJ6uM2q1SUMj85XyOnIVHV8iPjHwCfaUJb XbK24nOLVxkksB5Xe7G4K/U= =3bc2 -----END PGP SIGNATURE----- --hwvH6HDNit2nSK4j--