summaryrefslogtreecommitdiffstats
path: root/sys/dev/mpt
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2006-06-26 05:44:18 +0000
committermjacob <mjacob@FreeBSD.org>2006-06-26 05:44:18 +0000
commit72cfd5d2d51dbddee3b1f6d32a63609ba41c2aca (patch)
tree8cbe7e2d2686f0c55d53ad883178ecf4fce95d6e /sys/dev/mpt
parent288a3674b68268bac6dac78c1226371210d1597f (diff)
downloadFreeBSD-src-72cfd5d2d51dbddee3b1f6d32a63609ba41c2aca.zip
FreeBSD-src-72cfd5d2d51dbddee3b1f6d32a63609ba41c2aca.tar.gz
VMWare ESX reports > 16 targets for the LSI-Logic
U320 model it emulates. Then it crashes and burns when you probe that high.
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r--sys/dev/mpt/mpt_cam.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/mpt/mpt_cam.c b/sys/dev/mpt/mpt_cam.c
index b8eb81b..1a53679 100644
--- a/sys/dev/mpt/mpt_cam.c
+++ b/sys/dev/mpt/mpt_cam.c
@@ -3024,6 +3024,12 @@ mpt_action(struct cam_sim *sim, union ccb *ccb)
*/
if (cpi->max_target > 255)
cpi->max_target = 255;
+ /*
+ * XXX: VMware ESX reports > 16 devices and then dies
+ * XXX: when we probe.
+ */
+ if (mpt->is_spi && cpi->max_target > 15)
+ cpi->max_target = 15;
cpi->max_lun = 7;
cpi->initiator_id = mpt->mpt_ini_id;
OpenPOWER on IntegriCloud