xref: /linux/Documentation/scsi/ChangeLog.megaraid_sas (revision af901ca181d92aac3a7dc265144a9081a86d8f39)
124541f99SYang, Bo
224541f99SYang, Bo1 Release Date    : Thur.July. 24 11:41:51 PST 2008 -
324541f99SYang, Bo                       (emaild-id:megaraidlinux@lsi.com)
424541f99SYang, Bo                       Sumant Patro
524541f99SYang, Bo                       Bo Yang
624541f99SYang, Bo
724541f99SYang, Bo2 Current Version : 00.00.04.01
824541f99SYang, Bo3 Older Version   : 00.00.03.22
924541f99SYang, Bo
1024541f99SYang, Bo1. Add the new controller (0078, 0079) support to the driver
1124541f99SYang, Bo       Those controllers are LSI's next generatation(gen2) SAS controllers.
1224541f99SYang, Bo
1324541f99SYang, Bo1 Release Date    : Mon.June. 23 10:12:45 PST 2008 -
1424541f99SYang, Bo                       (emaild-id:megaraidlinux@lsi.com)
1524541f99SYang, Bo                       Sumant Patro
1624541f99SYang, Bo                       Bo Yang
1724541f99SYang, Bo
1824541f99SYang, Bo2 Current Version : 00.00.03.22
1924541f99SYang, Bo3 Older Version   : 00.00.03.20
2024541f99SYang, Bo
2124541f99SYang, Bo1. Add shutdown DCMD cmd to the shutdown routine to make FW shutdown proper.
2224541f99SYang, Bo2. Unexpected interrupt occurs in HWR Linux driver, add the dumy readl pci flush will fix this issue.
2324541f99SYang, Bo
24127ce971Sbo yang1 Release Date    : Mon. March 10 11:02:31 PDT 2008 -
25127ce971Sbo yang			(emaild-id:megaraidlinux@lsi.com)
26127ce971Sbo yang			Sumant Patro
27127ce971Sbo yang			Bo Yang
28127ce971Sbo yang
29127ce971Sbo yang2 Current Version : 00.00.03.20-RC1
30127ce971Sbo yang3 Older Version   : 00.00.03.16
31127ce971Sbo yang
32127ce971Sbo yang1. Rollback the sense info implementation
33127ce971Sbo yang	Sense buffer ptr data type in the ioctl path is reverted back
34127ce971Sbo yang	to u32 * as in previous versions of driver.
35127ce971Sbo yang
36127ce971Sbo yang2. Fixed the driver frame count.
37127ce971Sbo yang	When Driver sent wrong frame count to firmware.  As this
38127ce971Sbo yang	particular command is sent to drive, FW is seeing continuous
39127ce971Sbo yang	chip resets and so the command will timeout.
40127ce971Sbo yang
41127ce971Sbo yang3. Add the new controller(1078DE) support to the driver
42127ce971Sbo yang	and Increase the max_wait to 60 from 10 in the controller
43127ce971Sbo yang	operational status.  With this max_wait increase, driver will
44127ce971Sbo yang	make sure the FW will 	finish the pending cmd for KDUMP case.
45127ce971Sbo yang
46f28cd7cfSbo yang1 Release Date    : Thur. Nov. 07 16:30:43 PST 2007 -
47f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
48f28cd7cfSbo yang			Sumant Patro
49f28cd7cfSbo yang			Bo Yang
50f28cd7cfSbo yang
51f28cd7cfSbo yang2 Current Version : 00.00.03.16
52f28cd7cfSbo yang3 Older Version   : 00.00.03.15
53f28cd7cfSbo yang
54f28cd7cfSbo yang1. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 10. FW may take
55f28cd7cfSbo yang	a max of 60 seconds to respond to the INIT cmd.
56f28cd7cfSbo yang
57f28cd7cfSbo yang1 Release Date    : Fri. Sep. 07 16:30:43 PST 2007 -
58f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
59f28cd7cfSbo yang			Sumant Patro
60f28cd7cfSbo yang			Bo Yang
61f28cd7cfSbo yang
62f28cd7cfSbo yang2 Current Version : 00.00.03.15
63f28cd7cfSbo yang3 Older Version   : 00.00.03.14
64f28cd7cfSbo yang
65f28cd7cfSbo yang1. Added module parameter "poll_mode_io" to support for "polling"
66f28cd7cfSbo yang	(reduced interrupt operation).  In this mode, IO completion
67f28cd7cfSbo yang	interrupts are delayed. At the end of initiating IOs, the
68f28cd7cfSbo yang	driver schedules for cmd completion if there are pending cmds
69f28cd7cfSbo yang	to be completed.  A timer-based interrupt has also been added
70f28cd7cfSbo yang	to prevent IO completion processing from being delayed
71f28cd7cfSbo yang	indefinitely in the case that no new IOs are initiated.
72f28cd7cfSbo yang
73f28cd7cfSbo yang1 Release Date    : Fri. Sep. 07 16:30:43 PST 2007 -
74f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
75f28cd7cfSbo yang			Sumant Patro
76f28cd7cfSbo yang			Bo Yang
77f28cd7cfSbo yang
78f28cd7cfSbo yang2 Current Version : 00.00.03.14
79f28cd7cfSbo yang3 Older Version   : 00.00.03.13
80f28cd7cfSbo yang
81f28cd7cfSbo yang1. Setting the max_sectors_per_req based on max SGL supported by the
82f28cd7cfSbo yang	FW. Prior versions calculated this value from controller info
83f28cd7cfSbo yang	(max_sectors_1, max_sectors_2). For certain controllers/FW,
84f28cd7cfSbo yang	this was resulting in a value greater than max SGL supported
85f28cd7cfSbo yang	by the FW. Issue was first reported by users running LUKS+XFS
86f28cd7cfSbo yang	with megaraid_sas.  Thanks to RB for providing the logs and
87f28cd7cfSbo yang	duplication steps that helped to get to the root cause of the
88f28cd7cfSbo yang	issue.  2. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from
89f28cd7cfSbo yang	10. FW may take a max of 60 seconds to respond to the INIT
90f28cd7cfSbo yang	cmd.
91f28cd7cfSbo yang
92f28cd7cfSbo yang1 Release Date    : Fri. June. 15 16:30:43 PST 2007 -
93f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
94f28cd7cfSbo yang			Sumant Patro
95f28cd7cfSbo yang			Bo Yang
96f28cd7cfSbo yang
97f28cd7cfSbo yang2 Current Version : 00.00.03.13
98f28cd7cfSbo yang3 Older Version   : 00.00.03.12
99f28cd7cfSbo yang
100f28cd7cfSbo yang1. Added the megasas_reset_timer routine to intercept cmd timeout and throttle io.
101f28cd7cfSbo yang
102f28cd7cfSbo yangOn Fri, 2007-03-16 at 16:44 -0600, James Bottomley wrote:
103f28cd7cfSbo yangIt looks like megaraid_sas at least needs this to throttle its commands
104f28cd7cfSbo yang> as they begin to time out.  The code keeps the existing transport
105f28cd7cfSbo yang> template use of eh_timed_out (and allows the transport to override the
106f28cd7cfSbo yang> host if they both have this callback).
107f28cd7cfSbo yang>
108f28cd7cfSbo yang> James
109f28cd7cfSbo yang
110f28cd7cfSbo yang1 Release Date    : Sat May. 12 16:30:43 PST 2007 -
111f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
112f28cd7cfSbo yang			Sumant Patro
113f28cd7cfSbo yang			Bo Yang
114f28cd7cfSbo yang
115f28cd7cfSbo yang2 Current Version : 00.00.03.12
116f28cd7cfSbo yang3 Older Version   : 00.00.03.11
117f28cd7cfSbo yang
118f28cd7cfSbo yang1.  When MegaSAS driver receives reset call from OS, driver waits in reset
119f28cd7cfSbo yangroutine for max 3 minutes for all pending command completion. Now driver will
120f28cd7cfSbo yangcall completion routine every 5 seconds from the reset routine instead of
121f28cd7cfSbo yangwaiting for depending on cmd completion from isr path.
122f28cd7cfSbo yang
123f28cd7cfSbo yang1 Release Date    : Mon Apr. 30 10:25:52 PST 2007 -
124f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
125f28cd7cfSbo yang			Sumant Patro
126f28cd7cfSbo yang			Bo Yang
127f28cd7cfSbo yang
128f28cd7cfSbo yang2 Current Version : 00.00.03.11
129f28cd7cfSbo yang3 Older Version   : 00.00.03.09
130f28cd7cfSbo yang
131f28cd7cfSbo yang	1. Memory Manager for IOCTL removed for 2.6 kernels.
132f28cd7cfSbo yang	   pci_alloc_consistent replaced by dma_alloc_coherent. With this
133f28cd7cfSbo yang	   change there is no need of memory manager in the driver code
134f28cd7cfSbo yang
135f28cd7cfSbo yang	On Wed, 2007-02-07 at 13:30 -0800, Andrew Morton wrote:
136f28cd7cfSbo yang	> I suspect all this horror is due to stupidity in the DMA API.
137f28cd7cfSbo yang	>
138f28cd7cfSbo yang	> pci_alloc_consistent() just goes and assumes GFP_ATOMIC, whereas
139f28cd7cfSbo yang	> the caller (megasas_mgmt_fw_ioctl) would have been perfectly happy
140f28cd7cfSbo yang	> to use GFP_KERNEL.
141f28cd7cfSbo yang	>
142f28cd7cfSbo yang	> I bet this fixes it
143f28cd7cfSbo yang
144f28cd7cfSbo yang	It does, but the DMA API was expanded to cope with this exact case, so
145f28cd7cfSbo yang	use dma_alloc_coherent() directly in the megaraid code instead.  The dev
146f28cd7cfSbo yang	is just &pci_dev->dev.
147f28cd7cfSbo yang
148f28cd7cfSbo yang	James <James.Bottomley@SteelEye.com>
149f28cd7cfSbo yang
150f28cd7cfSbo yang	3. SYNCHRONIZE_CACHE is not supported by FW and thus blocked by driver.
151f28cd7cfSbo yang	4. Hibernation support added
152f28cd7cfSbo yang	5. Performing diskdump while running IO in RHEL 4 was failing. Fixed.
153f28cd7cfSbo yang
154f28cd7cfSbo yang1 Release Date    : Fri Feb. 09 14:36:28 PST 2007 -
155f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
156f28cd7cfSbo yang			Sumant Patro
157f28cd7cfSbo yang			Bo Yang
158f28cd7cfSbo yang
159f28cd7cfSbo yang2 Current Version : 00.00.03.09
160f28cd7cfSbo yang3 Older Version   : 00.00.03.08
161f28cd7cfSbo yang
162f28cd7cfSbo yangi.	Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
163f28cd7cfSbo yang
164f28cd7cfSbo yang	The driver now waits for 10 seconds to elapse instead of 5 (as in
165f28cd7cfSbo yang	previous release) to resume IO.
166f28cd7cfSbo yang
167f28cd7cfSbo yang1 Release Date    : Mon Feb. 05 11:35:24 PST 2007 -
168f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
169f28cd7cfSbo yang			Sumant Patro
170f28cd7cfSbo yang			Bo Yang
171f28cd7cfSbo yang2 Current Version : 00.00.03.08
172f28cd7cfSbo yang3 Older Version   : 00.00.03.07
173f28cd7cfSbo yang
174f28cd7cfSbo yangi.	Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
175f28cd7cfSbo yang
176f28cd7cfSbo yang	Fix:	The driver is now throttling IO.
177f28cd7cfSbo yang	Checks added in megasas_queue_command to know if FW is able to
178f28cd7cfSbo yang	process commands within timeout period. If number of retries
179f28cd7cfSbo yang	is 2 or greater,the driver stops sending cmd to FW temporarily. IO is
180f28cd7cfSbo yang	resumed if pending cmd count reduces to 16 or 5 seconds has elapsed
181f28cd7cfSbo yang	from the time cmds were last sent to FW.
182f28cd7cfSbo yang
183f28cd7cfSbo yangii.	FW enables WCE bit in Mode Sense cmd for drives that are configured
184f28cd7cfSbo yang	as WriteBack. The OS may send "SYNCHRONIZE_CACHE" cmd when Logical
185f28cd7cfSbo yang	Disks are exposed with WCE=1. User is advised to enable Write Back
186f28cd7cfSbo yang	mode only when the controller has battery backup. At this time
187f28cd7cfSbo yang	Synhronize cache is not supported by the FW. Driver will short-cycle
188*af901ca1SAndré Goddard Rosa	the cmd and return success without sending down to FW.
189f28cd7cfSbo yang
190f28cd7cfSbo yang1 Release Date    : Sun Jan. 14 11:21:32 PDT 2007 -
191f28cd7cfSbo yang		 Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
192f28cd7cfSbo yang2 Current Version : 00.00.03.07
193f28cd7cfSbo yang3 Older Version   : 00.00.03.06
194f28cd7cfSbo yang
195f28cd7cfSbo yangi.	bios_param entry added in scsi_host_template that returns disk geometry
196f28cd7cfSbo yang	information.
197f28cd7cfSbo yang
198f28cd7cfSbo yang1 Release Date    : Fri Oct 20 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
199f28cd7cfSbo yang2 Current Version : 00.00.03.06
200f28cd7cfSbo yang3 Older Version   : 00.00.03.05
201f28cd7cfSbo yang
202f28cd7cfSbo yang1. 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.
203f28cd7cfSbo yang2. Added check in megasas_queue_command and dpc/isr routine to see if we have already declared adapter dead
204f28cd7cfSbo yang   (hw_crit_error=1). If hw_crit_error==1, now we donot accept any processing of pending cmds/accept any cmd from OS
205e4a082c7SSumant Patro
2062a3681e5SSumant Patro1 Release Date    : Mon Oct 02 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
2072a3681e5SSumant Patro2 Current Version : 00.00.03.05
2082a3681e5SSumant Patro3 Older Version   : 00.00.03.04
2092a3681e5SSumant Patro
2102a3681e5SSumant Patroi.	PCI_DEVICE macro used
2112a3681e5SSumant Patro
2122a3681e5SSumant Patro	Convert the pci_device_id-table of the megaraid_sas-driver to the PCI_DEVICE-macro, to safe some lines.
2132a3681e5SSumant Patro
2142a3681e5SSumant Patro		- Henrik Kretzschmar <henne@nachtwindheim.de>
2152a3681e5SSumant Patroii.	All compiler warnings removed
2162a3681e5SSumant Patroiii.	megasas_ctrl_info struct reverted to 3.02 release
2172a3681e5SSumant Patroiv.	Default value of megasas_dbg_lvl set to 0
2182a3681e5SSumant Patrov.	Removing in megasas_exit the sysfs entry created for megasas_dbg_lvl
2192a3681e5SSumant Patrovi.	In megasas_teardown_frame_pool(), cmd->frame was passed instead of
2202a3681e5SSumant Patro	cmd->sense to pci_pool_free. Fixed. Bug was pointed out by
2212a3681e5SSumant Patro	Eric Sesterhenn
2222a3681e5SSumant Patro
2232a3681e5SSumant Patro1 Release Date    : Wed Sep 13 14:22:51 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
2242a3681e5SSumant Patro2 Current Version : 00.00.03.04
2252a3681e5SSumant Patro3 Older Version   : 00.00.03.03
2262a3681e5SSumant Patro
2272a3681e5SSumant Patroi.	Added Reboot notify
2282a3681e5SSumant Patroii.	Reduced by 1 max cmds sent to FW from Driver to make the reply_q_sz same
2292a3681e5SSumant Patro	as Max Cmds FW can support
2302a3681e5SSumant Patro
2312a3681e5SSumant Patro1 Release Date    : Tue Aug 22 16:33:14 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
2322a3681e5SSumant Patro2 Current Version : 00.00.03.03
2332a3681e5SSumant Patro3 Older Version   : 00.00.03.02
2342a3681e5SSumant Patro
2352a3681e5SSumant Patroi.	Send stop adapter to FW & Dump pending FW cmds before declaring adapter dead.
2362a3681e5SSumant Patro	New varible added to set dbg level.
2372a3681e5SSumant Patroii.	Disable interrupt made as fn pointer as they are different for 1068 / 1078
2382a3681e5SSumant Patroiii.	Frame count optimization. Main frame can contain 2 SGE for 64 bit SGLs and
2392a3681e5SSumant Patro	3 SGE for 32 bit SGL
2402a3681e5SSumant Patroiv.	Tasklet added for cmd completion
2412a3681e5SSumant Patrov.	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.
2422a3681e5SSumant Patrovi.	megasas_ctrl_prop structure updated (based on FW struct)
2432a3681e5SSumant Patrovii.	Added print : FW now in Ready State during initialization
2442a3681e5SSumant Patro
2452a3681e5SSumant Patro1 Release Date    : Sun Aug 06 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
2462a3681e5SSumant Patro2 Current Version : 00.00.03.02
2472a3681e5SSumant Patro3 Older Version   : 00.00.03.01
2482a3681e5SSumant Patro
2492a3681e5SSumant Patroi.	Added FW tranistion state for Hotplug scenario
2502a3681e5SSumant Patro
2510e98936cSSumant Patro1 Release Date    : Sun May 14 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
2520e98936cSSumant Patro2 Current Version : 00.00.03.01
2530e98936cSSumant Patro3 Older Version   : 00.00.02.04
2540e98936cSSumant Patro
2550e98936cSSumant Patroi.	Added support for ZCR controller.
2560e98936cSSumant Patro
2570e98936cSSumant Patro		New device id 0x413 added.
2580e98936cSSumant Patro
2590e98936cSSumant Patroii.	Bug fix : Disable controller interrupt before firing INIT cmd to FW.
2600e98936cSSumant Patro
2610e98936cSSumant Patro		Interrupt is enabled after required initialization is over.
2620e98936cSSumant Patro		This is done to ensure that driver is ready to handle interrupts when
2630e98936cSSumant Patro		it is generated by the controller.
2640e98936cSSumant Patro
2650e98936cSSumant Patro		-Sumant Patro <Sumant.Patro@lsil.com>
2660e98936cSSumant Patro
267e4a082c7SSumant Patro1 Release Date    : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
268e4a082c7SSumant Patro2 Current Version : 00.00.02.04
269e4a082c7SSumant Patro3 Older Version   : 00.00.02.04
270e4a082c7SSumant Patro
271e4a082c7SSumant Patroi.	Remove superflous instance_lock
272e4a082c7SSumant Patro
273e4a082c7SSumant Patro	gets rid of the otherwise superflous instance_lock and avoids an unsave
274e4a082c7SSumant Patro	unsynchronized access in the error handler.
275e4a082c7SSumant Patro
276e4a082c7SSumant Patro		- Christoph Hellwig <hch@lst.de>
277e4a082c7SSumant Patro
278e4a082c7SSumant Patro
279f9876f0bSSumant Patro1 Release Date    : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
280f9876f0bSSumant Patro2 Current Version : 00.00.02.04
281f9876f0bSSumant Patro3 Older Version   : 00.00.02.04
282f9876f0bSSumant Patro
283f9876f0bSSumant Patroi.	Support for 1078 type (ppc IOP) controller, device id : 0x60 added.
284f9876f0bSSumant Patro	During initialization, depending on the device id, the template members
285f9876f0bSSumant Patro	are initialized with function pointers specific to the ppc or
286f9876f0bSSumant Patro	xscale controllers.
287f9876f0bSSumant Patro
288f9876f0bSSumant Patro		-Sumant Patro <Sumant.Patro@lsil.com>
289f9876f0bSSumant Patro
290122da302SJoshua Giles1 Release Date    : Fri Feb 03 14:16:25 PST 2006 - Sumant Patro
291122da302SJoshua Giles							<Sumant.Patro@lsil.com>
292122da302SJoshua Giles2 Current Version : 00.00.02.04
293122da302SJoshua Giles3 Older Version   : 00.00.02.02
294122da302SJoshua Gilesi.	Register 16 byte CDB capability with scsi midlayer
295122da302SJoshua Giles
296122da302SJoshua Giles	"Ths patch properly registers the 16 byte command length capability of the
297122da302SJoshua Giles	megaraid_sas controlled hardware with the scsi midlayer. All megaraid_sas
298122da302SJoshua Giles	hardware supports 16 byte CDB's."
299122da302SJoshua Giles
300122da302SJoshua Giles		-Joshua Giles <joshua_giles@dell.com>
301122da302SJoshua Giles
3021341c939SSumant Patro1 Release Date    : Mon Jan 23 14:09:01 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
3031341c939SSumant Patro2 Current Version : 00.00.02.02
3041341c939SSumant Patro3 Older Version   : 00.00.02.01
3051341c939SSumant Patro
3061341c939SSumant Patroi.	New template defined to represent each family of controllers (identified by processor used).
3071341c939SSumant Patro	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.
3081341c939SSumant Patro
3091341c939SSumant Patro		-Sumant Patro <Sumant.Patro@lsil.com>
3101341c939SSumant Patro
311cb59aa6aSSumant Patro1 Release Date    : Mon Dec 19 14:36:26 PST 2005 - Sumant Patro <Sumant.Patro@lsil.com>
312cb59aa6aSSumant Patro2 Current Version : 00.00.02.00-rc4
313cb59aa6aSSumant Patro3 Older Version   : 00.00.02.01
314cb59aa6aSSumant Patro
315cb59aa6aSSumant Patroi.	Code reorganized to remove code duplication in megasas_build_cmd.
316cb59aa6aSSumant Patro
317cb59aa6aSSumant Patro	"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"
318cb59aa6aSSumant Patro
319cb59aa6aSSumant Patro		- Christoph Hellwig <hch@lst.de>
320cb59aa6aSSumant Patro
321cb59aa6aSSumant Patroii.	Defined MEGASAS_IOC_FIRMWARE32 for code paths that handles 32 bit applications in 64 bit systems.
322cb59aa6aSSumant Patro
323cb59aa6aSSumant Patro	"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"
324cb59aa6aSSumant Patro
325cb59aa6aSSumant Patro		- Christoph Hellwig <hch@lst.de>
326