Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp97513lqk; Sat, 9 Mar 2024 02:06:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXZNpQGC2CFMFGVgMZB00WsojynZDXdvJ2fg78+SX+NzRxCCrp33/8Zr8HABXRKVzZIHzKfc8b0B5HNp917Q46xbQ9G1gtG7YxvyB3Efw== X-Google-Smtp-Source: AGHT+IFfaogrgCOHUO0zaierWcp3cabYKLWUSii8Yb8YTIyCWThKhnlLK79EOnF+BWixH2eHnHuT X-Received: by 2002:a05:620a:4712:b0:788:63a5:79c7 with SMTP id bs18-20020a05620a471200b0078863a579c7mr307638qkb.69.1709978805713; Sat, 09 Mar 2024 02:06:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709978805; cv=pass; d=google.com; s=arc-20160816; b=ETauSqBYQ4dMO5dtyYaUwO0oTszS68QbGYt+JI2UA5mn2MfocJHDRj6zaM3Cat1ruR mdpBDPUu5OmAKLylZgForRCcJnWbIQ+SnyEkgFzLzEzIMV/izH9f238WEZGyy0XNsXLS zlw+wnPhoKK8opwb00C06pcGYU3BRcaqDxxjMRcVXrSMtmnPYdfAVyG+VJXfn/sIBevj wHIiHFGh5g9S4BlONxj1fLQx0kKI1CE9zyDozMGeFBG9ROBCuMYvAicJBGMFgnSJPqs3 B0lcCqTOFsQ/ZxobCEi6/W9MhhFvtRCROM5+Sjnr3qWxrTfgYTvWagpioBjNJKcWjQ3M iVkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=BJuut6zc7kNBulm1xoVH0qkxzpwC/gDn1g8Nkql7yxI=; fh=i14fUkG/YR22urRt2ybulLqRSC6OHGr/ZklM+TkXS5Q=; b=y3nM5drNF2EXaYcIYzhnLxzUUE84dZvslmjvoTHmpfIBVsWKcekO8WyJiVljvedYPT MgZUgCBJpfgSYqwp4fADN5xCd2zNv06kdUrUcd9SI/7QLDo01tEQRFsF8W2sQGcuz0oK kAYTKeVN1T9dUiYAWxvOTs6TOtLHAy5JSCxrxNNGqR3j4yjNTXY0KrPeeodlJRWbf3YB uYrpYixoYEAmDci2hEI9+zp+Aj7oMtrprcZ90v/YhMiuv3Xgipfwrqy5nch5T4DQ7EEZ gPmwtRq6k2CNr6vIAV/Ky+woA/sBVjMmtoGmDho45JLnmbcbF6vG0J8TiHp+Cx4cJTGo 4kSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-97841-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c25-20020a05620a165900b00788201977cdsi1277919qko.616.2024.03.09.02.06.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 02:06:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97841-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-97841-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7006E1C20342 for ; Sat, 9 Mar 2024 10:06:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B2F23FBB5; Sat, 9 Mar 2024 10:05:33 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35EDF3D970; Sat, 9 Mar 2024 10:05:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709978732; cv=none; b=KoadVjyIwcASE5jg4aWlMMO20+fmL9cDENr1C0J1mgXgPDvxkhiPXfQkcFWdUInBr65bGnrtesc1jsnSbvvQiFNFv+7MynqRxN/xWyDp2ZA+5KsTGXChRgYAciQBG92nMUMQA4JcIdon+l4IyTV/sb958y5C+57aFmPW3dxtBr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709978732; c=relaxed/simple; bh=+iWHO6GcgleJjy5o5wNtL3f5KainhCIUvXYCx/6tCOA=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=mUB+bB+QxFcEzDaiJ0tl3RZogXoA5zbpScd2a3TVIl+cg2bqg/v9vD8kuJUo92ESER3w/yZ9CbWjI70bieXFfQPa1I9T5KZScQmzPPUEMXzWdbGn+Q0oE32PreEdlklCMaxFMCxn8syR+EEDIyU75Dfk7c/sPc5BRNw26ru7YH0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4TsJX23gYTz1xqVy; Sat, 9 Mar 2024 18:03:30 +0800 (CST) Received: from kwepemm600007.china.huawei.com (unknown [7.193.23.208]) by mail.maildlp.com (Postfix) with ESMTPS id 6EB581400CF; Sat, 9 Mar 2024 18:05:11 +0800 (CST) Received: from localhost.localdomain (10.67.165.2) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Sat, 9 Mar 2024 18:05:10 +0800 From: Jijie Shao To: , , , , , , CC: , , , , , Subject: [PATCH V5 net-next 0/4] Support some features for the HNS3 ethernet driver Date: Sat, 9 Mar 2024 18:00:40 +0800 Message-ID: <20240309100044.2351166-1-shaojijie@huawei.com> X-Mailer: git-send-email 2.30.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600007.china.huawei.com (7.193.23.208) Currently, the hns3 driver does not have the trace of the command queue. As a result, it is difficult to locate the communication between the driver and firmware. Therefore, the trace function of the command queue is added in this patch set to facilitate the locating of communication problems between the driver and firmware. If a RAS occurs, the driver will automatically reset to attempt to recover the RAS. Therefore, to locate the cause of the RAS, it is necessary to save the values of some RAS-related dfx registers before the reset. So we added a patch in this patch set to print these information. --- changeLog: v4 -> v5: - Delete a patch about dump pfc frame statistics in tx timeout log by dmesg, suggested by Jiri Pirko - Rewrite the log message of patch about command queue trace, suggested by Jiri Pirko - Add a new patch about querying scc version by devlink info v4: https://lore.kernel.org/all/20240105010119.2619873-1-shaojijie@huawei.com/ v3 -> v4: - Adjuste the patches sequence in this patch set, suggested by Simon Horman v3: https://lore.kernel.org/all/20231216070018.222798-1-shaojijie@huawei.com/ v2 -> v3: - Fix the incorrect use of byte order in patch "net: hns3: add command queue trace for hns3" suggested by Simon Horman - Add a new patch to move constants from hclge_debugfs.h to hclge_debugfs.c suggested by Simon Horman v2: https://lore.kernel.org/all/20231214141135.613485-1-shaojijie@huawei.com/ v1 -> v2: - Delete a patch for ethtool -S to dump page pool statistics, suggested by Jakub Kicinski - Delete two patches about CMIS transceiver modules because ethtool get_module_eeprom_by_page op is not implemented, suggested by Jakub Kicinski v1: https://lore.kernel.org/all/20231211020816.69434-1-shaojijie@huawei.com/ --- Hao Chen (1): net: hns3: add support to query scc version by devlink info Hao Lan (1): net: hns3: add command queue trace for hns3 Jijie Shao (1): net: hns3: move constants from hclge_debugfs.h to hclge_debugfs.c Peiyang Wang (1): net: hns3: dump more reg info based on ras mod drivers/net/ethernet/hisilicon/hns3/hnae3.h | 13 + .../hns3/hns3_common/hclge_comm_cmd.c | 19 + .../hns3/hns3_common/hclge_comm_cmd.h | 24 +- .../hisilicon/hns3/hns3pf/hclge_debugfs.c | 646 +++++++++++++++++- .../hisilicon/hns3/hns3pf/hclge_debugfs.h | 643 +---------------- .../hisilicon/hns3/hns3pf/hclge_devlink.c | 44 +- .../hisilicon/hns3/hns3pf/hclge_devlink.h | 2 + .../hisilicon/hns3/hns3pf/hclge_err.c | 434 +++++++++++- .../hisilicon/hns3/hns3pf/hclge_err.h | 36 + .../hisilicon/hns3/hns3pf/hclge_main.c | 63 ++ .../hisilicon/hns3/hns3pf/hclge_main.h | 1 + .../hisilicon/hns3/hns3pf/hclge_trace.h | 94 +++ .../hisilicon/hns3/hns3vf/hclgevf_main.c | 40 ++ .../hisilicon/hns3/hns3vf/hclgevf_trace.h | 50 ++ 14 files changed, 1457 insertions(+), 652 deletions(-) -- 2.30.0