Merge commit 'v2.6.37-rc2' into sched/core
[pandora-kernel.git] / Documentation / scsi / ChangeLog.megaraid_sas
1 1 Release Date    : Thur.  May 03, 2010 09:12:45 PST 2009 -
2                         (emaild-id:megaraidlinux@lsi.com)
3                         Bo Yang
4
5 2 Current Version : 00.00.04.31-rc1
6 3 Older Version   : 00.00.04.17.1-rc1
7
8 1.      Add the Online Controller Reset (OCR) to the Driver.
9         OCR is the new feature for megaraid_sas driver which
10         will allow the fw to do the chip reset which will not
11         affact the OS behavious.
12
13         To add the OCR support, driver need to do:
14                 a). reset the controller chips -- Xscale and Gen2 which
15                 will change the function calls and add the reset function
16                 related to this two chips.
17
18                 b). during the reset, driver will store the pending cmds
19                 which not returned by FW to driver's pending queue.  Driver
20                 will re-issue those pending cmds again to FW after the OCR
21                 finished.
22
23                 c). In driver's timeout routine, driver will report to
24                 OS as reset. Also driver's queue routine will block the
25                 cmds until the OCR finished.
26
27                 d). in Driver's ISR routine, if driver get the FW state as
28                 state change, FW in Failure status and FW support online controller
29                 reset (OCR), driver will start to do the controller reset.
30
31                 e). In driver's IOCTL routine, the application cmds will wait for the
32                 OCR to finish, then issue the cmds to FW.
33
34                 f). Before driver kill adapter, driver will do last chance of
35                 OCR to see if driver can bring back the FW.
36
37 2.      Add the support update flag to the driver to tell LSI megaraid_sas
38         application which driver will support the device update.  So application
39         will not need to do the device update after application add/del the device
40         from the system.
41 3.      In driver's timeout routine, driver will do three time reset if fw is in
42         failed state.  Driver will kill adapter if can't bring back FW after the
43         this three times reset.
44 4.      Add the input parameter max_sectors to 1MB support to our GEN2 controller.
45         customer can use the input paramenter max_sectors to add 1MB support to GEN2
46         controller.
47
48 1 Release Date    : Thur.  Oct 29, 2009 09:12:45 PST 2009 -
49                         (emaild-id:megaraidlinux@lsi.com)
50                         Bo Yang
51
52 2 Current Version : 00.00.04.17.1-rc1
53 3 Older Version   : 00.00.04.12
54
55 1.      Add the pad_0 in mfi frame structure to 0 to fix the
56         context value larger than 32bit value issue.
57
58 2.      Add the logic drive list to the driver.  Driver will
59         keep the logic drive list internal after driver load.
60
61 3.      driver fixed the device update issue after get the AEN
62         PD delete/ADD, LD add/delete from FW.
63
64 1 Release Date    : Tues.  July 28, 2009 10:12:45 PST 2009 -
65                         (emaild-id:megaraidlinux@lsi.com)
66                         Bo Yang
67
68 2 Current Version : 00.00.04.12
69 3 Older Version   : 00.00.04.10
70
71 1.      Change the AEN sys PD update from scsi_scan to
72         scsi_add_device and scsi_remove_device.
73 2.      Takeoff the debug print-out in aen_polling routine.
74
75 1 Release Date    : Thur.  July 02, 2009 10:12:45 PST 2009 -
76                         (emaild-id:megaraidlinux@lsi.com)
77                         Bo Yang
78
79 2 Current Version : 00.00.04.10
80 3 Older Version   : 00.00.04.08
81
82 1.      Add the 3 mins timeout during the controller initialize.
83 2.      Add the fix for 64bit sense date errors.
84
85 1 Release Date    : Tues. May 05, 2009 10:12:45 PST 2009 -
86                         (emaild-id:megaraidlinux@lsi.com)
87                         Bo Yang
88
89 2 Current Version : 00.00.04.08
90 3 Older Version   : 00.00.04.06
91
92 1.      Add the fix of pending in FW after deleted the logic drives.
93 2.      Add the fix of deallocating memory after get pdlist.
94
95 1 Release Date    : Tues. March 26, 2009 10:12:45 PST 2009 -
96                         (emaild-id:megaraidlinux@lsi.com)
97                         Bo Yang
98
99 2 Current Version : 00.00.04.06
100 3 Older Version   : 00.00.04.04
101
102 1.      Add the fix of the driver cmd empty fix of the driver cmd empty.
103 2.      Add the fix of the driver MSM AEN CMD cause the system slow.
104
105 1 Release Date    : Tues. March 03, 2009 10:12:45 PST 2009 -
106                         (emaild-id:megaraidlinux@lsi.com)
107                         Bo Yang
108
109 2 Current Version : 00.00.04.04
110 3 Older Version   : 00.00.04.01
111
112 1.      Add the Tape drive fix to the driver: If the command is for
113         the tape device, set the pthru timeout to the os layer timeout value.
114
115 2.      Add Poll_wait mechanism to Gen-2 Linux driv.
116                 In the aen handler, driver needs to wakeup poll handler similar to
117                 the way it raises SIGIO.
118
119 3.      Add new controller new SAS2 support to the driver.
120
121 4.      Report the unconfigured PD (system PD) to OS.
122
123 5.      Add the IEEE SGL support to the driver
124
125 6.      Reasign the Application cmds to SAS2 controller
126
127 1 Release Date    : Thur.July. 24 11:41:51 PST 2008 -
128                        (emaild-id:megaraidlinux@lsi.com)
129                        Sumant Patro
130                        Bo Yang
131
132 2 Current Version : 00.00.04.01
133 3 Older Version   : 00.00.03.22
134
135 1. Add the new controller (0078, 0079) support to the driver
136        Those controllers are LSI's next generatation(gen2) SAS controllers.
137
138 1 Release Date    : Mon.June. 23 10:12:45 PST 2008 -
139                        (emaild-id:megaraidlinux@lsi.com)
140                        Sumant Patro
141                        Bo Yang
142
143 2 Current Version : 00.00.03.22
144 3 Older Version   : 00.00.03.20
145
146 1. Add shutdown DCMD cmd to the shutdown routine to make FW shutdown proper.
147 2. Unexpected interrupt occurs in HWR Linux driver, add the dumy readl pci flush will fix this issue.
148
149 1 Release Date    : Mon. March 10 11:02:31 PDT 2008 -
150                         (emaild-id:megaraidlinux@lsi.com)
151                         Sumant Patro
152                         Bo Yang
153
154 2 Current Version : 00.00.03.20-RC1
155 3 Older Version   : 00.00.03.16
156
157 1. Rollback the sense info implementation
158         Sense buffer ptr data type in the ioctl path is reverted back
159         to u32 * as in previous versions of driver.
160
161 2. Fixed the driver frame count.
162         When Driver sent wrong frame count to firmware.  As this
163         particular command is sent to drive, FW is seeing continuous
164         chip resets and so the command will timeout.
165
166 3. Add the new controller(1078DE) support to the driver
167         and Increase the max_wait to 60 from 10 in the controller
168         operational status.  With this max_wait increase, driver will
169         make sure the FW will   finish the pending cmd for KDUMP case.
170
171 1 Release Date    : Thur. Nov. 07 16:30:43 PST 2007 -
172                         (emaild-id:megaraidlinux@lsi.com)
173                         Sumant Patro
174                         Bo Yang
175
176 2 Current Version : 00.00.03.16
177 3 Older Version   : 00.00.03.15
178
179 1. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 10. FW may take
180         a max of 60 seconds to respond to the INIT cmd.
181
182 1 Release Date    : Fri. Sep. 07 16:30:43 PST 2007 -
183                         (emaild-id:megaraidlinux@lsi.com)
184                         Sumant Patro
185                         Bo Yang
186
187 2 Current Version : 00.00.03.15
188 3 Older Version   : 00.00.03.14
189
190 1. Added module parameter "poll_mode_io" to support for "polling"
191         (reduced interrupt operation).  In this mode, IO completion
192         interrupts are delayed. At the end of initiating IOs, the
193         driver schedules for cmd completion if there are pending cmds
194         to be completed.  A timer-based interrupt has also been added
195         to prevent IO completion processing from being delayed
196         indefinitely in the case that no new IOs are initiated.
197
198 1 Release Date    : Fri. Sep. 07 16:30:43 PST 2007 -
199                         (emaild-id:megaraidlinux@lsi.com)
200                         Sumant Patro
201                         Bo Yang
202
203 2 Current Version : 00.00.03.14
204 3 Older Version   : 00.00.03.13
205
206 1. Setting the max_sectors_per_req based on max SGL supported by the
207         FW. Prior versions calculated this value from controller info
208         (max_sectors_1, max_sectors_2). For certain controllers/FW,
209         this was resulting in a value greater than max SGL supported
210         by the FW. Issue was first reported by users running LUKS+XFS
211         with megaraid_sas.  Thanks to RB for providing the logs and
212         duplication steps that helped to get to the root cause of the
213         issue.  2. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from
214         10. FW may take a max of 60 seconds to respond to the INIT
215         cmd.
216
217 1 Release Date    : Fri. June. 15 16:30:43 PST 2007 -
218                         (emaild-id:megaraidlinux@lsi.com)
219                         Sumant Patro
220                         Bo Yang
221
222 2 Current Version : 00.00.03.13
223 3 Older Version   : 00.00.03.12
224
225 1. Added the megasas_reset_timer routine to intercept cmd timeout and throttle io.
226
227 On Fri, 2007-03-16 at 16:44 -0600, James Bottomley wrote:
228 It looks like megaraid_sas at least needs this to throttle its commands
229 > as they begin to time out.  The code keeps the existing transport
230 > template use of eh_timed_out (and allows the transport to override the
231 > host if they both have this callback).
232 >
233 > James
234
235 1 Release Date    : Sat May. 12 16:30:43 PST 2007 -
236                         (emaild-id:megaraidlinux@lsi.com)
237                         Sumant Patro
238                         Bo Yang
239
240 2 Current Version : 00.00.03.12
241 3 Older Version   : 00.00.03.11
242
243 1.  When MegaSAS driver receives reset call from OS, driver waits in reset
244 routine for max 3 minutes for all pending command completion. Now driver will
245 call completion routine every 5 seconds from the reset routine instead of
246 waiting for depending on cmd completion from isr path.
247
248 1 Release Date    : Mon Apr. 30 10:25:52 PST 2007 -
249                         (emaild-id:megaraidlinux@lsi.com)
250                         Sumant Patro
251                         Bo Yang
252
253 2 Current Version : 00.00.03.11
254 3 Older Version   : 00.00.03.09
255
256         1. Memory Manager for IOCTL removed for 2.6 kernels.
257            pci_alloc_consistent replaced by dma_alloc_coherent. With this
258            change there is no need of memory manager in the driver code
259
260         On Wed, 2007-02-07 at 13:30 -0800, Andrew Morton wrote:
261         > I suspect all this horror is due to stupidity in the DMA API.
262         >
263         > pci_alloc_consistent() just goes and assumes GFP_ATOMIC, whereas
264         > the caller (megasas_mgmt_fw_ioctl) would have been perfectly happy
265         > to use GFP_KERNEL.
266         >
267         > I bet this fixes it
268
269         It does, but the DMA API was expanded to cope with this exact case, so
270         use dma_alloc_coherent() directly in the megaraid code instead.  The dev
271         is just &pci_dev->dev.
272
273         James <James.Bottomley@SteelEye.com>
274
275         3. SYNCHRONIZE_CACHE is not supported by FW and thus blocked by driver.
276         4. Hibernation support added
277         5. Performing diskdump while running IO in RHEL 4 was failing. Fixed.
278
279 1 Release Date    : Fri Feb. 09 14:36:28 PST 2007 -
280                         (emaild-id:megaraidlinux@lsi.com)
281                         Sumant Patro
282                         Bo Yang
283
284 2 Current Version : 00.00.03.09
285 3 Older Version   : 00.00.03.08
286
287 i.      Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
288
289         The driver now waits for 10 seconds to elapse instead of 5 (as in
290         previous release) to resume IO.
291
292 1 Release Date    : Mon Feb. 05 11:35:24 PST 2007 -
293                         (emaild-id:megaraidlinux@lsi.com)
294                         Sumant Patro
295                         Bo Yang
296 2 Current Version : 00.00.03.08
297 3 Older Version   : 00.00.03.07
298
299 i.      Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
300
301         Fix:    The driver is now throttling IO.
302         Checks added in megasas_queue_command to know if FW is able to
303         process commands within timeout period. If number of retries
304         is 2 or greater,the driver stops sending cmd to FW temporarily. IO is
305         resumed if pending cmd count reduces to 16 or 5 seconds has elapsed
306         from the time cmds were last sent to FW.
307
308 ii.     FW enables WCE bit in Mode Sense cmd for drives that are configured
309         as WriteBack. The OS may send "SYNCHRONIZE_CACHE" cmd when Logical
310         Disks are exposed with WCE=1. User is advised to enable Write Back
311         mode only when the controller has battery backup. At this time
312         Synhronize cache is not supported by the FW. Driver will short-cycle
313         the cmd and return success without sending down to FW.
314
315 1 Release Date    : Sun Jan. 14 11:21:32 PDT 2007 -
316                  Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
317 2 Current Version : 00.00.03.07
318 3 Older Version   : 00.00.03.06
319
320 i.      bios_param entry added in scsi_host_template that returns disk geometry
321         information.
322
323 1 Release Date    : Fri Oct 20 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
324 2 Current Version : 00.00.03.06
325 3 Older Version   : 00.00.03.05
326
327 1. 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.
328 2. Added check in megasas_queue_command and dpc/isr routine to see if we have already declared adapter dead
329    (hw_crit_error=1). If hw_crit_error==1, now we donot accept any processing of pending cmds/accept any cmd from OS
330
331 1 Release Date    : Mon Oct 02 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
332 2 Current Version : 00.00.03.05
333 3 Older Version   : 00.00.03.04
334
335 i.      PCI_DEVICE macro used
336
337         Convert the pci_device_id-table of the megaraid_sas-driver to the PCI_DEVICE-macro, to safe some lines.
338
339                 - Henrik Kretzschmar <henne@nachtwindheim.de>
340 ii.     All compiler warnings removed
341 iii.    megasas_ctrl_info struct reverted to 3.02 release
342 iv.     Default value of megasas_dbg_lvl set to 0
343 v.      Removing in megasas_exit the sysfs entry created for megasas_dbg_lvl
344 vi.     In megasas_teardown_frame_pool(), cmd->frame was passed instead of
345         cmd->sense to pci_pool_free. Fixed. Bug was pointed out by
346         Eric Sesterhenn
347
348 1 Release Date    : Wed Sep 13 14:22:51 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
349 2 Current Version : 00.00.03.04
350 3 Older Version   : 00.00.03.03
351
352 i.      Added Reboot notify
353 ii.     Reduced by 1 max cmds sent to FW from Driver to make the reply_q_sz same
354         as Max Cmds FW can support
355
356 1 Release Date    : Tue Aug 22 16:33:14 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
357 2 Current Version : 00.00.03.03
358 3 Older Version   : 00.00.03.02
359
360 i.      Send stop adapter to FW & Dump pending FW cmds before declaring adapter dead.
361         New varible added to set dbg level.
362 ii.     Disable interrupt made as fn pointer as they are different for 1068 / 1078
363 iii.    Frame count optimization. Main frame can contain 2 SGE for 64 bit SGLs and
364         3 SGE for 32 bit SGL
365 iv.     Tasklet added for cmd completion
366 v.      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.
367 vi.     megasas_ctrl_prop structure updated (based on FW struct)
368 vii.    Added print : FW now in Ready State during initialization
369
370 1 Release Date    : Sun Aug 06 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
371 2 Current Version : 00.00.03.02
372 3 Older Version   : 00.00.03.01
373
374 i.      Added FW tranistion state for Hotplug scenario
375
376 1 Release Date    : Sun May 14 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
377 2 Current Version : 00.00.03.01
378 3 Older Version   : 00.00.02.04
379
380 i.      Added support for ZCR controller.
381
382                 New device id 0x413 added.
383
384 ii.     Bug fix : Disable controller interrupt before firing INIT cmd to FW.
385
386                 Interrupt is enabled after required initialization is over.
387                 This is done to ensure that driver is ready to handle interrupts when
388                 it is generated by the controller.
389
390                 -Sumant Patro <Sumant.Patro@lsil.com>
391
392 1 Release Date    : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
393 2 Current Version : 00.00.02.04
394 3 Older Version   : 00.00.02.04 
395
396 i.      Remove superflous instance_lock
397
398         gets rid of the otherwise superflous instance_lock and avoids an unsave 
399         unsynchronized access in the error handler.
400
401                 - Christoph Hellwig <hch@lst.de>
402
403
404 1 Release Date    : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
405 2 Current Version : 00.00.02.04
406 3 Older Version   : 00.00.02.04 
407
408 i.      Support for 1078 type (ppc IOP) controller, device id : 0x60 added.
409         During initialization, depending on the device id, the template members 
410         are initialized with function pointers specific to the ppc or 
411         xscale controllers.  
412
413                 -Sumant Patro <Sumant.Patro@lsil.com>
414                 
415 1 Release Date    : Fri Feb 03 14:16:25 PST 2006 - Sumant Patro 
416                                                         <Sumant.Patro@lsil.com>
417 2 Current Version : 00.00.02.04
418 3 Older Version   : 00.00.02.02 
419 i.      Register 16 byte CDB capability with scsi midlayer 
420
421         "Ths patch properly registers the 16 byte command length capability of the 
422         megaraid_sas controlled hardware with the scsi midlayer. All megaraid_sas 
423         hardware supports 16 byte CDB's."
424
425                 -Joshua Giles <joshua_giles@dell.com> 
426
427 1 Release Date    : Mon Jan 23 14:09:01 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
428 2 Current Version : 00.00.02.02
429 3 Older Version   : 00.00.02.01 
430
431 i.      New template defined to represent each family of controllers (identified by processor used). 
432         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.
433
434                 -Sumant Patro <Sumant.Patro@lsil.com>
435
436 1 Release Date    : Mon Dec 19 14:36:26 PST 2005 - Sumant Patro <Sumant.Patro@lsil.com>
437 2 Current Version : 00.00.02.00-rc4 
438 3 Older Version   : 00.00.02.01 
439
440 i.      Code reorganized to remove code duplication in megasas_build_cmd. 
441
442         "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"
443
444                 - Christoph Hellwig <hch@lst.de>
445
446 ii.     Defined MEGASAS_IOC_FIRMWARE32 for code paths that handles 32 bit applications in 64 bit systems.
447
448         "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"
449
450                 - Christoph Hellwig <hch@lst.de>