From patchwork Tue Nov 14 12:34:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junxian Huang X-Patchwork-Id: 13455224 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE9A6C4167B for ; Tue, 14 Nov 2023 12:38:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232919AbjKNMiW (ORCPT ); Tue, 14 Nov 2023 07:38:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232725AbjKNMiV (ORCPT ); Tue, 14 Nov 2023 07:38:21 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B34F134; Tue, 14 Nov 2023 04:38:18 -0800 (PST) Received: from kwepemi500006.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4SV5MH3NgDzPpGB; Tue, 14 Nov 2023 20:34:03 +0800 (CST) Received: from localhost.localdomain (10.67.165.2) by kwepemi500006.china.huawei.com (7.221.188.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Tue, 14 Nov 2023 20:38:15 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH for-next 0/3] Support SW stats with debugfs Date: Tue, 14 Nov 2023 20:34:46 +0800 Message-ID: <20231114123449.1106162-1-huangjunxian6@hisilicon.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-Originating-IP: [10.67.165.2] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemi500006.china.huawei.com (7.221.188.68) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org 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