The hns driver already supports CQ's restrack ops. Therefore, this patchset supports QP/MR's restrack ops and CQ/QP/MR's restrack raw ops. Among them, restrack ops dump the queue information maintained by the driver, and restrack raw ops dump the queue context maintained by ROCEE. Changes since v1: * Add support for restrack raw ops. * Add the result dumped by rdmatool in the commit message. * v1 Link: https://patchwork.kernel.org/project/linux-rdma/cover/20220124124624.55352-1-liangwenpeng@xxxxxxxxxx/ Wenpeng Liang (7): RDMA/hns: Remove redundant DFX file and DFX ops structure RDMA/hns: Add or remove CQ's restrack attributes RDMA/hns: Support CQ's restrack raw ops for hns driver RDMA/hns: Support QP's restrack ops for hns driver RDMA/hns: Support QP's restrack raw ops for hns driver RDMA/hns: Support MR's restrack ops for hns driver RDMA/hns: Support MR's restrack raw ops for hns driver drivers/infiniband/hw/hns/Makefile | 2 +- drivers/infiniband/hw/hns/hns_roce_device.h | 17 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 76 +++++- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 6 +- .../infiniband/hw/hns/hns_roce_hw_v2_dfx.c | 34 --- drivers/infiniband/hw/hns/hns_roce_main.c | 11 +- drivers/infiniband/hw/hns/hns_roce_restrack.c | 220 ++++++++++++++---- 7 files changed, 263 insertions(+), 103 deletions(-) delete mode 100644 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c -- 2.30.0