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