1. 05 8月, 2008 1 次提交
    • A
      IB/ipath: Fix printk format warnings · 70117b9e
      Alexander Beregalov 提交于
          ipath_driver.c:1260: warning: format '%Lx' expects type 'long long unsigned int', but argument 6 has type 'long unsigned int'
          ipath_driver.c:1459: warning: format '%Lx' expects type 'long long unsigned int', but argument 4 has type 'u64'
          ipath_intr.c:358: warning: format '%Lx' expects type 'long long unsigned int', but argument 3 has type 'u64'
          ipath_intr.c:358: warning: format '%Lu' expects type 'long long unsigned int', but argument 6 has type 'u64'
          ipath_intr.c:1119: warning: format '%Lx' expects type 'long long unsigned int', but argument 5 has type 'u64'
          ipath_intr.c:1119: warning: format '%Lx' expects type 'long long unsigned int', but argument 3 has type 'u64'
          ipath_intr.c:1123: warning: format '%Lx' expects type 'long long unsigned int', but argument 3 has type 'u64'
          ipath_intr.c:1130: warning: format '%Lx' expects type 'long long unsigned int', but argument 4 has type 'u64'
          ipath_iba7220.c:1032: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'u64'
          ipath_iba7220.c:1045: warning: format '%llX' expects type 'long long unsigned int', but argument 3 has type 'u64'
          ipath_iba7220.c:2506: warning: format '%Lu' expects type 'long long unsigned int', but argument 4 has type 'u64'
      Signed-off-by: NAlexander Beregalov <a.beregalov@gmail.com>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      70117b9e
  2. 08 5月, 2008 2 次提交
    • D
      IB/ipath: Need to always request and handle PIO avail interrupts · e2ab41ca
      Dave Olson 提交于
      Now that we always use PIO for vl15 on 7220, we could get stuck forever
      if we happened to run out of PIO buffers from the verbs code, because
      the setup code wouldn't run; the interrupt was also ignored if SDMA was
      supported.  We also have to reduce the pio update threshold if we have
      fewer kernel buffers than the existing threshold.
      
      Clean up the initialization a bit to get ordering safer and more
      sensible, and use the existing ipath_chg_kernavail call to do init,
      rather than doing it separately.
      
      Drop unnecessary clearing of pio buffer on pio parity error.
      
      Drop incorrect updating of pioavailshadow when exitting freeze mode
      (software state may not match chip state if buffer has been allocated
      and not yet written).
      
      If we couldn't get a kernel buffer for a while, make sure we are
      in sync with hardware, mainly to handle the exitting freeze case.
      Signed-off-by: NDave Olson <dave.olson@qlogic.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      e2ab41ca
    • D
      IB/ipath: Fix bug that can leave sends disabled after freeze recovery · b4d390d8
      Dave Olson 提交于
      The semantics of cancel_sends changed, but the code using it was missed.
      Don't leave sends and pioavail updates disabled, and add a comment as to
      why the force update is needed.
      Signed-off-by: NDave Olson <dave.olson@qlogic.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      b4d390d8
  3. 17 4月, 2008 13 次提交
  4. 26 1月, 2008 9 次提交
  5. 31 10月, 2007 1 次提交
  6. 10 10月, 2007 4 次提交
    • R
      IB/ipath: Fix IB_EVENT_PORT_ERR event · 49739b3e
      Ralph Campbell 提交于
      The link state event calls were being generated when the SM told the SMA
      to change link states. This works for IB_EVENT_PORT_ACTIVE but not if
      the link goes down and stays down. The fix is to generate event calls
      from the interrupt handler when the HW link state changes.
      Signed-off-by: NRalph Campbell <ralph.campbell@qlogic.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      49739b3e
    • M
      IB/ipath: Better handling of unexpected GPIO interrupts · 6a733cdc
      Michael Albaugh 提交于
      The General Purpose I/O pins can be configured to cause interrupts. At
      the end of the interrupt code dealing with all known causes, a message
      is output if any bits remain un-handled. Since this is a "can't happen"
      scenario, it should only be triggered by bugs elsewhere. It is harmless,
      and potentially beneficial, to limit the damage by masking any such
      unexpected interrupts.
      
      This patch adds disabling of interrupts from any pins that should
      not have been allowed to interrupt, in addition to emitting a message.
      Signed-off-by: NMichael Albaugh <Michael.Albaugh@Qlogic.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      6a733cdc
    • A
      IB/ipath: Use counters in ipath_poll and cleanup interrupts in ipath_close · 70c51da2
      Arthur Jones 提交于
      ipath_poll() suffered from a couple subtle bugs.  Under the right
      conditions we could leave recv interrupts enabled on an ipath user
      context on close, thereby taking potentially unwanted interrupts on the
      next open -- this is fixed by unconditionally turning off recv
      interrupts on close.  Also, we now use counters rather than set/clear
      bits which allows us to make sure we catch all interrupts at the cost of
      changing the semantics slightly (it's now give me all events since the
      last time I called poll() rather than give me all events since I called
      _this_ poll routine).  We also added some memory barriers which may help
      ensure we get all notifications in a timely manner.
      Signed-off-by: NArthur Jones <arthur.jones@qlogic.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      70c51da2
    • A
      IB/ipath: iba6110 rev4 GPIO counters support · 327a338d
      Arthur Jones 提交于
      On iba6110 rev4, support for three more IB counters were added.  The
      LocalLinkIntegrityError counter, the ExcessiveBufferOverrunErrors
      counter and support for error counting of flow control packets on an
      invalid VL.  These counters trigger GPIO interrupts and the sw keeps
      track of the counts.  Since we also use GPIO interrupts to signal packet
      reception, we need to turn off the fast interrupts, or we risk losing a
      GPIO interrupt.
      Signed-off-by: NArthur Jones <arthur.jones@qlogic.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      327a338d
  7. 31 7月, 2007 3 次提交
  8. 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
  9. 10 7月, 2007 6 次提交