1. 28 8月, 2015 3 次提交
    • S
      mpt3sas: Don't block the drive when drive addition under the control of SML · e4bc7f5c
      Sreekanth Reddy 提交于
      During hot-plugging of a disk(having a flaky link), the disk addition
      stops and any further disk addition or removal doesn't happen on that
      controller.
      
      This is because, when driver receives DELAY_NOT_RESPONDING event for a disk
      while it is undergoing addition at the SCSI Transport layer, the driver
      would block the I/O to that disk resulting in a deadlock. i.e the disk
      addition work couldn't be completed at the SCSI Transport Layer as it
      can't send any I/Os (such as Inquiry, Report LUNs etc) to the disk as
      I/Os are blocked to this drive. Also any subsequent device removal
      (TARGET_NOT_RESPONDING) or link update(RC_PHY_CHANGED) event couldn't be
      processed as they are in the queue to get processed after disk addition
      event.
      
      Description of Change:
      Don't block the drive when drive addition is under the control of SML.
      So that SML won't be blocked of issuing the device dicovery commands
      (such as Inquiry, Report LUNs etc).
      Signed-off-by: NSreekanth Reddy <Sreekanth.Reddy@avagotech.com>
      Reviewed-by: NMartin K. Petersen <martin.petersen@oracle.com>
      Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
      e4bc7f5c
    • S
      mpt3sas: Get IOC_FACTS information using handshake protocol only after HBA... · 4dc8c808
      Sreekanth Reddy 提交于
      mpt3sas: Get IOC_FACTS information using handshake protocol only after HBA card gets into READY or Operational state.
      
      Driver initialization fails if driver tries to send IOC facts request message
      when the IOC is in reset or in a fault state.
      
      This patch will make sure that
      
       1.Driver to send IOC facts request message only if HBA is in operational or
         ready state.
      
       2.If IOC is in fault state, a diagnostic reset would be issued.
      
       3.If IOC is in reset state then driver will wait for 10 seconds to exit out
         of reset state.  If the HBA continues to be in reset state, then the HBA
         wouldn't be claimed by the driver.
      Signed-off-by: NSreekanth Reddy <Sreekanth.Reddy@avagotech.com>
      Reviewed-by: NMartin K. Petersen <martin.petersen@oracle.com>
      Reviewed-by: NTomas Henzl <thenzl@redhat.com>
      Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
      4dc8c808
    • S
      mpt3sas: Added Combined Reply Queue feature to extend up-to 96 MSIX vector support · fb77bb53
      Sreekanth Reddy 提交于
      In this patch, increased the number of MSIX vector support for SAS3 C0 HBAs to
      up-to 96.
      
      Following are changes that are done in this patch
      
      1. This feature is enabled only for SAS3 C0 and higher revision cards and also
      only when reply post free queue count is greater than 8.
      
      2. To support this feature 12 SupplementalReplyPostHostIndex system interfaces
      are used. MSI-X index numbered from 0 to 7 use the first
      SupplementalReplyPostHostIndex system interface to update its corresponding
      ReplyPostHostIndex values, MSI-X index numbered from 8 to 15 will use the
      second SupplementalReplyPostHostIndex system interface and so on. These 12
      SuppementalReplyPostHostIndex system interfaces address are saved in the array
      replyPostRegisterIndex[].
      
      3. As each SupplementalReplyPostHostIndex register supports 8 MSI-X
      vectors. So MSIxIndex field in these register must contain a value between 0
      and 7.
      
      4. After processing the reply descriptors from a reply post free queues then
      update the new reply post host index value in ReplyPostHostIndex field and
      (msix_index mod 8) value in MSIxIndex field of SupplementalReplyPostHostIndex
      register. The Address of this SupplementalReplyPostHostIndex register is
      retrived from (msix_index/8)th entry of replyPostRegisterIndex[] array.
      Signed-off-by: NSreekanth Reddy <Sreekanth.Reddy@avagotech.com>
      Reviewed-by: NMartin K. Petersen <martin.petersen@oracle.com>
      Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
      fb77bb53
  2. 27 8月, 2015 37 次提交