From owner-cvs-src@FreeBSD.ORG Sat Mar 26 11:32:21 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1128316A4CE; Sat, 26 Mar 2005 11:32:21 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1282E43D2D; Sat, 26 Mar 2005 11:32:20 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j2QBWCsf020941 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sat, 26 Mar 2005 12:32:14 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j2QBVFVK071765 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Mar 2005 12:31:16 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j2QBVFNC014195; Sat, 26 Mar 2005 12:31:15 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j2QBV8Sq014194; Sat, 26 Mar 2005 12:31:08 +0100 (CET) (envelope-from ticso) Date: Sat, 26 Mar 2005 12:31:08 +0100 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20050326113107.GD2324@cicely12.cicely.de> References: <200503171941.j2HJfKje003685@repoman.freebsd.org> <424473BB.4010607@portaone.com> <20050325.174202.25952471.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050325.174202.25952471.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: cvs-src@FreeBSD.org cc: sobomax@portaone.com cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: iedowse@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/usb usb.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2005 11:32:21 -0000 On Fri, Mar 25, 2005 at 05:42:02PM -0700, M. Warner Losh wrote: > In message: <424473BB.4010607@portaone.com> > Maxim Sobolev writes: > : This is still suboptimal, since even after this change when ehci is > : enabled some (if not most) USB devices are detected after system goes > : into milti-user mode. Obviously, this makes it impossible to mount root > : fs off the USB HDD/FDD/CD. The simplest way to solve this problem is to > : add some sufficiently long and configurable delay before mounting root > : fs (similar to one used by the SCSI) when ehci is enabled to let those > : devices to be detected and attached. > > /me notes that usb subsystem will know when it is done enumerating > devices. cardbus has a similar issue... It doesn't seem to work: Trying to mount root from ufs:/dev/ad0a umass1: Generic USB Storage Device, rev 1.10/1.00, addr 6 umass1: SCSI over Bulk-Only; quirks = 0x0000 umass1:2:1:-1: Attached to scbus2 da4 at umass-sim1 bus 1 target 0 lun 0 da4: Removable Direct Access SCSI-0 device da4: 1.000MB/s transfers da4: Attempt to query device size failed: NOT READY, Medium not present And this is not just CAM that is too late - it is the whole umass instance that gets attached after root mount. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de