This patchset introduces hns debugfs and supports SW stats with it. Junxian Huang (3): RDMA/hns: Fix inappropriate err code for unsupported operations RDMA/hns: Add debugfs to hns RoCE RDMA/hns: Support SW stats with debugfs drivers/infiniband/hw/hns/Makefile | 3 +- drivers/infiniband/hw/hns/hns_roce_ah.c | 6 +- drivers/infiniband/hw/hns/hns_roce_cmd.c | 19 +++- drivers/infiniband/hw/hns/hns_roce_cq.c | 17 ++- drivers/infiniband/hw/hns/hns_roce_debugfs.c | 110 +++++++++++++++++++ drivers/infiniband/hw/hns/hns_roce_debugfs.h | 33 ++++++ drivers/infiniband/hw/hns/hns_roce_device.h | 26 +++++ drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 49 ++++++--- drivers/infiniband/hw/hns/hns_roce_main.c | 48 ++++++-- drivers/infiniband/hw/hns/hns_roce_mr.c | 26 +++-- drivers/infiniband/hw/hns/hns_roce_pd.c | 12 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 8 +- drivers/infiniband/hw/hns/hns_roce_srq.c | 6 +- 13 files changed, 319 insertions(+), 44 deletions(-) create mode 100644 drivers/infiniband/hw/hns/hns_roce_debugfs.c create mode 100644 drivers/infiniband/hw/hns/hns_roce_debugfs.h -- 2.30.0