1. 12 4月, 2017 2 次提交
    • X
      scsi: hisi_sas: workaround a SoC SATA IO processing bug · 32ccba52
      Xiaofei Tan 提交于
      This patch provides a workaround a SoC bug where SATA IPTTs for
      different devices may conflict.
      
      The workaround solution requests the following:
      1. SATA device id must be even and not equal to SAS IPTT.
      2. SATA device can not share the same IPTT with other SAS or
         SATA device.
      
      Besides we shall consider IPTT value 0 is reserved for another SoC bug
      (STP device open link at firstly after SAS controller reset).
      
      To sum up, the solution is: Each SATA device uses independent and
      continuous 32 even IPTT from 64 to 4094, then v2 hw can only support 63
      SATA devices.  All SAS device(SSP/SMP devices) share odd IPTT value from
      1 to 4095.
      Signed-off-by: NXiaofei Tan <tanxiaofei@huawei.com>
      Signed-off-by: NJohn Garry <john.garry@huawei.com>
      Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      32ccba52
    • X
      scsi: hisi_sas: workaround STP link SoC bug · c7b9d369
      Xiaofei Tan 提交于
      After resetting the controller, the process of scanning SATA disks
      attached to an expander may fail occasionally. The issue is that the
      controller can't close the STP link created by target if the max link
      time is 0.
      
      To workaround this issue, we reject STP link after resetting the
      controller, and change the corresponding PHY to accept STP link only
      after receiving data.
      
      We do this check in cq interrupt handler. In order not to reduce
      efficiency, we use an variable to control whether we should check and
      change PHY to accept STP link.
      
      The function phys_reject_stp_links_v2_hw() should be called after
      resetting the controller.
      
      The solution of another SoC bug "SATA IO timeout", that also uses the
      same register to control STP link, is not effective before the PHY
      accepts STP link.
      Signed-off-by: NXiaofei Tan <tanxiaofei@huawei.com>
      Signed-off-by: NJohn Garry <john.garry@huawei.com>
      Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      c7b9d369
  2. 30 3月, 2017 1 次提交
  3. 23 3月, 2017 14 次提交
  4. 21 1月, 2017 5 次提交
  5. 06 1月, 2017 2 次提交
  6. 08 12月, 2016 1 次提交
  7. 30 11月, 2016 1 次提交
  8. 25 11月, 2016 8 次提交
  9. 09 11月, 2016 2 次提交
  10. 15 9月, 2016 4 次提交