RDMA/bnxt_re: Bug fixes
Subsystems (2)
Selvin Xavier
maintainercover RDMA/bnxt_re: Bug fixes
Includes few bug fixes in the driver.
Please review and apply.
Thanks,
Selvin
Kalesh AP (1):
RDMA/bnxt_re: Fix error handling in probe failure path
Kashyap Desai (1):
RDMA/bnxt_re: Initialize dpi_tbl_lock mutex
Selvin Xavier (1):
RDMA/bnxt_re: Fix ib device unalloc
drivers/infiniband/hw/bnxt_re/main.c | 4 +++- drivers/infiniband/hw/bnxt_re/qplib_res.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.5.5
Selvin Xavier
maintainerPATCH 1/3 RDMA/bnxt_re: Fix ib device unalloc
ib_dealloc_device should be called only after device cleanup. Fix the dealloc sequence.
--- drivers/infiniband/hw/bnxt_re/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/bnxt_re/main.c +1 -1
@@ -1526,8 +1526,8 @@ static void bnxt_re_remove(struct auxiliary_device *adev) }bnxt_re_setup_cc (rdev, false);ib_unregister_device (&rdev->ibdev); -ib_dealloc_device (&rdev->ibdev);bnxt_re_dev_uninit (rdev); +ib_dealloc_device (&rdev->ibdev); skip_remove:mutex_unlock (&bnxt_re_mutex); }
Signature · 1 line
2.5.5
Selvin Xavier
maintainerPATCH 2/3 RDMA/bnxt_re: Fix error handling in probe failure path
In reply to Selvin XavierFrom: Kalesh AP <[email protected]>
During bnxt_re_dev_init(), when bnxt_re_setup_chip_ctx() fails unregister with L2 first before bailing out probe.
--- drivers/infiniband/hw/bnxt_re/main.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/infiniband/hw/bnxt_re/main.c +2 -0
@@ -1253,6 +1253,8 @@ static int bnxt_re_dev_init(struct bnxt_re_dev *rdev, u8 wqe_mode) rc =bnxt_re_setup_chip_ctx (rdev, wqe_mode);if (rc) { +bnxt_unregister_dev (rdev->en_dev); +clear_bit (BNXT_RE_FLAG_NETDEV_REGISTERED , &rdev->flags);ibdev_err (&rdev->ibdev,"Failed to get chip context\n" );return -EINVAL ; }
Signature · 1 line
2.5.5
Selvin Xavier
maintainerPATCH 3/3 RDMA/bnxt_re: Initialize dpi_tbl_lock mutex
In reply to Selvin XavierFrom: Kashyap Desai <[email protected]>
Fix the missing dpi_tbl_lock mutex initialization
--- drivers/infiniband/hw/bnxt_re/qplib_res.c | 1 + 1 file changed, 1 insertion(+)
drivers/infiniband/hw/bnxt_re/qplib_res.c +1 -0
@@ -819,6 +819,7 @@ static int bnxt_qplib_alloc_dpi_tbl(struct bnxt_qplib_res *res, }memset ((u8 *)dpit->tbl,0xFF , bytes); +mutex_init (&res->dpi_tbl_lock); dpit->priv_db = dpit->ucreg.bar_reg + dpit->ucreg.offset;return 0 ;
Signature · 1 line
2.5.5
Quoted 6 lines · Selvin Xavier
Includes few bug fixes in the driver.
Please review and apply.Thanks,
Selvin
Quoted 8 lines
Kalesh AP (1):
RDMA/bnxt_re: Fix error handling in probe failure pathKashyap Desai (1):
RDMA/bnxt_re: Initializedpi_tbl_lockmutexSelvin Xavier (1):
RDMA/bnxt_re: Fix ib device unalloc
Applied to for-rc, thanks
Jason