1. 26 5月, 2018 1 次提交
    • D
      RDMA/bnxt_re: Fix broken RoCE driver due to recent L2 driver changes · 6e04b103
      Devesh Sharma 提交于
      The recent changes in Broadcom's ethernet driver(L2 driver) broke
      RoCE functionality in terms of MSIx vector allocation and
      de-allocation.
      
      There is a possibility that L2 driver would initiate MSIx vector
      reallocation depending upon the requests coming from administrator.
      In such cases L2 driver needs to free up all the MSIx vectors
      allocated previously and reallocate/initialize those.
      
      If RoCE driver is loaded and reshuffling is attempted, there will be
      kernel crashes because RoCE driver would still be holding the MSIx
      vectors but L2 driver would attempt to free in-use vectors. Thus
      leading to a kernel crash.
      
      Making changes in roce driver to fix crashes described above.
      As part of solution L2 driver tells RoCE driver to release
      the MSIx vector whenever there is a need. When RoCE driver
      get message it sync up with all the running tasklets and IRQ
      handlers and releases the vectors. L2 driver send one more
      message to RoCE driver to resume the MSIx vectors. L2 driver
      guarantees that RoCE vector do not change during reshuffling.
      
      Fixes: ec86f14e ("bnxt_en: Add ULP calls to stop and restart IRQs.")
      Fixes: 08654eb2 ("bnxt_en: Change IRQ assignment for RDMA driver.")
      Signed-off-by: NDevesh Sharma <devesh.sharma@broadcom.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      6e04b103
  2. 24 5月, 2018 4 次提交
  3. 16 5月, 2018 1 次提交
    • L
      IB/umem: Use the correct mm during ib_umem_release · 8e907ed4
      Lidong Chen 提交于
      User-space may invoke ibv_reg_mr and ibv_dereg_mr in different threads.
      
      If ibv_dereg_mr is called after the thread which invoked ibv_reg_mr has
      exited, get_pid_task will return NULL and ib_umem_release will not
      decrease mm->pinned_vm.
      
      Instead of using threads to locate the mm, use the overall tgid from the
      ib_ucontext struct instead. This matches the behavior of ODP and
      disassociate in handling the mm of the process that called ibv_reg_mr.
      
      Cc: <stable@vger.kernel.org>
      Fixes: 87773dd5 ("IB: ib_umem_release() should decrement mm->pinned_vm from ib_umem_get")
      Signed-off-by: NLidong Chen <lidongchen@tencent.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      8e907ed4
  4. 09 5月, 2018 23 次提交
  5. 04 5月, 2018 8 次提交
  6. 01 5月, 2018 1 次提交
  7. 28 4月, 2018 2 次提交