From owner-freebsd-current@FreeBSD.ORG Thu Feb 19 03:41:20 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 CE0831065672 for ; Thu, 19 Feb 2009 03:41:20 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 40EE98FC08 for ; Thu, 19 Feb 2009 03:41:19 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl183-211.kln.forthnet.gr [77.49.14.211]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-6) with ESMTP id n1J3fAJM012374 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 19 Feb 2009 05:41:17 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n1J3fAtK006825; Thu, 19 Feb 2009 05:41:10 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n1J3f8GO006824; Thu, 19 Feb 2009 05:41:08 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Daichi GOTO References: <499CC89E.2040408@ongs.co.jp> Date: Thu, 19 Feb 2009 05:41:07 +0200 In-Reply-To: <499CC89E.2040408@ongs.co.jp> (Daichi GOTO's message of "Thu, 19 Feb 2009 11:49:02 +0900") Message-ID: <87skmb8564.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Hellug-MailScanner-ID: n1J3fAJM012374 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.878, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.52, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: FreeBSD Current , 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 03:41:21 -0000 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 :)