Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp805187imu; Sat, 15 Dec 2018 07:35:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/UM5RlgBF+s2kSBPvyJJ1b7akGJPEvypfy2Tm/+3bnGiGbSqK2BH+MF2WVI1xi68gaA+SG4 X-Received: by 2002:a17:902:503:: with SMTP id 3mr6811003plf.233.1544888125465; Sat, 15 Dec 2018 07:35:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544888125; cv=none; d=google.com; s=arc-20160816; b=IwJKPAodHajYFfou8hJGebklPNQvFffkgHDea++2NDjbhf6vy9+X/JrGmAYhuwDOvd TR/4m5waPuAHVOpXNGFFtRCop4m7O4e9FF1X8vDnQnAjjORTTcho8xirQW0vTkE/Rrie GRupMfKkMDMRqksPTJFxwugEexbBGs624NnA75NGCM5X1zbZLG4qrin3XacSBeKf6zWm IPZLkwBsf58WgeCe8ZAc4Y5QwRG1kIlfL8D8bfsDsmBiapwpnO9BUjySHmGkvs0Q4jnG J/9/b0FaY9yLU5OZVHJqBPGjXkOwpfytSkbIDrn3R2DZ5iWuZ2nsg/YYrE/vqc7XWIkL L/NA== 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=CyfH/SFX0A6gYq9EAygmJAr9uP8kDCku/q3KLRqGbE4=; b=iKpm7gu5eRDA1mDKgzDQc4yFHWA3Zo9fkth3lP/0kjLVyV25gluS6GcRQZXCKkbes2 qVF5wEeqSs/GJ0idX231cjyWs5Jyfz7zMYtYK3k+Ppmom+MV7LDgQUaW+IaB+e5SOhno Anl7b0fV6eq9mN60kQ4W6Kpq++eFngCLx6zWIGklWdgyG/s8RhS+ErI+kImbLn2r8HPV RxcuZ4pJBmHY2t67LCwRY/nt+XpM5Q1SHRlDw46AFPGkV9fmaTORttxrovB0Rq6bQFou vkMmyZ015OqIzBTi9douMqSfdp30kbP3eJY7garj5BlyaNa67y/uQAX012z7AYGbokpF dncA== 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 h75si6857050pfj.257.2018.12.15.07.35.10; Sat, 15 Dec 2018 07:35:25 -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 S1730448AbeLOPcu (ORCPT + 99 others); Sat, 15 Dec 2018 10:32:50 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:16571 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730182AbeLOPcu (ORCPT ); Sat, 15 Dec 2018 10:32:50 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 97A1AD3B3474D; Sat, 15 Dec 2018 23:32:43 +0800 (CST) Received: from S00293818-DELL1.home (10.47.95.25) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.408.0; Sat, 15 Dec 2018 23:32:34 +0800 From: Salil Mehta To: CC: , , , , , , Subject: [PATCH V2 net-next 0/6] net: hns3: Add more commands to Debugfs in HNS3 driver Date: Sat, 15 Dec 2018 15:31:52 +0000 Message-ID: <20181215153158.1239-1-salil.mehta@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.47.95.25] 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. Change Log: V1-->V2: 1. Addressed the GCC-8.2 compiler issue reported by David S. Miller. Link: https://lkml.org/lkml/2018/12/14/1298 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 | 140 ++++- .../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, 1366 insertions(+), 5 deletions(-) -- 2.11.0