From owner-freebsd-usb@FreeBSD.ORG Thu Mar 15 18:00:06 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E5D36106564A for ; Thu, 15 Mar 2012 18:00:06 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 602F88FC15 for ; Thu, 15 Mar 2012 18:00:06 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 248944409; Thu, 15 Mar 2012 18:59:58 +0100 From: Hans Petter Selasky To: Andrew Reilly Date: Thu, 15 Mar 2012 18:58:18 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201202272027.39685.hselasky@c2i.net> <20120315111312.GA35074@johnny.reilly.home> In-Reply-To: <20120315111312.GA35074@johnny.reilly.home> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201203151858.19237.hselasky@c2i.net> Cc: David.I.Noel@gmail.com, freebsd-usb@freebsd.org Subject: Re: 9.0 - USB init failed err=18 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, 15 Mar 2012 18:00:07 -0000 On Thursday 15 March 2012 12:13:12 Andrew Reilly wrote: > Hi, > > Unrelated, I think, but since Hans is here: > > Since (I think) the switch-over to 9_STABLE (or at least at about the time > of the 9.0 release) my i3 headless server box does not restart (shutdown > -r) successfully. When I plug a keyboard and screen into it, to see what > is going on, the last thing on the screen is always something about usb. > Besides the keyboard (in this situation) the only USB device in the system > is an external (WD) hard drive. Anything I can usefully report or analyse > to figure out what is going wrong? The present situation isn't > immediately fatal, because the hang doesn't seem to happen until all of > the file system buffers have been flushed, so the reboot is ultimately > clean, but it requires me to reset the box from the switch on the front: > not good for doing remotely... Hi, Is the external USB hard drive mounted when the system is shutting down. Most likely some device driver is not detaching. I've seen and notified Alexander Motin about some of these, but we don't know yet who is refcounting wrong, except that it is in CAM/SCSI. There is a flag which you can set to avoid the this waiting: sysctl hw.usb.no_shutdown_wait=1 It might work as a temporary workaround until umass is fixed. Simply run a config loop with UMASS, and you'll see the eventual/hang and panic happening. while true do usbconfig -d X.Y set_config 0 usbconfig -d X.Y set_config 1 done > > Hmm. Could the ums0: line be an issue there? I've never plugged a mouse > into this box. USB audio devices are also known to block, if an application has /dev/dsp opened still during shutdown. --HPS