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