From owner-freebsd-current@FreeBSD.ORG Thu Feb 19 05:04:08 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB325106564A for ; Thu, 19 Feb 2009 05:04:08 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 6DA678FC1A for ; Thu, 19 Feb 2009 05:04:08 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id BFBEBFF2F; Thu, 19 Feb 2009 18:04:07 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4jyyolm-f7z0; Thu, 19 Feb 2009 18:04:04 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Thu, 19 Feb 2009 18:04:04 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 0CA491142F; Thu, 19 Feb 2009 18:04:04 +1300 (NZDT) Date: Wed, 18 Feb 2009 21:04:03 -0800 From: Andrew Thompson To: Giorgos Keramidas Message-ID: <20090219050403.GB84647@citylink.fud.org.nz> References: <499CC89E.2040408@ongs.co.jp> <87skmb8564.fsf@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87skmb8564.fsf@kobe.laptop> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD Current , Daichi GOTO , Masanori OZAWA , Hans Petter Selasky Subject: Re: USB2: booting from usb memory issue, including a foolish patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 19 Feb 2009 05:04:09 -0000 On Thu, Feb 19, 2009 at 05:41:07AM +0200, Giorgos Keramidas wrote: > On Thu, 19 Feb 2009 11:49:02 +0900, Daichi GOTO wrote: > > Hi usb2 folks, first please give me a time to say congratulations! I'm > > very glad that usb2 is default usb stack right now :) > > > > Well but, bad news I have. > > > > I have known that usb2 stack have a issue around boot from usb > > devices. System has been engaging root filesystem mount treatment > > before completion of device proving in kernel main thread. It leads > > root mount fail, then system boot fails from usb device. > > > > So I have made a patch included. That patch sleeps 30 seconds before > > root mount treatment while a kernel thread doing usb2 device probing. > > > > Yes you know, very foolish patch but I have no idea to fix it in other > > way. If you have better ideas, please try and commit that. > > Delaying *all* boots for such a long time doesn't seem very good. > > It may be a good idea to patch usb2 to install a SYSINIT handler with > SI_SUB_CONFIGURE, so that it gets a chance to hook itself at the end of > the device configuration. I'll try to do this, unless Hans beats me to > it of course :) There has already been a thread about this on usb@, maybe have a read first. http://lists.freebsd.org/pipermail/freebsd-usb/2009-February/006242.html Andrew