1. 11 4月, 2006 2 次提交
    • M
      IB/mthca: Disable tuning PCI read burst size · abf45dbb
      Michael S. Tsirkin 提交于
      The PCI spec recommends against drivers playing with a device's PCI
      read burst size, and says that systems software should configure it.
      And we actually have users that report that changing it from the
      default set by BIOS hurts performance and/or stability for them.  On
      the other hand, the Mellanox Programmer's Reference Manual recommends
      turning it up all the way to the maximum value.  Some tests conducted
      here in the lab do not show performance improvement from this tuning,
      but this might be just me.
      
      As a work-around, make this tuning an option, off by default (safe
      value), with an eye towards removing it completely one day if no one
      complains.
      Signed-off-by: NMichael S. Tsirkin <mst@mellanox.co.il>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      abf45dbb
    • J
      IB: simplify static rate encoding · bf6a9e31
      Jack Morgenstein 提交于
      Push translation of static rate to HCA format into low-level drivers,
      where it belongs.  For static rate encoding, use encoding of rate
      field from IB standard PathRecord, with addition of value 0, for
      backwards compatibility with current usage.  The changes are:
      
       - Add enum ib_rate to midlayer includes.
       - Get rid of static rate translation in IPoIB; just use static rate
         directly from Path and MulticastGroup records.
       - Update mthca driver to translate absolute static rate into the
         format used by hardware.  This also fixes mthca's static rate
         handling for HCAs that are capable of 4X DDR.
      Signed-off-by: NJack Morgenstein <jackm@mellanox.co.il>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      bf6a9e31
  2. 03 4月, 2006 1 次提交
    • R
      IB/mthca: Always build debugging code unless CONFIG_EMBEDDED=y · 227c939b
      Roland Dreier 提交于
      Change the mthca debugging trace output code so that it can enabled
      and disabled at runtime with the debug_level module parameter in
      sysfs.  Also, don't allow CONFIG_INFINIBAND_MTHCA_DEBUG to be disabled
      unless CONFIG_EMBEDDED is selected.  We want users (and especially
      distros) to have this turned on unless they really need to save space,
      because by the time we want debugging output, it's usually too late to
      rebuild a kernel.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      227c939b
  3. 30 3月, 2006 2 次提交
  4. 25 3月, 2006 6 次提交
  5. 21 3月, 2006 21 次提交
  6. 14 2月, 2006 1 次提交
  7. 11 2月, 2006 1 次提交
    • R
      IB/mthca: Don't print debugging info until we have all values · f295c79b
      Roland Dreier 提交于
      When debugging is enabled, the mthca_QUERY_DEV_LIM() firmware command
      function prints out some of the device limits that it queries.
      However the debugging prints happen before all of the fields are
      extracted from the firmware response, so some of the values that get
      printed are uninitialized junk.  Move the prints to the end of the
      function to fix this.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      f295c79b
  8. 31 1月, 2006 3 次提交
    • R
      IB/mthca: Semaphore to mutex conversions · fd9cfdd1
      Roland Dreier 提交于
      Convert semaphores to mutexes in mthca.  Leave firmware command
      interface poll_sem and event_sem as semaphores.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      fd9cfdd1
    • M
      IB/mthca: Don't cancel commands on a signal · e3aa31c5
      Michael S. Tsirkin 提交于
      We have run into the following problem: if a task receives a signal
      while in the process of e.g. destroying a resource (which could be
      because the relevant file was closed) mthca could bail out from trying
      to take a command interface semaphore without performing the
      appropriate command to tell hardware that the resource is being
      destroyed.
      
      As a result we see messages like
       ib_mthca 0000:04:00.0: HW2SW_CQ failed (-4)
      
      In this case, hardware could access the resource after the memory has
      been freed, possibly causing memory corruption.
      
      A simple solution is to replace down_interruptible() by down() in
      command interface activation.
      Signed-off-by: NMichael S. Tsirkin <mst@mellanox.co.il>
      [ It's also not safe to bail out on multicast table operations, since
        they may be invoked on the cleanup path too.  So use down() for
        mcg_table.sem too. ]
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      e3aa31c5
    • M
      IB/mthca: Relax UAR size check · cbd2981a
      Michael S. Tsirkin 提交于
      There are some cards around that have UAR (user access region) size
      different from 8 MB.  Relax our sanity check to make sure that the PCI
      BAR is big enough to access the UAR size reported by the device
      firmware instead.
      Signed-off-by: NMichael S. Tsirkin <mst@mellanox.co.il>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      cbd2981a
  9. 22 1月, 2006 1 次提交
  10. 13 1月, 2006 2 次提交