From owner-freebsd-current@FreeBSD.ORG Thu Jun 12 22:46:56 2014 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 59D797BD for ; Thu, 12 Jun 2014 22:46:56 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 354FE21BF for ; Thu, 12 Jun 2014 22:46:55 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s5CMksB0024062 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Jun 2014 15:46:54 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s5CMks60024061; Thu, 12 Jun 2014 15:46:54 -0700 (PDT) (envelope-from jmg) Date: Thu, 12 Jun 2014 15:46:54 -0700 From: John-Mark Gurney To: Hans Petter Selasky Subject: Re: usb issues on OLD USB 1.0 machine... Message-ID: <20140612224653.GV31367@funkthat.com> Mail-Followup-To: Hans Petter Selasky , current@freebsd.org References: <20140612185243.GU31367@funkthat.com> <5399FA31.7020408@selasky.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5399FA31.7020408@selasky.org> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Thu, 12 Jun 2014 15:46:55 -0700 (PDT) Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 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: Thu, 12 Jun 2014 22:46:56 -0000 Hans Petter Selasky wrote this message on Thu, Jun 12, 2014 at 21:06 +0200: > On 06/12/14 20:52, John-Mark Gurney wrote: > >So, I'm trying to get USB functional on an old i386 machine that only > >supports USB 1.0... It works, but when I try to plug in a hub I get > >the following: > >uhub0: 2 ports with 2 removable, self powered > >Root mount waiting for: usbus0 > >usb_alloc_device: set address 2 failed (USB_ERR_IOERROR, ignored) > >Root mount waiting for: usbus0 > >usbd_setup_device_desc: getting device descriptor at addr 2 failed, > >USB_ERR_IOERROR > >Root mount waiting for: usbus0 > >usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, > >ignored) > >Root mount waiting for: usbus0 > >Root mount waiting for: usbus0 > >usbd_setup_device_desc: getting device descriptor at addr 2 failed, > >USB_ERR_IOERROR > >Root mount waiting for: usbus0 > >usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, > >ignored) > >Root mount waiting for: usbus0 > >Root mount waiting for: usbus0 > >usbd_setup_device_desc: getting device descriptor at addr 2 failed, > >USB_ERR_IOERROR > >usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, > >ignored) > >Root mount waiting for: usbus0 > >Root mount waiting for: usbus0 > >usbd_setup_device_desc: getting device descriptor at addr 2 failed, > >USB_ERR_IOERROR > >Root mount waiting for: usbus0 > >usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, > >ignored) > >Root mount waiting for: usbus0 > >Root mount waiting for: usbus0 > >usbd_setup_device_desc: getting device descriptor at addr 2 failed, > >USB_ERR_IOERROR > >ugen0.2: at usbus0 (disconnected) > >uhub_reattach_port: could not allocate new device > > > >This was working w/ code from around a month ago, but I don't remeber > >which rev it was, and I forgot to save the old kernel.. This is from: > >FreeBSD serbox.funkthat.com 11.0-CURRENT FreeBSD 11.0-CURRENT #0 > >r266964:267061M: Wed Jun 11 15:35:27 PDT 2014 > >jmg@carbon.funkthat.com:/usr/obj/i386.i386/usr/src/sys/serbox i386 > > > >Interesting parts of dmesg: > >FreeBSD 11.0-CURRENT #0 r266964:267061M: Wed Jun 11 15:35:27 PDT 2014 > > jmg@carbon.funkthat.com:/usr/obj/i386.i386/usr/src/sys/serbox i386 > >FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 > >CPU: AMD-K6tm w/ multimedia extensions (200.46-MHz 586-class CPU) > > Origin="AuthenticAMD" Id=0x562 Family=0x5 Model=0x6 Stepping=2 > > Features=0x8001bf > > AMD Features=0x400<> > >real memory = 134217728 (128 MB) > >avail memory = 120770560 (115 MB) > >[...] > >uhci0: port 0x6400-0x641f irq 10 at device 7.2 > >on pci0 > >usbus0 on uhci0 > >[...] > >usbus0: 12Mbps Full Speed USB v1.0 > >ugen0.1: at usbus0 > >uhub0: on usbus0 > > > >usbconfig: > >ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > >pwr=SAVE (0mA) > >ugen0.2: at usbus0, cfg=0 > >md=HOST spd=FULL (12Mbps) pwr=ON (100mA) > > > >The ugen0.2 is plugged directly into the one of the ports, and works.. > > > >Let me know if there is anything more info I can provide. > > Possibly increase the timing variables under: > > sysctl hw.usb.timings > > If they are not there, possibly the USB_DEBUG option has been removed > from the kernel config. Can you check that? This appears to be a compatibility issue w/ the hub... If I reboot w/ the hub plugged it, it will go into this weird mode. If I unplug the hub, but leave the hub powered, it will still do it... But if I unplug the hub and remove it's power (cold booting the hub) and plug it in, it works fine... If I reboot w/o the hub powered, but plugged in, it fails, but when I unplug (now hub has no power) and plug it back in, it works fine... Does this shed any light on the issue? The only BIOS option related to USB is the keyboard in BIOS/DOS option. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."