1Release Date : Thu. Feb 24, 2011 17:00:00 PST 2010 - 2 (emaild-id:megaraidlinux@lsi.com) 3 Adam Radford 4Current Version : 00.00.05.34-rc1 5Old Version : 00.00.05.29-rc1 6 1. Fix some failure gotos from megasas_probe_one(), etc. 7 2. Add missing check_and_restore_queue_depth() call in 8 complete_cmd_fusion(). 9 3. Enable MSI-X before calling megasas_init_fw(). 10 4. Call tasklet_schedule() even if outbound_intr_status == 0 for MFI based 11 boards in MSI-X mode. 12 5. Fix megasas_probe_one() to clear PCI_MSIX_FLAGS_ENABLE in msi control 13 register in kdump kernel. 14 6. Fix megasas_get_cmd() to only print "Command pool empty" if 15 megasas_dbg_lvl is set. 16 7. Fix megasas_build_dcdb_fusion() to not filter by TYPE_DISK. 17 8. Fix megasas_build_dcdb_fusion() to use io_request->LUN[1] field. 18 9. Add MR_EVT_CFG_CLEARED to megasas_aen_polling(). 19 10. Fix tasklet_init() in megasas_init_fw() to use instancet->tasklet. 20 11. Fix fault state handling in megasas_transition_to_ready(). 21 12. Fix max_sectors setting for IEEE SGL's. 22 13. Fix iMR OCR support to work correctly. 23------------------------------------------------------------------------------- 24Release Date : Tues. Dec 14, 2010 17:00:00 PST 2010 - 25 (emaild-id:megaraidlinux@lsi.com) 26 Adam Radford 27Current Version : 00.00.05.29-rc1 28Old Version : 00.00.04.31-rc1 29 1. Rename megaraid_sas.c to megaraid_sas_base.c. 30 2. Update GPL headers. 31 3. Add MSI-X support and 'msix_disable' module parameter. 32 4. Use lowest memory bar (for SR-IOV VF support). 33 5. Add struct megasas_instance_temlate changes, and change all code to use 34 new instance entries: 35 36 irqreturn_t (*service_isr )(int irq, void *devp); 37 void (*tasklet)(unsigned long); 38 u32 (*init_adapter)(struct megasas_instance *); 39 u32 (*build_and_issue_cmd) (struct megasas_instance *, 40 struct scsi_cmnd *); 41 void (*issue_dcmd) (struct megasas_instance *instance, 42 struct megasas_cmd *cmd); 43 44 6. Add code to support MegaRAID 9265/9285 controllers device id (0x5b). 45------------------------------------------------------------------------------- 461 Release Date : Thur. May 03, 2010 09:12:45 PST 2009 - 47 (emaild-id:megaraidlinux@lsi.com) 48 Bo Yang 49 502 Current Version : 00.00.04.31-rc1 513 Older Version : 00.00.04.17.1-rc1 52 531. Add the Online Controller Reset (OCR) to the Driver. 54 OCR is the new feature for megaraid_sas driver which 55 will allow the fw to do the chip reset which will not 56 affact the OS behavious. 57 58 To add the OCR support, driver need to do: 59 a). reset the controller chips -- Xscale and Gen2 which 60 will change the function calls and add the reset function 61 related to this two chips. 62 63 b). during the reset, driver will store the pending cmds 64 which not returned by FW to driver's pending queue. Driver 65 will re-issue those pending cmds again to FW after the OCR 66 finished. 67 68 c). In driver's timeout routine, driver will report to 69 OS as reset. Also driver's queue routine will block the 70 cmds until the OCR finished. 71 72 d). in Driver's ISR routine, if driver get the FW state as 73 state change, FW in Failure status and FW support online controller 74 reset (OCR), driver will start to do the controller reset. 75 76 e). In driver's IOCTL routine, the application cmds will wait for the 77 OCR to finish, then issue the cmds to FW. 78 79 f). Before driver kill adapter, driver will do last chance of 80 OCR to see if driver can bring back the FW. 81 822. Add the support update flag to the driver to tell LSI megaraid_sas 83 application which driver will support the device update. So application 84 will not need to do the device update after application add/del the device 85 from the system. 863. In driver's timeout routine, driver will do three time reset if fw is in 87 failed state. Driver will kill adapter if can't bring back FW after the 88 this three times reset. 894. Add the input parameter max_sectors to 1MB support to our GEN2 controller. 90 customer can use the input paramenter max_sectors to add 1MB support to GEN2 91 controller. 92 931 Release Date : Thur. Oct 29, 2009 09:12:45 PST 2009 - 94 (emaild-id:megaraidlinux@lsi.com) 95 Bo Yang 96 972 Current Version : 00.00.04.17.1-rc1 983 Older Version : 00.00.04.12 99 1001. Add the pad_0 in mfi frame structure to 0 to fix the 101 context value larger than 32bit value issue. 102 1032. Add the logic drive list to the driver. Driver will 104 keep the logic drive list internal after driver load. 105 1063. driver fixed the device update issue after get the AEN 107 PD delete/ADD, LD add/delete from FW. 108 1091 Release Date : Tues. July 28, 2009 10:12:45 PST 2009 - 110 (emaild-id:megaraidlinux@lsi.com) 111 Bo Yang 112 1132 Current Version : 00.00.04.12 1143 Older Version : 00.00.04.10 115 1161. Change the AEN sys PD update from scsi_scan to 117 scsi_add_device and scsi_remove_device. 1182. Takeoff the debug print-out in aen_polling routine. 119 1201 Release Date : Thur. July 02, 2009 10:12:45 PST 2009 - 121 (emaild-id:megaraidlinux@lsi.com) 122 Bo Yang 123 1242 Current Version : 00.00.04.10 1253 Older Version : 00.00.04.08 126 1271. Add the 3 mins timeout during the controller initialize. 1282. Add the fix for 64bit sense date errors. 129 1301 Release Date : Tues. May 05, 2009 10:12:45 PST 2009 - 131 (emaild-id:megaraidlinux@lsi.com) 132 Bo Yang 133 1342 Current Version : 00.00.04.08 1353 Older Version : 00.00.04.06 136 1371. Add the fix of pending in FW after deleted the logic drives. 1382. Add the fix of deallocating memory after get pdlist. 139 1401 Release Date : Tues. March 26, 2009 10:12:45 PST 2009 - 141 (emaild-id:megaraidlinux@lsi.com) 142 Bo Yang 143 1442 Current Version : 00.00.04.06 1453 Older Version : 00.00.04.04 146 1471. Add the fix of the driver cmd empty fix of the driver cmd empty. 1482. Add the fix of the driver MSM AEN CMD cause the system slow. 149 1501 Release Date : Tues. March 03, 2009 10:12:45 PST 2009 - 151 (emaild-id:megaraidlinux@lsi.com) 152 Bo Yang 153 1542 Current Version : 00.00.04.04 1553 Older Version : 00.00.04.01 156 1571. Add the Tape drive fix to the driver: If the command is for 158 the tape device, set the pthru timeout to the os layer timeout value. 159 1602. Add Poll_wait mechanism to Gen-2 Linux driv. 161 In the aen handler, driver needs to wakeup poll handler similar to 162 the way it raises SIGIO. 163 1643. Add new controller new SAS2 support to the driver. 165 1664. Report the unconfigured PD (system PD) to OS. 167 1685. Add the IEEE SGL support to the driver 169 1706. Reasign the Application cmds to SAS2 controller 171 1721 Release Date : Thur.July. 24 11:41:51 PST 2008 - 173 (emaild-id:megaraidlinux@lsi.com) 174 Sumant Patro 175 Bo Yang 176 1772 Current Version : 00.00.04.01 1783 Older Version : 00.00.03.22 179 1801. Add the new controller (0078, 0079) support to the driver 181 Those controllers are LSI's next generatation(gen2) SAS controllers. 182 1831 Release Date : Mon.June. 23 10:12:45 PST 2008 - 184 (emaild-id:megaraidlinux@lsi.com) 185 Sumant Patro 186 Bo Yang 187 1882 Current Version : 00.00.03.22 1893 Older Version : 00.00.03.20 190 1911. Add shutdown DCMD cmd to the shutdown routine to make FW shutdown proper. 1922. Unexpected interrupt occurs in HWR Linux driver, add the dumy readl pci flush will fix this issue. 193 1941 Release Date : Mon. March 10 11:02:31 PDT 2008 - 195 (emaild-id:megaraidlinux@lsi.com) 196 Sumant Patro 197 Bo Yang 198 1992 Current Version : 00.00.03.20-RC1 2003 Older Version : 00.00.03.16 201 2021. Rollback the sense info implementation 203 Sense buffer ptr data type in the ioctl path is reverted back 204 to u32 * as in previous versions of driver. 205 2062. Fixed the driver frame count. 207 When Driver sent wrong frame count to firmware. As this 208 particular command is sent to drive, FW is seeing continuous 209 chip resets and so the command will timeout. 210 2113. Add the new controller(1078DE) support to the driver 212 and Increase the max_wait to 60 from 10 in the controller 213 operational status. With this max_wait increase, driver will 214 make sure the FW will finish the pending cmd for KDUMP case. 215 2161 Release Date : Thur. Nov. 07 16:30:43 PST 2007 - 217 (emaild-id:megaraidlinux@lsi.com) 218 Sumant Patro 219 Bo Yang 220 2212 Current Version : 00.00.03.16 2223 Older Version : 00.00.03.15 223 2241. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 10. FW may take 225 a max of 60 seconds to respond to the INIT cmd. 226 2271 Release Date : Fri. Sep. 07 16:30:43 PST 2007 - 228 (emaild-id:megaraidlinux@lsi.com) 229 Sumant Patro 230 Bo Yang 231 2322 Current Version : 00.00.03.15 2333 Older Version : 00.00.03.14 234 2351. Added module parameter "poll_mode_io" to support for "polling" 236 (reduced interrupt operation). In this mode, IO completion 237 interrupts are delayed. At the end of initiating IOs, the 238 driver schedules for cmd completion if there are pending cmds 239 to be completed. A timer-based interrupt has also been added 240 to prevent IO completion processing from being delayed 241 indefinitely in the case that no new IOs are initiated. 242 2431 Release Date : Fri. Sep. 07 16:30:43 PST 2007 - 244 (emaild-id:megaraidlinux@lsi.com) 245 Sumant Patro 246 Bo Yang 247 2482 Current Version : 00.00.03.14 2493 Older Version : 00.00.03.13 250 2511. Setting the max_sectors_per_req based on max SGL supported by the 252 FW. Prior versions calculated this value from controller info 253 (max_sectors_1, max_sectors_2). For certain controllers/FW, 254 this was resulting in a value greater than max SGL supported 255 by the FW. Issue was first reported by users running LUKS+XFS 256 with megaraid_sas. Thanks to RB for providing the logs and 257 duplication steps that helped to get to the root cause of the 258 issue. 2. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 259 10. FW may take a max of 60 seconds to respond to the INIT 260 cmd. 261 2621 Release Date : Fri. June. 15 16:30:43 PST 2007 - 263 (emaild-id:megaraidlinux@lsi.com) 264 Sumant Patro 265 Bo Yang 266 2672 Current Version : 00.00.03.13 2683 Older Version : 00.00.03.12 269 2701. Added the megasas_reset_timer routine to intercept cmd timeout and throttle io. 271 272On Fri, 2007-03-16 at 16:44 -0600, James Bottomley wrote: 273It looks like megaraid_sas at least needs this to throttle its commands 274> as they begin to time out. The code keeps the existing transport 275> template use of eh_timed_out (and allows the transport to override the 276> host if they both have this callback). 277> 278> James 279 2801 Release Date : Sat May. 12 16:30:43 PST 2007 - 281 (emaild-id:megaraidlinux@lsi.com) 282 Sumant Patro 283 Bo Yang 284 2852 Current Version : 00.00.03.12 2863 Older Version : 00.00.03.11 287 2881. When MegaSAS driver receives reset call from OS, driver waits in reset 289routine for max 3 minutes for all pending command completion. Now driver will 290call completion routine every 5 seconds from the reset routine instead of 291waiting for depending on cmd completion from isr path. 292 2931 Release Date : Mon Apr. 30 10:25:52 PST 2007 - 294 (emaild-id:megaraidlinux@lsi.com) 295 Sumant Patro 296 Bo Yang 297 2982 Current Version : 00.00.03.11 2993 Older Version : 00.00.03.09 300 301 1. Memory Manager for IOCTL removed for 2.6 kernels. 302 pci_alloc_consistent replaced by dma_alloc_coherent. With this 303 change there is no need of memory manager in the driver code 304 305 On Wed, 2007-02-07 at 13:30 -0800, Andrew Morton wrote: 306 > I suspect all this horror is due to stupidity in the DMA API. 307 > 308 > pci_alloc_consistent() just goes and assumes GFP_ATOMIC, whereas 309 > the caller (megasas_mgmt_fw_ioctl) would have been perfectly happy 310 > to use GFP_KERNEL. 311 > 312 > I bet this fixes it 313 314 It does, but the DMA API was expanded to cope with this exact case, so 315 use dma_alloc_coherent() directly in the megaraid code instead. The dev 316 is just &pci_dev->dev. 317 318 James <James.Bottomley@SteelEye.com> 319 320 3. SYNCHRONIZE_CACHE is not supported by FW and thus blocked by driver. 321 4. Hibernation support added 322 5. Performing diskdump while running IO in RHEL 4 was failing. Fixed. 323 3241 Release Date : Fri Feb. 09 14:36:28 PST 2007 - 325 (emaild-id:megaraidlinux@lsi.com) 326 Sumant Patro 327 Bo Yang 328 3292 Current Version : 00.00.03.09 3303 Older Version : 00.00.03.08 331 332i. Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors 333 334 The driver now waits for 10 seconds to elapse instead of 5 (as in 335 previous release) to resume IO. 336 3371 Release Date : Mon Feb. 05 11:35:24 PST 2007 - 338 (emaild-id:megaraidlinux@lsi.com) 339 Sumant Patro 340 Bo Yang 3412 Current Version : 00.00.03.08 3423 Older Version : 00.00.03.07 343 344i. Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors 345 346 Fix: The driver is now throttling IO. 347 Checks added in megasas_queue_command to know if FW is able to 348 process commands within timeout period. If number of retries 349 is 2 or greater,the driver stops sending cmd to FW temporarily. IO is 350 resumed if pending cmd count reduces to 16 or 5 seconds has elapsed 351 from the time cmds were last sent to FW. 352 353ii. FW enables WCE bit in Mode Sense cmd for drives that are configured 354 as WriteBack. The OS may send "SYNCHRONIZE_CACHE" cmd when Logical 355 Disks are exposed with WCE=1. User is advised to enable Write Back 356 mode only when the controller has battery backup. At this time 357 Synhronize cache is not supported by the FW. Driver will short-cycle 358 the cmd and return success without sending down to FW. 359 3601 Release Date : Sun Jan. 14 11:21:32 PDT 2007 - 361 Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang 3622 Current Version : 00.00.03.07 3633 Older Version : 00.00.03.06 364 365i. bios_param entry added in scsi_host_template that returns disk geometry 366 information. 367 3681 Release Date : Fri Oct 20 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang 3692 Current Version : 00.00.03.06 3703 Older Version : 00.00.03.05 371 3721. 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. 3732. Added check in megasas_queue_command and dpc/isr routine to see if we have already declared adapter dead 374 (hw_crit_error=1). If hw_crit_error==1, now we donot accept any processing of pending cmds/accept any cmd from OS 375 3761 Release Date : Mon Oct 02 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com> 3772 Current Version : 00.00.03.05 3783 Older Version : 00.00.03.04 379 380i. PCI_DEVICE macro used 381 382 Convert the pci_device_id-table of the megaraid_sas-driver to the PCI_DEVICE-macro, to safe some lines. 383 384 - Henrik Kretzschmar <henne@nachtwindheim.de> 385ii. All compiler warnings removed 386iii. megasas_ctrl_info struct reverted to 3.02 release 387iv. Default value of megasas_dbg_lvl set to 0 388v. Removing in megasas_exit the sysfs entry created for megasas_dbg_lvl 389vi. In megasas_teardown_frame_pool(), cmd->frame was passed instead of 390 cmd->sense to pci_pool_free. Fixed. Bug was pointed out by 391 Eric Sesterhenn 392 3931 Release Date : Wed Sep 13 14:22:51 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com> 3942 Current Version : 00.00.03.04 3953 Older Version : 00.00.03.03 396 397i. Added Reboot notify 398ii. Reduced by 1 max cmds sent to FW from Driver to make the reply_q_sz same 399 as Max Cmds FW can support 400 4011 Release Date : Tue Aug 22 16:33:14 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4022 Current Version : 00.00.03.03 4033 Older Version : 00.00.03.02 404 405i. Send stop adapter to FW & Dump pending FW cmds before declaring adapter dead. 406 New varible added to set dbg level. 407ii. Disable interrupt made as fn pointer as they are different for 1068 / 1078 408iii. Frame count optimization. Main frame can contain 2 SGE for 64 bit SGLs and 409 3 SGE for 32 bit SGL 410iv. Tasklet added for cmd completion 411v. 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. 412vi. megasas_ctrl_prop structure updated (based on FW struct) 413vii. Added print : FW now in Ready State during initialization 414 4151 Release Date : Sun Aug 06 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4162 Current Version : 00.00.03.02 4173 Older Version : 00.00.03.01 418 419i. Added FW tranistion state for Hotplug scenario 420 4211 Release Date : Sun May 14 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4222 Current Version : 00.00.03.01 4233 Older Version : 00.00.02.04 424 425i. Added support for ZCR controller. 426 427 New device id 0x413 added. 428 429ii. Bug fix : Disable controller interrupt before firing INIT cmd to FW. 430 431 Interrupt is enabled after required initialization is over. 432 This is done to ensure that driver is ready to handle interrupts when 433 it is generated by the controller. 434 435 -Sumant Patro <Sumant.Patro@lsil.com> 436 4371 Release Date : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4382 Current Version : 00.00.02.04 4393 Older Version : 00.00.02.04 440 441i. Remove superflous instance_lock 442 443 gets rid of the otherwise superflous instance_lock and avoids an unsave 444 unsynchronized access in the error handler. 445 446 - Christoph Hellwig <hch@lst.de> 447 448 4491 Release Date : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4502 Current Version : 00.00.02.04 4513 Older Version : 00.00.02.04 452 453i. Support for 1078 type (ppc IOP) controller, device id : 0x60 added. 454 During initialization, depending on the device id, the template members 455 are initialized with function pointers specific to the ppc or 456 xscale controllers. 457 458 -Sumant Patro <Sumant.Patro@lsil.com> 459 4601 Release Date : Fri Feb 03 14:16:25 PST 2006 - Sumant Patro 461 <Sumant.Patro@lsil.com> 4622 Current Version : 00.00.02.04 4633 Older Version : 00.00.02.02 464i. Register 16 byte CDB capability with scsi midlayer 465 466 "Ths patch properly registers the 16 byte command length capability of the 467 megaraid_sas controlled hardware with the scsi midlayer. All megaraid_sas 468 hardware supports 16 byte CDB's." 469 470 -Joshua Giles <joshua_giles@dell.com> 471 4721 Release Date : Mon Jan 23 14:09:01 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4732 Current Version : 00.00.02.02 4743 Older Version : 00.00.02.01 475 476i. New template defined to represent each family of controllers (identified by processor used). 477 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. 478 479 -Sumant Patro <Sumant.Patro@lsil.com> 480 4811 Release Date : Mon Dec 19 14:36:26 PST 2005 - Sumant Patro <Sumant.Patro@lsil.com> 4822 Current Version : 00.00.02.00-rc4 4833 Older Version : 00.00.02.01 484 485i. Code reorganized to remove code duplication in megasas_build_cmd. 486 487 "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" 488 489 - Christoph Hellwig <hch@lst.de> 490 491ii. Defined MEGASAS_IOC_FIRMWARE32 for code paths that handles 32 bit applications in 64 bit systems. 492 493 "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" 494 495 - Christoph Hellwig <hch@lst.de> 496