From patchwork Wed Aug 16 09:18:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junxian Huang X-Patchwork-Id: 13354772 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 E747CC001E0 for ; Wed, 16 Aug 2023 09:21:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243293AbjHPJV1 (ORCPT ); Wed, 16 Aug 2023 05:21:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243288AbjHPJVC (ORCPT ); Wed, 16 Aug 2023 05:21:02 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B65562135; Wed, 16 Aug 2023 02:21:00 -0700 (PDT) Received: from kwepemi500006.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RQjGc22pNzFqg5; Wed, 16 Aug 2023 17:18:00 +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; Wed, 16 Aug 2023 17:20:57 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH for-next 0/3] RDMA/hns: Add more debugging information for rdma-tool Date: Wed, 16 Aug 2023 17:18:09 +0800 Message-ID: <20230816091812.2899366-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: dggems704-chm.china.huawei.com (10.3.19.181) 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 1. #1: The first patch supports dumping QP/CQ/MR context entirely in raw data with rdma-tool. 2. #2: The second patch supports query of HW stats with rdma-tool. 3. #3: The last patch supports query of SW stats with rdma-tool. Chengchang Tang (3): RDMA/hns: Dump whole QP/CQ/MR resource in raw RDMA/hns: Support hns HW stats RDMA/hns: Support hns SW stats 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 | 15 +- drivers/infiniband/hw/hns/hns_roce_device.h | 50 ++++++ drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 59 +++++++ drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 1 + drivers/infiniband/hw/hns/hns_roce_main.c | 152 +++++++++++++++++- drivers/infiniband/hw/hns/hns_roce_mr.c | 26 ++- drivers/infiniband/hw/hns/hns_roce_pd.c | 10 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 8 +- drivers/infiniband/hw/hns/hns_roce_restrack.c | 75 +-------- drivers/infiniband/hw/hns/hns_roce_srq.c | 6 +- 12 files changed, 325 insertions(+), 102 deletions(-) --- 2.30.0