From patchwork Tue Dec 11 17:13:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 153482 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp866407ljp; Tue, 11 Dec 2018 09:15:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/WlCN5fD/RnepCev1d3EenszDajvkbD4kDY9jnpLBUTwMvCTKc68oflEBptvo3ESz4ZGQzZ X-Received: by 2002:a62:798f:: with SMTP id u137mr17218541pfc.168.1544548506634; Tue, 11 Dec 2018 09:15:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544548506; cv=none; d=google.com; s=arc-20160816; b=oeqRtpMtpVvMHY1ZYb99w4KYE1ly3cuwYlMb1n5ysJwaT/w0MfN2gmyAAfjaCC7A0l CHePeU3pxPG5zwCdQ0ELDTtZBuPvabOprIjvYTwWqIsFVDZQgOLMUwUDBZOimu/PMCL5 9mCLvH4BnBDQcHtv87seo5+yuoKv0aqJoDxOtXx/gbOCrids+Ya3AWgzclLFPOQ9q7nP tZmaG+eVcpqUQ7GFapUM2tFEelszNGXXDzTI1VJGT8YPgdFnQeiJ7Q15S6uDeXlczAku tBw+AadRkGEUPBh8GDuRr9sb9SLfEHywnUVBOecVL3jvKHY8MeXdyIlEQvLZg2Y6VPzj WYkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=q/DldGF3/2KQyKLYwb88BmFuZlQwMKeHM4XOfbWcX5Y=; b=evvsI62QzeNWH01TvOnbD+b8pUdDpvjz/WA06yAUSbfusrtn0Xu1gzvIFxS/NeIDH7 WV1QKqpw5MiAwx0eKE7ZADurVytR2igSB1D5pceuf9cOJjdU/FHdWBNh9BM+ws8mN9DO m8GxsNtSlMxE+fBu1qAoFgvD+QVgQHHxHuGGzMa7agmMhfE6oYBTBBvKGx2uffxZUzeo 2bUEki42eGXATUJYTWsy2e8EMf6UebXoDtVcO7MCFEpRbXgMIQwyPlPuj1voNwzrEoIq QIBwf7MmDS2Qkx8nvHp2DcYPgAOapijNMnDthlKbWMPTxqj/kCayRihTx8FKQQ5LwEiJ Os+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si12307866pgi.388.2018.12.11.09.15.06; Tue, 11 Dec 2018 09:15:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727052AbeLKRPF (ORCPT + 31 others); Tue, 11 Dec 2018 12:15:05 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:16110 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726402AbeLKROM (ORCPT ); Tue, 11 Dec 2018 12:14:12 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 4AFE725D08026; Wed, 12 Dec 2018 01:14:06 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.54) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.408.0; Wed, 12 Dec 2018 01:13:58 +0800 From: Salil Mehta To: CC: , , , , , , Subject: [PATCH net-next 0/6] net: hns3: Add more commands to Debugfs in HNS3 driver Date: Tue, 11 Dec 2018 17:13:24 +0000 Message-ID: <20181211171330.20592-1-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 MIME-Version: 1.0 X-Originating-IP: [10.202.226.54] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch-set adds few more debugfs commands to HNS3 Ethernet Driver. Support has been added to query info related to below items: 1. Packet buffer descriptor ("echo bd info [queue no] [bd index] > cmd") 2. Manager table("echo dump mng tbl > cmd") 3. Dfx status register("echo dump reg ssu [prt id] > cmd") 4. Dcb status register("echo dump reg dcb [port id] > cmd") 5. Queue map ("echo queue map [queue no] > cmd") 6. Tm map ("echo tm map [queue no] > cmd") NOTE: Above commands are *read-only* and are only intended to query the information from the SoC(and dump inside the kernel, for now) and in no way tries to perform write operations for the purpose of configuration etc. liuzhongzhu (6): net: hns3: Add "bd info" query function net: hns3: Add "manager table" information query function net: hns3: Add "status register" information query function net: hns3: Add "dcb register" status information query function net: hns3: Add "queue map" information query function net: hns3: Add "tm map" status information query function drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h | 1 + drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 + drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 136 +++- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 43 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 446 +++++++++++++ .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h | 690 +++++++++++++++++++++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 1 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 20 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h | 7 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 18 + 11 files changed, 1364 insertions(+), 3 deletions(-) -- 2.7.4