Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1232599rdb; Wed, 16 Aug 2023 05:59:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFUtwcs0Lb1q0Y7vFmp/qlPQWs9Tv8LUqu0P7JSTB+g7dEWsuVJeOCb0QEttyq1q8fJ7x/A X-Received: by 2002:a17:90b:1198:b0:268:2d92:55d3 with SMTP id gk24-20020a17090b119800b002682d9255d3mr1139967pjb.39.1692190746281; Wed, 16 Aug 2023 05:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692190746; cv=none; d=google.com; s=arc-20160816; b=FbCQ1/paIADokb1cNIH37EQcammvbUPuW5ep9a8XFcSua7+CUz0RmJUODkGf3OwAuD IW/4nBzWFmaqb2TK3YYKCflnloeAeAiv7kkfFocgwS+W7i5MbEkx2Hq9ylqA4txTFBTk L9GdM3l3s4RzndwiF6w6LrUi0DUMfmPDrqrSWuB1AHc3JnJICIAU/Q0ehfQXSvsy6+/i bkkUcc6lGzcJ5JTYD+XETCBMAZDAQYmQ55u4lSCpaZE9WMqk9cdu/kUWPPr4uN3Y4xu3 ynEKRR+UMdeAmWxHywuMnzqAKb9PQnT0tyscrinAl1f0pL5uLThg70uKptGmJSQV/QXd 6EWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=3vehhbcxPca3gpM6Efyoi4SEJcdeFA3MuTVENCu4AVQ=; fh=3H3oLXANh5v13tjHxrBYuXblpWbB01kHKe+fQJ1oJi8=; b=NL0a5GNSa1PyHCdt46Ow9uwT9PIwwGn1ugz8F6Q0OQNdNSzof+StHqqVZ5q80S1ymT 3D1rbQ2S0ByqmpQhYW7EWOVa6fyv6jh9wEoaAZRMxqkrx1vleiLLAugHA8tkWRoX04QY akNZW2h1CqaPOKGF6TGzs3eMMLxBKOqBCkitMAdU3GEnztdL/z3brNHdbImlctYfDvsI TsCixUWeO2vqYdxo7skC4A45gye4D2tmvItuJSSnjzV2eaYHDAQtPCam7N8LHvPdDNbL AOwTVIc9G9EsPy0ceFhZEfSHyATAtRZCq0ZLQH1AOVMPC3gArcrnLbxaed4GfGGekWpj xpmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020a17090aa01800b00268030516b6si10926902pjp.101.2023.08.16.05.58.52; Wed, 16 Aug 2023 05:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243308AbjHPJVb (ORCPT + 99 others); Wed, 16 Aug 2023 05:21:31 -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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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