ChangeLog.megaraid 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. Release Date : Fri Nov 11 12:27:22 EST 2005 - Seokmann Ju <sju@lsil.com>
  2. Current Version : 2.20.4.7 (scsi module), 2.20.2.6 (cmm module)
  3. Older Version : 2.20.4.6 (scsi module), 2.20.2.6 (cmm module)
  4. 1. Sorted out PCI IDs to remove megaraid support overlaps.
  5. Based on the patch from Daniel, sorted out PCI IDs along with
  6. charactor node name change from 'megadev' to 'megadev_legacy' to avoid
  7. conflict.
  8. ---
  9. Hopefully we'll be getting the build restriction zapped much sooner,
  10. but we should also be thinking about totally removing the hardware
  11. support overlap in the megaraid drivers.
  12. This patch pencils in a date of Feb 06 for this, and performs some
  13. printk abuse in hope that existing legacy users might pick up on what's
  14. going on.
  15. Signed-off-by: Daniel Drake <dsd@gentoo.org>
  16. ---
  17. 2. Fixed a issue: megaraid always fails to reset handler.
  18. ---
  19. I found that the megaraid driver always fails to reset the
  20. adapter with the following message:
  21. megaraid: resetting the host...
  22. megaraid mbox: reset sequence completed successfully
  23. megaraid: fast sync command timed out
  24. megaraid: reservation reset failed
  25. when the "Cluster mode" of the adapter BIOS is enabled.
  26. So, whenever the reset occurs, the adapter goes to
  27. offline and just become unavailable.
  28. Jun'ichi Nomura [mailto:jnomura@mtc.biglobe.ne.jp]
  29. ---
  30. Release Date : Mon Mar 07 12:27:22 EST 2005 - Seokmann Ju <sju@lsil.com>
  31. Current Version : 2.20.4.6 (scsi module), 2.20.2.6 (cmm module)
  32. Older Version : 2.20.4.5 (scsi module), 2.20.2.5 (cmm module)
  33. 1. Added IOCTL backward compatibility.
  34. Convert megaraid_mm driver to new compat_ioctl entry points.
  35. I don't have easy access to hardware, so only compile tested.
  36. - Signed-off-by:Andi Kleen <ak@muc.de>
  37. 2. megaraid_mbox fix: wrong order of arguments in memset()
  38. That, BTW, shows why cross-builds are useful-the only indication of
  39. problem had been a new warning showing up in sparse output on alpha
  40. build (number of exceeding 256 got truncated).
  41. - Signed-off-by: Al Viro
  42. <viro@parcelfarce.linux.theplanet.co.uk>
  43. 3. Convert pci_module_init to pci_register_driver
  44. Convert from pci_module_init to pci_register_driver
  45. (from:http://kerneljanitors.org/TODO)
  46. - Signed-off-by: Domen Puncer <domen@coderock.org>
  47. 4. Use the pre defined DMA mask constants from dma-mapping.h
  48. Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h when calling
  49. pci_set_dma_mask() or pci_set_consistend_dma_mask(). See
  50. http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for more
  51. details.
  52. Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
  53. Signed-off-by: Domen Puncer <domen@coderock.org>
  54. 5. Remove SSID checking for Dobson, Lindsay, and Verde based products.
  55. Checking the SSVID/SSID for controllers which have Dobson, Lindsay,
  56. and Verde is unnecessary because device ID has been assigned by LSI
  57. and it is unique value. So, all controllers with these IOPs have to be
  58. supported by the driver regardless SSVID/SSID.
  59. 6. Date Thu, 27 Jan 2005 04:31:09 +0100
  60. From Herbert Poetzl <>
  61. Subject RFC: assert_spin_locked() for 2.6
  62. Greetings!
  63. overcautious programming will kill your kernel ;)
  64. ever thought about checking a spin_lock or even
  65. asserting that it must be held (maybe just for
  66. spinlock debugging?) ...
  67. there are several checks present in the kernel
  68. where somebody does a variation on the following:
  69. BUG_ON(!spin_is_locked(&some_lock));
  70. so what's wrong about that? nothing, unless you
  71. compile the code with CONFIG_DEBUG_SPINLOCK but
  72. without CONFIG_SMP ... in which case the BUG()
  73. will kill your kernel ...
  74. maybe it's not advised to make such assertions,
  75. but here is a solution which works for me ...
  76. (compile tested for sh, x86_64 and x86, boot/run
  77. tested for x86 only)
  78. best,
  79. Herbert
  80. - Herbert Poetzl <herbert@13thfloor.at>, Thu, 27 Jan 2005
  81. Release Date : Thu Feb 03 12:27:22 EST 2005 - Seokmann Ju <sju@lsil.com>
  82. Current Version : 2.20.4.5 (scsi module), 2.20.2.5 (cmm module)
  83. Older Version : 2.20.4.4 (scsi module), 2.20.2.4 (cmm module)
  84. 1. Modified name of two attributes in scsi_host_template.
  85. On Wed, 2005-02-02 at 10:56 -0500, Ju, Seokmann wrote:
  86. > + .sdev_attrs = megaraid_device_attrs,
  87. > + .shost_attrs = megaraid_class_device_attrs,
  88. These are, perhaps, slightly confusing names.
  89. The terms device and class_device have well defined meanings in the
  90. generic device model, neither of which is what you mean here.
  91. Why not simply megaraid_sdev_attrs and megaraid_shost_attrs?
  92. Other than this, it looks fine to me too.
  93. Release Date : Thu Jan 27 00:01:03 EST 2005 - Atul Mukker <atulm@lsil.com>
  94. Current Version : 2.20.4.4 (scsi module), 2.20.2.5 (cmm module)
  95. Older Version : 2.20.4.3 (scsi module), 2.20.2.4 (cmm module)
  96. 1. Bump up the version of scsi module due to its conflict.
  97. Release Date : Thu Jan 21 00:01:03 EST 2005 - Atul Mukker <atulm@lsil.com>
  98. Current Version : 2.20.4.3 (scsi module), 2.20.2.5 (cmm module)
  99. Older Version : 2.20.4.2 (scsi module), 2.20.2.4 (cmm module)
  100. 1. Remove driver ioctl for logical drive to scsi address translation and
  101. replace with the sysfs attribute. To remove drives and change
  102. capacity, application shall now use the device attribute to get the
  103. logical drive number for a scsi device. For adding newly created
  104. logical drives, class device attribute would be required to uniquely
  105. identify each controller.
  106. - Atul Mukker <atulm@lsil.com>
  107. "James, I've been thinking about this a little more, and you may be on
  108. to something here. Let each driver add files as such:"
  109. - Matt Domsch <Matt_Domsch@dell.com>, 12.15.2004
  110. linux-scsi mailing list
  111. "Then, if you simply publish your LD number as an extra parameter of
  112. the device, you can look through /sys to find it."
  113. - James Bottomley <James.Bottomley@SteelEye.com>, 01.03.2005
  114. linux-scsi mailing list
  115. "I don't see why not ... it's your driver, you can publish whatever
  116. extra information you need as scsi_device attributes; that was one of
  117. the designs of the extensible attribute system."
  118. - James Bottomley <James.Bottomley@SteelEye.com>, 01.06.2005
  119. linux-scsi mailing list
  120. 2. Add AMI megaraid support - Brian King <brking@charter.net>
  121. PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID3,
  122. PCI_VENDOR_ID_AMI, PCI_SUBSYS_ID_PERC3_DC,
  123. 3. Make some code static - Adrian Bunk <bunk@stusta.de>
  124. Date: Mon, 15 Nov 2004 03:14:57 +0100
  125. The patch below makes some needlessly global code static.
  126. -wait_queue_head_t wait_q;
  127. +static wait_queue_head_t wait_q;
  128. Signed-off-by: Adrian Bunk <bunk@stusta.de>
  129. 4. Added NEC ROMB support - NEC MegaRAID PCI Express ROMB controller
  130. PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_MEGARAID_NEC_ROMB_2E,
  131. PCI_SUBSYS_ID_NEC, PCI_SUBSYS_ID_MEGARAID_NEC_ROMB_2E,
  132. 5. Fixed Tape drive issue : For any Direct CDB command to physical device
  133. including tape, timeout value set by driver was 10 minutes. With this
  134. value, most of command will return within timeout. However, for those
  135. command like ERASE or FORMAT, it takes more than an hour depends on
  136. capacity of the device and the command could be terminated before it
  137. completes.
  138. To address this issue, the 'timeout' field in the DCDB command will
  139. have NO TIMEOUT (i.e., 4) value as its timeout on DCDB command.
  140. Release Date : Thu Dec 9 19:10:23 EST 2004
  141. - Sreenivas Bagalkote <sreenib@lsil.com>
  142. Current Version : 2.20.4.2 (scsi module), 2.20.2.4 (cmm module)
  143. Older Version : 2.20.4.1 (scsi module), 2.20.2.3 (cmm module)
  144. i. Introduced driver ioctl that returns scsi address for a given ld.
  145. "Why can't the existing sysfs interfaces be used to do this?"
  146. - Brian King (brking@us.ibm.com)
  147. "I've looked into solving this another way, but I cannot see how
  148. to get this driver-private mapping of logical drive number-> HCTL
  149. without putting code something like this into the driver."
  150. "...and by providing a mapping a function to userspace, the driver
  151. is free to change its mapping algorithm in the future if necessary .."
  152. - Matt Domsch (Matt_Domsch@dell.com)
  153. Release Date : Thu Dec 9 19:02:14 EST 2004 - Sreenivas Bagalkote <sreenib@lsil.com>
  154. Current Version : 2.20.4.1 (scsi module), 2.20.2.3 (cmm module)
  155. Older Version : 2.20.4.1 (scsi module), 2.20.2.2 (cmm module)
  156. i. Fix a bug in kioc's dma buffer deallocation
  157. Release Date : Thu Nov 4 18:24:56 EST 2004 - Sreenivas Bagalkote <sreenib@lsil.com>
  158. Current Version : 2.20.4.1 (scsi module), 2.20.2.2 (cmm module)
  159. Older Version : 2.20.4.0 (scsi module), 2.20.2.1 (cmm module)
  160. i. Handle IOCTL cmd timeouts more properly.
  161. ii. pci_dma_sync_{sg,single}_for_cpu was introduced into megaraid_mbox
  162. incorrectly (instead of _for_device). Changed to appropriate
  163. pci_dma_sync_{sg,single}_for_device.
  164. Release Date : Wed Oct 06 11:15:29 EDT 2004 - Sreenivas Bagalkote <sreenib@lsil.com>
  165. Current Version : 2.20.4.0 (scsi module), 2.20.2.1 (cmm module)
  166. Older Version : 2.20.4.0 (scsi module), 2.20.2.0 (cmm module)
  167. i. Remove CONFIG_COMPAT around register_ioctl32_conversion
  168. Release Date : Mon Sep 27 22:15:07 EDT 2004 - Atul Mukker <atulm@lsil.com>
  169. Current Version : 2.20.4.0 (scsi module), 2.20.2.0 (cmm module)
  170. Older Version : 2.20.3.1 (scsi module), 2.20.2.0 (cmm module)
  171. i. Fix data corruption. Because of a typo in the driver, the IO packets
  172. were wrongly shared by the ioctl path. This causes a whole IO command
  173. to be replaced by an incoming ioctl command.
  174. Release Date : Tue Aug 24 09:43:35 EDT 2004 - Atul Mukker <atulm@lsil.com>
  175. Current Version : 2.20.3.1 (scsi module), 2.20.2.0 (cmm module)
  176. Older Version : 2.20.3.0 (scsi module), 2.20.2.0 (cmm module)
  177. i. Function reordering so that inline functions are defined before they
  178. are actually used. It is now mandatory for GCC 3.4.1 (current stable)
  179. Declare some heavy-weight functions to be non-inlined,
  180. megaraid_mbox_build_cmd, megaraid_mbox_runpendq,
  181. megaraid_mbox_prepare_pthru, megaraid_mbox_prepare_epthru,
  182. megaraid_busywait_mbox
  183. - Andrew Morton <akpm@osdl.org>, 08.19.2004
  184. linux-scsi mailing list
  185. "Something else to clean up after inclusion: every instance of an
  186. inline function is actually rendered as a full function call, because
  187. the function is always used before it is defined. Atul, please
  188. re-arrange the code to eliminate the need for most (all) of the
  189. function prototypes at the top of each file, and define (not just
  190. declare with a prototype) each inline function before its first use"
  191. - Matt Domsch <Matt_Domsch@dell.com>, 07.27.2004
  192. linux-scsi mailing list
  193. ii. Display elapsed time (countdown) while waiting for FW to boot.
  194. iii. Module compilation reorder in Makefile so that unresolved symbols do
  195. not occur when driver is compiled non-modular.
  196. Patrick J. LoPresti <patl@users.sourceforge.net>, 8.22.2004
  197. linux-scsi mailing list
  198. Release Date : Thu Aug 19 09:58:33 EDT 2004 - Atul Mukker <atulm@lsil.com>
  199. Current Version : 2.20.3.0 (scsi module), 2.20.2.0 (cmm module)
  200. Older Version : 2.20.2.0 (scsi module), 2.20.1.0 (cmm module)
  201. i. When copying the mailbox packets, copy only first 14 bytes (for 32-bit
  202. mailboxes) and only first 22 bytes (for 64-bit mailboxes). This is to
  203. avoid getting the stale values for busy bit. We want to set the busy
  204. bit just before issuing command to the FW.
  205. ii. In the reset handling, if the reseted command is not owned by the
  206. driver, do not (wrongly) print information for the "attached" driver
  207. packet.
  208. iii. Have extended wait when issuing command in synchronous mode. This is
  209. required for the cases where the option ROM is disabled and there is
  210. no BIOS to start the controller. The FW starts to boot after receiving
  211. the first command from the driver. The current driver has 1 second
  212. timeout for the synchronous commands, which is far less than what is
  213. actually required. We now wait up to MBOX_RESET_TIME (180 seconds) for
  214. FW boot process.
  215. iv. In megaraid_mbox_product_info, clear the mailbox contents completely
  216. before preparing the command for inquiry3. This is to ensure that the
  217. FW does not get junk values in the command.
  218. v. Do away with the redundant LSI_CONFIG_COMPAT redefinition for
  219. CONFIG_COMPAT. Replace <asm/ioctl32.h> with <linux/ioctl32.h>
  220. - James Bottomley <James.Bottomley@SteelEye.com>, 08.17.2004
  221. linux-scsi mailing list
  222. vi. Add support for 64-bit applications. Current drivers assume only
  223. 32-bit applications, even on 64-bit platforms. Use the "data" and
  224. "buffer" fields of the mimd_t structure, instead of embedded 32-bit
  225. addresses in application mailbox and passthru structures.
  226. vii. Move the function declarations for the management module from
  227. megaraid_mm.h to megaraid_mm.c
  228. - Andrew Morton <akpm@osdl.org>, 08.19.2004
  229. linux-scsi mailing list
  230. viii. Change default values for MEGARAID_NEWGEN, MEGARAID_MM, and
  231. MEGARAID_MAILBOX to 'n' in Kconfig.megaraid
  232. - Andrew Morton <akpm@osdl.org>, 08.19.2004
  233. linux-scsi mailing list
  234. ix. replace udelay with msleep
  235. x. Typos corrected in comments and whitespace adjustments, explicit
  236. grouping of expressions.
  237. Release Date : Fri Jul 23 15:22:07 EDT 2004 - Atul Mukker <atulm@lsil.com>
  238. Current Version : 2.20.2.0 (scsi module), 2.20.1.0 (cmm module)
  239. Older Version : 2.20.1.0 (scsi module), 2.20.0.0 (cmm module)
  240. i. Add PCI ids for Acer ROMB 2E solution
  241. ii. Add PCI ids for I4
  242. iii. Typo corrected for subsys id for megaraid sata 300-4x
  243. iv. Remove yield() while mailbox handshake in synchronous commands
  244. "My other main gripe is things like this:
  245. + // wait for maximum 1 second for status to post
  246. + for (i = 0; i < 40000; i++) {
  247. + if (mbox->numstatus != 0xFF) break;
  248. + udelay(25); yield();
  249. + }
  250. which litter the driver. Use of yield() in drivers is deprecated."
  251. - James Bottomley <James.Bottomley@SteelEye.com>, 07.14.2004
  252. linux-scsi mailing list
  253. v. Remove redundant __megaraid_busywait_mbox routine
  254. vi. Fix bug in the managment module, which causes a system lockup when the
  255. IO module is loaded and then unloaded, followed by executing any
  256. management utility. The current version of management module does not
  257. handle the adapter unregister properly.
  258. Specifically, it still keeps a reference to the unregistered
  259. controllers. To avoid this, the static array adapters has been
  260. replaced by a dynamic list, which gets updated every time an adapter
  261. is added or removed.
  262. Also, during unregistration of the IO module, the resources are
  263. now released in the exact reverse order of the allocation time
  264. sequence.
  265. Release Date : Fri Jun 25 18:58:43 EDT 2004 - Atul Mukker <atulm@lsil.com>
  266. Current Version : 2.20.1.0
  267. Older Version : megaraid 2.20.0.1
  268. i. Stale list pointer in adapter causes kernel panic when module
  269. megaraid_mbox is unloaded
  270. Release Date : Thu Jun 24 20:37:11 EDT 2004 - Atul Mukker <atulm@lsil.com>
  271. Current Version : 2.20.0.1
  272. Older Version : megaraid 2.20.0.00
  273. i. Modules are not 'y' by default, but depend on current definition of
  274. SCSI & PCI.
  275. ii. Redundant structure mraid_driver_t removed.
  276. iii. Miscellaneous indentation and goto/label fixes.
  277. - Christoph Hellwig <hch@infradead.org>, 06.24.2004 linux-scsi
  278. iv. scsi_host_put(), do just before completing HBA shutdown.
  279. Release Date : Mon Jun 21 19:53:54 EDT 2004 - Atul Mukker <atulm@lsil.com>
  280. Current Version : 2.20.0.0
  281. Older Version : megaraid 2.20.0.rc2 and 2.00.3
  282. i. Independent module to interact with userland applications and
  283. multiplex command to low level RAID module(s).
  284. "Shared code in a third module, a "library module", is an acceptable
  285. solution. modprobe automatically loads dependent modules, so users
  286. running "modprobe driver1" or "modprobe driver2" would automatically
  287. load the shared library module."
  288. - Jeff Garzik <jgarzik@pobox.com> 02.25.2004 LKML
  289. "As Jeff hinted, if your userspace<->driver API is consistent between
  290. your new MPT-based RAID controllers and your existing megaraid driver,
  291. then perhaps you need a single small helper module (lsiioctl or some
  292. better name), loaded by both mptraid and megaraid automatically, which
  293. handles registering the /dev/megaraid node dynamically. In this case,
  294. both mptraid and megaraid would register with lsiioctl for each
  295. adapter discovered, and lsiioctl would essentially be a switch,
  296. redirecting userspace tool ioctls to the appropriate driver."
  297. - Matt Domsch <Matt_Domsch@dell.com> 02.25.2004 LKML
  298. ii. Remove C99 initializations from pci_device id.
  299. "pci_id_table_g would be much more readable when not using C99
  300. initializers.
  301. PCI table doesn't change, there's lots of users that prefer the more
  302. readable variant. And it's really far less and much easier to grok
  303. lines without C99 initializers."
  304. - Christoph Hellwig <hch@infradead.org>, 05.28.2004 linux-scsi
  305. iii. Many fixes as suggested by Christoph Hellwig <hch@infradead.org> on
  306. linux-scsi, 05.28.2004
  307. iv. We now support up to 32 parallel ioctl commands instead of current 1.
  308. There is a conscious effort to let memory allocation not fail for ioctl
  309. commands.
  310. v. Do away with internal memory management. Use pci_pool_(create|alloc)
  311. instead.
  312. vi. Kill tasklet when unloading the driver.
  313. vii. Do not use "host_lock', driver has fine-grain locks now to protect all
  314. data structures.
  315. viii. Optimize the build scatter-gather list routine. The callers already
  316. know the data transfer address and length.
  317. ix. Better implementation of error handling and recovery. Driver now
  318. performs extended errors recovery for instances like scsi cable pull.
  319. x. Disassociate the management commands with an overlaid scsi command.
  320. Driver now treats the management packets as special packets and has a
  321. dedicated callback routine.