[SCSI] megaraid_sas: remove poll_mode_io code
[linux-2.6-block.git] / Documentation / scsi / ChangeLog.megaraid_sas
CommitLineData
8d6f5cea 1Release Date : Wed. Oct 5, 2011 17:00:00 PST 2010 -
2 (emaild-id:megaraidlinux@lsi.com)
3 Adam Radford
4Current Version : 00.00.06.12-rc1
5Old Version : 00.00.05.40-rc1
6 1. Continue booting immediately if FW in FAULT at driver load time.
7 2. Increase default cmds per lun to 256.
8 3. Fix mismatch in megasas_reset_fusion() mutex lock-unlock.
9 4. Remove some un-necessary code.
10 5. Clear state change interrupts for Fusion/Invader.
11 6. Clear FUSION_IN_RESET before enabling interrupts.
12 7. Add support for MegaRAID 9360/9380 12GB/s controllers.
13 8. Add multiple MSI-X vector/multiple reply queue support.
14 9. Add driver workaround for PERC5/1068 kdump kernel panic.
15-------------------------------------------------------------------------------
e1703585 16Release Date : Tue. Jul 26, 2011 17:00:00 PST 2010 -
17 (emaild-id:megaraidlinux@lsi.com)
18 Adam Radford
19Current Version : 00.00.05.40-rc1
20Old Version : 00.00.05.38-rc1
21 1. Fix FastPath I/O to work with degraded RAID 1.
22 2. Add .change_queue_depth support.
23-------------------------------------------------------------------------------
4f788dce 24Release Date : Wed. May 11, 2011 17:00:00 PST 2010 -
25 (emaild-id:megaraidlinux@lsi.com)
26 Adam Radford
27Current Version : 00.00.05.38-rc1
28Old Version : 00.00.05.34-rc1
29 1. Remove MSI-X black list, use MFI_REG_STATE.ready.msiEnable.
30 2. Remove un-used function megasas_return_cmd_for_smid().
31 3. Check MFI_REG_STATE.fault.resetAdapter in megasas_reset_fusion().
32 4. Disable interrupts/free_irq() in megasas_shutdown().
33 5. Fix bug where AENs could be lost in probe() and resume().
34 6. Convert 6,10,12 byte CDB's to 16 byte CDB for large LBA's for FastPath
35 IO.
36 7. Add 1078 OCR support.
37-------------------------------------------------------------------------------
00fa2b19 38Release Date : Thu. Feb 24, 2011 17:00:00 PST 2010 -
39 (emaild-id:megaraidlinux@lsi.com)
40 Adam Radford
41Current Version : 00.00.05.34-rc1
42Old Version : 00.00.05.29-rc1
43 1. Fix some failure gotos from megasas_probe_one(), etc.
44 2. Add missing check_and_restore_queue_depth() call in
45 complete_cmd_fusion().
46 3. Enable MSI-X before calling megasas_init_fw().
47 4. Call tasklet_schedule() even if outbound_intr_status == 0 for MFI based
48 boards in MSI-X mode.
49 5. Fix megasas_probe_one() to clear PCI_MSIX_FLAGS_ENABLE in msi control
50 register in kdump kernel.
51 6. Fix megasas_get_cmd() to only print "Command pool empty" if
52 megasas_dbg_lvl is set.
53 7. Fix megasas_build_dcdb_fusion() to not filter by TYPE_DISK.
54 8. Fix megasas_build_dcdb_fusion() to use io_request->LUN[1] field.
55 9. Add MR_EVT_CFG_CLEARED to megasas_aen_polling().
56 10. Fix tasklet_init() in megasas_init_fw() to use instancet->tasklet.
57 11. Fix fault state handling in megasas_transition_to_ready().
58 12. Fix max_sectors setting for IEEE SGL's.
59 13. Fix iMR OCR support to work correctly.
60-------------------------------------------------------------------------------
5f7bb3a4 61Release Date : Tues. Dec 14, 2010 17:00:00 PST 2010 -
62 (emaild-id:megaraidlinux@lsi.com)
63 Adam Radford
64Current Version : 00.00.05.29-rc1
65Old Version : 00.00.04.31-rc1
66 1. Rename megaraid_sas.c to megaraid_sas_base.c.
67 2. Update GPL headers.
68 3. Add MSI-X support and 'msix_disable' module parameter.
69 4. Use lowest memory bar (for SR-IOV VF support).
70 5. Add struct megasas_instance_temlate changes, and change all code to use
71 new instance entries:
72
73 irqreturn_t (*service_isr )(int irq, void *devp);
74 void (*tasklet)(unsigned long);
75 u32 (*init_adapter)(struct megasas_instance *);
76 u32 (*build_and_issue_cmd) (struct megasas_instance *,
77 struct scsi_cmnd *);
78 void (*issue_dcmd) (struct megasas_instance *instance,
79 struct megasas_cmd *cmd);
80
81 6. Add code to support MegaRAID 9265/9285 controllers device id (0x5b).
82-------------------------------------------------------------------------------
e340c353
YB
831 Release Date : Thur. May 03, 2010 09:12:45 PST 2009 -
84 (emaild-id:megaraidlinux@lsi.com)
85 Bo Yang
86
872 Current Version : 00.00.04.31-rc1
883 Older Version : 00.00.04.17.1-rc1
89
901. Add the Online Controller Reset (OCR) to the Driver.
91 OCR is the new feature for megaraid_sas driver which
92 will allow the fw to do the chip reset which will not
93 affact the OS behavious.
94
95 To add the OCR support, driver need to do:
96 a). reset the controller chips -- Xscale and Gen2 which
97 will change the function calls and add the reset function
98 related to this two chips.
99
100 b). during the reset, driver will store the pending cmds
101 which not returned by FW to driver's pending queue. Driver
102 will re-issue those pending cmds again to FW after the OCR
103 finished.
104
105 c). In driver's timeout routine, driver will report to
106 OS as reset. Also driver's queue routine will block the
107 cmds until the OCR finished.
108
109 d). in Driver's ISR routine, if driver get the FW state as
110 state change, FW in Failure status and FW support online controller
111 reset (OCR), driver will start to do the controller reset.
112
113 e). In driver's IOCTL routine, the application cmds will wait for the
114 OCR to finish, then issue the cmds to FW.
115
116 f). Before driver kill adapter, driver will do last chance of
117 OCR to see if driver can bring back the FW.
118
1192. Add the support update flag to the driver to tell LSI megaraid_sas
120 application which driver will support the device update. So application
121 will not need to do the device update after application add/del the device
122 from the system.
1233. In driver's timeout routine, driver will do three time reset if fw is in
124 failed state. Driver will kill adapter if can't bring back FW after the
125 this three times reset.
1264. Add the input parameter max_sectors to 1MB support to our GEN2 controller.
127 customer can use the input paramenter max_sectors to add 1MB support to GEN2
128 controller.
129
63bad45d
YB
1301 Release Date : Thur. Oct 29, 2009 09:12:45 PST 2009 -
131 (emaild-id:megaraidlinux@lsi.com)
132 Bo Yang
133
1342 Current Version : 00.00.04.17.1-rc1
1353 Older Version : 00.00.04.12
136
1371. Add the pad_0 in mfi frame structure to 0 to fix the
138 context value larger than 32bit value issue.
139
1402. Add the logic drive list to the driver. Driver will
141 keep the logic drive list internal after driver load.
142
1433. driver fixed the device update issue after get the AEN
144 PD delete/ADD, LD add/delete from FW.
145
a0b77368
YB
1461 Release Date : Tues. July 28, 2009 10:12:45 PST 2009 -
147 (emaild-id:megaraidlinux@lsi.com)
148 Bo Yang
149
1502 Current Version : 00.00.04.12
1513 Older Version : 00.00.04.10
152
1531. Change the AEN sys PD update from scsi_scan to
154 scsi_add_device and scsi_remove_device.
1552. Takeoff the debug print-out in aen_polling routine.
156
1571 Release Date : Thur. July 02, 2009 10:12:45 PST 2009 -
158 (emaild-id:megaraidlinux@lsi.com)
159 Bo Yang
160
1612 Current Version : 00.00.04.10
1623 Older Version : 00.00.04.08
163
1641. Add the 3 mins timeout during the controller initialize.
1652. Add the fix for 64bit sense date errors.
166
1671 Release Date : Tues. May 05, 2009 10:12:45 PST 2009 -
168 (emaild-id:megaraidlinux@lsi.com)
169 Bo Yang
170
1712 Current Version : 00.00.04.08
1723 Older Version : 00.00.04.06
173
1741. Add the fix of pending in FW after deleted the logic drives.
1752. Add the fix of deallocating memory after get pdlist.
176
1771 Release Date : Tues. March 26, 2009 10:12:45 PST 2009 -
178 (emaild-id:megaraidlinux@lsi.com)
179 Bo Yang
180
1812 Current Version : 00.00.04.06
1823 Older Version : 00.00.04.04
183
1841. Add the fix of the driver cmd empty fix of the driver cmd empty.
1852. Add the fix of the driver MSM AEN CMD cause the system slow.
186
1871 Release Date : Tues. March 03, 2009 10:12:45 PST 2009 -
188 (emaild-id:megaraidlinux@lsi.com)
189 Bo Yang
190
1912 Current Version : 00.00.04.04
1923 Older Version : 00.00.04.01
193
1941. Add the Tape drive fix to the driver: If the command is for
195 the tape device, set the pthru timeout to the os layer timeout value.
196
1972. Add Poll_wait mechanism to Gen-2 Linux driv.
198 In the aen handler, driver needs to wakeup poll handler similar to
199 the way it raises SIGIO.
200
2013. Add new controller new SAS2 support to the driver.
202
2034. Report the unconfigured PD (system PD) to OS.
204
2055. Add the IEEE SGL support to the driver
206
2076. Reasign the Application cmds to SAS2 controller
24541f99
YB
208
2091 Release Date : Thur.July. 24 11:41:51 PST 2008 -
210 (emaild-id:megaraidlinux@lsi.com)
211 Sumant Patro
212 Bo Yang
213
2142 Current Version : 00.00.04.01
2153 Older Version : 00.00.03.22
216
2171. Add the new controller (0078, 0079) support to the driver
218 Those controllers are LSI's next generatation(gen2) SAS controllers.
219
2201 Release Date : Mon.June. 23 10:12:45 PST 2008 -
221 (emaild-id:megaraidlinux@lsi.com)
222 Sumant Patro
223 Bo Yang
224
2252 Current Version : 00.00.03.22
2263 Older Version : 00.00.03.20
227
2281. Add shutdown DCMD cmd to the shutdown routine to make FW shutdown proper.
2292. Unexpected interrupt occurs in HWR Linux driver, add the dumy readl pci flush will fix this issue.
230
127ce971 2311 Release Date : Mon. March 10 11:02:31 PDT 2008 -
232 (emaild-id:megaraidlinux@lsi.com)
233 Sumant Patro
234 Bo Yang
235
2362 Current Version : 00.00.03.20-RC1
2373 Older Version : 00.00.03.16
238
2391. Rollback the sense info implementation
240 Sense buffer ptr data type in the ioctl path is reverted back
241 to u32 * as in previous versions of driver.
242
2432. Fixed the driver frame count.
244 When Driver sent wrong frame count to firmware. As this
245 particular command is sent to drive, FW is seeing continuous
246 chip resets and so the command will timeout.
247
2483. Add the new controller(1078DE) support to the driver
249 and Increase the max_wait to 60 from 10 in the controller
250 operational status. With this max_wait increase, driver will
251 make sure the FW will finish the pending cmd for KDUMP case.
252
f28cd7cf 2531 Release Date : Thur. Nov. 07 16:30:43 PST 2007 -
254 (emaild-id:megaraidlinux@lsi.com)
255 Sumant Patro
256 Bo Yang
257
2582 Current Version : 00.00.03.16
2593 Older Version : 00.00.03.15
260
2611. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 10. FW may take
262 a max of 60 seconds to respond to the INIT cmd.
263
2641 Release Date : Fri. Sep. 07 16:30:43 PST 2007 -
265 (emaild-id:megaraidlinux@lsi.com)
266 Sumant Patro
267 Bo Yang
268
2692 Current Version : 00.00.03.15
2703 Older Version : 00.00.03.14
271
2721. Added module parameter "poll_mode_io" to support for "polling"
273 (reduced interrupt operation). In this mode, IO completion
274 interrupts are delayed. At the end of initiating IOs, the
275 driver schedules for cmd completion if there are pending cmds
276 to be completed. A timer-based interrupt has also been added
277 to prevent IO completion processing from being delayed
278 indefinitely in the case that no new IOs are initiated.
279
2801 Release Date : Fri. Sep. 07 16:30:43 PST 2007 -
281 (emaild-id:megaraidlinux@lsi.com)
282 Sumant Patro
283 Bo Yang
284
2852 Current Version : 00.00.03.14
2863 Older Version : 00.00.03.13
287
2881. Setting the max_sectors_per_req based on max SGL supported by the
289 FW. Prior versions calculated this value from controller info
290 (max_sectors_1, max_sectors_2). For certain controllers/FW,
291 this was resulting in a value greater than max SGL supported
292 by the FW. Issue was first reported by users running LUKS+XFS
293 with megaraid_sas. Thanks to RB for providing the logs and
294 duplication steps that helped to get to the root cause of the
295 issue. 2. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from
296 10. FW may take a max of 60 seconds to respond to the INIT
297 cmd.
298
2991 Release Date : Fri. June. 15 16:30:43 PST 2007 -
300 (emaild-id:megaraidlinux@lsi.com)
301 Sumant Patro
302 Bo Yang
303
3042 Current Version : 00.00.03.13
3053 Older Version : 00.00.03.12
306
3071. Added the megasas_reset_timer routine to intercept cmd timeout and throttle io.
308
309On Fri, 2007-03-16 at 16:44 -0600, James Bottomley wrote:
310It looks like megaraid_sas at least needs this to throttle its commands
311> as they begin to time out. The code keeps the existing transport
312> template use of eh_timed_out (and allows the transport to override the
313> host if they both have this callback).
314>
315> James
316
3171 Release Date : Sat May. 12 16:30:43 PST 2007 -
318 (emaild-id:megaraidlinux@lsi.com)
319 Sumant Patro
320 Bo Yang
321
3222 Current Version : 00.00.03.12
3233 Older Version : 00.00.03.11
324
3251. When MegaSAS driver receives reset call from OS, driver waits in reset
326routine for max 3 minutes for all pending command completion. Now driver will
327call completion routine every 5 seconds from the reset routine instead of
328waiting for depending on cmd completion from isr path.
329
3301 Release Date : Mon Apr. 30 10:25:52 PST 2007 -
331 (emaild-id:megaraidlinux@lsi.com)
332 Sumant Patro
333 Bo Yang
334
3352 Current Version : 00.00.03.11
3363 Older Version : 00.00.03.09
337
338 1. Memory Manager for IOCTL removed for 2.6 kernels.
339 pci_alloc_consistent replaced by dma_alloc_coherent. With this
340 change there is no need of memory manager in the driver code
341
342 On Wed, 2007-02-07 at 13:30 -0800, Andrew Morton wrote:
343 > I suspect all this horror is due to stupidity in the DMA API.
344 >
345 > pci_alloc_consistent() just goes and assumes GFP_ATOMIC, whereas
346 > the caller (megasas_mgmt_fw_ioctl) would have been perfectly happy
347 > to use GFP_KERNEL.
348 >
349 > I bet this fixes it
350
351 It does, but the DMA API was expanded to cope with this exact case, so
352 use dma_alloc_coherent() directly in the megaraid code instead. The dev
353 is just &pci_dev->dev.
354
355 James <James.Bottomley@SteelEye.com>
356
357 3. SYNCHRONIZE_CACHE is not supported by FW and thus blocked by driver.
358 4. Hibernation support added
359 5. Performing diskdump while running IO in RHEL 4 was failing. Fixed.
360
3611 Release Date : Fri Feb. 09 14:36:28 PST 2007 -
362 (emaild-id:megaraidlinux@lsi.com)
363 Sumant Patro
364 Bo Yang
365
3662 Current Version : 00.00.03.09
3673 Older Version : 00.00.03.08
368
369i. Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
370
371 The driver now waits for 10 seconds to elapse instead of 5 (as in
372 previous release) to resume IO.
373
3741 Release Date : Mon Feb. 05 11:35:24 PST 2007 -
375 (emaild-id:megaraidlinux@lsi.com)
376 Sumant Patro
377 Bo Yang
3782 Current Version : 00.00.03.08
3793 Older Version : 00.00.03.07
380
381i. Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
382
383 Fix: The driver is now throttling IO.
384 Checks added in megasas_queue_command to know if FW is able to
385 process commands within timeout period. If number of retries
386 is 2 or greater,the driver stops sending cmd to FW temporarily. IO is
387 resumed if pending cmd count reduces to 16 or 5 seconds has elapsed
388 from the time cmds were last sent to FW.
389
390ii. FW enables WCE bit in Mode Sense cmd for drives that are configured
391 as WriteBack. The OS may send "SYNCHRONIZE_CACHE" cmd when Logical
392 Disks are exposed with WCE=1. User is advised to enable Write Back
393 mode only when the controller has battery backup. At this time
394 Synhronize cache is not supported by the FW. Driver will short-cycle
af901ca1 395 the cmd and return success without sending down to FW.
f28cd7cf 396
3971 Release Date : Sun Jan. 14 11:21:32 PDT 2007 -
398 Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
3992 Current Version : 00.00.03.07
4003 Older Version : 00.00.03.06
401
402i. bios_param entry added in scsi_host_template that returns disk geometry
403 information.
404
4051 Release Date : Fri Oct 20 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
4062 Current Version : 00.00.03.06
4073 Older Version : 00.00.03.05
408
4091. 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.
4102. Added check in megasas_queue_command and dpc/isr routine to see if we have already declared adapter dead
411 (hw_crit_error=1). If hw_crit_error==1, now we donot accept any processing of pending cmds/accept any cmd from OS
e4a082c7 412
2a3681e5
SP
4131 Release Date : Mon Oct 02 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4142 Current Version : 00.00.03.05
4153 Older Version : 00.00.03.04
416
417i. PCI_DEVICE macro used
418
419 Convert the pci_device_id-table of the megaraid_sas-driver to the PCI_DEVICE-macro, to safe some lines.
420
421 - Henrik Kretzschmar <henne@nachtwindheim.de>
422ii. All compiler warnings removed
423iii. megasas_ctrl_info struct reverted to 3.02 release
424iv. Default value of megasas_dbg_lvl set to 0
425v. Removing in megasas_exit the sysfs entry created for megasas_dbg_lvl
426vi. In megasas_teardown_frame_pool(), cmd->frame was passed instead of
427 cmd->sense to pci_pool_free. Fixed. Bug was pointed out by
428 Eric Sesterhenn
429
4301 Release Date : Wed Sep 13 14:22:51 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4312 Current Version : 00.00.03.04
4323 Older Version : 00.00.03.03
433
434i. Added Reboot notify
435ii. Reduced by 1 max cmds sent to FW from Driver to make the reply_q_sz same
436 as Max Cmds FW can support
437
4381 Release Date : Tue Aug 22 16:33:14 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4392 Current Version : 00.00.03.03
4403 Older Version : 00.00.03.02
441
442i. Send stop adapter to FW & Dump pending FW cmds before declaring adapter dead.
443 New varible added to set dbg level.
444ii. Disable interrupt made as fn pointer as they are different for 1068 / 1078
445iii. Frame count optimization. Main frame can contain 2 SGE for 64 bit SGLs and
446 3 SGE for 32 bit SGL
447iv. Tasklet added for cmd completion
448v. 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.
449vi. megasas_ctrl_prop structure updated (based on FW struct)
450vii. Added print : FW now in Ready State during initialization
451
4521 Release Date : Sun Aug 06 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4532 Current Version : 00.00.03.02
4543 Older Version : 00.00.03.01
455
456i. Added FW tranistion state for Hotplug scenario
457
0e98936c
SP
4581 Release Date : Sun May 14 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4592 Current Version : 00.00.03.01
4603 Older Version : 00.00.02.04
461
462i. Added support for ZCR controller.
463
464 New device id 0x413 added.
465
466ii. Bug fix : Disable controller interrupt before firing INIT cmd to FW.
467
468 Interrupt is enabled after required initialization is over.
469 This is done to ensure that driver is ready to handle interrupts when
470 it is generated by the controller.
471
472 -Sumant Patro <Sumant.Patro@lsil.com>
473
e4a082c7
SP
4741 Release Date : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4752 Current Version : 00.00.02.04
4763 Older Version : 00.00.02.04
477
478i. Remove superflous instance_lock
479
480 gets rid of the otherwise superflous instance_lock and avoids an unsave
481 unsynchronized access in the error handler.
482
483 - Christoph Hellwig <hch@lst.de>
484
485
f9876f0b
SP
4861 Release Date : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
4872 Current Version : 00.00.02.04
4883 Older Version : 00.00.02.04
489
490i. Support for 1078 type (ppc IOP) controller, device id : 0x60 added.
491 During initialization, depending on the device id, the template members
492 are initialized with function pointers specific to the ppc or
493 xscale controllers.
494
495 -Sumant Patro <Sumant.Patro@lsil.com>
496
122da302
JG
4971 Release Date : Fri Feb 03 14:16:25 PST 2006 - Sumant Patro
498 <Sumant.Patro@lsil.com>
4992 Current Version : 00.00.02.04
5003 Older Version : 00.00.02.02
501i. Register 16 byte CDB capability with scsi midlayer
502
503 "Ths patch properly registers the 16 byte command length capability of the
504 megaraid_sas controlled hardware with the scsi midlayer. All megaraid_sas
505 hardware supports 16 byte CDB's."
506
507 -Joshua Giles <joshua_giles@dell.com>
508
1341c939
SP
5091 Release Date : Mon Jan 23 14:09:01 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
5102 Current Version : 00.00.02.02
5113 Older Version : 00.00.02.01
512
513i. New template defined to represent each family of controllers (identified by processor used).
514 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.
515
516 -Sumant Patro <Sumant.Patro@lsil.com>
517
cb59aa6a
SP
5181 Release Date : Mon Dec 19 14:36:26 PST 2005 - Sumant Patro <Sumant.Patro@lsil.com>
5192 Current Version : 00.00.02.00-rc4
5203 Older Version : 00.00.02.01
521
522i. Code reorganized to remove code duplication in megasas_build_cmd.
523
524 "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"
525
526 - Christoph Hellwig <hch@lst.de>
527
528ii. Defined MEGASAS_IOC_FIRMWARE32 for code paths that handles 32 bit applications in 64 bit systems.
529
530 "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"
531
532 - Christoph Hellwig <hch@lst.de>