1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

VMWare ESX reports > 16 targets for the LSI-Logic

U320 model it emulates. Then it crashes and burns
when you probe that high.
This commit is contained in:
Matt Jacob 2006-06-26 05:44:18 +00:00
parent 5ce1b00496
commit 8ca0124685
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159943

View File

@ -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;