xref: /linux/Documentation/scsi/ChangeLog.megaraid_sas (revision 127ce971adeb4514bc4edc5bf45f79beb0c94aa5)
1*127ce971Sbo yang1 Release Date    : Mon. March 10 11:02:31 PDT 2008 -
2*127ce971Sbo yang			(emaild-id:megaraidlinux@lsi.com)
3*127ce971Sbo yang			Sumant Patro
4*127ce971Sbo yang			Bo Yang
5*127ce971Sbo yang
6*127ce971Sbo yang2 Current Version : 00.00.03.20-RC1
7*127ce971Sbo yang3 Older Version   : 00.00.03.16
8*127ce971Sbo yang
9*127ce971Sbo yang1. Rollback the sense info implementation
10*127ce971Sbo yang	Sense buffer ptr data type in the ioctl path is reverted back
11*127ce971Sbo yang	to u32 * as in previous versions of driver.
12*127ce971Sbo yang
13*127ce971Sbo yang2. Fixed the driver frame count.
14*127ce971Sbo yang	When Driver sent wrong frame count to firmware.  As this
15*127ce971Sbo yang	particular command is sent to drive, FW is seeing continuous
16*127ce971Sbo yang	chip resets and so the command will timeout.
17*127ce971Sbo yang
18*127ce971Sbo yang3. Add the new controller(1078DE) support to the driver
19*127ce971Sbo yang	and Increase the max_wait to 60 from 10 in the controller
20*127ce971Sbo yang	operational status.  With this max_wait increase, driver will
21*127ce971Sbo yang	make sure the FW will 	finish the pending cmd for KDUMP case.
22*127ce971Sbo yang
23f28cd7cfSbo yang1 Release Date    : Thur. Nov. 07 16:30:43 PST 2007 -
24f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
25f28cd7cfSbo yang			Sumant Patro
26f28cd7cfSbo yang			Bo Yang
27f28cd7cfSbo yang
28f28cd7cfSbo yang2 Current Version : 00.00.03.16
29f28cd7cfSbo yang3 Older Version   : 00.00.03.15
30f28cd7cfSbo yang
31f28cd7cfSbo yang1. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 10. FW may take
32f28cd7cfSbo yang	a max of 60 seconds to respond to the INIT cmd.
33f28cd7cfSbo yang
34f28cd7cfSbo yang1 Release Date    : Fri. Sep. 07 16:30:43 PST 2007 -
35f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
36f28cd7cfSbo yang			Sumant Patro
37f28cd7cfSbo yang			Bo Yang
38f28cd7cfSbo yang
39f28cd7cfSbo yang2 Current Version : 00.00.03.15
40f28cd7cfSbo yang3 Older Version   : 00.00.03.14
41f28cd7cfSbo yang
42f28cd7cfSbo yang1. Added module parameter "poll_mode_io" to support for "polling"
43f28cd7cfSbo yang	(reduced interrupt operation).  In this mode, IO completion
44f28cd7cfSbo yang	interrupts are delayed. At the end of initiating IOs, the
45f28cd7cfSbo yang	driver schedules for cmd completion if there are pending cmds
46f28cd7cfSbo yang	to be completed.  A timer-based interrupt has also been added
47f28cd7cfSbo yang	to prevent IO completion processing from being delayed
48f28cd7cfSbo yang	indefinitely in the case that no new IOs are initiated.
49f28cd7cfSbo yang
50f28cd7cfSbo yang1 Release Date    : Fri. Sep. 07 16:30:43 PST 2007 -
51f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
52f28cd7cfSbo yang			Sumant Patro
53f28cd7cfSbo yang			Bo Yang
54f28cd7cfSbo yang
55f28cd7cfSbo yang2 Current Version : 00.00.03.14
56f28cd7cfSbo yang3 Older Version   : 00.00.03.13
57f28cd7cfSbo yang
58f28cd7cfSbo yang1. Setting the max_sectors_per_req based on max SGL supported by the
59f28cd7cfSbo yang	FW. Prior versions calculated this value from controller info
60f28cd7cfSbo yang	(max_sectors_1, max_sectors_2). For certain controllers/FW,
61f28cd7cfSbo yang	this was resulting in a value greater than max SGL supported
62f28cd7cfSbo yang	by the FW. Issue was first reported by users running LUKS+XFS
63f28cd7cfSbo yang	with megaraid_sas.  Thanks to RB for providing the logs and
64f28cd7cfSbo yang	duplication steps that helped to get to the root cause of the
65f28cd7cfSbo yang	issue.  2. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from
66f28cd7cfSbo yang	10. FW may take a max of 60 seconds to respond to the INIT
67f28cd7cfSbo yang	cmd.
68f28cd7cfSbo yang
69f28cd7cfSbo yang1 Release Date    : Fri. June. 15 16:30:43 PST 2007 -
70f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
71f28cd7cfSbo yang			Sumant Patro
72f28cd7cfSbo yang			Bo Yang
73f28cd7cfSbo yang
74f28cd7cfSbo yang2 Current Version : 00.00.03.13
75f28cd7cfSbo yang3 Older Version   : 00.00.03.12
76f28cd7cfSbo yang
77f28cd7cfSbo yang1. Added the megasas_reset_timer routine to intercept cmd timeout and throttle io.
78f28cd7cfSbo yang
79f28cd7cfSbo yangOn Fri, 2007-03-16 at 16:44 -0600, James Bottomley wrote:
80f28cd7cfSbo yangIt looks like megaraid_sas at least needs this to throttle its commands
81f28cd7cfSbo yang> as they begin to time out.  The code keeps the existing transport
82f28cd7cfSbo yang> template use of eh_timed_out (and allows the transport to override the
83f28cd7cfSbo yang> host if they both have this callback).
84f28cd7cfSbo yang>
85f28cd7cfSbo yang> James
86f28cd7cfSbo yang
87f28cd7cfSbo yang1 Release Date    : Sat May. 12 16:30:43 PST 2007 -
88f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
89f28cd7cfSbo yang			Sumant Patro
90f28cd7cfSbo yang			Bo Yang
91f28cd7cfSbo yang
92f28cd7cfSbo yang2 Current Version : 00.00.03.12
93f28cd7cfSbo yang3 Older Version   : 00.00.03.11
94f28cd7cfSbo yang
95f28cd7cfSbo yang1.  When MegaSAS driver receives reset call from OS, driver waits in reset
96f28cd7cfSbo yangroutine for max 3 minutes for all pending command completion. Now driver will
97f28cd7cfSbo yangcall completion routine every 5 seconds from the reset routine instead of
98f28cd7cfSbo yangwaiting for depending on cmd completion from isr path.
99f28cd7cfSbo yang
100f28cd7cfSbo yang1 Release Date    : Mon Apr. 30 10:25:52 PST 2007 -
101f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
102f28cd7cfSbo yang			Sumant Patro
103f28cd7cfSbo yang			Bo Yang
104f28cd7cfSbo yang
105f28cd7cfSbo yang2 Current Version : 00.00.03.11
106f28cd7cfSbo yang3 Older Version   : 00.00.03.09
107f28cd7cfSbo yang
108f28cd7cfSbo yang	1. Memory Manager for IOCTL removed for 2.6 kernels.
109f28cd7cfSbo yang	   pci_alloc_consistent replaced by dma_alloc_coherent. With this
110f28cd7cfSbo yang	   change there is no need of memory manager in the driver code
111f28cd7cfSbo yang
112f28cd7cfSbo yang	On Wed, 2007-02-07 at 13:30 -0800, Andrew Morton wrote:
113f28cd7cfSbo yang	> I suspect all this horror is due to stupidity in the DMA API.
114f28cd7cfSbo yang	>
115f28cd7cfSbo yang	> pci_alloc_consistent() just goes and assumes GFP_ATOMIC, whereas
116f28cd7cfSbo yang	> the caller (megasas_mgmt_fw_ioctl) would have been perfectly happy
117f28cd7cfSbo yang	> to use GFP_KERNEL.
118f28cd7cfSbo yang	>
119f28cd7cfSbo yang	> I bet this fixes it
120f28cd7cfSbo yang
121f28cd7cfSbo yang	It does, but the DMA API was expanded to cope with this exact case, so
122f28cd7cfSbo yang	use dma_alloc_coherent() directly in the megaraid code instead.  The dev
123f28cd7cfSbo yang	is just &pci_dev->dev.
124f28cd7cfSbo yang
125f28cd7cfSbo yang	James <James.Bottomley@SteelEye.com>
126f28cd7cfSbo yang
127f28cd7cfSbo yang	3. SYNCHRONIZE_CACHE is not supported by FW and thus blocked by driver.
128f28cd7cfSbo yang	4. Hibernation support added
129f28cd7cfSbo yang	5. Performing diskdump while running IO in RHEL 4 was failing. Fixed.
130f28cd7cfSbo yang
131f28cd7cfSbo yang1 Release Date    : Fri Feb. 09 14:36:28 PST 2007 -
132f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
133f28cd7cfSbo yang			Sumant Patro
134f28cd7cfSbo yang			Bo Yang
135f28cd7cfSbo yang
136f28cd7cfSbo yang2 Current Version : 00.00.03.09
137f28cd7cfSbo yang3 Older Version   : 00.00.03.08
138f28cd7cfSbo yang
139f28cd7cfSbo yangi.	Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
140f28cd7cfSbo yang
141f28cd7cfSbo yang	The driver now waits for 10 seconds to elapse instead of 5 (as in
142f28cd7cfSbo yang	previous release) to resume IO.
143f28cd7cfSbo yang
144f28cd7cfSbo yang1 Release Date    : Mon Feb. 05 11:35:24 PST 2007 -
145f28cd7cfSbo yang			(emaild-id:megaraidlinux@lsi.com)
146f28cd7cfSbo yang			Sumant Patro
147f28cd7cfSbo yang			Bo Yang
148f28cd7cfSbo yang2 Current Version : 00.00.03.08
149f28cd7cfSbo yang3 Older Version   : 00.00.03.07
150f28cd7cfSbo yang
151f28cd7cfSbo yangi.	Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
152f28cd7cfSbo yang
153f28cd7cfSbo yang	Fix:	The driver is now throttling IO.
154f28cd7cfSbo yang	Checks added in megasas_queue_command to know if FW is able to
155f28cd7cfSbo yang	process commands within timeout period. If number of retries
156f28cd7cfSbo yang	is 2 or greater,the driver stops sending cmd to FW temporarily. IO is
157f28cd7cfSbo yang	resumed if pending cmd count reduces to 16 or 5 seconds has elapsed
158f28cd7cfSbo yang	from the time cmds were last sent to FW.
159f28cd7cfSbo yang
160f28cd7cfSbo yangii.	FW enables WCE bit in Mode Sense cmd for drives that are configured
161f28cd7cfSbo yang	as WriteBack. The OS may send "SYNCHRONIZE_CACHE" cmd when Logical
162f28cd7cfSbo yang	Disks are exposed with WCE=1. User is advised to enable Write Back
163f28cd7cfSbo yang	mode only when the controller has battery backup. At this time
164f28cd7cfSbo yang	Synhronize cache is not supported by the FW. Driver will short-cycle
165f28cd7cfSbo yang	the cmd and return sucess without sending down to FW.
166f28cd7cfSbo yang
167f28cd7cfSbo yang1 Release Date    : Sun Jan. 14 11:21:32 PDT 2007 -
168f28cd7cfSbo yang		 Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
169f28cd7cfSbo yang2 Current Version : 00.00.03.07
170f28cd7cfSbo yang3 Older Version   : 00.00.03.06
171f28cd7cfSbo yang
172f28cd7cfSbo yangi.	bios_param entry added in scsi_host_template that returns disk geometry
173f28cd7cfSbo yang	information.
174f28cd7cfSbo yang
175f28cd7cfSbo yang1 Release Date    : Fri Oct 20 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
176f28cd7cfSbo yang2 Current Version : 00.00.03.06
177f28cd7cfSbo yang3 Older Version   : 00.00.03.05
178f28cd7cfSbo yang
179f28cd7cfSbo 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.
180f28cd7cfSbo yang2. Added check in megasas_queue_command and dpc/isr routine to see if we have already declared adapter dead
181f28cd7cfSbo yang   (hw_crit_error=1). If hw_crit_error==1, now we donot accept any processing of pending cmds/accept any cmd from OS
182e4a082c7SSumant Patro
1832a3681e5SSumant Patro1 Release Date    : Mon Oct 02 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
1842a3681e5SSumant Patro2 Current Version : 00.00.03.05
1852a3681e5SSumant Patro3 Older Version   : 00.00.03.04
1862a3681e5SSumant Patro
1872a3681e5SSumant Patroi.	PCI_DEVICE macro used
1882a3681e5SSumant Patro
1892a3681e5SSumant Patro	Convert the pci_device_id-table of the megaraid_sas-driver to the PCI_DEVICE-macro, to safe some lines.
1902a3681e5SSumant Patro
1912a3681e5SSumant Patro		- Henrik Kretzschmar <henne@nachtwindheim.de>
1922a3681e5SSumant Patroii.	All compiler warnings removed
1932a3681e5SSumant Patroiii.	megasas_ctrl_info struct reverted to 3.02 release
1942a3681e5SSumant Patroiv.	Default value of megasas_dbg_lvl set to 0
1952a3681e5SSumant Patrov.	Removing in megasas_exit the sysfs entry created for megasas_dbg_lvl
1962a3681e5SSumant Patrovi.	In megasas_teardown_frame_pool(), cmd->frame was passed instead of
1972a3681e5SSumant Patro	cmd->sense to pci_pool_free. Fixed. Bug was pointed out by
1982a3681e5SSumant Patro	Eric Sesterhenn
1992a3681e5SSumant Patro
2002a3681e5SSumant Patro1 Release Date    : Wed Sep 13 14:22:51 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
2012a3681e5SSumant Patro2 Current Version : 00.00.03.04
2022a3681e5SSumant Patro3 Older Version   : 00.00.03.03
2032a3681e5SSumant Patro
2042a3681e5SSumant Patroi.	Added Reboot notify
2052a3681e5SSumant Patroii.	Reduced by 1 max cmds sent to FW from Driver to make the reply_q_sz same
2062a3681e5SSumant Patro	as Max Cmds FW can support
2072a3681e5SSumant Patro
2082a3681e5SSumant Patro1 Release Date    : Tue Aug 22 16:33:14 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
2092a3681e5SSumant Patro2 Current Version : 00.00.03.03
2102a3681e5SSumant Patro3 Older Version   : 00.00.03.02
2112a3681e5SSumant Patro
2122a3681e5SSumant Patroi.	Send stop adapter to FW & Dump pending FW cmds before declaring adapter dead.
2132a3681e5SSumant Patro	New varible added to set dbg level.
2142a3681e5SSumant Patroii.	Disable interrupt made as fn pointer as they are different for 1068 / 1078
2152a3681e5SSumant Patroiii.	Frame count optimization. Main frame can contain 2 SGE for 64 bit SGLs and
2162a3681e5SSumant Patro	3 SGE for 32 bit SGL
2172a3681e5SSumant Patroiv.	Tasklet added for cmd completion
2182a3681e5SSumant 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.
2192a3681e5SSumant Patrovi.	megasas_ctrl_prop structure updated (based on FW struct)
2202a3681e5SSumant Patrovii.	Added print : FW now in Ready State during initialization
2212a3681e5SSumant Patro
2222a3681e5SSumant Patro1 Release Date    : Sun Aug 06 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
2232a3681e5SSumant Patro2 Current Version : 00.00.03.02
2242a3681e5SSumant Patro3 Older Version   : 00.00.03.01
2252a3681e5SSumant Patro
2262a3681e5SSumant Patroi.	Added FW tranistion state for Hotplug scenario
2272a3681e5SSumant Patro
2280e98936cSSumant Patro1 Release Date    : Sun May 14 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
2290e98936cSSumant Patro2 Current Version : 00.00.03.01
2300e98936cSSumant Patro3 Older Version   : 00.00.02.04
2310e98936cSSumant Patro
2320e98936cSSumant Patroi.	Added support for ZCR controller.
2330e98936cSSumant Patro
2340e98936cSSumant Patro		New device id 0x413 added.
2350e98936cSSumant Patro
2360e98936cSSumant Patroii.	Bug fix : Disable controller interrupt before firing INIT cmd to FW.
2370e98936cSSumant Patro
2380e98936cSSumant Patro		Interrupt is enabled after required initialization is over.
2390e98936cSSumant Patro		This is done to ensure that driver is ready to handle interrupts when
2400e98936cSSumant Patro		it is generated by the controller.
2410e98936cSSumant Patro
2420e98936cSSumant Patro		-Sumant Patro <Sumant.Patro@lsil.com>
2430e98936cSSumant Patro
244e4a082c7SSumant Patro1 Release Date    : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
245e4a082c7SSumant Patro2 Current Version : 00.00.02.04
246e4a082c7SSumant Patro3 Older Version   : 00.00.02.04
247e4a082c7SSumant Patro
248e4a082c7SSumant Patroi.	Remove superflous instance_lock
249e4a082c7SSumant Patro
250e4a082c7SSumant Patro	gets rid of the otherwise superflous instance_lock and avoids an unsave
251e4a082c7SSumant Patro	unsynchronized access in the error handler.
252e4a082c7SSumant Patro
253e4a082c7SSumant Patro		- Christoph Hellwig <hch@lst.de>
254e4a082c7SSumant Patro
255e4a082c7SSumant Patro
256f9876f0bSSumant Patro1 Release Date    : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
257f9876f0bSSumant Patro2 Current Version : 00.00.02.04
258f9876f0bSSumant Patro3 Older Version   : 00.00.02.04
259f9876f0bSSumant Patro
260f9876f0bSSumant Patroi.	Support for 1078 type (ppc IOP) controller, device id : 0x60 added.
261f9876f0bSSumant Patro	During initialization, depending on the device id, the template members
262f9876f0bSSumant Patro	are initialized with function pointers specific to the ppc or
263f9876f0bSSumant Patro	xscale controllers.
264f9876f0bSSumant Patro
265f9876f0bSSumant Patro		-Sumant Patro <Sumant.Patro@lsil.com>
266f9876f0bSSumant Patro
267122da302SJoshua Giles1 Release Date    : Fri Feb 03 14:16:25 PST 2006 - Sumant Patro
268122da302SJoshua Giles							<Sumant.Patro@lsil.com>
269122da302SJoshua Giles2 Current Version : 00.00.02.04
270122da302SJoshua Giles3 Older Version   : 00.00.02.02
271122da302SJoshua Gilesi.	Register 16 byte CDB capability with scsi midlayer
272122da302SJoshua Giles
273122da302SJoshua Giles	"Ths patch properly registers the 16 byte command length capability of the
274122da302SJoshua Giles	megaraid_sas controlled hardware with the scsi midlayer. All megaraid_sas
275122da302SJoshua Giles	hardware supports 16 byte CDB's."
276122da302SJoshua Giles
277122da302SJoshua Giles		-Joshua Giles <joshua_giles@dell.com>
278122da302SJoshua Giles
2791341c939SSumant Patro1 Release Date    : Mon Jan 23 14:09:01 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
2801341c939SSumant Patro2 Current Version : 00.00.02.02
2811341c939SSumant Patro3 Older Version   : 00.00.02.01
2821341c939SSumant Patro
2831341c939SSumant Patroi.	New template defined to represent each family of controllers (identified by processor used).
2841341c939SSumant 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.
2851341c939SSumant Patro
2861341c939SSumant Patro		-Sumant Patro <Sumant.Patro@lsil.com>
2871341c939SSumant Patro
288cb59aa6aSSumant Patro1 Release Date    : Mon Dec 19 14:36:26 PST 2005 - Sumant Patro <Sumant.Patro@lsil.com>
289cb59aa6aSSumant Patro2 Current Version : 00.00.02.00-rc4
290cb59aa6aSSumant Patro3 Older Version   : 00.00.02.01
291cb59aa6aSSumant Patro
292cb59aa6aSSumant Patroi.	Code reorganized to remove code duplication in megasas_build_cmd.
293cb59aa6aSSumant Patro
294cb59aa6aSSumant 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"
295cb59aa6aSSumant Patro
296cb59aa6aSSumant Patro		- Christoph Hellwig <hch@lst.de>
297cb59aa6aSSumant Patro
298cb59aa6aSSumant Patroii.	Defined MEGASAS_IOC_FIRMWARE32 for code paths that handles 32 bit applications in 64 bit systems.
299cb59aa6aSSumant Patro
300cb59aa6aSSumant 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"
301cb59aa6aSSumant Patro
302cb59aa6aSSumant Patro		- Christoph Hellwig <hch@lst.de>
303