1. 29 9月, 2008 1 次提交
    • T
      libata: make SCR access ops per-link · 82ef04fb
      Tejun Heo 提交于
      Logically, SCR access ops should take @link; however, there was no
      compelling reason to convert all SCR access ops when adding @link
      abstraction as there's one-to-one mapping between a port and a non-PMP
      link.  However, that assumption won't hold anymore with the scheduled
      addition of slave link.
      
      Make SCR access ops per-link.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      82ef04fb
  2. 14 9月, 2008 2 次提交
  3. 09 9月, 2008 7 次提交
  4. 22 8月, 2008 13 次提交
  5. 05 8月, 2008 1 次提交
  6. 31 7月, 2008 6 次提交
  7. 27 7月, 2008 1 次提交
  8. 26 7月, 2008 1 次提交
  9. 15 7月, 2008 8 次提交
    • M
      AHCI: Remove an unnecessary flush from ahci_qc_issue · 2640d7c0
      Matthew Wilcox 提交于
      In an I/O heavy workload (IOZone), ahci_qc_issue is the second-highest
      consumer of CPU cycles.  Removing the flush gets us approximately 10%
      bandwidth improvement.  I believe this to be because the CPU can start
      queueing the next request instead of waiting for the readl() to flush the
      writes to the device.  The flush isn't necessary because we're using a
      'queue' metaphor; we don't guarantee the command has got to the device,
      nor do we need to guarantee the command has got to the controller.
      Signed-off-by: NMatthew Wilcox <willy@linux.intel.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      2640d7c0
    • Z
      AHCI: speed up resume · 24920c8a
      Zhang Rui 提交于
      During resume, sleep 1 second to wait for the HBA reset
      to finish is a waste of time.
      
      According to the AHCI 1.2 spec,
      We should poll the HOST_CTL register,
      and return error if the host reset is not
      finished within 1 second.
      
      Test results show that the HBA reset can be done quickly(in usecs).
      And this patch may save nearly 1 second during resume.
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      24920c8a
    • M
      [libata] Add support for VPD page b1 · 1e9dbc92
      Matthew Wilcox 提交于
      SCSI VPD page b1 reports the nominal rotation speed and physical size
      of the device.  Devices that conform to ATA-8 can return this information
      in words 217 and 168 of the identify data.
      Signed-off-by: NMatthew Wilcox <willy@linux.intel.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      1e9dbc92
    • H
      ata: endianness annotations in pata drivers · 6ad67403
      Harvey Harrison 提交于
      drivers/ata/pata_qdi.c:142:9: warning: incorrect type in assignment (different base types)
      drivers/ata/pata_qdi.c:142:9:    expected unsigned int [unsigned] [usertype] pad
      drivers/ata/pata_qdi.c:142:9:    got restricted __le32 [usertype] <noident>
      drivers/ata/pata_qdi.c:146:15: warning: cast to restricted __le32
      
      drivers/ata/pata_winbond.c:110:9: warning: incorrect type in assignment (different base types)
      drivers/ata/pata_winbond.c:110:9:    expected unsigned int [unsigned] [usertype] pad
      drivers/ata/pata_winbond.c:110:9:    got restricted __le32 [usertype] <noident>
      drivers/ata/pata_winbond.c:114:15: warning: cast to restricted __le32
      
      drivers/ata/pata_legacy.c:310:9: warning: incorrect type in assignment (different base types)
      drivers/ata/pata_legacy.c:310:9:    expected unsigned int [unsigned] [usertype] pad
      drivers/ata/pata_legacy.c:310:9:    got restricted __le32 [usertype] <noident>
      drivers/ata/pata_legacy.c:314:15: warning: cast to restricted __le32
      drivers/ata/pata_legacy.c:752:11: warning: cast to restricted __le32
      drivers/ata/pata_legacy.c:756:9: warning: incorrect type in assignment (different base types)
      drivers/ata/pata_legacy.c:756:9:    expected unsigned int [unsigned] [addressable] [assigned] [usertype] pad
      drivers/ata/pata_legacy.c:756:9:    got restricted __le32 [usertype] <noident>
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      6ad67403
    • T
      libata-eh: update atapi_eh_request_sense() to take @dev instead of @qc · 3eabddb8
      Tejun Heo 提交于
      Update atapi_eh_request_sense() to take @dev, @sense_buf and
      @dfl_sense_key instead of taking @qc and extracting information from
      it.  This change is to make the function more generic and allow it to
      be called from other places.
      
      While at it, make cdb initialization use initializer.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      3eabddb8
    • P
      ec6add99
    • K
      libata/ahci: enclosure management support · 18f7ba4c
      Kristen Carlson Accardi 提交于
      Add Enclosure Management support to libata and ahci.
      Signed-off-by: NKristen Carlson Accardi <kristen.c.accardi@intel.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      18f7ba4c
    • T
      libata: improve EH internal command timeout handling · 87fbc5a0
      Tejun Heo 提交于
      ATA_TMOUT_INTERNAL which was 30secs were used for all internal
      commands which is way too long when something goes wrong.  This patch
      implements command type based stepped timeouts.  Different command
      types can use different timeouts and each command type can use
      different timeout values after timeouts.
      
      ie. the initial timeout is set to a value which should cover most of
      the cases but not too long so that run away cases don't delay things
      too much.  After the first try times out, the second try can use
      longer timeout and if that one times out too, it can go for full 30sec
      timeout.
      
      IDENTIFYs use 5s - 10s - 30s timeout and all other commands use 5s -
      10s timeouts.
      
      This patch significantly cuts down the needed time to handle failure
      cases while still allowing libata to work with nut job devices through
      retries.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      87fbc5a0