xref: /linux/Documentation/scsi/ChangeLog.megaraid_sas (revision 5eca4a67b803172eeee7684282348652f9261c5c)
1*5eca4a67Sadam radfordRelease Date    : Sat. Feb 9, 2013 17:00:00 PST 2013 -
2*5eca4a67Sadam radford			(emaild-id:megaraidlinux@lsi.com)
3*5eca4a67Sadam radford			Adam Radford
4*5eca4a67Sadam radfordCurrent Version : 06.506.00.00-rc1
5*5eca4a67Sadam radfordOld Version     : 06.504.01.00-rc1
6*5eca4a67Sadam radford    1. Add 4k FastPath DIF support.
7*5eca4a67Sadam radford    2. Dont load DevHandle unless FastPath enabled.
8*5eca4a67Sadam radford    3. Version and Changelog update.
9*5eca4a67Sadam radford-------------------------------------------------------------------------------
10ae59057bSadam radfordRelease Date    : Mon. Oct 1, 2012 17:00:00 PST 2012 -
11ae59057bSadam radford			(emaild-id:megaraidlinux@lsi.com)
12ae59057bSadam radford			Adam Radford
13ae59057bSadam radfordCurrent Version : 06.504.01.00-rc1
14ae59057bSadam radfordOld Version     : 00.00.06.18-rc1
15ae59057bSadam radford    1. Removed un-needed completion_lock spinlock calls.
16ae59057bSadam radford    2. Add module param for configurable MSI-X vector count.
17ae59057bSadam radford    3. Load io_request DataLength in bytes.
18ae59057bSadam radford    4. Add array boundary check for SystemPD.
19ae59057bSadam radford    5. Add SystemPD FastPath support.
20ae59057bSadam radford    6. Remove duplicate code.
21ae59057bSadam radford    7. Version, Changelog, Copyright update.
22ae59057bSadam radford-------------------------------------------------------------------------------
23cdd75750Sadam radfordRelease Date    : Tue. Jun 17, 2012 17:00:00 PST 2012 -
24cdd75750Sadam radford			(emaild-id:megaraidlinux@lsi.com)
25cdd75750Sadam radford			Adam Radford/Kashyap Desai
26cdd75750Sadam radfordCurrent Version : 00.00.06.18-rc1
27cdd75750Sadam radfordOld Version     : 00.00.06.15-rc1
28cdd75750Sadam radford    1. Fix Copyright dates.
29cdd75750Sadam radford    2. Add throttlequeuedepth module parameter.
30cdd75750Sadam radford    3. Add resetwaittime module parameter.
31cdd75750Sadam radford    4. Move poll_aen_lock initializer.
32cdd75750Sadam radford-------------------------------------------------------------------------------
33e38a813bSadam radfordRelease Date    : Mon. Mar 19, 2012 17:00:00 PST 2012 -
34e38a813bSadam radford			(emaild-id:megaraidlinux@lsi.com)
35e38a813bSadam radford			Adam Radford
36e38a813bSadam radfordCurrent Version : 00.00.06.15-rc1
37e38a813bSadam radfordOld Version     : 00.00.06.14-rc1
38e38a813bSadam radford    1. Optimize HostMSIxVectors setting.
39e38a813bSadam radford    2. Add fpRead/WriteCapable, fpRead/WriteAcrossStripe checks.
40e38a813bSadam radford-------------------------------------------------------------------------------
41798edaadSadam radfordRelease Date    : Fri. Jan 6, 2012 17:00:00 PST 2010 -
42798edaadSadam radford			(emaild-id:megaraidlinux@lsi.com)
43798edaadSadam radford			Adam Radford
44798edaadSadam radfordCurrent Version : 00.00.06.14-rc1
45798edaadSadam radfordOld Version     : 00.00.06.12-rc1
46798edaadSadam radford    1. Fix reglockFlags for degraded raid5/6 for MR 9360/9380.
47798edaadSadam radford    2. Mask off flags in ioctl path to prevent memory scribble with older
48798edaadSadam radford       MegaCLI versions.
49798edaadSadam radford    3. Remove poll_mode_io module paramater, sysfs node, and associated code.
50798edaadSadam radford-------------------------------------------------------------------------------
518d6f5ceaSadam radfordRelease Date    : Wed. Oct 5, 2011 17:00:00 PST 2010 -
528d6f5ceaSadam radford			(emaild-id:megaraidlinux@lsi.com)
538d6f5ceaSadam radford			Adam Radford
548d6f5ceaSadam radfordCurrent Version : 00.00.06.12-rc1
558d6f5ceaSadam radfordOld Version     : 00.00.05.40-rc1
568d6f5ceaSadam radford    1. Continue booting immediately if FW in FAULT at driver load time.
578d6f5ceaSadam radford    2. Increase default cmds per lun to 256.
588d6f5ceaSadam radford    3. Fix mismatch in megasas_reset_fusion() mutex lock-unlock.
598d6f5ceaSadam radford    4. Remove some un-necessary code.
608d6f5ceaSadam radford    5. Clear state change interrupts for Fusion/Invader.
618d6f5ceaSadam radford    6. Clear FUSION_IN_RESET before enabling interrupts.
628d6f5ceaSadam radford    7. Add support for MegaRAID 9360/9380 12GB/s controllers.
638d6f5ceaSadam radford    8. Add multiple MSI-X vector/multiple reply queue support.
648d6f5ceaSadam radford    9. Add driver workaround for PERC5/1068 kdump kernel panic.
658d6f5ceaSadam radford-------------------------------------------------------------------------------
66e1703585Sadam radfordRelease Date    : Tue. Jul 26, 2011 17:00:00 PST 2010 -
67e1703585Sadam radford			(emaild-id:megaraidlinux@lsi.com)
68e1703585Sadam radford			Adam Radford
69e1703585Sadam radfordCurrent Version : 00.00.05.40-rc1
70e1703585Sadam radfordOld Version     : 00.00.05.38-rc1
71e1703585Sadam radford    1. Fix FastPath I/O to work with degraded RAID 1.
72e1703585Sadam radford    2. Add .change_queue_depth support.
73e1703585Sadam radford-------------------------------------------------------------------------------
744f788dceSadam radfordRelease Date    : Wed. May 11, 2011 17:00:00 PST 2010 -
754f788dceSadam radford			(emaild-id:megaraidlinux@lsi.com)
764f788dceSadam radford			Adam Radford
774f788dceSadam radfordCurrent Version : 00.00.05.38-rc1
784f788dceSadam radfordOld Version     : 00.00.05.34-rc1
794f788dceSadam radford    1. Remove MSI-X black list, use MFI_REG_STATE.ready.msiEnable.
804f788dceSadam radford    2. Remove un-used function megasas_return_cmd_for_smid().
814f788dceSadam radford    3. Check MFI_REG_STATE.fault.resetAdapter in megasas_reset_fusion().
824f788dceSadam radford    4. Disable interrupts/free_irq() in megasas_shutdown().
834f788dceSadam radford    5. Fix bug where AENs could be lost in probe() and resume().
844f788dceSadam radford    6. Convert 6,10,12 byte CDB's to 16 byte CDB for large LBA's for FastPath
854f788dceSadam radford       IO.
864f788dceSadam radford    7. Add 1078 OCR support.
874f788dceSadam radford-------------------------------------------------------------------------------
8800fa2b19Sadam radfordRelease Date    : Thu. Feb 24, 2011 17:00:00 PST 2010 -
8900fa2b19Sadam radford			(emaild-id:megaraidlinux@lsi.com)
9000fa2b19Sadam radford			Adam Radford
9100fa2b19Sadam radfordCurrent Version : 00.00.05.34-rc1
9200fa2b19Sadam radfordOld Version     : 00.00.05.29-rc1
9300fa2b19Sadam radford    1. Fix some failure gotos from megasas_probe_one(), etc.
9400fa2b19Sadam radford    2. Add missing check_and_restore_queue_depth() call in
9500fa2b19Sadam radford       complete_cmd_fusion().
9600fa2b19Sadam radford    3. Enable MSI-X before calling megasas_init_fw().
9700fa2b19Sadam radford    4. Call tasklet_schedule() even if outbound_intr_status == 0 for MFI based
9800fa2b19Sadam radford       boards in MSI-X mode.
9900fa2b19Sadam radford    5. Fix megasas_probe_one() to clear PCI_MSIX_FLAGS_ENABLE in msi control
10000fa2b19Sadam radford       register in kdump kernel.
10100fa2b19Sadam radford    6. Fix megasas_get_cmd() to only print "Command pool empty" if
10200fa2b19Sadam radford       megasas_dbg_lvl is set.
10300fa2b19Sadam radford    7. Fix megasas_build_dcdb_fusion() to not filter by TYPE_DISK.
10400fa2b19Sadam radford    8. Fix megasas_build_dcdb_fusion() to use io_request->LUN[1] field.
10500fa2b19Sadam radford    9. Add MR_EVT_CFG_CLEARED to megasas_aen_polling().
10600fa2b19Sadam radford    10. Fix tasklet_init() in megasas_init_fw() to use instancet->tasklet.
10700fa2b19Sadam radford    11. Fix fault state handling in megasas_transition_to_ready().
10800fa2b19Sadam radford    12. Fix max_sectors setting for IEEE SGL's.
10900fa2b19Sadam radford    13. Fix iMR OCR support to work correctly.
11000fa2b19Sadam radford-------------------------------------------------------------------------------
1115f7bb3a4Sadam radfordRelease Date    : Tues.  Dec 14, 2010 17:00:00 PST 2010 -
1125f7bb3a4Sadam radford			(emaild-id:megaraidlinux@lsi.com)
1135f7bb3a4Sadam radford			Adam Radford
1145f7bb3a4Sadam radfordCurrent Version : 00.00.05.29-rc1
1155f7bb3a4Sadam radfordOld Version     : 00.00.04.31-rc1
1165f7bb3a4Sadam radford    1. Rename megaraid_sas.c to megaraid_sas_base.c.
1175f7bb3a4Sadam radford    2. Update GPL headers.
1185f7bb3a4Sadam radford    3. Add MSI-X support and 'msix_disable' module parameter.
1195f7bb3a4Sadam radford    4. Use lowest memory bar (for SR-IOV VF support).
1205f7bb3a4Sadam radford    5. Add struct megasas_instance_temlate changes, and change all code to use
1215f7bb3a4Sadam radford       new instance entries:
1225f7bb3a4Sadam radford
1235f7bb3a4Sadam radford       irqreturn_t (*service_isr )(int irq, void *devp);
1245f7bb3a4Sadam radford       void (*tasklet)(unsigned long);
1255f7bb3a4Sadam radford       u32 (*init_adapter)(struct megasas_instance *);
1265f7bb3a4Sadam radford       u32 (*build_and_issue_cmd) (struct megasas_instance *,
1275f7bb3a4Sadam radford       struct scsi_cmnd *);
1285f7bb3a4Sadam radford       void (*issue_dcmd) (struct megasas_instance *instance,
1295f7bb3a4Sadam radford                              struct megasas_cmd *cmd);
1305f7bb3a4Sadam radford
1315f7bb3a4Sadam radford   6. Add code to support MegaRAID 9265/9285 controllers device id (0x5b).
1325f7bb3a4Sadam radford-------------------------------------------------------------------------------
133e340c353SYang, Bo1 Release Date    : Thur.  May 03, 2010 09:12:45 PST 2009 -
134e340c353SYang, Bo			(emaild-id:megaraidlinux@lsi.com)
135e340c353SYang, Bo			Bo Yang
136e340c353SYang, Bo
137e340c353SYang, Bo2 Current Version : 00.00.04.31-rc1
138e340c353SYang, Bo3 Older Version   : 00.00.04.17.1-rc1
139e340c353SYang, Bo
140e340c353SYang, Bo1.	Add the Online Controller Reset (OCR) to the Driver.
141e340c353SYang, Bo	OCR is the new feature for megaraid_sas driver which
142e340c353SYang, Bo	will allow the fw to do the chip reset which will not
143e340c353SYang, Bo	affact the OS behavious.
144e340c353SYang, Bo
145e340c353SYang, Bo	To add the OCR support, driver need to do:
146e340c353SYang, Bo		a). reset the controller chips -- Xscale and Gen2 which
147e340c353SYang, Bo		will change the function calls and add the reset function
148e340c353SYang, Bo		related to this two chips.
149e340c353SYang, Bo
150e340c353SYang, Bo		b). during the reset, driver will store the pending cmds
151e340c353SYang, Bo		which not returned by FW to driver's pending queue.  Driver
152e340c353SYang, Bo		will re-issue those pending cmds again to FW after the OCR
153e340c353SYang, Bo		finished.
154e340c353SYang, Bo
155e340c353SYang, Bo		c). In driver's timeout routine, driver will report to
156e340c353SYang, Bo		OS as reset. Also driver's queue routine will block the
157e340c353SYang, Bo		cmds until the OCR finished.
158e340c353SYang, Bo
159e340c353SYang, Bo		d). in Driver's ISR routine, if driver get the FW state as
160e340c353SYang, Bo		state change, FW in Failure status and FW support online controller
161e340c353SYang, Bo		reset (OCR), driver will start to do the controller reset.
162e340c353SYang, Bo
163e340c353SYang, Bo		e). In driver's IOCTL routine, the application cmds will wait for the
164e340c353SYang, Bo		OCR to finish, then issue the cmds to FW.
165e340c353SYang, Bo
166e340c353SYang, Bo		f). Before driver kill adapter, driver will do last chance of
167e340c353SYang, Bo		OCR to see if driver can bring back the FW.
168e340c353SYang, Bo
169e340c353SYang, Bo2.	Add the support update flag to the driver to tell LSI megaraid_sas
170e340c353SYang, Bo	application which driver will support the device update.  So application
171e340c353SYang, Bo	will not need to do the device update after application add/del the device
172e340c353SYang, Bo	from the system.
173e340c353SYang, Bo3.	In driver's timeout routine, driver will do three time reset if fw is in
174e340c353SYang, Bo	failed state.  Driver will kill adapter if can't bring back FW after the
175e340c353SYang, Bo	this three times reset.
176e340c353SYang, Bo4.	Add the input parameter max_sectors to 1MB support to our GEN2 controller.
177e340c353SYang, Bo	customer can use the input paramenter max_sectors to add 1MB support to GEN2
178e340c353SYang, Bo	controller.
179e340c353SYang, Bo
18063bad45dSYang, Bo1 Release Date    : Thur.  Oct 29, 2009 09:12:45 PST 2009 -
18163bad45dSYang, Bo			(emaild-id:megaraidlinux@lsi.com)
18263bad45dSYang, Bo			Bo Yang
18363bad45dSYang, Bo
18463bad45dSYang, Bo2 Current Version : 00.00.04.17.1-rc1
18563bad45dSYang, Bo3 Older Version   : 00.00.04.12
18663bad45dSYang, Bo
18763bad45dSYang, Bo1.	Add the pad_0 in mfi frame structure to 0 to fix the
18863bad45dSYang, Bo	context value larger than 32bit value issue.
18963bad45dSYang, Bo
19063bad45dSYang, Bo2.	Add the logic drive list to the driver.  Driver will
19163bad45dSYang, Bo	keep the logic drive list internal after driver load.
19263bad45dSYang, Bo
19363bad45dSYang, Bo3.	driver fixed the device update issue after get the AEN
19463bad45dSYang, Bo	PD delete/ADD, LD add/delete from FW.
19563bad45dSYang, Bo
196a0b77368SYang, Bo1 Release Date    : Tues.  July 28, 2009 10:12:45 PST 2009 -
197a0b77368SYang, Bo			(emaild-id:megaraidlinux@lsi.com)
198a0b77368SYang, Bo			Bo Yang
199a0b77368SYang, Bo
200a0b77368SYang, Bo2 Current Version : 00.00.04.12
201a0b77368SYang, Bo3 Older Version   : 00.00.04.10
202a0b77368SYang, Bo
203a0b77368SYang, Bo1.	Change the AEN sys PD update from scsi_scan to
204a0b77368SYang, Bo	scsi_add_device and scsi_remove_device.
205a0b77368SYang, Bo2.	Takeoff the debug print-out in aen_polling routine.
206a0b77368SYang, Bo
207a0b77368SYang, Bo1 Release Date    : Thur.  July 02, 2009 10:12:45 PST 2009 -
208a0b77368SYang, Bo			(emaild-id:megaraidlinux@lsi.com)
209a0b77368SYang, Bo			Bo Yang
210a0b77368SYang, Bo
211a0b77368SYang, Bo2 Current Version : 00.00.04.10
212a0b77368SYang, Bo3 Older Version   : 00.00.04.08
213a0b77368SYang, Bo
214a0b77368SYang, Bo1.	Add the 3 mins timeout during the controller initialize.
215a0b77368SYang, Bo2.	Add the fix for 64bit sense date errors.
216a0b77368SYang, Bo
217a0b77368SYang, Bo1 Release Date    : Tues. May 05, 2009 10:12:45 PST 2009 -
218a0b77368SYang, Bo			(emaild-id:megaraidlinux@lsi.com)
219a0b77368SYang, Bo			Bo Yang
220a0b77368SYang, Bo
221a0b77368SYang, Bo2 Current Version : 00.00.04.08
222a0b77368SYang, Bo3 Older Version   : 00.00.04.06
223a0b77368SYang, Bo
224a0b77368SYang, Bo1.	Add the fix of pending in FW after deleted the logic drives.
225a0b77368SYang, Bo2.	Add the fix of deallocating memory after get pdlist.
226a0b77368SYang, Bo
227a0b77368SYang, Bo1 Release Date    : Tues. March 26, 2009 10:12:45 PST 2009 -
228a0b77368SYang, Bo			(emaild-id:megaraidlinux@lsi.com)
229a0b77368SYang, Bo			Bo Yang
230a0b77368SYang, Bo
231a0b77368SYang, Bo2 Current Version : 00.00.04.06
232a0b77368SYang, Bo3 Older Version   : 00.00.04.04
233a0b77368SYang, Bo
234a0b77368SYang, Bo1.	Add the fix of the driver cmd empty fix of the driver cmd empty.
235a0b77368SYang, Bo2.	Add the fix of the driver MSM AEN CMD cause the system slow.
236a0b77368SYang, Bo
237a0b77368SYang, Bo1 Release Date    : Tues. March 03, 2009 10:12:45 PST 2009 -
238a0b77368SYang, Bo			(emaild-id:megaraidlinux@lsi.com)
239a0b77368SYang, Bo			Bo Yang
240a0b77368SYang, Bo
241a0b77368SYang, Bo2 Current Version : 00.00.04.04
242a0b77368SYang, Bo3 Older Version   : 00.00.04.01
243a0b77368SYang, Bo
244a0b77368SYang, Bo1.	Add the Tape drive fix to the driver: If the command is for
245a0b77368SYang, Bo	the tape device, set the pthru timeout to the os layer timeout value.
246a0b77368SYang, Bo
247a0b77368SYang, Bo2.	Add Poll_wait mechanism to Gen-2 Linux driv.
248a0b77368SYang, Bo		In the aen handler, driver needs to wakeup poll handler similar to
249a0b77368SYang, Bo		the way it raises SIGIO.
250a0b77368SYang, Bo
251a0b77368SYang, Bo3.	Add new controller new SAS2 support to the driver.
252a0b77368SYang, Bo
253a0b77368SYang, Bo4.	Report the unconfigured PD (system PD) to OS.
254a0b77368SYang, Bo
255a0b77368SYang, Bo5.	Add the IEEE SGL support to the driver
256a0b77368SYang, Bo
257a0b77368SYang, Bo6.	Reasign the Application cmds to SAS2 controller
25824541f99SYang, Bo
25924541f99SYang, Bo1 Release Date    : Thur.July. 24 11:41:51 PST 2008 -
26024541f99SYang, Bo                       (emaild-id:megaraidlinux@lsi.com)
26124541f99SYang, Bo                       Sumant Patro
26224541f99SYang, Bo                       Bo Yang
26324541f99SYang, Bo
26424541f99SYang, Bo2 Current Version : 00.00.04.01
26524541f99SYang, Bo3 Older Version   : 00.00.03.22
26624541f99SYang, Bo
26724541f99SYang, Bo1. Add the new controller (0078, 0079) support to the driver
26824541f99SYang, Bo       Those controllers are LSI's next generatation(gen2) SAS controllers.
26924541f99SYang, Bo
27024541f99SYang, Bo1 Release Date    : Mon.June. 23 10:12:45 PST 2008 -
27124541f99SYang, Bo                       (emaild-id:megaraidlinux@lsi.com)
27224541f99SYang, Bo                       Sumant Patro
27324541f99SYang, Bo                       Bo Yang
27424541f99SYang, Bo
27524541f99SYang, Bo2 Current Version : 00.00.03.22
27624541f99SYang, Bo3 Older Version   : 00.00.03.20
27724541f99SYang, Bo
27824541f99SYang, Bo1. Add shutdown DCMD cmd to the shutdown routine to make FW shutdown proper.
27924541f99SYang, Bo2. Unexpected interrupt occurs in HWR Linux driver, add the dumy readl pci flush will fix this issue.
28024541f99SYang, Bo
281127ce971Sbo yang1 Release Date    : Mon. March 10 11:02:31 PDT 2008 -
282127ce971Sbo yang			(emaild-id:megaraidlinux@lsi.com)
283127ce971Sbo yang			Sumant Patro
284127ce971Sbo yang			Bo Yang
285127ce971Sbo yang
286127ce971Sbo yang2 Current Version : 00.00.03.20-RC1
287127ce971Sbo yang3 Older Version   : 00.00.03.16
288127ce971Sbo yang
289127ce971Sbo yang1. Rollback the sense info implementation
290127ce971Sbo yang	Sense buffer ptr data type in the ioctl path is reverted back
291127ce971Sbo yang	to u32 * as in previous versions of driver.
292127ce971Sbo yang
293127ce971Sbo yang2. Fixed the driver frame count.
294127ce971Sbo yang	When Driver sent wrong frame count to firmware.  As this
295127ce971Sbo yang	particular command is sent to drive, FW is seeing continuous
296127ce971Sbo yang	chip resets and so the command will timeout.
297127ce971Sbo yang
298127ce971Sbo yang3. Add the new controller(1078DE) support to the driver
299127ce971Sbo yang	and Increase the max_wait to 60 from 10 in the controller
300127ce971Sbo yang	operational status.  With this max_wait increase, driver will
301127ce971Sbo yang	make sure the FW will 	finish the pending cmd for KDUMP case.
302127ce971Sbo yang
303f28cd7cfSbo yang1 Release Date    : Thur. Nov. 07 16:30:43 PST 2007 -
304f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
305f28cd7cfSbo yang			Sumant Patro
306f28cd7cfSbo yang			Bo Yang
307f28cd7cfSbo yang
308f28cd7cfSbo yang2 Current Version : 00.00.03.16
309f28cd7cfSbo yang3 Older Version   : 00.00.03.15
310f28cd7cfSbo yang
311f28cd7cfSbo yang1. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 10. FW may take
312f28cd7cfSbo yang	a max of 60 seconds to respond to the INIT cmd.
313f28cd7cfSbo yang
314f28cd7cfSbo yang1 Release Date    : Fri. Sep. 07 16:30:43 PST 2007 -
315f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
316f28cd7cfSbo yang			Sumant Patro
317f28cd7cfSbo yang			Bo Yang
318f28cd7cfSbo yang
319f28cd7cfSbo yang2 Current Version : 00.00.03.15
320f28cd7cfSbo yang3 Older Version   : 00.00.03.14
321f28cd7cfSbo yang
322f28cd7cfSbo yang1. Added module parameter "poll_mode_io" to support for "polling"
323f28cd7cfSbo yang	(reduced interrupt operation).  In this mode, IO completion
324f28cd7cfSbo yang	interrupts are delayed. At the end of initiating IOs, the
325f28cd7cfSbo yang	driver schedules for cmd completion if there are pending cmds
326f28cd7cfSbo yang	to be completed.  A timer-based interrupt has also been added
327f28cd7cfSbo yang	to prevent IO completion processing from being delayed
328f28cd7cfSbo yang	indefinitely in the case that no new IOs are initiated.
329f28cd7cfSbo yang
330f28cd7cfSbo yang1 Release Date    : Fri. Sep. 07 16:30:43 PST 2007 -
331f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
332f28cd7cfSbo yang			Sumant Patro
333f28cd7cfSbo yang			Bo Yang
334f28cd7cfSbo yang
335f28cd7cfSbo yang2 Current Version : 00.00.03.14
336f28cd7cfSbo yang3 Older Version   : 00.00.03.13
337f28cd7cfSbo yang
338f28cd7cfSbo yang1. Setting the max_sectors_per_req based on max SGL supported by the
339f28cd7cfSbo yang	FW. Prior versions calculated this value from controller info
340f28cd7cfSbo yang	(max_sectors_1, max_sectors_2). For certain controllers/FW,
341f28cd7cfSbo yang	this was resulting in a value greater than max SGL supported
342f28cd7cfSbo yang	by the FW. Issue was first reported by users running LUKS+XFS
343f28cd7cfSbo yang	with megaraid_sas.  Thanks to RB for providing the logs and
344f28cd7cfSbo yang	duplication steps that helped to get to the root cause of the
345f28cd7cfSbo yang	issue.  2. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from
346f28cd7cfSbo yang	10. FW may take a max of 60 seconds to respond to the INIT
347f28cd7cfSbo yang	cmd.
348f28cd7cfSbo yang
349f28cd7cfSbo yang1 Release Date    : Fri. June. 15 16:30:43 PST 2007 -
350f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
351f28cd7cfSbo yang			Sumant Patro
352f28cd7cfSbo yang			Bo Yang
353f28cd7cfSbo yang
354f28cd7cfSbo yang2 Current Version : 00.00.03.13
355f28cd7cfSbo yang3 Older Version   : 00.00.03.12
356f28cd7cfSbo yang
357f28cd7cfSbo yang1. Added the megasas_reset_timer routine to intercept cmd timeout and throttle io.
358f28cd7cfSbo yang
359f28cd7cfSbo yangOn Fri, 2007-03-16 at 16:44 -0600, James Bottomley wrote:
360f28cd7cfSbo yangIt looks like megaraid_sas at least needs this to throttle its commands
361f28cd7cfSbo yang> as they begin to time out.  The code keeps the existing transport
362f28cd7cfSbo yang> template use of eh_timed_out (and allows the transport to override the
363f28cd7cfSbo yang> host if they both have this callback).
364f28cd7cfSbo yang>
365f28cd7cfSbo yang> James
366f28cd7cfSbo yang
367f28cd7cfSbo yang1 Release Date    : Sat May. 12 16:30:43 PST 2007 -
368f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
369f28cd7cfSbo yang			Sumant Patro
370f28cd7cfSbo yang			Bo Yang
371f28cd7cfSbo yang
372f28cd7cfSbo yang2 Current Version : 00.00.03.12
373f28cd7cfSbo yang3 Older Version   : 00.00.03.11
374f28cd7cfSbo yang
375f28cd7cfSbo yang1.  When MegaSAS driver receives reset call from OS, driver waits in reset
376f28cd7cfSbo yangroutine for max 3 minutes for all pending command completion. Now driver will
377f28cd7cfSbo yangcall completion routine every 5 seconds from the reset routine instead of
378f28cd7cfSbo yangwaiting for depending on cmd completion from isr path.
379f28cd7cfSbo yang
380f28cd7cfSbo yang1 Release Date    : Mon Apr. 30 10:25:52 PST 2007 -
381f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
382f28cd7cfSbo yang			Sumant Patro
383f28cd7cfSbo yang			Bo Yang
384f28cd7cfSbo yang
385f28cd7cfSbo yang2 Current Version : 00.00.03.11
386f28cd7cfSbo yang3 Older Version   : 00.00.03.09
387f28cd7cfSbo yang
388f28cd7cfSbo yang	1. Memory Manager for IOCTL removed for 2.6 kernels.
389f28cd7cfSbo yang	   pci_alloc_consistent replaced by dma_alloc_coherent. With this
390f28cd7cfSbo yang	   change there is no need of memory manager in the driver code
391f28cd7cfSbo yang
392f28cd7cfSbo yang	On Wed, 2007-02-07 at 13:30 -0800, Andrew Morton wrote:
393f28cd7cfSbo yang	> I suspect all this horror is due to stupidity in the DMA API.
394f28cd7cfSbo yang	>
395f28cd7cfSbo yang	> pci_alloc_consistent() just goes and assumes GFP_ATOMIC, whereas
396f28cd7cfSbo yang	> the caller (megasas_mgmt_fw_ioctl) would have been perfectly happy
397f28cd7cfSbo yang	> to use GFP_KERNEL.
398f28cd7cfSbo yang	>
399f28cd7cfSbo yang	> I bet this fixes it
400f28cd7cfSbo yang
401f28cd7cfSbo yang	It does, but the DMA API was expanded to cope with this exact case, so
402f28cd7cfSbo yang	use dma_alloc_coherent() directly in the megaraid code instead.  The dev
403f28cd7cfSbo yang	is just &pci_dev->dev.
404f28cd7cfSbo yang
405f28cd7cfSbo yang	James <James.Bottomley@SteelEye.com>
406f28cd7cfSbo yang
407f28cd7cfSbo yang	3. SYNCHRONIZE_CACHE is not supported by FW and thus blocked by driver.
408f28cd7cfSbo yang	4. Hibernation support added
409f28cd7cfSbo yang	5. Performing diskdump while running IO in RHEL 4 was failing. Fixed.
410f28cd7cfSbo yang
411f28cd7cfSbo yang1 Release Date    : Fri Feb. 09 14:36:28 PST 2007 -
412f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
413f28cd7cfSbo yang			Sumant Patro
414f28cd7cfSbo yang			Bo Yang
415f28cd7cfSbo yang
416f28cd7cfSbo yang2 Current Version : 00.00.03.09
417f28cd7cfSbo yang3 Older Version   : 00.00.03.08
418f28cd7cfSbo yang
419f28cd7cfSbo yangi.	Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
420f28cd7cfSbo yang
421f28cd7cfSbo yang	The driver now waits for 10 seconds to elapse instead of 5 (as in
422f28cd7cfSbo yang	previous release) to resume IO.
423f28cd7cfSbo yang
424f28cd7cfSbo yang1 Release Date    : Mon Feb. 05 11:35:24 PST 2007 -
425f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
426f28cd7cfSbo yang			Sumant Patro
427f28cd7cfSbo yang			Bo Yang
428f28cd7cfSbo yang2 Current Version : 00.00.03.08
429f28cd7cfSbo yang3 Older Version   : 00.00.03.07
430f28cd7cfSbo yang
431f28cd7cfSbo yangi.	Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
432f28cd7cfSbo yang
433f28cd7cfSbo yang	Fix:	The driver is now throttling IO.
434f28cd7cfSbo yang	Checks added in megasas_queue_command to know if FW is able to
435f28cd7cfSbo yang	process commands within timeout period. If number of retries
436f28cd7cfSbo yang	is 2 or greater,the driver stops sending cmd to FW temporarily. IO is
437f28cd7cfSbo yang	resumed if pending cmd count reduces to 16 or 5 seconds has elapsed
438f28cd7cfSbo yang	from the time cmds were last sent to FW.
439f28cd7cfSbo yang
440f28cd7cfSbo yangii.	FW enables WCE bit in Mode Sense cmd for drives that are configured
441f28cd7cfSbo yang	as WriteBack. The OS may send "SYNCHRONIZE_CACHE" cmd when Logical
442f28cd7cfSbo yang	Disks are exposed with WCE=1. User is advised to enable Write Back
443f28cd7cfSbo yang	mode only when the controller has battery backup. At this time
444f28cd7cfSbo yang	Synhronize cache is not supported by the FW. Driver will short-cycle
445af901ca1SAndré Goddard Rosa	the cmd and return success without sending down to FW.
446f28cd7cfSbo yang
447f28cd7cfSbo yang1 Release Date    : Sun Jan. 14 11:21:32 PDT 2007 -
448f28cd7cfSbo yang		 Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
449f28cd7cfSbo yang2 Current Version : 00.00.03.07
450f28cd7cfSbo yang3 Older Version   : 00.00.03.06
451f28cd7cfSbo yang
452f28cd7cfSbo yangi.	bios_param entry added in scsi_host_template that returns disk geometry
453f28cd7cfSbo yang	information.
454f28cd7cfSbo yang
455f28cd7cfSbo yang1 Release Date    : Fri Oct 20 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
456f28cd7cfSbo yang2 Current Version : 00.00.03.06
457f28cd7cfSbo yang3 Older Version   : 00.00.03.05
458f28cd7cfSbo yang
459f28cd7cfSbo yang1. Added new memory management module to support the IOCTL memory allocation. For IOCTL we try to allocate from the memory pool created during driver initialization. If mem pool is empty then we allocate at run time.
460f28cd7cfSbo yang2. Added check in megasas_queue_command and dpc/isr routine to see if we have already declared adapter dead
461f28cd7cfSbo yang   (hw_crit_error=1). If hw_crit_error==1, now we donot accept any processing of pending cmds/accept any cmd from OS
462e4a082c7SSumant Patro
4632a3681e5SSumant Patro1 Release Date    : Mon Oct 02 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4642a3681e5SSumant Patro2 Current Version : 00.00.03.05
4652a3681e5SSumant Patro3 Older Version   : 00.00.03.04
4662a3681e5SSumant Patro
4672a3681e5SSumant Patroi.	PCI_DEVICE macro used
4682a3681e5SSumant Patro
4692a3681e5SSumant Patro	Convert the pci_device_id-table of the megaraid_sas-driver to the PCI_DEVICE-macro, to safe some lines.
4702a3681e5SSumant Patro
4712a3681e5SSumant Patro		- Henrik Kretzschmar <henne@nachtwindheim.de>
4722a3681e5SSumant Patroii.	All compiler warnings removed
4732a3681e5SSumant Patroiii.	megasas_ctrl_info struct reverted to 3.02 release
4742a3681e5SSumant Patroiv.	Default value of megasas_dbg_lvl set to 0
4752a3681e5SSumant Patrov.	Removing in megasas_exit the sysfs entry created for megasas_dbg_lvl
4762a3681e5SSumant Patrovi.	In megasas_teardown_frame_pool(), cmd->frame was passed instead of
4772a3681e5SSumant Patro	cmd->sense to pci_pool_free. Fixed. Bug was pointed out by
4782a3681e5SSumant Patro	Eric Sesterhenn
4792a3681e5SSumant Patro
4802a3681e5SSumant Patro1 Release Date    : Wed Sep 13 14:22:51 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4812a3681e5SSumant Patro2 Current Version : 00.00.03.04
4822a3681e5SSumant Patro3 Older Version   : 00.00.03.03
4832a3681e5SSumant Patro
4842a3681e5SSumant Patroi.	Added Reboot notify
4852a3681e5SSumant Patroii.	Reduced by 1 max cmds sent to FW from Driver to make the reply_q_sz same
4862a3681e5SSumant Patro	as Max Cmds FW can support
4872a3681e5SSumant Patro
4882a3681e5SSumant Patro1 Release Date    : Tue Aug 22 16:33:14 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4892a3681e5SSumant Patro2 Current Version : 00.00.03.03
4902a3681e5SSumant Patro3 Older Version   : 00.00.03.02
4912a3681e5SSumant Patro
4922a3681e5SSumant Patroi.	Send stop adapter to FW & Dump pending FW cmds before declaring adapter dead.
4932a3681e5SSumant Patro	New varible added to set dbg level.
4942a3681e5SSumant Patroii.	Disable interrupt made as fn pointer as they are different for 1068 / 1078
4952a3681e5SSumant Patroiii.	Frame count optimization. Main frame can contain 2 SGE for 64 bit SGLs and
4962a3681e5SSumant Patro	3 SGE for 32 bit SGL
4972a3681e5SSumant Patroiv.	Tasklet added for cmd completion
4982a3681e5SSumant Patrov.	If FW in operational state before firing INIT, now we send RESET Flag to FW instead of just READY. This is used to do soft reset.
4992a3681e5SSumant Patrovi.	megasas_ctrl_prop structure updated (based on FW struct)
5002a3681e5SSumant Patrovii.	Added print : FW now in Ready State during initialization
5012a3681e5SSumant Patro
5022a3681e5SSumant Patro1 Release Date    : Sun Aug 06 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
5032a3681e5SSumant Patro2 Current Version : 00.00.03.02
5042a3681e5SSumant Patro3 Older Version   : 00.00.03.01
5052a3681e5SSumant Patro
5062a3681e5SSumant Patroi.	Added FW tranistion state for Hotplug scenario
5072a3681e5SSumant Patro
5080e98936cSSumant Patro1 Release Date    : Sun May 14 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
5090e98936cSSumant Patro2 Current Version : 00.00.03.01
5100e98936cSSumant Patro3 Older Version   : 00.00.02.04
5110e98936cSSumant Patro
5120e98936cSSumant Patroi.	Added support for ZCR controller.
5130e98936cSSumant Patro
5140e98936cSSumant Patro		New device id 0x413 added.
5150e98936cSSumant Patro
5160e98936cSSumant Patroii.	Bug fix : Disable controller interrupt before firing INIT cmd to FW.
5170e98936cSSumant Patro
5180e98936cSSumant Patro		Interrupt is enabled after required initialization is over.
5190e98936cSSumant Patro		This is done to ensure that driver is ready to handle interrupts when
5200e98936cSSumant Patro		it is generated by the controller.
5210e98936cSSumant Patro
5220e98936cSSumant Patro		-Sumant Patro <Sumant.Patro@lsil.com>
5230e98936cSSumant Patro
524e4a082c7SSumant Patro1 Release Date    : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
525e4a082c7SSumant Patro2 Current Version : 00.00.02.04
526e4a082c7SSumant Patro3 Older Version   : 00.00.02.04
527e4a082c7SSumant Patro
528e4a082c7SSumant Patroi.	Remove superflous instance_lock
529e4a082c7SSumant Patro
530e4a082c7SSumant Patro	gets rid of the otherwise superflous instance_lock and avoids an unsave
531e4a082c7SSumant Patro	unsynchronized access in the error handler.
532e4a082c7SSumant Patro
533e4a082c7SSumant Patro		- Christoph Hellwig <hch@lst.de>
534e4a082c7SSumant Patro
535e4a082c7SSumant Patro
536f9876f0bSSumant Patro1 Release Date    : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
537f9876f0bSSumant Patro2 Current Version : 00.00.02.04
538f9876f0bSSumant Patro3 Older Version   : 00.00.02.04
539f9876f0bSSumant Patro
540f9876f0bSSumant Patroi.	Support for 1078 type (ppc IOP) controller, device id : 0x60 added.
541f9876f0bSSumant Patro	During initialization, depending on the device id, the template members
542f9876f0bSSumant Patro	are initialized with function pointers specific to the ppc or
543f9876f0bSSumant Patro	xscale controllers.
544f9876f0bSSumant Patro
545f9876f0bSSumant Patro		-Sumant Patro <Sumant.Patro@lsil.com>
546f9876f0bSSumant Patro
547122da302SJoshua Giles1 Release Date    : Fri Feb 03 14:16:25 PST 2006 - Sumant Patro
548122da302SJoshua Giles							<Sumant.Patro@lsil.com>
549122da302SJoshua Giles2 Current Version : 00.00.02.04
550122da302SJoshua Giles3 Older Version   : 00.00.02.02
551122da302SJoshua Gilesi.	Register 16 byte CDB capability with scsi midlayer
552122da302SJoshua Giles
55340e47125SMasanari Iida	"This patch properly registers the 16 byte command length capability of the
554122da302SJoshua Giles	megaraid_sas controlled hardware with the scsi midlayer. All megaraid_sas
555122da302SJoshua Giles	hardware supports 16 byte CDB's."
556122da302SJoshua Giles
557122da302SJoshua Giles		-Joshua Giles <joshua_giles@dell.com>
558122da302SJoshua Giles
5591341c939SSumant Patro1 Release Date    : Mon Jan 23 14:09:01 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
5601341c939SSumant Patro2 Current Version : 00.00.02.02
5611341c939SSumant Patro3 Older Version   : 00.00.02.01
5621341c939SSumant Patro
5631341c939SSumant Patroi.	New template defined to represent each family of controllers (identified by processor used).
5641341c939SSumant Patro	The template will have defintions that will be initialised to appropritae values for a specific family of controllers. The template definition has four function pointers. During driver initialisation the function pointers will be set based on the controller family type. This change is done to support new controllers that has different processors and thus different register set.
5651341c939SSumant Patro
5661341c939SSumant Patro		-Sumant Patro <Sumant.Patro@lsil.com>
5671341c939SSumant Patro
568cb59aa6aSSumant Patro1 Release Date    : Mon Dec 19 14:36:26 PST 2005 - Sumant Patro <Sumant.Patro@lsil.com>
569cb59aa6aSSumant Patro2 Current Version : 00.00.02.00-rc4
570cb59aa6aSSumant Patro3 Older Version   : 00.00.02.01
571cb59aa6aSSumant Patro
572cb59aa6aSSumant Patroi.	Code reorganized to remove code duplication in megasas_build_cmd.
573cb59aa6aSSumant Patro
574cb59aa6aSSumant Patro	"There's a lot of duplicate code megasas_build_cmd.  Move that out of the different codepathes and merge the reminder of megasas_build_cmd into megasas_queue_command"
575cb59aa6aSSumant Patro
576cb59aa6aSSumant Patro		- Christoph Hellwig <hch@lst.de>
577cb59aa6aSSumant Patro
578cb59aa6aSSumant Patroii.	Defined MEGASAS_IOC_FIRMWARE32 for code paths that handles 32 bit applications in 64 bit systems.
579cb59aa6aSSumant Patro
580cb59aa6aSSumant Patro	"MEGASAS_IOC_FIRMWARE can't be redefined if CONFIG_COMPAT is set, we need to define a MEGASAS_IOC_FIRMWARE32 define so native binaries continue to work"
581cb59aa6aSSumant Patro
582cb59aa6aSSumant Patro		- Christoph Hellwig <hch@lst.de>
583