From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 22 21:30:08 2011 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 232BE106566C for ; Mon, 22 Aug 2011 21:30:08 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id AC3A98FC12 for ; Mon, 22 Aug 2011 21:30:07 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p7ML00FJ070553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Aug 2011 00:00:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p7ML00gU075603; Tue, 23 Aug 2011 00:00:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p7ML00uS075602; Tue, 23 Aug 2011 00:00:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 23 Aug 2011 00:00:00 +0300 From: Kostik Belousov To: Dmitry Morozovsky Message-ID: <20110822210000.GW17489@deviant.kiev.zoral.com.ua> References: <20110822194031.GR17489@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rS3NtQ6l2oJMSbd+" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-scsi@freebsd.org, mav@freebsd.org Subject: Re: Documentating patch for defaults/loader.conf X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2011 21:30:08 -0000 --rS3NtQ6l2oJMSbd+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 23, 2011 at 12:57:05AM +0400, Dmitry Morozovsky wrote: > On Tue, 23 Aug 2011, Dmitry Morozovsky wrote: >=20 > > On Mon, 22 Aug 2011, Kostik Belousov wrote: > >=20 > > > > any objections for this simple patch? > > > >=20 > > > > (we stumped into this yesterday, and no easy founded answers even o= n Google=20 > > > > except the single FreeBSD Forums thread was found) > > >=20 > > > I do not think that the wording in right, but I am not CAM expert by = any > > > measure. From my reading of the code, it is a hook to delay the root = mount, > > > not to delay CAM bus registration. It would be better if you get the = scsi@ > > > or mav@ (author of the tunable) review. > >=20 > > I based the comment on existing comment to the tunable in cam_xpt.c: > >=20 > > cam_xpt.c:TUNABLE_INT("kern.cam.boot_delay", &xsoftc.boot_delay); > > cam_xpt.c:SYSCTL_INT(_kern_cam, OID_AUTO, boot_delay, CTLFLAG_RDTUN, > > cam_xpt.c: &xsoftc.boot_delay, 0, "Bus registration wait time= "); > >=20 > >=20 > > Alexander, colleagues, your thought on the following patch? >=20 > [reply by mav@ viewed on web archives, but lost somewhere] >=20 > Well, what about the following wording then? >=20 > marck@woozle:~/FreeBSD/svn/head/sys> svn diff > Index: boot/forth/loader.conf > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- boot/forth/loader.conf (revision 224542) > +++ boot/forth/loader.conf (working copy) > @@ -109,6 +109,8 @@ > #kern.ncallout=3D"" # Set the maximum # of timer events > #kern.ngroups=3D"1023" # Set the maximum # of supplemental gro= ups > #kern.sgrowsiz=3D"" # Set the amount to grow stack > +#kern.cam.boot_delay=3D"10000" # Delay (in ms) for CAM bus registratio= n, > + # useful for USB sticks as root Delay (in ms) of root mount for CAM bus registration, ... > #kern.cam.scsi_delay=3D"2000" # Delay (in ms) before probing SCSI > #kern.ipc.maxsockets=3D"" # Set the maximum number of soc= kets avaliable > #kern.ipc.nmbclusters=3D"" # Set the number of mbuf clusters >=20 >=20 > --=20 > Sincerely, > D.Marck [DM5020, MCK-RIPE, DM3-RIPN] > [ FreeBSD committer: marck@FreeBSD.org ] > ------------------------------------------------------------------------ > *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** > ------------------------------------------------------------------------ --rS3NtQ6l2oJMSbd+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk5Sw08ACgkQC3+MBN1Mb4hP1ACfUTWTgZ/XoYuG0IkBhjniHs2f 3kIAoKxHRkfpnM8rDAV9vP6vT91XUAE7 =5zGS -----END PGP SIGNATURE----- --rS3NtQ6l2oJMSbd+--