ChangeLog.megaraid_sas 20 KB

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