From owner-freebsd-stable@FreeBSD.ORG Sat Oct 11 04:50:03 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB91016A4B3 for ; Sat, 11 Oct 2003 04:50:03 -0700 (PDT) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 462F443F93 for ; Sat, 11 Oct 2003 04:50:02 -0700 (PDT) (envelope-from joe@genius.tao.org.uk) Received: by genius.tao.org.uk (Postfix, from userid 100) id 3C34245A3; Sat, 11 Oct 2003 12:50:01 +0100 (BST) Date: Sat, 11 Oct 2003 12:50:01 +0100 From: Josef Karthauser To: Tijl Coosemans Message-ID: <20031011115001.GE1028@genius.tao.org.uk> Mail-Followup-To: Josef Karthauser , Tijl Coosemans , iedowse@maths.tcd.ie, freebsd-stable@freebsd.org References: <200309271405.aa30238@salmon.maths.tcd.ie> <20031005190822.GC4548@genius.tao.org.uk> <20031006211517.64c5d916.tijl@ulyssis.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z+pzSjdB7cqptWpS" Content-Disposition: inline In-Reply-To: <20031006211517.64c5d916.tijl@ulyssis.org> User-Agent: Mutt/1.5.4i cc: iedowse@maths.tcd.ie cc: freebsd-stable@freebsd.org Subject: Re: hang of new usb stack [was Re: Patch for boot-time USB hangs in 4.9-PRERELEASE] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2003 11:50:03 -0000 --z+pzSjdB7cqptWpS Content-Type: multipart/mixed; boundary="PGNNI9BzQDUtgA2J" Content-Disposition: inline --PGNNI9BzQDUtgA2J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 06, 2003 at 09:15:17PM +0200, Tijl Coosemans wrote: > On Sun, 5 Oct 2003 20:08:22 +0100, Josef Karthauser wrote: >=20 > > On Sat, Sep 27, 2003 at 02:05:51PM +0100, Ian Dowse wrote: > > >=20 > > > Could people who are experiencing boot-time hangs in 4.9-PRERELEASE > > > try the following patch to see if it helps? I've had one positive > > > report so far, but it would be helpful to get more feedback to > > > determine if this is the right fix to be committed. > >=20 > > I'm interested in whether this fix also fixes the boot time handing of > > the new usb stack. Perhaps any interested parties could test it and > > let me know? > >=20 > > The new usb patch to RELENG_4 as of today is at: > >=20 > > http://www.josef-k.net/misc/RELENG_4-USB-20031005.patch.gz >=20 > I get the following error during a make buildworld: >=20 > =3D=3D=3D> usr.sbin/usbdevs > cc -O2 -pipe -march=3Dpentium -I/usr/src/usr.sbin/usbdevs/../../sys -c > /usr/src/usr.sbin/usbdevs/usbdevs.c > /usr/src/usr.sbin/usbdevs/usbdevs.c: In function `usbdev': > /usr/src/usr.sbin/usbdevs/usbdevs.c:91: structure has no member named > `udi_lowspeed' > *** Error code 1 You're right! I didn't add the usb tools to that patch set. I'll make sure that they are there for the next one. In the mean time I've attached the patch to usbdevs.c that you want. Joe --=20 Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/ FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/ Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D An eclectic mix of fact an= d theory. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --PGNNI9BzQDUtgA2J Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="usbdevs.c-patch" Index: usbdevs.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/usbdevs/usbdevs.c,v retrieving revision 1.5.2.3 diff -u -r1.5.2.3 usbdevs.c --- usbdevs.c 13 Nov 2002 15:15:21 -0000 1.5.2.3 +++ usbdevs.c 11 Oct 2003 11:49:07 -0000 @@ -64,7 +64,7 @@ void usage() { - fprintf(stderr, "Usage: %s [-a addr] [-d] [-f dev] [-v]\n", + fprintf(stderr, "usage: %s [-a addr] [-d] [-f dev] [-v]\n", getprogname()); exit(1); } @@ -88,8 +88,12 @@ printf("addr %d: ", a); done[a] = 1; if (verbose) { - if (di.udi_lowspeed) - printf("low speed, "); + switch (di.udi_speed) { + case USB_SPEED_LOW: printf("low speed, "); break; + case USB_SPEED_FULL: printf("full speed, "); break; + case USB_SPEED_HIGH: printf("high speed, "); break; + default: break; + } if (di.udi_power) printf("power %d mA, ", di.udi_power); else --PGNNI9BzQDUtgA2J-- --z+pzSjdB7cqptWpS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iEYEARECAAYFAj+H7mgACgkQXVIcjOaxUBb1cwCgndNlD+q6z6Uz/vG0JKpbMiRz X4YAn2sedfse6g5VnftJRmXBRelykeb+ =BizG -----END PGP SIGNATURE----- --z+pzSjdB7cqptWpS--