Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp130920rdb; Mon, 18 Sep 2023 10:04:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZRn/a5yDR7eLqWYO6tmy46Jgl5nW347d/Rbvb0s8n5OQWl9zTz2FD12XmBnieamWALSbI X-Received: by 2002:a17:902:d491:b0:1c3:e3b1:98df with SMTP id c17-20020a170902d49100b001c3e3b198dfmr10287733plg.52.1695056695360; Mon, 18 Sep 2023 10:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695056695; cv=none; d=google.com; s=arc-20160816; b=KN6YCGHJA1X1uNiLyZW4qC3rAtjboPzOr8kg2bOphAg24p2IdvU2YDRBpVL+Wb0ha4 ikna31ivwaApXUwZwHR2/jRK5ISZNcvwGxHWmh/4f7YSgyCC/GJeEpru8UDt4todhp2d ldd9Kur7Ft+e6jRVZ9sKztkX7dVblCw/AjeM/bHOpNP9vBikN4QiK0PY9jfdMyYeE4iM qsgPA1CLCZGabT+bQ5wILPtPB+9a7BY7sQvaRfWyD+aA9IBHRF1gZdFaDRbFwQGa4++F 9iUQgTK8VdnOQogIB+s8uclh0ZBFNAkD41Bp/LIb8pX2wAp5u5S0an/e0NS9TGeSF39T 9C3w== 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=uBlLCJmBTxlXAZbaa21iSGqLYE4TOH29XjcxJvO51h4=; fh=KWvyQxL3Ff+3WPSMjlYu+P4255AmcMULAsFol6M1vNI=; b=MCFjTqqgsmE0QPxsF5lG/DrZegysXzLOBe0U3vk7sCKmRnw5o7ragpYykJL3AzgMjd VxfNSI+t3Y0OYyoS6GHqlXRxz4MVLWuaWVmTPaE+ZwE/azxzOElTwa2re1WO7iHYJA19 vqbHezdvEYp2CNnp8rrPABve7mdCMXRBAOKwuIsHqOQBKiTkbEM4Di7A6NCpyJW+p3ec lP8upIIcMfDKvxqSKDli0dr1iTvoyQ4MDoEzRkqdbRUsQ5uOV6lpg+2iyEj55wioFzUv 48nRKacNuAIyCxiPrXqxsciV0M8YXnzg9BprrcKGqGVqmJpYElZTt2KMvitadi0qmyCl tu3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id k7-20020a170902c40700b001b3c63eba76si8546721plk.492.2023.09.18.10.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:04:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 69733818238C; Mon, 18 Sep 2023 09:51:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230185AbjIRQvw (ORCPT + 99 others); Mon, 18 Sep 2023 12:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbjIRQvv (ORCPT ); Mon, 18 Sep 2023 12:51:51 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C98DD8E; Mon, 18 Sep 2023 09:51:45 -0700 (PDT) Received: from kwepemi500006.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Rq4tX51HdzVjy5; Mon, 18 Sep 2023 21:11:16 +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; Mon, 18 Sep 2023 21:14:11 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH RFC for-next 0/3] Add more resource dumping to rdmatool for SRQ Date: Mon, 18 Sep 2023 21:11:07 +0800 Message-ID: <20230918131110.3987498-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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 09:51:56 -0700 (PDT) Add more resource dumping to rdmatool for SRQ. wenglianfa (3): RDMA/core: Add dedicated SRQ resource tracker function RDMA/core: Add support to dump SRQ resource in RAW format RDMA/hns: Support SRQ restrack ops for hns driver drivers/infiniband/core/device.c | 2 + drivers/infiniband/core/nldev.c | 26 +++++++++- drivers/infiniband/hw/hns/hns_roce_device.h | 3 ++ drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 25 ++++++++++ drivers/infiniband/hw/hns/hns_roce_main.c | 2 + drivers/infiniband/hw/hns/hns_roce_restrack.c | 49 +++++++++++++++++++ include/rdma/ib_verbs.h | 2 + include/uapi/rdma/rdma_netlink.h | 2 + 8 files changed, 110 insertions(+), 1 deletion(-) -- 2.30.0