From 8ca0124685094048eb92e68610e091410ff1b1bc Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Mon, 26 Jun 2006 05:44:18 +0000 Subject: [PATCH] VMWare ESX reports > 16 targets for the LSI-Logic U320 model it emulates. Then it crashes and burns when you probe that high. --- sys/dev/mpt/mpt_cam.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/mpt/mpt_cam.c b/sys/dev/mpt/mpt_cam.c index b8eb81b3e9a..1a53679683a 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;