]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] megaraid_sas: check max_sgl reported by FW for setting max_sectors_per_req
authorbo yang <bo.yang@lsi.com>
Fri, 9 Nov 2007 09:14:00 +0000 (04:14 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:22:43 +0000 (18:22 -0600)
commit26779c914c1152725c93f77f67ad95bf3c66e1f9
tree10440492118c4d7c49eced392e0f1e4667933924
parent2e4f6faed3352abacd2e5965f4316e1e27b1c05b
[SCSI] megaraid_sas: check max_sgl reported by FW for setting max_sectors_per_req

1. Setting the max_sectors_per_req based on max SGL supported by the
   FW. Prior versions calculated this value from controller info's
   max_sectors_1, max_sectors_2. For certain controllers/FW, this was
   resulting in a value greater than max SGL supported by the FW. Now
   we take the min of max sgl from FW and max_sectors calculation.

2. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 10. FW may take
   a max of 60 seconds to respond to the INIT cmd.

Signed-off-by: Bo Yang <bo.yang@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/megaraid/megaraid_sas.c
drivers/scsi/megaraid/megaraid_sas.h