svn commit: r191075 - stable/7/sys/dev/amr
scottl at FreeBSD.org
Tue Apr 14 13:10:56 PDT 2009
Date: Tue Apr 14 20:10:53 2009
New Revision: 191075
Don't register the CAM passthrough interface until interrupts are running.
This fixes some problems at boot for some that are happening in fairly
rare cases. It's just a hack, though, which is why it's only going into
stable/7 for now. Note that this hack has a side effect of possibly not
scanning the AMR buses for /dev/passN devices at boot. These devices are
not required for access to the RAID arrays, and only a few tools use them.
If this affects you, let me know.
Approved by: re
--- stable/7/sys/dev/amr/amr.c Tue Apr 14 19:51:14 2009 (r191074)
+++ stable/7/sys/dev/amr/amr.c Tue Apr 14 20:10:53 2009 (r191075)
@@ -259,15 +259,6 @@ amr_attach(struct amr_softc *sc)
-#if AMR_ENABLE_CAM != 0
- * Attach our 'real' SCSI channels to CAM.
- if (amr_cam_attach(sc))
- debug(2, "CAM attach done");
* Create the control device.
@@ -357,6 +348,15 @@ amr_startup(void *arg)
/* sc->amr_timeout = timeout(amr_periodic, sc, hz);*/
+#if AMR_ENABLE_CAM != 0
+ * Attach our 'real' SCSI channels to CAM.
+ if (amr_cam_attach(sc))
+ device_printf(sc->amr_dev, "CAM passthrough attachment failed\n");
+ debug(2, "CAM attach done");
More information about the svn-src-stable-7