From patchwork Tue Feb 27 17:10:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Thompson X-Patchwork-Id: 1905346 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TkkXz1w8kz23qQ for ; Wed, 28 Feb 2024 04:11:30 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rf0z4-0002Ai-A7; Tue, 27 Feb 2024 17:11:14 +0000 Received: from mail-dm6nam11on2058.outbound.protection.outlook.com ([40.107.223.58] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rf0z1-0002AK-4Q for kernel-team@lists.ubuntu.com; Tue, 27 Feb 2024 17:11:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LQ4ShAlZBxyoEpZBeYcB8bAsK0lZe+/bXfmrC0nduaZvG7vW+npwcRSBwYmaytmj9F48FYQKaNid8dNSe8PvyCCbiHh74LSUob6UXk1ghovnIH342E/Q36m0sF9wG2oNwZvw93XOtPH8T0Bece6WNx9taq6carlRRMLJ46b3HU8N4iIhLPkeRdkosWQGZ9ULyrFIES1LBDfzJsV+tMKHZjM/wqG/fU18gN+THL1/Imn5kAs3Kq+Vo/9NllMRAvTtYVjZ5uczJ60bXCg2TpOeiq/p/RWLSHVpLX8RrvF+VRyJtKXhs3LL7wq1VP6tfZ5DI/W1iVeTPUeStF3rK/WBQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q1K5QJtuo/8T4q7Ihw9NNUF781sOa2+rJP4hLssBl6g=; b=GPSpYos6sHoPc8ZTvn2o8jfuKV/lXrM5NNWogpkI+5/o6HXWCvD5eGWCD3vQlF/se1Kib7/y3XmfHo1xODM3DHz2bZ8WTppZSbhoPNf7PDxSo8DcSm/SoqZqNLu36Qe0CdefH/r4FKN4niLbnifakpyzB44K8GI75k1EHDcXIfXedNEH8nS9idwk1krP/QFsepCSU7J8s1xrdugj7docDsr19bdNuCwOyThKsyuzaKXCYdzsUDzPZPBtSyU6xwcXp0lCKiFsuNv0zL0Q7f7vOCMWe09jcJ+NVrSLtPEWfy6HOmEaBxqHb3jCwBjjYm1OKDz/oaJFBZORUC0V5JGkiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from CH0PR04CA0055.namprd04.prod.outlook.com (2603:10b6:610:77::30) by CH3PR12MB8933.namprd12.prod.outlook.com (2603:10b6:610:17a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.34; Tue, 27 Feb 2024 17:11:05 +0000 Received: from CH1PEPF0000A348.namprd04.prod.outlook.com (2603:10b6:610:77:cafe::ac) by CH0PR04CA0055.outlook.office365.com (2603:10b6:610:77::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.49 via Frontend Transport; Tue, 27 Feb 2024 17:11:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CH1PEPF0000A348.mail.protection.outlook.com (10.167.244.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Tue, 27 Feb 2024 17:11:04 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Tue, 27 Feb 2024 09:10:40 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Tue, 27 Feb 2024 09:10:39 -0800 Received: from vdi.nvidia.com (10.127.8.9) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Tue, 27 Feb 2024 09:10:38 -0800 From: David Thompson To: Subject: [SRU][J:linux-bluefield][PATCH v1 0/1] mlxbf_gige: pause frame counter support Date: Tue, 27 Feb 2024 12:10:35 -0500 Message-ID: X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000A348:EE_|CH3PR12MB8933:EE_ X-MS-Office365-Filtering-Correlation-Id: b986faaa-4cce-4e53-2cc9-08dc37b714b8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3qH8AN2GxQfYrZEt0nDf7KWHfTyYRcI/f0ATbOChGuOht9ikdhPoORLQ3ZRvKOfk2cAe1bu5cgDPFHl0Q1ogn7SnurzfG5f13l4d1Yml3038lh1+p99jrs3WkU9tEZufe6klxUuHjIphp5l/3xPZ4/Bn4M0GLG5PrrdjMcO5LTIjA+LLNMp4bMDoPAMmRXfuGybbjklumWvLTyrN+HFfB8LZX9FbPfyveOq200MX21/kXnM/1XelT9lDJn9rCskClkDd2jzzGnTIzZQwEQbInNBH1+GO4DFyVoFal38tOaMc9txakdxz7m4VRR8d1G1a764qufHH8g3hvqoCG7rZSdn2j+gQ0Grkl2DxR1ivt3pj6q3fGdn0M2A41i4MNxZZLmJNDIZzviXyRdqE5uaO6dSGFUtBCosPHO4SLvGrGTmZE4tEdo4AvYgC59C0NGjXVxeF/vSdcUHCfE5FKv8HJn+XYZn0IWr83x7CyhJ5i3Byv1f68sEHwJh/56q6k8kxPjQJ4zi0Zq2t7FKnx0ZlK0Gr9/p9aijc28jAkK5SVeukQrB/8xzFJYS99dVbfTUvBTbMZYgXdkU86dKzVMlvVQDVBKPEza6J0jA+9GBG8A1c4hsaochf48nkTeoEsO/7tEybTk99YBK+Z8W9H/5Hbo3W4ls7S/JswXVasi198Ws3W6o/ohmnSmT/iqEW0S5MTJUTTfSwQgTs4WFIaUtRDSeRMGUj9jDtBh+ckOLFkfellwxc9s1EoT1vFKVPGUgAFj7fTN/3aL7NHSr+5bwARoxS6YKJchCV1bzP9ouNO1s= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(36860700004)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2024 17:11:04.4360 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b986faaa-4cce-4e53-2cc9-08dc37b714b8 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000A348.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8933 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: asmaa@nvidia.com, David Thompson Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2055086 SRU Justification: [Impact] The BlueField-2 and BlueField-3 silicon designs include a provision for reporting pause frame counters, but the driver (mlxbf_gige) does not have software support yet. [Fix] The fix is to update the mlxbf_gige driver to support the "get_pause_stats()" callback, which enables display of pause frame counters via "ethtool -I -a ooob_net0". The support of this callback was added to Linux kernel 5.9.0 [Test Case] * Reboot BF platform, and configure oob_net0 interface * Issue command "ethtool -I -a oob_net0" to display pause frame counters * Send in multiple streams of traffic to oob_net0 interface, e.g. from two or three simultaneous SCP operations * Re-issue "ethtool -I -a oob_net0" and note difference in output [Regression Potential] The changed logic extends the ethtool support, so low risk for any problem. David Thompson (1): UBUNTU: SAUCE: mlxbf_gige: add support to display pause frame counters .../mellanox/mlxbf_gige/mlxbf_gige_ethtool.c | 39 +++++++++++++++++++ .../mellanox/mlxbf_gige/mlxbf_gige_regs.h | 22 +++++++++++ 2 files changed, 61 insertions(+) Acked-by: Bartlomiej Zolnierkiewicz Acked-by: Andrei Gherzan