1. 23 10月, 2010 1 次提交
  2. 05 8月, 2010 3 次提交
  3. 02 3月, 2010 2 次提交
  4. 07 1月, 2009 1 次提交
  5. 30 10月, 2008 1 次提交
  6. 29 10月, 2008 1 次提交
  7. 14 10月, 2008 1 次提交
  8. 15 7月, 2008 2 次提交
  9. 20 4月, 2008 2 次提交
  10. 17 4月, 2008 1 次提交
    • D
      IB/srp: Enforce protocol limit on srp_sg_tablesize · 1e89a194
      David Dillow 提交于
      The current SRP initiator will allow unlimited s/g entries in the
      indirect descriptors lists, but the entry count field in the SRP_CMD
      request is 8 bits, so setting srp_sg_tablesize too large will open the
      possibility of wrapping the count and generating invalid requests.
      
      Clamp srp_sg_tablesize to the protocol limits to prevent surprises.
      
      Reported by Martin W. Schlining III <mschlining@datadirectnet.com>.
      Signed-off-by: NDavid Dillow <dillowda@ornl.gov>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      1e89a194
  11. 05 2月, 2008 1 次提交
    • D
      IB/srp: Retry stale connections · 9fe4bcf4
      David Dillow 提交于
      When a host just goes away (crash, power loss, etc.) without tearing
      down its IB connections, it can get stale connection errors when it
      tries to reconnect to targets upon rebooting.  Retrying the connection
      a few times will prevent sysadmins from playing the "which disk(s)
      went missing?" game.
      
      This would have made things slightly quicker when tracking down some
      of the recent bugs, but it also helps quite a bit when you've got a
      large number of targets hanging off a wedged server.
      Signed-off-by: NDavid Dillow <dillowda@ornl.gov>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      9fe4bcf4
  12. 31 1月, 2008 1 次提交
    • J
      [SCSI] remove use_sg_chaining · d3f46f39
      James Bottomley 提交于
      With the sg table code, every SCSI driver is now either chain capable
      or broken (or has sg_tablesize set so chaining is never activated), so
      there's no need to have a check in the host template.
      
      Also tidy up the code by moving the scatterlist size defines into the
      SCSI includes and permit the last entry of the scatterlist pools not
      to be a power of two.
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      d3f46f39
  13. 26 1月, 2008 3 次提交
    • D
      IB/srp: Add identifying information to log messages · 7aa54bd7
      David Dillow 提交于
      When you have multiple targets, it gets really confusing when you try
      to track down who did a reset when there is no identifying information
      in the log message, especially when the same extension ID is mapped
      through two different local IB ports.  So, add an identifier that can
      be used to track back to which local IB port/remote target pair is the
      one having problems.
      Signed-off-by: NDavid Dillow <dillowda@ornl.gov>
      Acked-by: NPete Wyckoff <pw@osc.edu>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      7aa54bd7
    • D
      IB/srp: Enable SG list chaining · fff09a8e
      David Dillow 提交于
      By default, the SCSI mid-layer seems to send down 512KB requests
      (sg_tablesize = 256), with some requests occasionally combined. By
      allowing the mid-layer to chain requests, we can easily grow to 1024KB
      or larger -- I've tested 4096KB I/O requests with no problems.
      
      I looked through the DMA paths on the hardware drivers to ensure they
      could take advantage of the SG chaining, and it seems that every one
      except ipath uses the system's DMA routines, which have been converted
      to handle chaining.  ipath looks like it should be OK, but I have no
      way to test it.
      Signed-off-by: NDavid Dillow <dillowda@ornl.gov>
      
      [ Tested on ipath.  - Roland ]
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      fff09a8e
    • D
      IB/srp: Respect target credit limit · 8cba2077
      David Dillow 提交于
      The current SRP initiator will send requests even if it has no credits
      available.  The results of sending extra requests are vendor specific,
      but on some devices, overrunning credits will cost 85% of peak
      performance -- e.g. 100 MB/s vs 720 MB/s.  Other devices may just drop
      the requests.
      
      This patch will tell the SCSI midlayer to queue requests if there are
      fewer than two credits remaining, and will not issue a task management
      request if there are no credits remaining.  The mid-layer will retry
      the queued command once an outstanding command completes.
      
      The patch also removes the unlikely() in __srp_get_tx_iu(), as it is
      not at all unlikely to hit this limit under heavy load.
      Signed-off-by: NDavid Dillow <dillowda@ornl.gov>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      8cba2077
  14. 09 1月, 2008 1 次提交
  15. 04 1月, 2008 1 次提交
  16. 13 10月, 2007 2 次提交
  17. 10 10月, 2007 1 次提交
  18. 04 8月, 2007 2 次提交
  19. 07 6月, 2007 1 次提交
  20. 07 5月, 2007 3 次提交
    • M
      IB: Add CQ comp_vector support · f4fd0b22
      Michael S. Tsirkin 提交于
      Add a num_comp_vectors member to struct ib_device and extend
      ib_create_cq() to pass in a comp_vector parameter -- this parallels
      the userspace libibverbs API.  Update all hardware drivers to set
      num_comp_vectors to 1 and have all ULPs pass 0 for the comp_vector
      value.  Pass the value of num_comp_vectors to userspace rather than
      hard-coding a value of 1.
      
      We want multiple CQ event vector support (via MSI-X or similar for
      adapters that can generate multiple interrupts), but it's not clear
      how many vectors we want, or how we want to deal with policy issues
      such as how to decide which vector to use or how to set up interrupt
      affinity.  This patch is useful for experimenting, since no core
      changes will be necessary when updating a driver to support multiple
      vectors, and we know that we want to make at least these changes
      anyway.
      Signed-off-by: NMichael S. Tsirkin <mst@dev.mellanox.co.il>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      f4fd0b22
    • R
      IB/srp: Set proc_name · b7f008fd
      Roland Dreier 提交于
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      b7f008fd
    • I
      IB/srp: Add orig_dgid sysfs attribute to scsi_host · 3633b3d0
      Ishai Rabinovitz 提交于
      Add an orig_dgid attribute in sysfs for SRP scsi_hosts, so that
      userspace can tell what the original dgid value written to the
      add_target file was, even if the connection is redirected to a
      different port while connecting.
      Signed-off-by: NIshai Rabinovitz <ishai@mellanox.co.il>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      3633b3d0
  21. 05 2月, 2007 1 次提交
    • I
      IB/srp: Don't wait for response when QP is in error state. · 1033ff67
      Ishai Rabinovitz 提交于
      When there is a call to send_tsk_mgmt SRP posts a send and waits for 5
      seconds to get a response.
      
      When the QP is in the error state it is obvious that there will be no
      response so it is quite useless to wait.  In fact, the timeout causes
      SRP to wait a long time to reconnect when a QP error occurs. (Each
      abort and each reset_device calls send_tsk_mgmt, which waits for the
      timeout).  The following patch solves this problem by identifying the
      failure and returning an immediate error code.
      Signed-off-by: NIshai Rabinovitz <ishai@mellanox.co.il>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      1033ff67
  22. 23 1月, 2007 1 次提交
  23. 16 12月, 2006 1 次提交
    • R
      IB/srp: Fix FMR mapping for 32-bit kernels and addresses above 4G · bf628dc2
      Roland Dreier 提交于
      struct srp_device.fmr_page_mask was unsigned long, which means that
      the top part of addresses above 4G was being chopped off on 32-bit
      architectures.  Of course nothing good happens when data from SRP
      targets is DMAed to the wrong place.
      
      Fix this by changing fmr_page_mask to u64, to match the addresses
      actually used by IB devices.
      
      Thanks to Brian Cain <Brian.Cain@ge.com> and David McMillen
      <davem@systemfabricworks.com> for help diagnosing the bug and testing
      the fix.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      bf628dc2
  24. 13 12月, 2006 1 次提交
  25. 30 11月, 2006 2 次提交
  26. 22 11月, 2006 1 次提交
  27. 11 10月, 2006 2 次提交