Back to home page

OSCL-LXR

 
 

    


0001 **************************************************************************
0002 ** History
0003 **
0004 **   REV#         DATE             NAME         DESCRIPTION
0005 ** 1.00.00.00    3/31/2004       Erich Chen     First release
0006 ** 1.10.00.04    7/28/2004       Erich Chen     modify for ioctl
0007 ** 1.10.00.06    8/28/2004       Erich Chen     modify for 2.6.x
0008 ** 1.10.00.08    9/28/2004       Erich Chen     modify for x86_64
0009 ** 1.10.00.10   10/10/2004       Erich Chen     bug fix for SMP & ioctl
0010 ** 1.20.00.00   11/29/2004       Erich Chen     bug fix with arcmsr_bus_reset when PHY error
0011 ** 1.20.00.02   12/09/2004       Erich Chen     bug fix with over 2T bytes RAID Volume
0012 ** 1.20.00.04    1/09/2005       Erich Chen     fits for Debian linux kernel version 2.2.xx
0013 ** 1.20.00.05    2/20/2005       Erich Chen     cleanly as look like a Linux driver at 2.6.x
0014 **                                              thanks for peoples kindness comment
0015 **                                              Kornel Wieliczek
0016 **                                              Christoph Hellwig
0017 **                                              Adrian Bunk
0018 **                                              Andrew Morton
0019 **                                              Christoph Hellwig
0020 **                                              James Bottomley
0021 **                                              Arjan van de Ven
0022 ** 1.20.00.06    3/12/2005       Erich Chen     fix with arcmsr_pci_unmap_dma "unsigned long" cast,
0023 **                                              modify PCCB POOL allocated by "dma_alloc_coherent"
0024 **                                              (Kornel Wieliczek's comment)
0025 ** 1.20.00.07    3/23/2005       Erich Chen     bug fix with arcmsr_scsi_host_template_init
0026 **                                              occur segmentation fault,
0027 **                                              if RAID adapter does not on PCI slot
0028 **                                              and modprobe/rmmod this driver twice.
0029 **                                              bug fix enormous stack usage (Adrian Bunk's comment)
0030 ** 1.20.00.08    6/23/2005       Erich Chen     bug fix with abort command,
0031 **                                              in case of heavy loading when sata cable
0032 **                                              working on low quality connection
0033 ** 1.20.00.09    9/12/2005       Erich Chen     bug fix with abort command handling, firmware version check
0034 **                                              and firmware update notify for hardware bug fix
0035 ** 1.20.00.10    9/23/2005       Erich Chen     enhance sysfs function for change driver's max tag Q number.
0036 **                                              add DMA_64BIT_MASK for backward compatible with all 2.6.x
0037 **                                              add some useful message for abort command
0038 **                                              add ioctl code 'ARCMSR_IOCTL_FLUSH_ADAPTER_CACHE'
0039 **                                              customer can send this command for sync raid volume data
0040 ** 1.20.00.11    9/29/2005       Erich Chen     by comment of Arjan van de Ven fix incorrect msleep redefine
0041 **                                              cast off sizeof(dma_addr_t) condition for 64bit pci_set_dma_mask
0042 ** 1.20.00.12    9/30/2005       Erich Chen     bug fix with 64bit platform's ccbs using if over 4G system memory
0043 **                                              change 64bit pci_set_consistent_dma_mask into 32bit
0044 **                                              increcct adapter count if adapter initialize fail.
0045 **                                              miss edit at arcmsr_build_ccb....
0046 **                                              psge += sizeof(struct _SG64ENTRY *) =>
0047 **                                              psge += sizeof(struct _SG64ENTRY)
0048 **                                              64 bits sg entry would be incorrectly calculated
0049 **                                              thanks Kornel Wieliczek give me kindly notify
0050 **                                              and detail description
0051 ** 1.20.00.13   11/15/2005       Erich Chen     scheduling pending ccb with FIFO
0052 **                                              change the architecture of arcmsr command queue list
0053 **                                              for linux standard list
0054 **                                              enable usage of pci message signal interrupt
0055 **                                              follow Randy.Danlup kindness suggestion cleanup this code
0056 ** 1.20.00.14   05/02/2007       Erich Chen & Nick Cheng
0057 **                                              1.implement PCI-Express error recovery function and AER capability
0058 **                                              2.implement the selection of ARCMSR_MAX_XFER_SECTORS_B=4096
0059 **                                              if firmware version is newer than 1.42
0060 **                                              3.modify arcmsr_iop_reset to improve the ability
0061 **                                              4.modify the ISR, arcmsr_interrupt routine,to prevent the
0062 **                                              inconsistency with sg_mod driver if application directly calls
0063 **                                              the arcmsr driver w/o passing through scsi mid layer
0064 **                                              specially thanks to Yanmin Zhang's openhanded help about AER
0065 ** 1.20.00.15   08/30/2007       Erich Chen & Nick Cheng
0066 **                                              1. support ARC1200/1201/1202 SATA RAID adapter, which is named
0067 **                                              ACB_ADAPTER_TYPE_B
0068 **                                              2. modify the arcmsr_pci_slot_reset function
0069 **                                              3. modify the arcmsr_pci_ers_disconnect_forepart function
0070 **                                              4. modify the arcmsr_pci_ers_need_reset_forepart function
0071 ** 1.20.00.15   09/27/2007       Erich Chen & Nick Cheng
0072 **                                              1. add arcmsr_enable_eoi_mode() on adapter Type B
0073 **                                              2. add readl(reg->iop2drv_doorbell_reg) in arcmsr_handle_hbb_isr()
0074 **                                              in case of the doorbell interrupt clearance is cached
0075 ** 1.20.00.15   10/01/2007       Erich Chen & Nick Cheng
0076 **                                              1. modify acb->devstate[i][j]
0077 **                                              as ARECA_RAID_GOOD instead of
0078 **                                              ARECA_RAID_GONE in arcmsr_alloc_ccb_pool
0079 ** 1.20.00.15   11/06/2007       Erich Chen & Nick Cheng
0080 **                                              1. add conditional declaration for
0081 **                                              arcmsr_pci_error_detected() and
0082 **                                              arcmsr_pci_slot_reset
0083 ** 1.20.00.15   11/23/2007       Erich Chen & Nick Cheng
0084 **                                              1.check if the sg list member number
0085 **                                              exceeds arcmsr default limit in arcmsr_build_ccb()
0086 **                                              2.change the returned value type of arcmsr_build_ccb()
0087 **                                              from "void" to "int"
0088 **                                              3.add the conditional check if arcmsr_build_ccb()
0089 **                                              returns FAILED
0090 ** 1.20.00.15   12/04/2007       Erich Chen & Nick Cheng
0091 **                                              1. modify arcmsr_drain_donequeue() to ignore unknown
0092 **                                              command and let kernel process command timeout.
0093 **                                              This could handle IO request violating max. segments
0094 **                                              while Linux XFS over DM-CRYPT.
0095 **                                              Thanks to Milan Broz's comments <mbroz@redhat.com>
0096 ** 1.20.00.15   12/24/2007       Erich Chen & Nick Cheng
0097 **                                              1.fix the portability problems
0098 **                                              2.fix type B where we should _not_ iounmap() acb->pmu;
0099 **                                              it's not ioremapped.
0100 **                                              3.add return -ENOMEM if ioremap() fails
0101 **                                              4.transfer IS_SG64_ADDR w/ cpu_to_le32()
0102 **                                              in arcmsr_build_ccb
0103 **                                              5. modify acb->devstate[i][j] as ARECA_RAID_GONE instead of
0104 **                                              ARECA_RAID_GOOD in arcmsr_alloc_ccb_pool()
0105 **                                              6.fix arcmsr_cdb->Context as (unsigned long)arcmsr_cdb
0106 **                                              7.add the checking state of
0107 **                                              (outbound_intstatus & ARCMSR_MU_OUTBOUND_HANDLE_INT) == 0
0108 **                                              in arcmsr_handle_hba_isr
0109 **                                              8.replace pci_alloc_consistent()/pci_free_consistent() with kmalloc()/kfree() in arcmsr_iop_message_xfer()
0110 **                                              9. fix the release of dma memory for type B in arcmsr_free_ccb_pool()
0111 **                                              10.fix the arcmsr_polling_hbb_ccbdone()
0112 ** 1.20.00.15   02/27/2008      Erich Chen & Nick Cheng
0113 **                                              1.arcmsr_iop_message_xfer() is called from atomic context under the
0114 **                                              queuecommand scsi_host_template handler. James Bottomley pointed out
0115 **                                              that the current GFP_KERNEL|GFP_DMA flags are wrong: firstly we are in
0116 **                                              atomic context, secondly this memory is not used for DMA.
0117 **                                              Also removed some unneeded casts. Thanks to Daniel Drake <dsd@gentoo.org>
0118 **************************************************************************