Skip to content

RDMA/bnxt_re: Driver Debug Enhancements

Selvin Xavier linux-rdma netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9RDMA/bnxt_re: Add support for collecting the Queue dumpsdrivers/infiniband/hw/bnxt_re/bnxt_re.h drivers/infiniband/hw/bnxt_re/main.c+82 -00 replies
2/9RDMA/bnxt_re: Cache the QP informationdrivers/infiniband/hw/bnxt_re/ib_verbs.c drivers/infiniband/hw/bnxt_re/ib_verbs.h drivers/infiniband/hw/bnxt_re/main.c +1 more+123 -10 replies
3/9RDMA/bnxt_re : Initialize the HW context dump collectiondrivers/infiniband/hw/bnxt_re/main.c drivers/infiniband/hw/bnxt_re/qplib_rcfw.c drivers/infiniband/hw/bnxt_re/qplib_rcfw.h +2 more+62 -00 replies
4/9RDMA/bnxt_re: Get the resource contexts from the HWdrivers/infiniband/hw/bnxt_re/bnxt_re.h drivers/infiniband/hw/bnxt_re/ib_verbs.c drivers/infiniband/hw/bnxt_re/qplib_fp.c +3 more+181 -220 replies
5/9bnxt_en: Introduce ULP coredump callbacksdrivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h+89 -21 reply
6/9RDMA/bnxt_re: Support the dump infrastructuredrivers/infiniband/hw/bnxt_re/main.c+84 -10 replies
7/9RDMA/bnxt_re: Dump the debug information in snapdumpdrivers/infiniband/hw/bnxt_re/main.c+109 -00 replies
8/9RDMA/bnxt_re: Dump the HW context informationdrivers/infiniband/hw/bnxt_re/ib_verbs.c drivers/infiniband/hw/bnxt_re/main.c+42 -60 replies
9/9RDMA/bnxt_re: Add support for changing the snap dump leveldrivers/infiniband/hw/bnxt_re/bnxt_re.h drivers/infiniband/hw/bnxt_re/debugfs.c+51 -00 replies

Reviews trailers per patch

2 of 9 patches have a Reviewed-by or Acked-by.

PatchAndy GospodarekSelvin XavierSaravanan VajravelJakub Kicinski
1/9
2/9
3/9
4/9
5/9R-b R-b A-b
6/9
7/9
8/9
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH rdma-next 0/9] RDMA/bnxt_re: Driver Debug Enhancements

For debugging issues in the field, we need to track some of the resources destroyed in the past. This is primarily required for tracking certain QPs that encountered errors, leading to application exits. A framework has been implemented to save this information and retrieve it during coredump collection.

The Broadcom bnxt L2 driver supports collecting driver dumps using the ethtool -w option. This feature now also supports collecting coredump information from the bnxt_re auxiliary driver. Two new callbacks have been implemented to exchange dump information supported by the auxbus bnxt_re driver.

The bnxt_re driver caches certain hardware information before resources are destroyed in the HW. Additionally,
some resource information from the host is necessary
for gathering meaningful debug information. Both types of information are cached by the driver for a finite (1024 for now)
number of resources.

Please review and apply.

Thanks,
Selvin Xavier

Kashyap Desai (3):
RDMA/bnxt_re : Initialize the HW context dump collection RDMA/bnxt_re: Get the resource contexts from the HW RDMA/bnxt_re: Dump the HW context information

Michael Chan (2):
bnxt_en: Introduce ULP coredump callbacks
RDMA/bnxt_re: Support the dump infrastructure

Saravanan Vajravel (3):
RDMA/bnxt_re: Add support for collecting the Queue dumps RDMA/bnxt_re: Cache the QP information RDMA/bnxt_re: Dump the debug information in snapdump

Selvin Xavier (1):
RDMA/bnxt_re: Add support for changing the snap dump level

 drivers/infiniband/hw/bnxt_re/bnxt_re.h            |  75 ++++++
 drivers/infiniband/hw/bnxt_re/debugfs.c            |  49 ++++
 drivers/infiniband/hw/bnxt_re/ib_verbs.c           | 185 ++++++++++++-
 drivers/infiniband/hw/bnxt_re/ib_verbs.h           |  42 +++
 drivers/infiniband/hw/bnxt_re/main.c               | 290 ++++++++++++++++++++-
 drivers/infiniband/hw/bnxt_re/qplib_fp.c           |  47 +++-
 drivers/infiniband/hw/bnxt_re/qplib_fp.h           |  16 +-
 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c         |   2 +
 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h         |  12 +
 drivers/infiniband/hw/bnxt_re/qplib_res.h          |  14 +
 drivers/infiniband/hw/bnxt_re/qplib_sp.c           |  15 +-
 drivers/infiniband/hw/bnxt_re/qplib_sp.h           |   3 +-
 drivers/infiniband/hw/bnxt_re/roce_hsi.h           |   2 +
 drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c |  12 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c      |  57 ++++
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h      |  22 ++
 16 files changed, 817 insertions(+), 26 deletions(-)
Signature · 1 line
2.5.5