1. 19 7月, 2007 6 次提交
    • J
      [SCSI] aic94xx: add SATAPI support · 27e92471
      James Bottomley 提交于
      It turns out this is fairly easy to plumb in by recognising the three
      command types and copying the CDB.  The protocol response path needs to
      be amended to cope with SAS_PROTO_RESPONSE.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      27e92471
    • D
      [SCSI] libsas: support NCQ for SATA disks · bdab4e87
      Darrick J. Wong 提交于
      This patch adds SATAII NCQ support to libsas.  Both the use_ncq and the
      dma_xfer flags in ata_task must be set for NCQ to work correctly on the
      Adaptec SAS controller.  The rest of the patch adds ATA_FLAG_NCQ to
      sata_port_info and sets up ap->scsi_host so that ata_setup_ncq doesn't
      crash.  Please note that this patch is against the aic94xx-sas git tree,
      not scsi-misc.  Thanks also to James Bottomley for providing an earlier
      version of this patch from which to work.
      
      I've tested this patch on a x206m with a ST380819AS SATA2 disk plugged
      into the Adaptec SAS controller.  The drive came up with a queue depth
      of 31, and I successfully ran an I/O flood test to coerce libata into
      sending multiple commands simultaneously.  A kernel probe recorded the
      maximum tag number that had been seen before and after the flood test;
      before the test it was 2 and after it was 30, as I expected.
      Signed-off-by: NDarrick J. Wong <djwong@us.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      bdab4e87
    • D
      [SCSI] aic94xx: SATA tag mask not set correctly · 797f49de
      Darrick J. Wong 提交于
      The aic94xx controller has a bitmask establishing which tags are ok to
      use with a SATA NCQ disk.  When the queue depth is 32, however, the
      expression that is used sets the mask to zero, not 0xFFFFFFFF.
      This patch widens the width of the integer so that this case is handled
      properly.
      Signed-off-by: NDarrick J. Wong <djwong@us.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      797f49de
    • J
      [SCSI] libsas: fix up sas_smp_phy_control() · 38e2f035
      James Bottomley 提交于
      The prototype of this has changed for the link speed setting patch.
      Need to update the SATA use of this.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      38e2f035
    • J
      [SCSI] libsas: Add SATA support to STP piece for SATA on SAS expanders · 1acce194
      James Bottomley 提交于
      This patch adds support for SATA over SAS expanders to the previous two
      SATA support in libsas patches.
      
      There were a couple of nasty non trivial things to sort out before this
      one could be made to work.
      
      Firstly, I'd like to thank Doug Gilbert for diagnosing a problem with
      the LSI expanders where the REPORT_SATA_PHY command was returning the
      D2H FIS in the wrong order (Although, here, I think I have to blame the
      SAS standards which specifies the FIS "shall be returned in little
      endian format" and later on "which means resp[24] shall be FIS type"
      The latter, of course, implying big endian format).  Just to make sure,
      I put a check for the D2H FIS type being in the wrong position and
      reverse the FIS data if it is.
      
      The second is a problem outlined in Annex G of the SAS standard (again,
      a technical point with D2H FIS ... necessitating a phy reset on certain
      conditions).
      
      With the patch, I can now see my SATA-1 disk in a cascaded expander
      configuration.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      1acce194
    • D
      [SCSI] Add SATA support to libsas · fa1c1e8f
      Darrick J. Wong 提交于
      Hook the scsi_host_template functions in libsas to delegate
      functionality to libata when appropriate.
      Signed-off-by: NDarrick J. Wong <djwong@us.ibm.com>
      
      Misc code changes and merge fixes and update for libata->drivers/ata
      move
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      fa1c1e8f
  2. 18 7月, 2007 34 次提交