Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Apr 2006 11:52:29 GMT
From:      Dmitry Kazarov <kazarov@mcm.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/95407: atapicam, cd and /etc/rc.d/devfs problem
Message-ID:  <200604061152.k36BqTrh022673@www.freebsd.org>
Resent-Message-ID: <200604061200.k36C0WNL009514@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         95407
>Category:       kern
>Synopsis:       atapicam, cd and /etc/rc.d/devfs problem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 06 12:00:32 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Kazarov
>Release:        FreeBSD 6.1-PRERELEASE
>Organization:
Multicom Ltd, Moscow
>Environment:
FreeBSD CE.multicom.ru 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Apr  5 09:57:37 MSD 2006     root@CE.multicom.ru:/var/tmp/obj/usr/src/sys/CE  i386

>Description:
GENERIC kernel has option SCSI_DELAY=5000 which forces all CAM drivers to wait 5 secs before probing devices. 
This is true also for atapicam driver. But since no device on atapicam bus is used during boot kernel does not wait for devices (particulary scsi cd device driver) to settle and start /sbin/init process quite early so /etc/rc.d/devfs is executed before /dev/cd0 is created. And lines concerning cd0 in /etc/devfs.conf are ignored.

IMHO, kernel should wait for all devices initialized during boot process to finish initialization before starting userland stage of boot process (/sbin/init).
>How-To-Repeat:

>Fix:
add
kern.cam.scsi_delay="200"
to /boot/loader.conf

BUT this will affect all SCSI devices, not only atapicam.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604061152.k36BqTrh022673>