1. 18 1月, 2009 1 次提交
  2. 06 12月, 2008 1 次提交
  3. 30 9月, 2008 1 次提交
  4. 31 7月, 2008 1 次提交
    • V
      IB/ipath: Use unsigned long for irq flags · 52fd8ca6
      Vegard Nossum 提交于
      A few functions in the ipath driver incorrectly use unsigned int to
      hold irq flags for spin_lock_irqsave().
      
      This patch was generated using the Coccinelle framework with the
      following semantic patch:
      
      The semantic patch I used was this:
      
      @@
      expression lock;
      identifier flags;
      expression subclass;
      @@
      
      - unsigned int flags;
      + unsigned long flags;
      
      ...
      
      <+...
      
      (
       spin_lock_irqsave(lock, flags)
      |
       _spin_lock_irqsave(lock)
      |
       spin_unlock_irqrestore(lock, flags)
      |
       _spin_unlock_irqrestore(lock, flags)
      |
       read_lock_irqsave(lock, flags)
      |
       _read_lock_irqsave(lock)
      |
       read_unlock_irqrestore(lock, flags)
      |
       _read_unlock_irqrestore(lock, flags)
      |
       write_lock_irqsave(lock, flags)
      |
       _write_lock_irqsave(lock)
      |
       write_unlock_irqrestore(lock, flags)
      |
       _write_unlock_irqrestore(lock, flags)
      |
       spin_lock_irqsave_nested(lock, flags, subclass)
      |
       _spin_lock_irqsave_nested(lock, subclass)
      |
       spin_unlock_irqrestore(lock, flags)
      |
       _spin_unlock_irqrestore(lock, flags)
      |
       _raw_spin_lock_flags(lock, flags)
      |
       __raw_spin_lock_flags(lock, flags)
      )
      
      ...+>
      
      Cc: Ralph Campbell <ralph.campbell@qlogic.com>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: NVegard Nossum <vegard.nossum@gmail.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      52fd8ca6
  5. 15 7月, 2008 1 次提交
    • R
      IB/ipath: Use IEEE OUI for vendor_id reported by ibv_query_device() · df866619
      Ralph Campbell 提交于
      The IB spe. for SubnGet(NodeInfo) and query HCA says that the vendor
      ID field should be the IEEE OUI assigned to the vendor.  The ipath
      driver was returning the PCI vendor ID instead.  This will affect
      applications which call ibv_query_device().  The old value was
      0x001fc1 or 0x001077, the new value is 0x001175.
      
      The vendor ID doesn't appear to be exported via /sys so that should
      reduce possible compatibility issues.  I'm only aware of Open MPI as a
      major application which depends on this change, and they have made
      necessary adjustments.
      Signed-off-by: NRalph Campbell <ralph.campbell@qlogic.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      df866619
  6. 27 5月, 2008 1 次提交
  7. 19 5月, 2008 1 次提交
  8. 14 5月, 2008 2 次提交
  9. 08 5月, 2008 1 次提交
  10. 22 4月, 2008 3 次提交
  11. 20 4月, 2008 1 次提交
  12. 17 4月, 2008 5 次提交
  13. 26 1月, 2008 3 次提交
  14. 21 11月, 2007 1 次提交
  15. 10 10月, 2007 5 次提交
  16. 18 7月, 2007 1 次提交
    • R
      IB/ipath: Make a few functions static · da9aec7b
      Roland Dreier 提交于
      Make some functions that are only used in a single .c file static.  In
      addition to being a cleanup, this shrinks the generated code.  On x86_64:
      
      add/remove: 1/3 grow/shrink: 2/1 up/down: 4777/-4956 (-179)
      function                                     old     new   delta
      handle_errors                                  -    3994   +3994
      __verbs_timer                                 42     710    +668
      ipath_do_ruc_send                           2131    2246    +115
      ipath_no_bufs_available                      136       -    -136
      ipath_disarm_senderrbufs                     639       -    -639
      ipath_ib_timer                               658       -    -658
      ipath_intr                                  5878    2355   -3523
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      da9aec7b
  17. 10 7月, 2007 7 次提交
  18. 15 5月, 2007 1 次提交
    • A
      IB/ipath: Shadow the gpio_mask register · 8f140b40
      Arthur Jones 提交于
      Once upon a time, GPIO interrupts were rare.  But then a chip bug in
      the waldo series forced the use of a GPIO interrupt to signal packet
      reception.  This greatly increased the frequency of GPIO interrupts
      which have the gpio_mask bits set on the waldo chips.  Other bits in
      the gpio_status register are used for I2C clock and data lines, these
      bits are usually on.  An "unlikely" annotation leftover from the old
      days was improperly applied to these bits, and an unnecessary chip
      mmio read was being accessed in the interrupt fast path on waldo.
      
      Remove the stagnant unlikely annotation in the interrupt handler and
      keep a shadow copy of the gpio_mask register to avoid the slow mmio
      read when testing for interruptable GPIO bits.
      Signed-off-by: NArthur Jones <arthur.jones@qlogic.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      8f140b40
  19. 07 5月, 2007 1 次提交
    • 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
  20. 01 5月, 2007 1 次提交
  21. 25 4月, 2007 1 次提交