ChangeLog.megaraid_sas 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. Release Date : Tues. Dec 14, 2010 17:00:00 PST 2010 -
  2. (emaild-id:megaraidlinux@lsi.com)
  3. Adam Radford
  4. Current Version : 00.00.05.29-rc1
  5. Old Version : 00.00.04.31-rc1
  6. 1. Rename megaraid_sas.c to megaraid_sas_base.c.
  7. 2. Update GPL headers.
  8. 3. Add MSI-X support and 'msix_disable' module parameter.
  9. 4. Use lowest memory bar (for SR-IOV VF support).
  10. 5. Add struct megasas_instance_temlate changes, and change all code to use
  11. new instance entries:
  12. irqreturn_t (*service_isr )(int irq, void *devp);
  13. void (*tasklet)(unsigned long);
  14. u32 (*init_adapter)(struct megasas_instance *);
  15. u32 (*build_and_issue_cmd) (struct megasas_instance *,
  16. struct scsi_cmnd *);
  17. void (*issue_dcmd) (struct megasas_instance *instance,
  18. struct megasas_cmd *cmd);
  19. 6. Add code to support MegaRAID 9265/9285 controllers device id (0x5b).
  20. -------------------------------------------------------------------------------
  21. 1 Release Date : Thur. May 03, 2010 09:12:45 PST 2009 -
  22. (emaild-id:megaraidlinux@lsi.com)
  23. Bo Yang
  24. 2 Current Version : 00.00.04.31-rc1
  25. 3 Older Version : 00.00.04.17.1-rc1
  26. 1. Add the Online Controller Reset (OCR) to the Driver.
  27. OCR is the new feature for megaraid_sas driver which
  28. will allow the fw to do the chip reset which will not
  29. affact the OS behavious.
  30. To add the OCR support, driver need to do:
  31. a). reset the controller chips -- Xscale and Gen2 which
  32. will change the function calls and add the reset function
  33. related to this two chips.
  34. b). during the reset, driver will store the pending cmds
  35. which not returned by FW to driver's pending queue. Driver
  36. will re-issue those pending cmds again to FW after the OCR
  37. finished.
  38. c). In driver's timeout routine, driver will report to
  39. OS as reset. Also driver's queue routine will block the
  40. cmds until the OCR finished.
  41. d). in Driver's ISR routine, if driver get the FW state as
  42. state change, FW in Failure status and FW support online controller
  43. reset (OCR), driver will start to do the controller reset.
  44. e). In driver's IOCTL routine, the application cmds will wait for the
  45. OCR to finish, then issue the cmds to FW.
  46. f). Before driver kill adapter, driver will do last chance of
  47. OCR to see if driver can bring back the FW.
  48. 2. Add the support update flag to the driver to tell LSI megaraid_sas
  49. application which driver will support the device update. So application
  50. will not need to do the device update after application add/del the device
  51. from the system.
  52. 3. In driver's timeout routine, driver will do three time reset if fw is in
  53. failed state. Driver will kill adapter if can't bring back FW after the
  54. this three times reset.
  55. 4. Add the input parameter max_sectors to 1MB support to our GEN2 controller.
  56. customer can use the input paramenter max_sectors to add 1MB support to GEN2
  57. controller.
  58. 1 Release Date : Thur. Oct 29, 2009 09:12:45 PST 2009 -
  59. (emaild-id:megaraidlinux@lsi.com)
  60. Bo Yang
  61. 2 Current Version : 00.00.04.17.1-rc1
  62. 3 Older Version : 00.00.04.12
  63. 1. Add the pad_0 in mfi frame structure to 0 to fix the
  64. context value larger than 32bit value issue.
  65. 2. Add the logic drive list to the driver. Driver will
  66. keep the logic drive list internal after driver load.
  67. 3. driver fixed the device update issue after get the AEN
  68. PD delete/ADD, LD add/delete from FW.
  69. 1 Release Date : Tues. July 28, 2009 10:12:45 PST 2009 -
  70. (emaild-id:megaraidlinux@lsi.com)
  71. Bo Yang
  72. 2 Current Version : 00.00.04.12
  73. 3 Older Version : 00.00.04.10
  74. 1. Change the AEN sys PD update from scsi_scan to
  75. scsi_add_device and scsi_remove_device.
  76. 2. Takeoff the debug print-out in aen_polling routine.
  77. 1 Release Date : Thur. July 02, 2009 10:12:45 PST 2009 -
  78. (emaild-id:megaraidlinux@lsi.com)
  79. Bo Yang
  80. 2 Current Version : 00.00.04.10
  81. 3 Older Version : 00.00.04.08
  82. 1. Add the 3 mins timeout during the controller initialize.
  83. 2. Add the fix for 64bit sense date errors.
  84. 1 Release Date : Tues. May 05, 2009 10:12:45 PST 2009 -
  85. (emaild-id:megaraidlinux@lsi.com)
  86. Bo Yang
  87. 2 Current Version : 00.00.04.08
  88. 3 Older Version : 00.00.04.06
  89. 1. Add the fix of pending in FW after deleted the logic drives.
  90. 2. Add the fix of deallocating memory after get pdlist.
  91. 1 Release Date : Tues. March 26, 2009 10:12:45 PST 2009 -
  92. (emaild-id:megaraidlinux@lsi.com)
  93. Bo Yang
  94. 2 Current Version : 00.00.04.06
  95. 3 Older Version : 00.00.04.04
  96. 1. Add the fix of the driver cmd empty fix of the driver cmd empty.
  97. 2. Add the fix of the driver MSM AEN CMD cause the system slow.
  98. 1 Release Date : Tues. March 03, 2009 10:12:45 PST 2009 -
  99. (emaild-id:megaraidlinux@lsi.com)
  100. Bo Yang
  101. 2 Current Version : 00.00.04.04
  102. 3 Older Version : 00.00.04.01
  103. 1. Add the Tape drive fix to the driver: If the command is for
  104. the tape device, set the pthru timeout to the os layer timeout value.
  105. 2. Add Poll_wait mechanism to Gen-2 Linux driv.
  106. In the aen handler, driver needs to wakeup poll handler similar to
  107. the way it raises SIGIO.
  108. 3. Add new controller new SAS2 support to the driver.
  109. 4. Report the unconfigured PD (system PD) to OS.
  110. 5. Add the IEEE SGL support to the driver
  111. 6. Reasign the Application cmds to SAS2 controller
  112. 1 Release Date : Thur.July. 24 11:41:51 PST 2008 -
  113. (emaild-id:megaraidlinux@lsi.com)
  114. Sumant Patro
  115. Bo Yang
  116. 2 Current Version : 00.00.04.01
  117. 3 Older Version : 00.00.03.22
  118. 1. Add the new controller (0078, 0079) support to the driver
  119. Those controllers are LSI's next generatation(gen2) SAS controllers.
  120. 1 Release Date : Mon.June. 23 10:12:45 PST 2008 -
  121. (emaild-id:megaraidlinux@lsi.com)
  122. Sumant Patro
  123. Bo Yang
  124. 2 Current Version : 00.00.03.22
  125. 3 Older Version : 00.00.03.20
  126. 1. Add shutdown DCMD cmd to the shutdown routine to make FW shutdown proper.
  127. 2. Unexpected interrupt occurs in HWR Linux driver, add the dumy readl pci flush will fix this issue.
  128. 1 Release Date : Mon. March 10 11:02:31 PDT 2008 -
  129. (emaild-id:megaraidlinux@lsi.com)
  130. Sumant Patro
  131. Bo Yang
  132. 2 Current Version : 00.00.03.20-RC1
  133. 3 Older Version : 00.00.03.16
  134. 1. Rollback the sense info implementation
  135. Sense buffer ptr data type in the ioctl path is reverted back
  136. to u32 * as in previous versions of driver.
  137. 2. Fixed the driver frame count.
  138. When Driver sent wrong frame count to firmware. As this
  139. particular command is sent to drive, FW is seeing continuous
  140. chip resets and so the command will timeout.
  141. 3. Add the new controller(1078DE) support to the driver
  142. and Increase the max_wait to 60 from 10 in the controller
  143. operational status. With this max_wait increase, driver will
  144. make sure the FW will finish the pending cmd for KDUMP case.
  145. 1 Release Date : Thur. Nov. 07 16:30:43 PST 2007 -
  146. (emaild-id:megaraidlinux@lsi.com)
  147. Sumant Patro
  148. Bo Yang
  149. 2 Current Version : 00.00.03.16
  150. 3 Older Version : 00.00.03.15
  151. 1. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from 10. FW may take
  152. a max of 60 seconds to respond to the INIT cmd.
  153. 1 Release Date : Fri. Sep. 07 16:30:43 PST 2007 -
  154. (emaild-id:megaraidlinux@lsi.com)
  155. Sumant Patro
  156. Bo Yang
  157. 2 Current Version : 00.00.03.15
  158. 3 Older Version : 00.00.03.14
  159. 1. Added module parameter "poll_mode_io" to support for "polling"
  160. (reduced interrupt operation). In this mode, IO completion
  161. interrupts are delayed. At the end of initiating IOs, the
  162. driver schedules for cmd completion if there are pending cmds
  163. to be completed. A timer-based interrupt has also been added
  164. to prevent IO completion processing from being delayed
  165. indefinitely in the case that no new IOs are initiated.
  166. 1 Release Date : Fri. Sep. 07 16:30:43 PST 2007 -
  167. (emaild-id:megaraidlinux@lsi.com)
  168. Sumant Patro
  169. Bo Yang
  170. 2 Current Version : 00.00.03.14
  171. 3 Older Version : 00.00.03.13
  172. 1. Setting the max_sectors_per_req based on max SGL supported by the
  173. FW. Prior versions calculated this value from controller info
  174. (max_sectors_1, max_sectors_2). For certain controllers/FW,
  175. this was resulting in a value greater than max SGL supported
  176. by the FW. Issue was first reported by users running LUKS+XFS
  177. with megaraid_sas. Thanks to RB for providing the logs and
  178. duplication steps that helped to get to the root cause of the
  179. issue. 2. Increased MFI_POLL_TIMEOUT_SECS to 60 seconds from
  180. 10. FW may take a max of 60 seconds to respond to the INIT
  181. cmd.
  182. 1 Release Date : Fri. June. 15 16:30:43 PST 2007 -
  183. (emaild-id:megaraidlinux@lsi.com)
  184. Sumant Patro
  185. Bo Yang
  186. 2 Current Version : 00.00.03.13
  187. 3 Older Version : 00.00.03.12
  188. 1. Added the megasas_reset_timer routine to intercept cmd timeout and throttle io.
  189. On Fri, 2007-03-16 at 16:44 -0600, James Bottomley wrote:
  190. It looks like megaraid_sas at least needs this to throttle its commands
  191. > as they begin to time out. The code keeps the existing transport
  192. > template use of eh_timed_out (and allows the transport to override the
  193. > host if they both have this callback).
  194. >
  195. > James
  196. 1 Release Date : Sat May. 12 16:30:43 PST 2007 -
  197. (emaild-id:megaraidlinux@lsi.com)
  198. Sumant Patro
  199. Bo Yang
  200. 2 Current Version : 00.00.03.12
  201. 3 Older Version : 00.00.03.11
  202. 1. When MegaSAS driver receives reset call from OS, driver waits in reset
  203. routine for max 3 minutes for all pending command completion. Now driver will
  204. call completion routine every 5 seconds from the reset routine instead of
  205. waiting for depending on cmd completion from isr path.
  206. 1 Release Date : Mon Apr. 30 10:25:52 PST 2007 -
  207. (emaild-id:megaraidlinux@lsi.com)
  208. Sumant Patro
  209. Bo Yang
  210. 2 Current Version : 00.00.03.11
  211. 3 Older Version : 00.00.03.09
  212. 1. Memory Manager for IOCTL removed for 2.6 kernels.
  213. pci_alloc_consistent replaced by dma_alloc_coherent. With this
  214. change there is no need of memory manager in the driver code
  215. On Wed, 2007-02-07 at 13:30 -0800, Andrew Morton wrote:
  216. > I suspect all this horror is due to stupidity in the DMA API.
  217. >
  218. > pci_alloc_consistent() just goes and assumes GFP_ATOMIC, whereas
  219. > the caller (megasas_mgmt_fw_ioctl) would have been perfectly happy
  220. > to use GFP_KERNEL.
  221. >
  222. > I bet this fixes it
  223. It does, but the DMA API was expanded to cope with this exact case, so
  224. use dma_alloc_coherent() directly in the megaraid code instead. The dev
  225. is just &pci_dev->dev.
  226. James <James.Bottomley@SteelEye.com>
  227. 3. SYNCHRONIZE_CACHE is not supported by FW and thus blocked by driver.
  228. 4. Hibernation support added
  229. 5. Performing diskdump while running IO in RHEL 4 was failing. Fixed.
  230. 1 Release Date : Fri Feb. 09 14:36:28 PST 2007 -
  231. (emaild-id:megaraidlinux@lsi.com)
  232. Sumant Patro
  233. Bo Yang
  234. 2 Current Version : 00.00.03.09
  235. 3 Older Version : 00.00.03.08
  236. i. Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
  237. The driver now waits for 10 seconds to elapse instead of 5 (as in
  238. previous release) to resume IO.
  239. 1 Release Date : Mon Feb. 05 11:35:24 PST 2007 -
  240. (emaild-id:megaraidlinux@lsi.com)
  241. Sumant Patro
  242. Bo Yang
  243. 2 Current Version : 00.00.03.08
  244. 3 Older Version : 00.00.03.07
  245. i. Under heavy IO mid-layer prints "DRIVER_TIMEOUT" errors
  246. Fix: The driver is now throttling IO.
  247. Checks added in megasas_queue_command to know if FW is able to
  248. process commands within timeout period. If number of retries
  249. is 2 or greater,the driver stops sending cmd to FW temporarily. IO is
  250. resumed if pending cmd count reduces to 16 or 5 seconds has elapsed
  251. from the time cmds were last sent to FW.
  252. ii. FW enables WCE bit in Mode Sense cmd for drives that are configured
  253. as WriteBack. The OS may send "SYNCHRONIZE_CACHE" cmd when Logical
  254. Disks are exposed with WCE=1. User is advised to enable Write Back
  255. mode only when the controller has battery backup. At this time
  256. Synhronize cache is not supported by the FW. Driver will short-cycle
  257. the cmd and return success without sending down to FW.
  258. 1 Release Date : Sun Jan. 14 11:21:32 PDT 2007 -
  259. Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
  260. 2 Current Version : 00.00.03.07
  261. 3 Older Version : 00.00.03.06
  262. i. bios_param entry added in scsi_host_template that returns disk geometry
  263. information.
  264. 1 Release Date : Fri Oct 20 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
  265. 2 Current Version : 00.00.03.06
  266. 3 Older Version : 00.00.03.05
  267. 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.
  268. 2. Added check in megasas_queue_command and dpc/isr routine to see if we have already declared adapter dead
  269. (hw_crit_error=1). If hw_crit_error==1, now we donot accept any processing of pending cmds/accept any cmd from OS
  270. 1 Release Date : Mon Oct 02 11:21:32 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
  271. 2 Current Version : 00.00.03.05
  272. 3 Older Version : 00.00.03.04
  273. i. PCI_DEVICE macro used
  274. Convert the pci_device_id-table of the megaraid_sas-driver to the PCI_DEVICE-macro, to safe some lines.
  275. - Henrik Kretzschmar <henne@nachtwindheim.de>
  276. ii. All compiler warnings removed
  277. iii. megasas_ctrl_info struct reverted to 3.02 release
  278. iv. Default value of megasas_dbg_lvl set to 0
  279. v. Removing in megasas_exit the sysfs entry created for megasas_dbg_lvl
  280. vi. In megasas_teardown_frame_pool(), cmd->frame was passed instead of
  281. cmd->sense to pci_pool_free. Fixed. Bug was pointed out by
  282. Eric Sesterhenn
  283. 1 Release Date : Wed Sep 13 14:22:51 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
  284. 2 Current Version : 00.00.03.04
  285. 3 Older Version : 00.00.03.03
  286. i. Added Reboot notify
  287. ii. Reduced by 1 max cmds sent to FW from Driver to make the reply_q_sz same
  288. as Max Cmds FW can support
  289. 1 Release Date : Tue Aug 22 16:33:14 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
  290. 2 Current Version : 00.00.03.03
  291. 3 Older Version : 00.00.03.02
  292. i. Send stop adapter to FW & Dump pending FW cmds before declaring adapter dead.
  293. New varible added to set dbg level.
  294. ii. Disable interrupt made as fn pointer as they are different for 1068 / 1078
  295. iii. Frame count optimization. Main frame can contain 2 SGE for 64 bit SGLs and
  296. 3 SGE for 32 bit SGL
  297. iv. Tasklet added for cmd completion
  298. 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.
  299. vi. megasas_ctrl_prop structure updated (based on FW struct)
  300. vii. Added print : FW now in Ready State during initialization
  301. 1 Release Date : Sun Aug 06 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
  302. 2 Current Version : 00.00.03.02
  303. 3 Older Version : 00.00.03.01
  304. i. Added FW tranistion state for Hotplug scenario
  305. 1 Release Date : Sun May 14 22:49:52 PDT 2006 - Sumant Patro <Sumant.Patro@lsil.com>
  306. 2 Current Version : 00.00.03.01
  307. 3 Older Version : 00.00.02.04
  308. i. Added support for ZCR controller.
  309. New device id 0x413 added.
  310. ii. Bug fix : Disable controller interrupt before firing INIT cmd to FW.
  311. Interrupt is enabled after required initialization is over.
  312. This is done to ensure that driver is ready to handle interrupts when
  313. it is generated by the controller.
  314. -Sumant Patro <Sumant.Patro@lsil.com>
  315. 1 Release Date : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
  316. 2 Current Version : 00.00.02.04
  317. 3 Older Version : 00.00.02.04
  318. i. Remove superflous instance_lock
  319. gets rid of the otherwise superflous instance_lock and avoids an unsave
  320. unsynchronized access in the error handler.
  321. - Christoph Hellwig <hch@lst.de>
  322. 1 Release Date : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
  323. 2 Current Version : 00.00.02.04
  324. 3 Older Version : 00.00.02.04
  325. i. Support for 1078 type (ppc IOP) controller, device id : 0x60 added.
  326. During initialization, depending on the device id, the template members
  327. are initialized with function pointers specific to the ppc or
  328. xscale controllers.
  329. -Sumant Patro <Sumant.Patro@lsil.com>
  330. 1 Release Date : Fri Feb 03 14:16:25 PST 2006 - Sumant Patro
  331. <Sumant.Patro@lsil.com>
  332. 2 Current Version : 00.00.02.04
  333. 3 Older Version : 00.00.02.02
  334. i. Register 16 byte CDB capability with scsi midlayer
  335. "Ths patch properly registers the 16 byte command length capability of the
  336. megaraid_sas controlled hardware with the scsi midlayer. All megaraid_sas
  337. hardware supports 16 byte CDB's."
  338. -Joshua Giles <joshua_giles@dell.com>
  339. 1 Release Date : Mon Jan 23 14:09:01 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
  340. 2 Current Version : 00.00.02.02
  341. 3 Older Version : 00.00.02.01
  342. i. New template defined to represent each family of controllers (identified by processor used).
  343. 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.
  344. -Sumant Patro <Sumant.Patro@lsil.com>
  345. 1 Release Date : Mon Dec 19 14:36:26 PST 2005 - Sumant Patro <Sumant.Patro@lsil.com>
  346. 2 Current Version : 00.00.02.00-rc4
  347. 3 Older Version : 00.00.02.01
  348. i. Code reorganized to remove code duplication in megasas_build_cmd.
  349. "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"
  350. - Christoph Hellwig <hch@lst.de>
  351. ii. Defined MEGASAS_IOC_FIRMWARE32 for code paths that handles 32 bit applications in 64 bit systems.
  352. "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"
  353. - Christoph Hellwig <hch@lst.de>