1Release Date : Wed. May 11, 2011 17:00:00 PST 2010 - 2 (emaild-id:megaraidlinux@lsi.com) 3 Adam Radford 4Current Version : 00.00.05.38-rc1 5Old Version : 00.00.05.34-rc1 6 1. Remove MSI-X black list, use MFI_REG_STATE.ready.msiEnable. 7 2. Remove un-used function megasas_return_cmd_for_smid(). 8 3. Check MFI_REG_STATE.fault.resetAdapter in megasas_reset_fusion(). 9 4. Disable interrupts/free_irq() in megasas_shutdown(). 10 5. Fix bug where AENs could be lost in probe() and resume(). 11 6. Convert 6,10,12 byte CDB's to 16 byte CDB for large LBA's for FastPath 12 IO. 13 7. Add 1078 OCR support. 14------------------------------------------------------------------------------- 15Release Date : Thu. Feb 24, 2011 17:00:00 PST 2010 - 16 (emaild-id:megaraidlinux@lsi.com) 17 Adam Radford 18Current Version : 00.00.05.34-rc1 19Old Version : 00.00.05.29-rc1 20 1. Fix some failure gotos from megasas_probe_one(), etc. 21 2. Add missing check_and_restore_queue_depth() call in 22 complete_cmd_fusion(). 23 3. Enable MSI-X before calling megasas_init_fw(). 24 4. Call tasklet_schedule() even if outbound_intr_status == 0 for MFI based 25 boards in MSI-X mode. 26 5. Fix megasas_probe_one() to clear PCI_MSIX_FLAGS_ENABLE in msi control 27 register in kdump kernel. 28 6. Fix megasas_get_cmd() to only print "Command pool empty" if 29 megasas_dbg_lvl is set. 30 7. Fix megasas_build_dcdb_fusion() to not filter by TYPE_DISK. 31 8. Fix megasas_build_dcdb_fusion() to use io_request->LUN[1] field. 32 9. Add MR_EVT_CFG_CLEARED to megasas_aen_polling(). 33 10. Fix tasklet_init() in megasas_init_fw() to use instancet->tasklet. 34 11. Fix fault state handling in megasas_transition_to_ready(). 35 12. Fix max_sectors setting for IEEE SGL's. 36 13. Fix iMR OCR support to work correctly. 37------------------------------------------------------------------------------- 38Release Date : Tues. Dec 14, 2010 17:00:00 PST 2010 - 39 (emaild-id:megaraidlinux@lsi.com) 40 Adam Radford 41Current Version : 00.00.05.29-rc1 42Old Version : 00.00.04.31-rc1 43 1. Rename megaraid_sas.c to megaraid_sas_base.c. 44 2. Update GPL headers. 45 3. Add MSI-X support and 'msix_disable' module parameter. 46 4. Use lowest memory bar (for SR-IOV VF support). 47 5. Add struct megasas_instance_temlate changes, and change all code to use 48 new instance entries: 49 50 irqreturn_t (*service_isr )(int irq, void *devp); 51 void (*tasklet)(unsigned long); 52 u32 (*init_adapter)(struct megasas_instance *); 53 u32 (*build_and_issue_cmd) (struct megasas_instance *, 54 struct scsi_cmnd *); 55 void (*issue_dcmd) (struct megasas_instance *instance, 56 struct megasas_cmd *cmd); 57 58 6. Add code to support MegaRAID 9265/9285 controllers device id (0x5b). 59------------------------------------------------------------------------------- 601 Release Date : Thur. May 03, 2010 09:12:45 PST 2009 - 61 (emaild-id:megaraidlinux@lsi.com) 62 Bo Yang 63 642 Current Version : 00.00.04.31-rc1 653 Older Version : 00.00.04.17.1-rc1 66 671. Add the Online Controller Reset (OCR) to the Driver. 68 OCR is the new feature for megaraid_sas driver which 69 will allow the fw to do the chip reset which will not 70 affact the OS behavious. 71 72 To add the OCR support, driver need to do: 73 a). reset the controller chips -- Xscale and Gen2 which 74 will change the function calls and add the reset function 75 related to this two chips. 76 77 b). during the reset, driver will store the pending cmds 78 which not returned by FW to driver's pending queue. Driver 79 will re-issue those pending cmds again to FW after the OCR 80 finished. 81 82 c). In driver's timeout routine, driver will report to 83 OS as reset. Also driver's queue routine will block the 84 cmds until the OCR finished. 85 86 d). in Driver's ISR routine, if driver get the FW state as 87 state change, FW in Failure status and FW support online controller 88 reset (OCR), driver will start to do the controller reset. 89 90 e). In driver's IOCTL routine, the application cmds will wait for the 91 OCR to finish, then issue the cmds to FW. 92 93 f). Before driver kill adapter, driver will do last chance of 94 OCR to see if driver can bring back the FW. 95 962. Add the support update flag to the driver to tell LSI megaraid_sas 97 application which driver will support the device update. So application 98 will not need to do the device update after application add/del the device 99 from the system. 1003. In driver's timeout routine, driver will do three time reset if fw is in 101 failed state. Driver will kill adapter if can't bring back FW after the 102 this three times reset. 1034. Add the input parameter max_sectors to 1MB support to our GEN2 controller. 104 customer can use the input paramenter max_sectors to add 1MB support to GEN2 105 controller. 106 1071 Release Date : Thur. Oct 29, 2009 09:12:45 PST 2009 - 108 (emaild-id:megaraidlinux@lsi.com) 109 Bo Yang 110 1112 Current Version : 00.00.04.17.1-rc1 1123 Older Version : 00.00.04.12 113 1141. Add the pad_0 in mfi frame structure to 0 to fix the 115 context value larger than 32bit value issue. 116 1172. Add the logic drive list to the driver. Driver will 118 keep the logic drive list internal after driver load. 119 1203. driver fixed the device update issue after get the AEN 121 PD delete/ADD, LD add/delete from FW. 122 1231 Release Date : Tues. July 28, 2009 10:12:45 PST 2009 - 124 (emaild-id:megaraidlinux@lsi.com) 125 Bo Yang 126 1272 Current Version : 00.00.04.12 1283 Older Version : 00.00.04.10 129 1301. Change the AEN sys PD update from scsi_scan to 131 scsi_add_device and scsi_remove_device. 1322. Takeoff the debug print-out in aen_polling routine. 133 1341 Release Date : Thur. July 02, 2009 10:12:45 PST 2009 - 135 (emaild-id:megaraidlinux@lsi.com) 136 Bo Yang 137 1382 Current Version : 00.00.04.10 1393 Older Version : 00.00.04.08 140 1411. Add the 3 mins timeout during the controller initialize. 1422. Add the fix for 64bit sense date errors. 143 1441 Release Date : Tues. May 05, 2009 10:12:45 PST 2009 - 145 (emaild-id:megaraidlinux@lsi.com) 146 Bo Yang 147 1482 Current Version : 00.00.04.08 1493 Older Version : 00.00.04.06 150 1511. Add the fix of pending in FW after deleted the logic drives. 1522. Add the fix of deallocating memory after get pdlist. 153 1541 Release Date : Tues. March 26, 2009 10:12:45 PST 2009 - 155 (emaild-id:megaraidlinux@lsi.com) 156 Bo Yang 157 1582 Current Version : 00.00.04.06 1593 Older Version : 00.00.04.04 160 1611. Add the fix of the driver cmd empty fix of the driver cmd empty. 1622. Add the fix of the driver MSM AEN CMD cause the system slow. 163 1641 Release Date : Tues. March 03, 2009 10:12:45 PST 2009 - 165 (emaild-id:megaraidlinux@lsi.com) 166 Bo Yang 167 1682 Current Version : 00.00.04.04 1693 Older Version : 00.00.04.01 170 1711. Add the Tape drive fix to the driver: If the command is for 172 the tape device, set the pthru timeout to the os layer timeout value. 173 1742. Add Poll_wait mechanism to Gen-2 Linux driv. 175 In the aen handler, driver needs to wakeup poll handler similar to 176 the way it raises SIGIO. 177 1783. Add new controller new SAS2 support to the driver. 179 1804. Report the unconfigured PD (system PD) to OS. 181 1825. Add the IEEE SGL support to the driver 183 1846. Reasign the Application cmds to SAS2 controller 185 1861 Release Date : Thur.July. 24 11:41:51 PST 2008 - 187 (emaild-id:megaraidlinux@lsi.com) 188 Sumant Patro 189 Bo Yang 190 1912 Current Version : 00.00.04.01 1923 Older Version : 00.00.03.22 193 1941. Add the new controller (0078, 0079) support to the driver 195 Those controllers are LSI's next generatation(gen2) SAS controllers. 196 1971 Release Date : Mon.June. 23 10:12:45 PST 2008 - 198 (emaild-id:megaraidlinux@lsi.com) 199 Sumant Patro 200 Bo Yang 201 2022 Current Version : 00.00.03.22 2033 Older Version : 00.00.03.20 204 2051. Add shutdown DCMD cmd to the shutdown routine to make FW shutdown proper. 2062. Unexpected interrupt occurs in HWR Linux driver, add the dumy readl pci flush will fix this issue. 207 2081 Release Date : Mon. March 10 11:02:31 PDT 2008 - 209 (emaild-id:megaraidlinux@lsi.com) 210 Sumant Patro 211 Bo Yang 212 2132 Current Version : 00.00.03.20-RC1 2143 Older Version : 00.00.03.16 215 2161. Rollback the sense info implementation 217 Sense buffer ptr data type in the ioctl path is reverted back 218 to u32 * as in previous versions of driver. 219 2202. Fixed the driver frame count. 221 When Driver sent wrong frame count to firmware. As this 222 particular command is sent to drive, FW is seeing continuous 223 chip resets and so the command will timeout. 224 2253. Add the new controller(1078DE) support to the driver 226 and Increase the max_wait to 60 from 10 in the controller 227 operational status. With this max_wait increase, driver will 228 make sure the FW will finish the pending cmd for KDUMP case. 229 2301 Release Date : Thur. Nov. 07 16:30:43 PST 2007 - 231 (emaild-id:megaraidlinux@lsi.com) 232 Sumant Patro 233 Bo Yang 234 2352 Current Version : 00.00.03.16 2363 Older Version : 00.00.03.15 237 2381. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 10. FW may take 239 a max of 60 seconds to respond to the INIT cmd. 240 2411 Release Date : Fri. Sep. 07 16:30:43 PST 2007 - 242 (emaild-id:megaraidlinux@lsi.com) 243 Sumant Patro 244 Bo Yang 245 2462 Current Version : 00.00.03.15 2473 Older Version : 00.00.03.14 248 2491. Added module parameter "poll_mode_io" to support for "polling" 250 (reduced interrupt operation). In this mode, IO completion 251 interrupts are delayed. At the end of initiating IOs, the 252 driver schedules for cmd completion if there are pending cmds 253 to be completed. A timer-based interrupt has also been added 254 to prevent IO completion processing from being delayed 255 indefinitely in the case that no new IOs are initiated. 256 2571 Release Date : Fri. Sep. 07 16:30:43 PST 2007 - 258 (emaild-id:megaraidlinux@lsi.com) 259 Sumant Patro 260 Bo Yang 261 2622 Current Version : 00.00.03.14 2633 Older Version : 00.00.03.13 264 2651. Setting the max_sectors_per_req based on max SGL supported by the 266 FW. Prior versions calculated this value from controller info 267 (max_sectors_1, max_sectors_2). For certain controllers/FW, 268 this was resulting in a value greater than max SGL supported 269 by the FW. Issue was first reported by users running LUKS+XFS 270 with megaraid_sas. Thanks to RB for providing the logs and 271 duplication steps that helped to get to the root cause of the 272 issue. 2. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 273 10. FW may take a max of 60 seconds to respond to the INIT 274 cmd. 275 2761 Release Date : Fri. June. 15 16:30:43 PST 2007 - 277 (emaild-id:megaraidlinux@lsi.com) 278 Sumant Patro 279 Bo Yang 280 2812 Current Version : 00.00.03.13 2823 Older Version : 00.00.03.12 283 2841. Added the megasas_reset_timer routine to intercept cmd timeout and throttle io. 285 286On Fri, 2007-03-16 at 16:44 -0600, James Bottomley wrote: 287It looks like megaraid_sas at least needs this to throttle its commands 288> as they begin to time out. The code keeps the existing transport 289> template use of eh_timed_out (and allows the transport to override the 290> host if they both have this callback). 291> 292> James 293 2941 Release Date : Sat May. 12 16:30:43 PST 2007 - 295 (emaild-id:megaraidlinux@lsi.com) 296 Sumant Patro 297 Bo Yang 298 2992 Current Version : 00.00.03.12 3003 Older Version : 00.00.03.11 301 3021. When MegaSAS driver receives reset call from OS, driver waits in reset 303routine for max 3 minutes for all pending command completion. Now driver will 304call completion routine every 5 seconds from the reset routine instead of 305waiting for depending on cmd completion from isr path. 306 3071 Release Date : Mon Apr. 30 10:25:52 PST 2007 - 308 (emaild-id:megaraidlinux@lsi.com) 309 Sumant Patro 310 Bo Yang 311 3122 Current Version : 00.00.03.11 3133 Older Version : 00.00.03.09 314 315 1. Memory Manager for IOCTL removed for 2.6 kernels. 316 pci_alloc_consistent replaced by dma_alloc_coherent. With this 317 change there is no need of memory manager in the driver code 318 319 On Wed, 2007-02-07 at 13:30 -0800, Andrew Morton wrote: 320 > I suspect all this horror is due to stupidity in the DMA API. 321 > 322 > pci_alloc_consistent() just goes and assumes GFP_ATOMIC, whereas 323 > the caller (megasas_mgmt_fw_ioctl) would have been perfectly happy 324 > to use GFP_KERNEL. 325 > 326 > I bet this fixes it 327 328 It does, but the DMA API was expanded to cope with this exact case, so 329 use dma_alloc_coherent() directly in the megaraid code instead. The dev 330 is just &pci_dev->dev. 331 332 James <James.Bottomley@SteelEye.com> 333 334 3. SYNCHRONIZE_CACHE is not supported by FW and thus blocked by driver. 335 4. Hibernation support added 336 5. Performing diskdump while running IO in RHEL 4 was failing. Fixed. 337 3381 Release Date : Fri Feb. 09 14:36:28 PST 2007 - 339 (emaild-id:megaraidlinux@lsi.com) 340 Sumant Patro 341 Bo Yang 342 3432 Current Version : 00.00.03.09 3443 Older Version : 00.00.03.08 345 346i. Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors 347 348 The driver now waits for 10 seconds to elapse instead of 5 (as in 349 previous release) to resume IO. 350 3511 Release Date : Mon Feb. 05 11:35:24 PST 2007 - 352 (emaild-id:megaraidlinux@lsi.com) 353 Sumant Patro 354 Bo Yang 3552 Current Version : 00.00.03.08 3563 Older Version : 00.00.03.07 357 358i. Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors 359 360 Fix: The driver is now throttling IO. 361 Checks added in megasas_queue_command to know if FW is able to 362 process commands within timeout period. If number of retries 363 is 2 or greater,the driver stops sending cmd to FW temporarily. IO is 364 resumed if pending cmd count reduces to 16 or 5 seconds has elapsed 365 from the time cmds were last sent to FW. 366 367ii. FW enables WCE bit in Mode Sense cmd for drives that are configured 368 as WriteBack. The OS may send "SYNCHRONIZE_CACHE" cmd when Logical 369 Disks are exposed with WCE=1. User is advised to enable Write Back 370 mode only when the controller has battery backup. At this time 371 Synhronize cache is not supported by the FW. Driver will short-cycle 372 the cmd and return success without sending down to FW. 373 3741 Release Date : Sun Jan. 14 11:21:32 PDT 2007 - 375 Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang 3762 Current Version : 00.00.03.07 3773 Older Version : 00.00.03.06 378 379i. bios_param entry added in scsi_host_template that returns disk geometry 380 information. 381 3821 Release Date : Fri Oct 20 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang 3832 Current Version : 00.00.03.06 3843 Older Version : 00.00.03.05 385 3861. 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. 3872. Added check in megasas_queue_command and dpc/isr routine to see if we have already declared adapter dead 388 (hw_crit_error=1). If hw_crit_error==1, now we donot accept any processing of pending cmds/accept any cmd from OS 389 3901 Release Date : Mon Oct 02 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com> 3912 Current Version : 00.00.03.05 3923 Older Version : 00.00.03.04 393 394i. PCI_DEVICE macro used 395 396 Convert the pci_device_id-table of the megaraid_sas-driver to the PCI_DEVICE-macro, to safe some lines. 397 398 - Henrik Kretzschmar <henne@nachtwindheim.de> 399ii. All compiler warnings removed 400iii. megasas_ctrl_info struct reverted to 3.02 release 401iv. Default value of megasas_dbg_lvl set to 0 402v. Removing in megasas_exit the sysfs entry created for megasas_dbg_lvl 403vi. In megasas_teardown_frame_pool(), cmd->frame was passed instead of 404 cmd->sense to pci_pool_free. Fixed. Bug was pointed out by 405 Eric Sesterhenn 406 4071 Release Date : Wed Sep 13 14:22:51 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4082 Current Version : 00.00.03.04 4093 Older Version : 00.00.03.03 410 411i. Added Reboot notify 412ii. Reduced by 1 max cmds sent to FW from Driver to make the reply_q_sz same 413 as Max Cmds FW can support 414 4151 Release Date : Tue Aug 22 16:33:14 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4162 Current Version : 00.00.03.03 4173 Older Version : 00.00.03.02 418 419i. Send stop adapter to FW & Dump pending FW cmds before declaring adapter dead. 420 New varible added to set dbg level. 421ii. Disable interrupt made as fn pointer as they are different for 1068 / 1078 422iii. Frame count optimization. Main frame can contain 2 SGE for 64 bit SGLs and 423 3 SGE for 32 bit SGL 424iv. Tasklet added for cmd completion 425v. 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. 426vi. megasas_ctrl_prop structure updated (based on FW struct) 427vii. Added print : FW now in Ready State during initialization 428 4291 Release Date : Sun Aug 06 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4302 Current Version : 00.00.03.02 4313 Older Version : 00.00.03.01 432 433i. Added FW tranistion state for Hotplug scenario 434 4351 Release Date : Sun May 14 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4362 Current Version : 00.00.03.01 4373 Older Version : 00.00.02.04 438 439i. Added support for ZCR controller. 440 441 New device id 0x413 added. 442 443ii. Bug fix : Disable controller interrupt before firing INIT cmd to FW. 444 445 Interrupt is enabled after required initialization is over. 446 This is done to ensure that driver is ready to handle interrupts when 447 it is generated by the controller. 448 449 -Sumant Patro <Sumant.Patro@lsil.com> 450 4511 Release Date : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4522 Current Version : 00.00.02.04 4533 Older Version : 00.00.02.04 454 455i. Remove superflous instance_lock 456 457 gets rid of the otherwise superflous instance_lock and avoids an unsave 458 unsynchronized access in the error handler. 459 460 - Christoph Hellwig <hch@lst.de> 461 462 4631 Release Date : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4642 Current Version : 00.00.02.04 4653 Older Version : 00.00.02.04 466 467i. Support for 1078 type (ppc IOP) controller, device id : 0x60 added. 468 During initialization, depending on the device id, the template members 469 are initialized with function pointers specific to the ppc or 470 xscale controllers. 471 472 -Sumant Patro <Sumant.Patro@lsil.com> 473 4741 Release Date : Fri Feb 03 14:16:25 PST 2006 - Sumant Patro 475 <Sumant.Patro@lsil.com> 4762 Current Version : 00.00.02.04 4773 Older Version : 00.00.02.02 478i. Register 16 byte CDB capability with scsi midlayer 479 480 "Ths patch properly registers the 16 byte command length capability of the 481 megaraid_sas controlled hardware with the scsi midlayer. All megaraid_sas 482 hardware supports 16 byte CDB's." 483 484 -Joshua Giles <joshua_giles@dell.com> 485 4861 Release Date : Mon Jan 23 14:09:01 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com> 4872 Current Version : 00.00.02.02 4883 Older Version : 00.00.02.01 489 490i. New template defined to represent each family of controllers (identified by processor used). 491 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. 492 493 -Sumant Patro <Sumant.Patro@lsil.com> 494 4951 Release Date : Mon Dec 19 14:36:26 PST 2005 - Sumant Patro <Sumant.Patro@lsil.com> 4962 Current Version : 00.00.02.00-rc4 4973 Older Version : 00.00.02.01 498 499i. Code reorganized to remove code duplication in megasas_build_cmd. 500 501 "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" 502 503 - Christoph Hellwig <hch@lst.de> 504 505ii. Defined MEGASAS_IOC_FIRMWARE32 for code paths that handles 32 bit applications in 64 bit systems. 506 507 "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" 508 509 - Christoph Hellwig <hch@lst.de> 510