fusion : shost max_id not set in VMWare guest os
Subsystems (2)
PATCH 1/2 fusion : shost max_id not set in VMWare guest os
[PATCH 1/2] fusion : shost max_id not set in VMWare guest os
In vmware guest os with emulated LSI 53c1030, the port facts config page is
not having MaxDevices initialized to 16 devices. Instead its set to zero.
Thereforewhen driver loads, no devices are scanned for from scsi_scan_host.
Prior to the3.04.04 driver, shost max_id was set to hard coded value MPT_MAX_SCSI_DEVICES. After that release, support for greater than 255 targets was added, and the driver was taking the target count from the port facts instead. With this patch we will restore the hard coded values for SPI, but at the same time use the settingsneeded for SAS and Fibre Channel.
drivers/message/fusion/mptbase.c +13 -2
@@ -2570,8 +2570,19 @@ GetPortFacts(MPT_ADAPTER *ioc, int portn pfacts->MaxPersistentIDs =le16_to_cpu (pfacts->MaxPersistentIDs); pfacts->MaxLanBuckets =le16_to_cpu (pfacts->MaxLanBuckets); - max_id = (ioc->bus_type ==SAS ) ? pfacts->PortSCSIID : - pfacts->MaxDevices; +switch (ioc->bus_type) { +case SAS : + max_id = pfacts->PortSCSIID; +break ; +case FC : + max_id = pfacts->MaxDevices; +break ; +case SPI : +default : + max_id =MPT_MAX_SCSI_DEVICES ; +break ; + } + ioc->devices_per_bus = (max_id >255 ) ?256 : max_id; ioc->number_of_buses = (ioc->devices_per_bus <256 ) ?1 : max_id/256 ;
Quoted 6 lines · Eric Moore
[PATCH 1/2] fusion : shost
max_idnot set in VMWare guest osIn vmware guest os with emulated LSI 53c1030, the port facts config page is
not having MaxDevices initialized to 16 devices. Instead its set to zero.
Thereforewhen driver loads, no devices are scanned for fromscsi_scan_host.
Prior to the3.04.04 driver, shostmax_idwas set to hard coded valueMPT_MAX_SCSI_DEVICES. After that release, support for greater than 255 targets was added, and the driver was taking the target count from the port facts instead. With this patch we will restore the hard coded values for SPI, but at the same time use the settingsneeded for SAS and Fibre Channel.
NACK, just get Vmware folks to fix their broken emulation.