with kernel 2.6.32 vanilla mptsas driver, the SATA disks connected through sas backbone to 1068e hba card. sometimes the system cannot detect hotplugged harddisk. after upgrading to lsi 4.22.00 driver, no improvement at all. If we connect disks through a lsi 24x expander chip, there's no problem detecting hotplugged disks. 2.6.21 kernel mptsas driver doesn't has this problem.
Created attachment 25910 [details] debug info when unplug device
Created attachment 25911 [details] debug info when hot plug device is detected
Created attachment 25912 [details] debug info when hot plug device is not detected
Recategorised to scsi, assigned to Eric.
Comment on attachment 25912 [details] debug info when hot plug device is not detected this doesn't proceed to test_unit_ready as the correct hotplug sequence but directly to the mptsas_free_fw_event.
Created attachment 25987 [details] fix sata hotplug problem from lsi This patch is from lsi. It seems that it makes situation much better. If we plug only one disk, it is always found now. (50 times testing passed successfully). However, if we plug several disks together, there are still one to three disks missing.
Please don't send patches via bugzilla - it causes lots of problems with our usual patch management and review processes. Please send this patch via email as per Documentation/SubmittingPatches. Suitable recipients may be found via scripts/get_maintainer.pl. Please also cc myself on the email. Thanks.
(In reply to comment #6) > Created an attachment (id=25987) [details] > fix sata hotplug problem from lsi > > This patch is from lsi. It seems that it makes situation much better. If we > plug only one disk, it is always found now. (50 times testing passed > successfully). However, if we plug several disks together, there are still > one > to three disks missing. LSI has plan to post this patch soon. we are doing more testing on this patch. We are not seeing this issue(multiple SATA drivers hotplug) in our LAB. If you can provide me logs with and without debug level = 0x100000 I can provide my analysis. "echo 0x100000 > /sys/modules/mptbase/parameters/mpt_debug_level" Thanks, Kashyap