/Documentation/scsi/ChangeLog.megaraid

https://bitbucket.org/evzijst/gittest · Unknown · 349 lines · 241 code · 108 blank · 0 comment · 0 complexity · 282c4f54e42ab485caf5e01066d3c143 MD5 · raw file

  1. Release Date : Thu Feb 03 12:27:22 EST 2005 - Seokmann Ju <sju@lsil.com>
  2. Current Version : 2.20.4.5 (scsi module), 2.20.2.5 (cmm module)
  3. Older Version : 2.20.4.4 (scsi module), 2.20.2.4 (cmm module)
  4. 1. Modified name of two attributes in scsi_host_template.
  5. On Wed, 2005-02-02 at 10:56 -0500, Ju, Seokmann wrote:
  6. > + .sdev_attrs = megaraid_device_attrs,
  7. > + .shost_attrs = megaraid_class_device_attrs,
  8. These are, perhaps, slightly confusing names.
  9. The terms device and class_device have well defined meanings in the
  10. generic device model, neither of which is what you mean here.
  11. Why not simply megaraid_sdev_attrs and megaraid_shost_attrs?
  12. Other than this, it looks fine to me too.
  13. Release Date : Thu Jan 27 00:01:03 EST 2005 - Atul Mukker <atulm@lsil.com>
  14. Current Version : 2.20.4.4 (scsi module), 2.20.2.5 (cmm module)
  15. Older Version : 2.20.4.3 (scsi module), 2.20.2.4 (cmm module)
  16. 1. Bump up the version of scsi module due to its conflict.
  17. Release Date : Thu Jan 21 00:01:03 EST 2005 - Atul Mukker <atulm@lsil.com>
  18. Current Version : 2.20.4.3 (scsi module), 2.20.2.5 (cmm module)
  19. Older Version : 2.20.4.2 (scsi module), 2.20.2.4 (cmm module)
  20. 1. Remove driver ioctl for logical drive to scsi address translation and
  21. replace with the sysfs attribute. To remove drives and change
  22. capacity, application shall now use the device attribute to get the
  23. logical drive number for a scsi device. For adding newly created
  24. logical drives, class device attribute would be required to uniquely
  25. identify each controller.
  26. - Atul Mukker <atulm@lsil.com>
  27. "James, I've been thinking about this a little more, and you may be on
  28. to something here. Let each driver add files as such:"
  29. - Matt Domsch <Matt_Domsch@dell.com>, 12.15.2004
  30. linux-scsi mailing list
  31. "Then, if you simply publish your LD number as an extra parameter of
  32. the device, you can look through /sys to find it."
  33. - James Bottomley <James.Bottomley@SteelEye.com>, 01.03.2005
  34. linux-scsi mailing list
  35. "I don't see why not ... it's your driver, you can publish whatever
  36. extra information you need as scsi_device attributes; that was one of
  37. the designs of the extensible attribute system."
  38. - James Bottomley <James.Bottomley@SteelEye.com>, 01.06.2005
  39. linux-scsi mailing list
  40. 2. Add AMI megaraid support - Brian King <brking@charter.net>
  41. PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID3,
  42. PCI_VENDOR_ID_AMI, PCI_SUBSYS_ID_PERC3_DC,
  43. 3. Make some code static - Adrian Bunk <bunk@stusta.de>
  44. Date: Mon, 15 Nov 2004 03:14:57 +0100
  45. The patch below makes some needlessly global code static.
  46. -wait_queue_head_t wait_q;
  47. +static wait_queue_head_t wait_q;
  48. Signed-off-by: Adrian Bunk <bunk@stusta.de>
  49. 4. Added NEC ROMB support - NEC MegaRAID PCI Express ROMB controller
  50. PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_MEGARAID_NEC_ROMB_2E,
  51. PCI_SUBSYS_ID_NEC, PCI_SUBSYS_ID_MEGARAID_NEC_ROMB_2E,
  52. 5. Fixed Tape drive issue : For any Direct CDB command to physical device
  53. including tape, timeout value set by driver was 10 minutes. With this
  54. value, most of command will return within timeout. However, for those
  55. command like ERASE or FORMAT, it takes more than an hour depends on
  56. capacity of the device and the command could be terminated before it
  57. completes.
  58. To address this issue, the 'timeout' field in the DCDB command will
  59. have NO TIMEOUT (i.e., 4) value as its timeout on DCDB command.
  60. Release Date : Thu Dec 9 19:10:23 EST 2004
  61. - Sreenivas Bagalkote <sreenib@lsil.com>
  62. Current Version : 2.20.4.2 (scsi module), 2.20.2.4 (cmm module)
  63. Older Version : 2.20.4.1 (scsi module), 2.20.2.3 (cmm module)
  64. i. Introduced driver ioctl that returns scsi address for a given ld.
  65. "Why can't the existing sysfs interfaces be used to do this?"
  66. - Brian King (brking@us.ibm.com)
  67. "I've looked into solving this another way, but I cannot see how
  68. to get this driver-private mapping of logical drive number-> HCTL
  69. without putting code something like this into the driver."
  70. "...and by providing a mapping a function to userspace, the driver
  71. is free to change its mapping algorithm in the future if necessary .."
  72. - Matt Domsch (Matt_Domsch@dell.com)
  73. Release Date : Thu Dec 9 19:02:14 EST 2004 - Sreenivas Bagalkote <sreenib@lsil.com>
  74. Current Version : 2.20.4.1 (scsi module), 2.20.2.3 (cmm module)
  75. Older Version : 2.20.4.1 (scsi module), 2.20.2.2 (cmm module)
  76. i. Fix a bug in kioc's dma buffer deallocation
  77. Release Date : Thu Nov 4 18:24:56 EST 2004 - Sreenivas Bagalkote <sreenib@lsil.com>
  78. Current Version : 2.20.4.1 (scsi module), 2.20.2.2 (cmm module)
  79. Older Version : 2.20.4.0 (scsi module), 2.20.2.1 (cmm module)
  80. i. Handle IOCTL cmd timeouts more properly.
  81. ii. pci_dma_sync_{sg,single}_for_cpu was introduced into megaraid_mbox
  82. incorrectly (instead of _for_device). Changed to appropriate
  83. pci_dma_sync_{sg,single}_for_device.
  84. Release Date : Wed Oct 06 11:15:29 EDT 2004 - Sreenivas Bagalkote <sreenib@lsil.com>
  85. Current Version : 2.20.4.0 (scsi module), 2.20.2.1 (cmm module)
  86. Older Version : 2.20.4.0 (scsi module), 2.20.2.0 (cmm module)
  87. i. Remove CONFIG_COMPAT around register_ioctl32_conversion
  88. Release Date : Mon Sep 27 22:15:07 EDT 2004 - Atul Mukker <atulm@lsil.com>
  89. Current Version : 2.20.4.0 (scsi module), 2.20.2.0 (cmm module)
  90. Older Version : 2.20.3.1 (scsi module), 2.20.2.0 (cmm module)
  91. i. Fix data corruption. Because of a typo in the driver, the IO packets
  92. were wrongly shared by the ioctl path. This causes a whole IO command
  93. to be replaced by an incoming ioctl command.
  94. Release Date : Tue Aug 24 09:43:35 EDT 2004 - Atul Mukker <atulm@lsil.com>
  95. Current Version : 2.20.3.1 (scsi module), 2.20.2.0 (cmm module)
  96. Older Version : 2.20.3.0 (scsi module), 2.20.2.0 (cmm module)
  97. i. Function reordering so that inline functions are defined before they
  98. are actually used. It is now mandatory for GCC 3.4.1 (current stable)
  99. Declare some heavy-weight functions to be non-inlined,
  100. megaraid_mbox_build_cmd, megaraid_mbox_runpendq,
  101. megaraid_mbox_prepare_pthru, megaraid_mbox_prepare_epthru,
  102. megaraid_busywait_mbox
  103. - Andrew Morton <akpm@osdl.org>, 08.19.2004
  104. linux-scsi mailing list
  105. "Something else to clean up after inclusion: every instance of an
  106. inline function is actually rendered as a full function call, because
  107. the function is always used before it is defined. Atul, please
  108. re-arrange the code to eliminate the need for most (all) of the
  109. function prototypes at the top of each file, and define (not just
  110. declare with a prototype) each inline function before its first use"
  111. - Matt Domsch <Matt_Domsch@dell.com>, 07.27.2004
  112. linux-scsi mailing list
  113. ii. Display elapsed time (countdown) while waiting for FW to boot.
  114. iii. Module compilation reorder in Makefile so that unresolved symbols do
  115. not occur when driver is compiled non-modular.
  116. Patrick J. LoPresti <patl@users.sourceforge.net>, 8.22.2004
  117. linux-scsi mailing list
  118. Release Date : Thu Aug 19 09:58:33 EDT 2004 - Atul Mukker <atulm@lsil.com>
  119. Current Version : 2.20.3.0 (scsi module), 2.20.2.0 (cmm module)
  120. Older Version : 2.20.2.0 (scsi module), 2.20.1.0 (cmm module)
  121. i. When copying the mailbox packets, copy only first 14 bytes (for 32-bit
  122. mailboxes) and only first 22 bytes (for 64-bit mailboxes). This is to
  123. avoid getting the stale values for busy bit. We want to set the busy
  124. bit just before issuing command to the FW.
  125. ii. In the reset handling, if the reseted command is not owned by the
  126. driver, do not (wrongly) print information for the "attached" driver
  127. packet.
  128. iii. Have extended wait when issuing command in synchronous mode. This is
  129. required for the cases where the option ROM is disabled and there is
  130. no BIOS to start the controller. The FW starts to boot after receiving
  131. the first command from the driver. The current driver has 1 second
  132. timeout for the synchronous commands, which is far less than what is
  133. actually required. We now wait up to MBOX_RESET_TIME (180 seconds) for
  134. FW boot process.
  135. iv. In megaraid_mbox_product_info, clear the mailbox contents completely
  136. before preparing the command for inquiry3. This is to ensure that the
  137. FW does not get junk values in the command.
  138. v. Do away with the redundant LSI_CONFIG_COMPAT redefinition for
  139. CONFIG_COMPAT. Replace <asm/ioctl32.h> with <linux/ioctl32.h>
  140. - James Bottomley <James.Bottomley@SteelEye.com>, 08.17.2004
  141. linux-scsi mailing list
  142. vi. Add support for 64-bit applications. Current drivers assume only
  143. 32-bit applications, even on 64-bit platforms. Use the "data" and
  144. "buffer" fields of the mimd_t structure, instead of embedded 32-bit
  145. addresses in application mailbox and passthru structures.
  146. vii. Move the function declarations for the management module from
  147. megaraid_mm.h to megaraid_mm.c
  148. - Andrew Morton <akpm@osdl.org>, 08.19.2004
  149. linux-scsi mailing list
  150. viii. Change default values for MEGARAID_NEWGEN, MEGARAID_MM, and
  151. MEGARAID_MAILBOX to 'n' in Kconfig.megaraid
  152. - Andrew Morton <akpm@osdl.org>, 08.19.2004
  153. linux-scsi mailing list
  154. ix. replace udelay with msleep
  155. x. Typos corrected in comments and whitespace adjustments, explicit
  156. grouping of expressions.
  157. Release Date : Fri Jul 23 15:22:07 EDT 2004 - Atul Mukker <atulm@lsil.com>
  158. Current Version : 2.20.2.0 (scsi module), 2.20.1.0 (cmm module)
  159. Older Version : 2.20.1.0 (scsi module), 2.20.0.0 (cmm module)
  160. i. Add PCI ids for Acer ROMB 2E solution
  161. ii. Add PCI ids for I4
  162. iii. Typo corrected for subsys id for megaraid sata 300-4x
  163. iv. Remove yield() while mailbox handshake in synchronous commands
  164. "My other main gripe is things like this:
  165. + // wait for maximum 1 second for status to post
  166. + for (i = 0; i < 40000; i++) {
  167. + if (mbox->numstatus != 0xFF) break;
  168. + udelay(25); yield();
  169. + }
  170. which litter the driver. Use of yield() in drivers is deprecated."
  171. - James Bottomley <James.Bottomley@SteelEye.com>, 07.14.2004
  172. linux-scsi mailing list
  173. v. Remove redundant __megaraid_busywait_mbox routine
  174. vi. Fix bug in the managment module, which causes a system lockup when the
  175. IO module is loaded and then unloaded, followed by executing any
  176. management utility. The current version of management module does not
  177. handle the adapter unregister properly.
  178. Specifically, it still keeps a reference to the unregistered
  179. controllers. To avoid this, the static array adapters has been
  180. replaced by a dynamic list, which gets updated every time an adapter
  181. is added or removed.
  182. Also, during unregistration of the IO module, the resources are
  183. now released in the exact reverse order of the allocation time
  184. sequence.
  185. Release Date : Fri Jun 25 18:58:43 EDT 2004 - Atul Mukker <atulm@lsil.com>
  186. Current Version : 2.20.1.0
  187. Older Version : megaraid 2.20.0.1
  188. i. Stale list pointer in adapter causes kernel panic when module
  189. megaraid_mbox is unloaded
  190. Release Date : Thu Jun 24 20:37:11 EDT 2004 - Atul Mukker <atulm@lsil.com>
  191. Current Version : 2.20.0.1
  192. Older Version : megaraid 2.20.0.00
  193. i. Modules are not 'y' by default, but depend on current definition of
  194. SCSI & PCI.
  195. ii. Redundant structure mraid_driver_t removed.
  196. iii. Miscellaneous indentation and goto/label fixes.
  197. - Christoph Hellwig <hch@infradead.org>, 06.24.2004 linux-scsi
  198. iv. scsi_host_put(), do just before completing HBA shutdown.
  199. Release Date : Mon Jun 21 19:53:54 EDT 2004 - Atul Mukker <atulm@lsil.com>
  200. Current Version : 2.20.0.0
  201. Older Version : megaraid 2.20.0.rc2 and 2.00.3
  202. i. Independent module to interact with userland applications and
  203. multiplex command to low level RAID module(s).
  204. "Shared code in a third module, a "library module", is an acceptable
  205. solution. modprobe automatically loads dependent modules, so users
  206. running "modprobe driver1" or "modprobe driver2" would automatically
  207. load the shared library module."
  208. - Jeff Garzik <jgarzik@pobox.com> 02.25.2004 LKML
  209. "As Jeff hinted, if your userspace<->driver API is consistent between
  210. your new MPT-based RAID controllers and your existing megaraid driver,
  211. then perhaps you need a single small helper module (lsiioctl or some
  212. better name), loaded by both mptraid and megaraid automatically, which
  213. handles registering the /dev/megaraid node dynamically. In this case,
  214. both mptraid and megaraid would register with lsiioctl for each
  215. adapter discovered, and lsiioctl would essentially be a switch,
  216. redirecting userspace tool ioctls to the appropriate driver."
  217. - Matt Domsch <Matt_Domsch@dell.com> 02.25.2004 LKML
  218. ii. Remove C99 initializations from pci_device id.
  219. "pci_id_table_g would be much more readable when not using C99
  220. initializers.
  221. PCI table doesn't change, there's lots of users that prefer the more
  222. readable variant. And it's really far less and much easier to grok
  223. lines without C99 initializers."
  224. - Christoph Hellwig <hch@infradead.org>, 05.28.2004 linux-scsi
  225. iii. Many fixes as suggested by Christoph Hellwig <hch@infradead.org> on
  226. linux-scsi, 05.28.2004
  227. iv. We now support up to 32 parallel ioctl commands instead of current 1.
  228. There is a conscious effort to let memory allocation not fail for ioctl
  229. commands.
  230. v. Do away with internal memory management. Use pci_pool_(create|alloc)
  231. instead.
  232. vi. Kill tasklet when unloading the driver.
  233. vii. Do not use "host_lock', driver has fine-grain locks now to protect all
  234. data structures.
  235. viii. Optimize the build scatter-gather list routine. The callers already
  236. know the data transfer address and length.
  237. ix. Better implementation of error handling and recovery. Driver now
  238. performs extended errors recovery for instances like scsi cable pull.
  239. x. Disassociate the management commands with an overlaid scsi command.
  240. Driver now treats the management packets as special packets and has a
  241. dedicated callback routine.