xref: /openbmc/linux/Documentation/scsi/ChangeLog.megaraid_sas (revision df2634f43f5106947f3735a0b61a6527a4b278cd)
1Release Date    : Tues.  Dec 14, 2010 17:00:00 PST 2010 -
2			(emaild-id:megaraidlinux@lsi.com)
3			Adam Radford
4Current Version : 00.00.05.29-rc1
5Old Version     : 00.00.04.31-rc1
6    1. Rename megaraid_sas.c to megaraid_sas_base.c.
7    2. Update GPL headers.
8    3. Add MSI-X support and 'msix_disable' module parameter.
9    4. Use lowest memory bar (for SR-IOV VF support).
10    5. Add struct megasas_instance_temlate changes, and change all code to use
11       new instance entries:
12
13       irqreturn_t (*service_isr )(int irq, void *devp);
14       void (*tasklet)(unsigned long);
15       u32 (*init_adapter)(struct megasas_instance *);
16       u32 (*build_and_issue_cmd) (struct megasas_instance *,
17       struct scsi_cmnd *);
18       void (*issue_dcmd) (struct megasas_instance *instance,
19                              struct megasas_cmd *cmd);
20
21   6. Add code to support MegaRAID 9265/9285 controllers device id (0x5b).
22-------------------------------------------------------------------------------
231 Release Date    : Thur.  May 03, 2010 09:12:45 PST 2009 -
24			(emaild-id:megaraidlinux@lsi.com)
25			Bo Yang
26
272 Current Version : 00.00.04.31-rc1
283 Older Version   : 00.00.04.17.1-rc1
29
301.	Add the Online Controller Reset (OCR) to the Driver.
31	OCR is the new feature for megaraid_sas driver which
32	will allow the fw to do the chip reset which will not
33	affact the OS behavious.
34
35	To add the OCR support, driver need to do:
36		a). reset the controller chips -- Xscale and Gen2 which
37		will change the function calls and add the reset function
38		related to this two chips.
39
40		b). during the reset, driver will store the pending cmds
41		which not returned by FW to driver's pending queue.  Driver
42		will re-issue those pending cmds again to FW after the OCR
43		finished.
44
45		c). In driver's timeout routine, driver will report to
46		OS as reset. Also driver's queue routine will block the
47		cmds until the OCR finished.
48
49		d). in Driver's ISR routine, if driver get the FW state as
50		state change, FW in Failure status and FW support online controller
51		reset (OCR), driver will start to do the controller reset.
52
53		e). In driver's IOCTL routine, the application cmds will wait for the
54		OCR to finish, then issue the cmds to FW.
55
56		f). Before driver kill adapter, driver will do last chance of
57		OCR to see if driver can bring back the FW.
58
592.	Add the support update flag to the driver to tell LSI megaraid_sas
60	application which driver will support the device update.  So application
61	will not need to do the device update after application add/del the device
62	from the system.
633.	In driver's timeout routine, driver will do three time reset if fw is in
64	failed state.  Driver will kill adapter if can't bring back FW after the
65	this three times reset.
664.	Add the input parameter max_sectors to 1MB support to our GEN2 controller.
67	customer can use the input paramenter max_sectors to add 1MB support to GEN2
68	controller.
69
701 Release Date    : Thur.  Oct 29, 2009 09:12:45 PST 2009 -
71			(emaild-id:megaraidlinux@lsi.com)
72			Bo Yang
73
742 Current Version : 00.00.04.17.1-rc1
753 Older Version   : 00.00.04.12
76
771.	Add the pad_0 in mfi frame structure to 0 to fix the
78	context value larger than 32bit value issue.
79
802.	Add the logic drive list to the driver.  Driver will
81	keep the logic drive list internal after driver load.
82
833.	driver fixed the device update issue after get the AEN
84	PD delete/ADD, LD add/delete from FW.
85
861 Release Date    : Tues.  July 28, 2009 10:12:45 PST 2009 -
87			(emaild-id:megaraidlinux@lsi.com)
88			Bo Yang
89
902 Current Version : 00.00.04.12
913 Older Version   : 00.00.04.10
92
931.	Change the AEN sys PD update from scsi_scan to
94	scsi_add_device and scsi_remove_device.
952.	Takeoff the debug print-out in aen_polling routine.
96
971 Release Date    : Thur.  July 02, 2009 10:12:45 PST 2009 -
98			(emaild-id:megaraidlinux@lsi.com)
99			Bo Yang
100
1012 Current Version : 00.00.04.10
1023 Older Version   : 00.00.04.08
103
1041.	Add the 3 mins timeout during the controller initialize.
1052.	Add the fix for 64bit sense date errors.
106
1071 Release Date    : Tues. May 05, 2009 10:12:45 PST 2009 -
108			(emaild-id:megaraidlinux@lsi.com)
109			Bo Yang
110
1112 Current Version : 00.00.04.08
1123 Older Version   : 00.00.04.06
113
1141.	Add the fix of pending in FW after deleted the logic drives.
1152.	Add the fix of deallocating memory after get pdlist.
116
1171 Release Date    : Tues. March 26, 2009 10:12:45 PST 2009 -
118			(emaild-id:megaraidlinux@lsi.com)
119			Bo Yang
120
1212 Current Version : 00.00.04.06
1223 Older Version   : 00.00.04.04
123
1241.	Add the fix of the driver cmd empty fix of the driver cmd empty.
1252.	Add the fix of the driver MSM AEN CMD cause the system slow.
126
1271 Release Date    : Tues. March 03, 2009 10:12:45 PST 2009 -
128			(emaild-id:megaraidlinux@lsi.com)
129			Bo Yang
130
1312 Current Version : 00.00.04.04
1323 Older Version   : 00.00.04.01
133
1341.	Add the Tape drive fix to the driver: If the command is for
135	the tape device, set the pthru timeout to the os layer timeout value.
136
1372.	Add Poll_wait mechanism to Gen-2 Linux driv.
138		In the aen handler, driver needs to wakeup poll handler similar to
139		the way it raises SIGIO.
140
1413.	Add new controller new SAS2 support to the driver.
142
1434.	Report the unconfigured PD (system PD) to OS.
144
1455.	Add the IEEE SGL support to the driver
146
1476.	Reasign the Application cmds to SAS2 controller
148
1491 Release Date    : Thur.July. 24 11:41:51 PST 2008 -
150                       (emaild-id:megaraidlinux@lsi.com)
151                       Sumant Patro
152                       Bo Yang
153
1542 Current Version : 00.00.04.01
1553 Older Version   : 00.00.03.22
156
1571. Add the new controller (0078, 0079) support to the driver
158       Those controllers are LSI's next generatation(gen2) SAS controllers.
159
1601 Release Date    : Mon.June. 23 10:12:45 PST 2008 -
161                       (emaild-id:megaraidlinux@lsi.com)
162                       Sumant Patro
163                       Bo Yang
164
1652 Current Version : 00.00.03.22
1663 Older Version   : 00.00.03.20
167
1681. Add shutdown DCMD cmd to the shutdown routine to make FW shutdown proper.
1692. Unexpected interrupt occurs in HWR Linux driver, add the dumy readl pci flush will fix this issue.
170
1711 Release Date    : Mon. March 10 11:02:31 PDT 2008 -
172			(emaild-id:megaraidlinux@lsi.com)
173			Sumant Patro
174			Bo Yang
175
1762 Current Version : 00.00.03.20-RC1
1773 Older Version   : 00.00.03.16
178
1791. Rollback the sense info implementation
180	Sense buffer ptr data type in the ioctl path is reverted back
181	to u32 * as in previous versions of driver.
182
1832. Fixed the driver frame count.
184	When Driver sent wrong frame count to firmware.  As this
185	particular command is sent to drive, FW is seeing continuous
186	chip resets and so the command will timeout.
187
1883. Add the new controller(1078DE) support to the driver
189	and Increase the max_wait to 60 from 10 in the controller
190	operational status.  With this max_wait increase, driver will
191	make sure the FW will 	finish the pending cmd for KDUMP case.
192
1931 Release Date    : Thur. Nov. 07 16:30:43 PST 2007 -
194			(emaild-id:megaraidlinux@lsi.com)
195			Sumant Patro
196			Bo Yang
197
1982 Current Version : 00.00.03.16
1993 Older Version   : 00.00.03.15
200
2011. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 10. FW may take
202	a max of 60 seconds to respond to the INIT cmd.
203
2041 Release Date    : Fri. Sep. 07 16:30:43 PST 2007 -
205			(emaild-id:megaraidlinux@lsi.com)
206			Sumant Patro
207			Bo Yang
208
2092 Current Version : 00.00.03.15
2103 Older Version   : 00.00.03.14
211
2121. Added module parameter "poll_mode_io" to support for "polling"
213	(reduced interrupt operation).  In this mode, IO completion
214	interrupts are delayed. At the end of initiating IOs, the
215	driver schedules for cmd completion if there are pending cmds
216	to be completed.  A timer-based interrupt has also been added
217	to prevent IO completion processing from being delayed
218	indefinitely in the case that no new IOs are initiated.
219
2201 Release Date    : Fri. Sep. 07 16:30:43 PST 2007 -
221			(emaild-id:megaraidlinux@lsi.com)
222			Sumant Patro
223			Bo Yang
224
2252 Current Version : 00.00.03.14
2263 Older Version   : 00.00.03.13
227
2281. Setting the max_sectors_per_req based on max SGL supported by the
229	FW. Prior versions calculated this value from controller info
230	(max_sectors_1, max_sectors_2). For certain controllers/FW,
231	this was resulting in a value greater than max SGL supported
232	by the FW. Issue was first reported by users running LUKS+XFS
233	with megaraid_sas.  Thanks to RB for providing the logs and
234	duplication steps that helped to get to the root cause of the
235	issue.  2. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from
236	10. FW may take a max of 60 seconds to respond to the INIT
237	cmd.
238
2391 Release Date    : Fri. June. 15 16:30:43 PST 2007 -
240			(emaild-id:megaraidlinux@lsi.com)
241			Sumant Patro
242			Bo Yang
243
2442 Current Version : 00.00.03.13
2453 Older Version   : 00.00.03.12
246
2471. Added the megasas_reset_timer routine to intercept cmd timeout and throttle io.
248
249On Fri, 2007-03-16 at 16:44 -0600, James Bottomley wrote:
250It looks like megaraid_sas at least needs this to throttle its commands
251> as they begin to time out.  The code keeps the existing transport
252> template use of eh_timed_out (and allows the transport to override the
253> host if they both have this callback).
254>
255> James
256
2571 Release Date    : Sat May. 12 16:30:43 PST 2007 -
258			(emaild-id:megaraidlinux@lsi.com)
259			Sumant Patro
260			Bo Yang
261
2622 Current Version : 00.00.03.12
2633 Older Version   : 00.00.03.11
264
2651.  When MegaSAS driver receives reset call from OS, driver waits in reset
266routine for max 3 minutes for all pending command completion. Now driver will
267call completion routine every 5 seconds from the reset routine instead of
268waiting for depending on cmd completion from isr path.
269
2701 Release Date    : Mon Apr. 30 10:25:52 PST 2007 -
271			(emaild-id:megaraidlinux@lsi.com)
272			Sumant Patro
273			Bo Yang
274
2752 Current Version : 00.00.03.11
2763 Older Version   : 00.00.03.09
277
278	1. Memory Manager for IOCTL removed for 2.6 kernels.
279	   pci_alloc_consistent replaced by dma_alloc_coherent. With this
280	   change there is no need of memory manager in the driver code
281
282	On Wed, 2007-02-07 at 13:30 -0800, Andrew Morton wrote:
283	> I suspect all this horror is due to stupidity in the DMA API.
284	>
285	> pci_alloc_consistent() just goes and assumes GFP_ATOMIC, whereas
286	> the caller (megasas_mgmt_fw_ioctl) would have been perfectly happy
287	> to use GFP_KERNEL.
288	>
289	> I bet this fixes it
290
291	It does, but the DMA API was expanded to cope with this exact case, so
292	use dma_alloc_coherent() directly in the megaraid code instead.  The dev
293	is just &pci_dev->dev.
294
295	James <James.Bottomley@SteelEye.com>
296
297	3. SYNCHRONIZE_CACHE is not supported by FW and thus blocked by driver.
298	4. Hibernation support added
299	5. Performing diskdump while running IO in RHEL 4 was failing. Fixed.
300
3011 Release Date    : Fri Feb. 09 14:36:28 PST 2007 -
302			(emaild-id:megaraidlinux@lsi.com)
303			Sumant Patro
304			Bo Yang
305
3062 Current Version : 00.00.03.09
3073 Older Version   : 00.00.03.08
308
309i.	Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
310
311	The driver now waits for 10 seconds to elapse instead of 5 (as in
312	previous release) to resume IO.
313
3141 Release Date    : Mon Feb. 05 11:35:24 PST 2007 -
315			(emaild-id:megaraidlinux@lsi.com)
316			Sumant Patro
317			Bo Yang
3182 Current Version : 00.00.03.08
3193 Older Version   : 00.00.03.07
320
321i.	Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
322
323	Fix:	The driver is now throttling IO.
324	Checks added in megasas_queue_command to know if FW is able to
325	process commands within timeout period. If number of retries
326	is 2 or greater,the driver stops sending cmd to FW temporarily. IO is
327	resumed if pending cmd count reduces to 16 or 5 seconds has elapsed
328	from the time cmds were last sent to FW.
329
330ii.	FW enables WCE bit in Mode Sense cmd for drives that are configured
331	as WriteBack. The OS may send "SYNCHRONIZE_CACHE" cmd when Logical
332	Disks are exposed with WCE=1. User is advised to enable Write Back
333	mode only when the controller has battery backup. At this time
334	Synhronize cache is not supported by the FW. Driver will short-cycle
335	the cmd and return success without sending down to FW.
336
3371 Release Date    : Sun Jan. 14 11:21:32 PDT 2007 -
338		 Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
3392 Current Version : 00.00.03.07
3403 Older Version   : 00.00.03.06
341
342i.	bios_param entry added in scsi_host_template that returns disk geometry
343	information.
344
3451 Release Date    : Fri Oct 20 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
3462 Current Version : 00.00.03.06
3473 Older Version   : 00.00.03.05
348
3491. 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.
3502. Added check in megasas_queue_command and dpc/isr routine to see if we have already declared adapter dead
351   (hw_crit_error=1). If hw_crit_error==1, now we donot accept any processing of pending cmds/accept any cmd from OS
352
3531 Release Date    : Mon Oct 02 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
3542 Current Version : 00.00.03.05
3553 Older Version   : 00.00.03.04
356
357i.	PCI_DEVICE macro used
358
359	Convert the pci_device_id-table of the megaraid_sas-driver to the PCI_DEVICE-macro, to safe some lines.
360
361		- Henrik Kretzschmar <henne@nachtwindheim.de>
362ii.	All compiler warnings removed
363iii.	megasas_ctrl_info struct reverted to 3.02 release
364iv.	Default value of megasas_dbg_lvl set to 0
365v.	Removing in megasas_exit the sysfs entry created for megasas_dbg_lvl
366vi.	In megasas_teardown_frame_pool(), cmd->frame was passed instead of
367	cmd->sense to pci_pool_free. Fixed. Bug was pointed out by
368	Eric Sesterhenn
369
3701 Release Date    : Wed Sep 13 14:22:51 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
3712 Current Version : 00.00.03.04
3723 Older Version   : 00.00.03.03
373
374i.	Added Reboot notify
375ii.	Reduced by 1 max cmds sent to FW from Driver to make the reply_q_sz same
376	as Max Cmds FW can support
377
3781 Release Date    : Tue Aug 22 16:33:14 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
3792 Current Version : 00.00.03.03
3803 Older Version   : 00.00.03.02
381
382i.	Send stop adapter to FW & Dump pending FW cmds before declaring adapter dead.
383	New varible added to set dbg level.
384ii.	Disable interrupt made as fn pointer as they are different for 1068 / 1078
385iii.	Frame count optimization. Main frame can contain 2 SGE for 64 bit SGLs and
386	3 SGE for 32 bit SGL
387iv.	Tasklet added for cmd completion
388v.	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.
389vi.	megasas_ctrl_prop structure updated (based on FW struct)
390vii.	Added print : FW now in Ready State during initialization
391
3921 Release Date    : Sun Aug 06 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
3932 Current Version : 00.00.03.02
3943 Older Version   : 00.00.03.01
395
396i.	Added FW tranistion state for Hotplug scenario
397
3981 Release Date    : Sun May 14 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
3992 Current Version : 00.00.03.01
4003 Older Version   : 00.00.02.04
401
402i.	Added support for ZCR controller.
403
404		New device id 0x413 added.
405
406ii.	Bug fix : Disable controller interrupt before firing INIT cmd to FW.
407
408		Interrupt is enabled after required initialization is over.
409		This is done to ensure that driver is ready to handle interrupts when
410		it is generated by the controller.
411
412		-Sumant Patro <Sumant.Patro@lsil.com>
413
4141 Release Date    : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4152 Current Version : 00.00.02.04
4163 Older Version   : 00.00.02.04
417
418i.	Remove superflous instance_lock
419
420	gets rid of the otherwise superflous instance_lock and avoids an unsave
421	unsynchronized access in the error handler.
422
423		- Christoph Hellwig <hch@lst.de>
424
425
4261 Release Date    : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4272 Current Version : 00.00.02.04
4283 Older Version   : 00.00.02.04
429
430i.	Support for 1078 type (ppc IOP) controller, device id : 0x60 added.
431	During initialization, depending on the device id, the template members
432	are initialized with function pointers specific to the ppc or
433	xscale controllers.
434
435		-Sumant Patro <Sumant.Patro@lsil.com>
436
4371 Release Date    : Fri Feb 03 14:16:25 PST 2006 - Sumant Patro
438							<Sumant.Patro@lsil.com>
4392 Current Version : 00.00.02.04
4403 Older Version   : 00.00.02.02
441i.	Register 16 byte CDB capability with scsi midlayer
442
443	"Ths patch properly registers the 16 byte command length capability of the
444	megaraid_sas controlled hardware with the scsi midlayer. All megaraid_sas
445	hardware supports 16 byte CDB's."
446
447		-Joshua Giles <joshua_giles@dell.com>
448
4491 Release Date    : Mon Jan 23 14:09:01 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4502 Current Version : 00.00.02.02
4513 Older Version   : 00.00.02.01
452
453i.	New template defined to represent each family of controllers (identified by processor used).
454	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.
455
456		-Sumant Patro <Sumant.Patro@lsil.com>
457
4581 Release Date    : Mon Dec 19 14:36:26 PST 2005 - Sumant Patro <Sumant.Patro@lsil.com>
4592 Current Version : 00.00.02.00-rc4
4603 Older Version   : 00.00.02.01
461
462i.	Code reorganized to remove code duplication in megasas_build_cmd.
463
464	"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"
465
466		- Christoph Hellwig <hch@lst.de>
467
468ii.	Defined MEGASAS_IOC_FIRMWARE32 for code paths that handles 32 bit applications in 64 bit systems.
469
470	"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"
471
472		- Christoph Hellwig <hch@lst.de>
473