1. 04 4月, 2018 2 次提交
  2. 15 3月, 2018 1 次提交
    • A
      infiniband: bnxt_re: use BIT_ULL() for 64-bit bit masks · bd8602ca
      Arnd Bergmann 提交于
      On 32-bit targets, we otherwise get a warning about an impossible constant
      integer expression:
      
      In file included from include/linux/kernel.h:11,
                       from include/linux/interrupt.h:6,
                       from drivers/infiniband/hw/bnxt_re/ib_verbs.c:39:
      drivers/infiniband/hw/bnxt_re/ib_verbs.c: In function 'bnxt_re_query_device':
      include/linux/bitops.h:7:24: error: left shift count >= width of type [-Werror=shift-count-overflow]
       #define BIT(nr)   (1UL << (nr))
                              ^~
      drivers/infiniband/hw/bnxt_re/bnxt_re.h:61:34: note: in expansion of macro 'BIT'
       #define BNXT_RE_MAX_MR_SIZE_HIGH BIT(39)
                                        ^~~
      drivers/infiniband/hw/bnxt_re/bnxt_re.h:62:30: note: in expansion of macro 'BNXT_RE_MAX_MR_SIZE_HIGH'
       #define BNXT_RE_MAX_MR_SIZE  BNXT_RE_MAX_MR_SIZE_HIGH
                                    ^~~~~~~~~~~~~~~~~~~~~~~~
      drivers/infiniband/hw/bnxt_re/ib_verbs.c:149:25: note: in expansion of macro 'BNXT_RE_MAX_MR_SIZE'
        ib_attr->max_mr_size = BNXT_RE_MAX_MR_SIZE;
                               ^~~~~~~~~~~~~~~~~~~
      
      Fixes: 872f3578 ("RDMA/bnxt_re: Add support for MRs with Huge pages")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      bd8602ca
  3. 14 3月, 2018 1 次提交
  4. 07 3月, 2018 1 次提交
    • S
      RDMA/bnxt_re: Avoid Hard lockup during error CQE processing · 942c9b6c
      Selvin Xavier 提交于
      Hitting the following hardlockup due to a race condition in
      error CQE processing.
      
      [26146.879798] bnxt_en 0000:04:00.0: QPLIB: FP: CQ Processed Req
      [26146.886346] bnxt_en 0000:04:00.0: QPLIB: wr_id[1251] = 0x0 with status 0xa
      [26156.350935] NMI watchdog: Watchdog detected hard LOCKUP on cpu 4
      [26156.357470] Modules linked in: nfsd auth_rpcgss nfs_acl lockd grace
      [26156.447957] CPU: 4 PID: 3413 Comm: kworker/4:1H Kdump: loaded
      [26156.457994] Hardware name: Dell Inc. PowerEdge R430/0CN7X8,
      [26156.466390] Workqueue: ib-comp-wq ib_cq_poll_work [ib_core]
      [26156.472639] Call Trace:
      [26156.475379]  <NMI>  [<ffffffff98d0d722>] dump_stack+0x19/0x1b
      [26156.481833]  [<ffffffff9873f775>] watchdog_overflow_callback+0x135/0x140
      [26156.489341]  [<ffffffff9877f237>] __perf_event_overflow+0x57/0x100
      [26156.496256]  [<ffffffff98787c24>] perf_event_overflow+0x14/0x20
      [26156.502887]  [<ffffffff9860a580>] intel_pmu_handle_irq+0x220/0x510
      [26156.509813]  [<ffffffff98d16031>] perf_event_nmi_handler+0x31/0x50
      [26156.516738]  [<ffffffff98d1790c>] nmi_handle.isra.0+0x8c/0x150
      [26156.523273]  [<ffffffff98d17be8>] do_nmi+0x218/0x460
      [26156.528834]  [<ffffffff98d16d79>] end_repeat_nmi+0x1e/0x7e
      [26156.534980]  [<ffffffff987089c0>] ? native_queued_spin_lock_slowpath+0x1d0/0x200
      [26156.543268]  [<ffffffff987089c0>] ? native_queued_spin_lock_slowpath+0x1d0/0x200
      [26156.551556]  [<ffffffff987089c0>] ? native_queued_spin_lock_slowpath+0x1d0/0x200
      [26156.559842]  <EOE>  [<ffffffff98d083e4>] queued_spin_lock_slowpath+0xb/0xf
      [26156.567555]  [<ffffffff98d15690>] _raw_spin_lock+0x20/0x30
      [26156.573696]  [<ffffffffc08381a1>] bnxt_qplib_lock_buddy_cq+0x31/0x40 [bnxt_re]
      [26156.581789]  [<ffffffffc083bbaa>] bnxt_qplib_poll_cq+0x43a/0xf10 [bnxt_re]
      [26156.589493]  [<ffffffffc083239b>] bnxt_re_poll_cq+0x9b/0x760 [bnxt_re]
      
      The issue happens if RQ poll_cq or SQ poll_cq or Async error event tries to
      put the error QP in flush list. Since SQ and RQ of each error qp are added
      to two different flush list, we need to protect it using locks of
      corresponding CQs. Difference in order of acquiring the lock in
      SQ poll_cq and RQ poll_cq can cause a hard lockup.
      
      Revisits the locking strategy and removes the usage of qplib_cq.hwq.lock.
      Instead of this lock, introduces qplib_cq.flush_lock to handle
      addition/deletion of QPs in flush list. Also, always invoke the flush_lock
      in order (SQ CQ lock first and then RQ CQ lock) to avoid any potential
      deadlock.
      
      Other than the poll_cq context, the movement of QP to/from flush list can
      be done in modify_qp context or from an async error event from HW.
      Synchronize these operations using the bnxt_re verbs layer CQ locks.
      To achieve this, adds a call back to the HW abstraction layer(qplib) to
      bnxt_re ib_verbs layer in case of async error event. Also, removes the
      buddy cq functions as it is no longer required.
      Signed-off-by: NSriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
      Signed-off-by: NSomnath Kotur <somnath.kotur@broadcom.com>
      Signed-off-by: NDevesh Sharma <devesh.sharma@broadcom.com>
      Signed-off-by: NSelvin Xavier <selvin.xavier@broadcom.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      942c9b6c
  5. 01 3月, 2018 2 次提交
    • A
      infiniband: bnxt_re: use BIT_ULL() for 64-bit bit masks · a8ed7487
      Arnd Bergmann 提交于
      On 32-bit targets, we otherwise get a warning about an impossible constant
      integer expression:
      
      In file included from include/linux/kernel.h:11,
                       from include/linux/interrupt.h:6,
                       from drivers/infiniband/hw/bnxt_re/ib_verbs.c:39:
      drivers/infiniband/hw/bnxt_re/ib_verbs.c: In function 'bnxt_re_query_device':
      include/linux/bitops.h:7:24: error: left shift count >= width of type [-Werror=shift-count-overflow]
       #define BIT(nr)   (1UL << (nr))
                              ^~
      drivers/infiniband/hw/bnxt_re/bnxt_re.h:61:34: note: in expansion of macro 'BIT'
       #define BNXT_RE_MAX_MR_SIZE_HIGH BIT(39)
                                        ^~~
      drivers/infiniband/hw/bnxt_re/bnxt_re.h:62:30: note: in expansion of macro 'BNXT_RE_MAX_MR_SIZE_HIGH'
       #define BNXT_RE_MAX_MR_SIZE  BNXT_RE_MAX_MR_SIZE_HIGH
                                    ^~~~~~~~~~~~~~~~~~~~~~~~
      drivers/infiniband/hw/bnxt_re/ib_verbs.c:149:25: note: in expansion of macro 'BNXT_RE_MAX_MR_SIZE'
        ib_attr->max_mr_size = BNXT_RE_MAX_MR_SIZE;
                               ^~~~~~~~~~~~~~~~~~~
      
      Fixes: 872f3578 ("RDMA/bnxt_re: Add support for MRs with Huge pages")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      a8ed7487
    • D
      RDMA/bnxt_re: Unconditionly fence non wire memory operations · a45bc17b
      Devesh Sharma 提交于
      HW requires an unconditonal fence for all non-wire memory operations
      through SQ. This guarantees the completions of these memory operations.
      Signed-off-by: NDevesh Sharma <devesh.sharma@broadcom.com>
      Signed-off-by: NSelvin Xavier <selvin.xavier@broadcom.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      a45bc17b
  6. 21 2月, 2018 3 次提交
  7. 01 2月, 2018 1 次提交
  8. 19 1月, 2018 2 次提交
  9. 17 1月, 2018 2 次提交
  10. 14 11月, 2017 5 次提交
  11. 19 10月, 2017 1 次提交
  12. 15 10月, 2017 1 次提交
  13. 23 9月, 2017 6 次提交
  14. 29 8月, 2017 1 次提交
  15. 23 8月, 2017 1 次提交
  16. 19 8月, 2017 1 次提交
  17. 18 8月, 2017 1 次提交
  18. 24 7月, 2017 3 次提交
  19. 20 7月, 2017 5 次提交