[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#323155: atapicam and 15s delay

reopen 323155
retitle 323155 atapicam delays boot by 15s

The following patch should fix it.  I took the 2s value from a commented like
in /boot/loader.conf.  It seems reasonable to me, and I think it should work
with most ATAPI/CAM or real SCSI devices (anyone with a real SCSI can confirm
this?) but I suspect that with some weird devices it's not enough (which would
explain why they set it to 15 by default).

Since this option can be tweaked via /boot/loader.conf, I don't think it's a
problem to hardcode it to 2s in the kernel.  Unlucky users with a crappy 15s
SCSI device can change it later.

--- sys.orig/i386/conf/GENERIC  2005-08-01 16:45:29.000000000 +0200
+++ sys/i386/conf/GENERIC       2005-08-01 16:46:08.000000000 +0200
@@ -45,7 +45,7 @@
 options        GEOM_GPT                # GUID Partition Tables.
 options        COMPAT_43               # Compatible with BSD 4.3 [KEEP THIS!]
 options        COMPAT_FREEBSD4         # Compatible with FreeBSD4
-options        SCSI_DELAY=15000        # Delay (in ms) before probing SCSI
+options        SCSI_DELAY=2000         # Delay (in ms) before probing SCSI
 options        KTRACE                  # ktrace(1) support
 options        SYSVSHM                 # SYSV-style shared memory
 options        SYSVMSG                 # SYSV-style message queues

Robert Millan

Reply to: