1. 29 Jan, 2019 8 commits
  2. 23 Jan, 2019 26 commits
  3. 12 Jan, 2019 6 commits
    • Evan Green's avatar
      scsi: ufs: Remove select of phy-qcom-ufs from ufs-qcom · 326a859b
      Evan Green authored
      CONFIG_SCSI_UFS_QCOM selects CONFIG_PHY_QCOM_UFS, assuming that this was
      the only possible PHY driver Qualcomm's UFS controller would use. But in
      SDM845, the UFS driver is bundled into phy-qcom-qmp, and phy-qcom-ufs is
      unused.
      
      Remove the select, since for SDM845 it adds useless drivers to the build.
      Signed-off-by: default avatarEvan Green <evgreen@chromium.org>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      326a859b
    • Otto Sabart's avatar
      scsi: doc: remove reference to tmscsim.txt file · afd05580
      Otto Sabart authored
      The tmscsim.txt doc file was removed in c121107d.
      
      Fixes: c121107d ("scsi: documentation: Obsolete documentation references")
      Signed-off-by: default avatarOtto Sabart <ottosabart@seberm.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      afd05580
    • John Garry's avatar
      scsi: libsas: Support SATA PHY connection rate unmatch fixing during discovery · cec9771d
      John Garry authored
         +----------+             +----------+
         |          |             |          |
         |          |--- 3.0 G ---|          |--- 6.0 G --- SAS  disk
         |          |             |          |
         |          |--- 3.0 G ---|          |--- 6.0 G --- SAS  disk
         |initiator |             |          |
         | device   |--- 3.0 G ---| Expander |--- 6.0 G --- SAS  disk
         |          |             |          |
         |          |--- 3.0 G ---|          |--- 6.0 G --- SATA disk  -->failed to connect
         |          |             |          |
         |          |             |          |--- 6.0 G --- SATA disk  -->failed to connect
         |          |             |          |
         +----------+             +----------+
      
      According to Serial Attached SCSI - 1.1 (SAS-1.1):
      If an expander PHY attached to a SATA PHY is using a physical link rate
      greater than the maximum connection rate supported by the pathway from an
      STP initiator port, a management application client should use the SMP PHY
      CONTROL function (see 10.4.3.10) to set the PROGRAMMED MAXIMUM PHYSICAL
      LINK RATE field of the expander PHY to the maximum connection rate
      supported by the pathway from that STP initiator port.
      
      Currently libsas does not support checking if this condition occurs, nor
      rectifying when it does.
      
      Such a condition is not at all common, however it has been seen on some
      pre-silicon environments where the initiator PHY only supports a 1.5 Gbit
      maximum linkrate, mated with 12G expander PHYs and 3/6G SATA phy.
      
      This patch adds support for checking and rectifying this condition during
      initial device discovery only.
      
      We do support checking min pathway connection rate during revalidation phase,
      when new devices can be detected in the topology. However we do not
      support in the case of the the user reprogramming PHY linkrates, such that
      min pathway condition is not met/maintained.
      
      A note on root port PHY rates:
      The libsas root port PHY rates calculation is broken. Libsas sets the
      rates (min, max, and current linkrate) of a root port to the same linkrate
      of the first PHY member of that same port. In doing so, it assumes that
      all other PHYs which subsequently join the port to have the same
      negotiated linkrate, when they could actually be different.
      
      In practice this doesn't happen, as initiator and expander PHYs are
      normally initialised with consistent min/max linkrates.
      
      This has not caused an issue so far, so leave alone for now.
      Tested-by: default avatarJian Luo <luojian5@huawei.com>
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      cec9771d
    • John Garry's avatar
      scsi: libsas: Check SMP PHY control function result · 01929a65
      John Garry authored
      Currently the SMP PHY control execution result is checked, however the
      function result for the command is not.
      
      As such, we may be missing all potential errors, like SMP FUNCTION FAILED,
      INVALID REQUEST FRAME LENGTH, etc., meaning the PHY control request has
      failed.
      
      In some scenarios we need to ensure the function result is accepted, so add
      a check for this.
      Tested-by: default avatarJian Luo <luojian5@huawei.com>
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      01929a65
    • John Garry's avatar
      scsi: libsas: Fix some indentation in libsas.h · ff525b6e
      John Garry authored
      Currently much indentation in this file is done with whitespaces instead of
      tabs, which can make reading difficult, so fix this up.
      
      Some other little minor tidy-up is done, but this file still has many other
      checkpatch warnings (generally linelength > 80 or function arguments have
      no identifier names).
      
      All libsas code can be audited for checkpatch issues later.
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      ff525b6e
    • Giridhar Malavali's avatar
      scsi: qla2xxx: Fix DMA error when the DIF sg buffer crosses 4GB boundary · 50b81275
      Giridhar Malavali authored
      When SGE buffer containing DIF information crosses 4G boundary, it results
      in DMA error. This patch fixes this issue by calculating SGE buffer size
      and if it crosses 4G boundary, driver will split it into multiple SGE
      buffers to avoid DMA error.
      Signed-off-by: default avatarGiridhar Malavali <gmalavali@marvell.com>
      Signed-off-by: default avatarHimanshu Madhani <hmadhani@marvell.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      50b81275