From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C2AE745AF1; Wed, 9 Oct 2024 13:41:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A5D134270A; Wed, 9 Oct 2024 13:41:07 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2077.outbound.protection.outlook.com [40.107.236.77]) by mails.dpdk.org (Postfix) with ESMTP id AB07242709 for ; Wed, 9 Oct 2024 13:41:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=e8yHGm0+kHUu6PeKposMwMnwByG87uHJVC9X7WuFc67/FXHMGHMUBM3ggQHrNFILg47i6Pd47H1YEgFCTlwI0ODFj+i81l4sOl+SY7zCHY/rzyER9A1483QKZ2MvmqnEP4IiLccyC7OaPND8VknqoE8F4PtMGpy3VnwO/z0vAUQ6+ERX3PSKZQ6BlphsATXMXFPnYRwFUYoAgGQPNWFMjVlk6+G93pFnY+FbACuQGMlF1UnTEYXo/Of3zGTrfEURcCz40f8nI7uP6+zP/3ZyYklMW1YpC7taT+YwJzpZuFdoFgentrKf950Jk8/8EVF+c1Nzt3lOKkKunF1gorToZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=+dw/DwL7wnqhSXeJE8qR5OBYjf1MBPWlLvIYdJNFVzY=; b=pTi+68GvS0oYY1PwyXUpaazwibIYI+KQjCJXrfxhM30J58QW01TZdQU5Z8VlA2dfrgoH2CSWBx/fwelmhqJTmO9Uz0xzZc3ieQ9brxGlawslLDzoea4fr5guJSqTaCuKTNtJKGBWQ3NP7ybxuQkq/ngAXw+n5C47RO5IZQADlaQ2xftLWkDgX87n+aemHdVXZO9pp4QBUex9IY+8z+mO+/JYHoFY2/s4Z29EN/SbGBwukgF3hsNJJo5B3z5ka5fKFQ5bNKYiCYzuhu+K0r95E3i8rNemD+zhkzjmuy6cwkO6nD1sNAo8fX26mbm+bnUCIzF7Mbc/3fIo7Yja6Bm1bA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=dpdk.org 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+dw/DwL7wnqhSXeJE8qR5OBYjf1MBPWlLvIYdJNFVzY=; b=jLt2kjjExp91swYcJPIhSlYoCUpOh/5apVe5OS9VNzrP8hgNUFO6pvw/nwUjX8pFDM9mSFEor5eMD1DsGO0GuI//PuWvG0U9p9dtHLampJk60mATsiaaADi04eyelasHqLVQyi2hkRFMcNaRgiLnIK+o5CGBlH67cXxatSQUvAZrh4VTLpHHbY3B5IVsI4kgjasVPpEMSVG6lMqm7ouiJ7nFr+wSo8K6+q1P/nRE1EwK08R/5DcoA3llCtEN/P/edvoLdeSrZE5YRLy7fJ1oDTu9g5ykJw1cCUCBc0GZaJGEqledTwcacXS/Q6ooL909QuW4TsPYASgThtbuydKAhg== Received: from PH8PR21CA0002.namprd21.prod.outlook.com (2603:10b6:510:2ce::16) by IA1PR12MB9465.namprd12.prod.outlook.com (2603:10b6:208:593::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.16; Wed, 9 Oct 2024 11:41:01 +0000 Received: from SA2PEPF000015CD.namprd03.prod.outlook.com (2603:10b6:510:2ce:cafe::11) by PH8PR21CA0002.outlook.office365.com (2603:10b6:510:2ce::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.6 via Frontend Transport; Wed, 9 Oct 2024 11:41:01 +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 SA2PEPF000015CD.mail.protection.outlook.com (10.167.241.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.13 via Frontend Transport; Wed, 9 Oct 2024 11:41:00 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) 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.1544.4; Wed, 9 Oct 2024 04:40:47 -0700 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 9 Oct 2024 04:40:45 -0700 From: Viacheslav Ovsiienko To: CC: , , , Subject: [PATCH 0/4] net/mlx5: series to fix and improve tx trace capabilities Date: Wed, 9 Oct 2024 14:40:24 +0300 Message-ID: <20241009114028.973284-1-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF000015CD:EE_|IA1PR12MB9465:EE_ X-MS-Office365-Filtering-Correlation-Id: 969880b2-2fc7-49e6-5f74-08dce8573fb0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?aqMXILReo7OyJ4BUcEQyrupJZJyuyfA/GQQ8lclfFqHbtF7lbARFhuHlRCuu?= =?us-ascii?Q?DlM95W9Q1VP54KEYjj2wnrLRyCkKPQnPaNI39FsPL5JRzxich7tSUeqCSjE2?= =?us-ascii?Q?nKECxoHVBjWbxi1N1LLwusYwIysiwgY2BgokrASOvb+MBdF0DLpdkvHGYT3j?= =?us-ascii?Q?SSSlxj2hqyQgzUP6uYQVdrlq2+Y4sfnV4FbyJoUEh9m1RPr+R2PvTWOgxnzQ?= =?us-ascii?Q?TstLxnLgq6e2QecExoNjcrgAIn7d6NdT41rYL6ySUQSViL/zhFBkAuAJFobH?= =?us-ascii?Q?xM6v34QfYwIBWZDKzCTOMWaEAUCjQuaLu6AiBcDGl5tKbOmYnaXeTEb+3CC0?= =?us-ascii?Q?6uf2Mz8gpgnzaMRnz9zoFY7jn4WmZCGxLJwkX9hd6i5pBX0F0+t4DJ0rg+wG?= =?us-ascii?Q?sa6n4JPjXTrcJoRNxc5FgWBKzy2AoROZnKXU4af6fxrCdx5mvFm+7JHJ7gi/?= =?us-ascii?Q?l0gLob7Q3eTnGz6gWcAyt/2w4kjmlR2rwp2E8D9abr2tEesiAD2s9pnPQRBy?= =?us-ascii?Q?q766q1qDvoiORN4iy0niJjnfhWlZUpTHG712fS3F4tqWx72yeyhgT0tTxe07?= =?us-ascii?Q?XtmZ4/w74ZwGlywXaCPK5g8E9Ec53LHw6FsBpmOWqUK+vx0wM1mqCHxz6W+u?= =?us-ascii?Q?bQrgeS4/tJ18PbnzATWwUMg/FXEGP5pfyU2Eku9Bp95bnX+ixbIGCCBuusgK?= =?us-ascii?Q?NEJzArytHwvqeUziyrcqUt98XgzLE4oG7xtigbHduO5ic4zOrVEc9uSQ5/R9?= =?us-ascii?Q?O0YeT7ibmbq6VgBDcghBLNs0Q5XGbDf0RHdiBtup+YpNUw6y6VAAikVbblu3?= =?us-ascii?Q?tSnIAV3uYXeAJ5D+cEdXqmD5UFLQFnMk5vuSFQxTCywEHdKhacRsHSKrPiCi?= =?us-ascii?Q?ilG+H841pOBmFXdNJcBQTLUy9HWrbfYaDkyVe6Advw0jOhS6EEc24FM0e0PR?= =?us-ascii?Q?qVlGpoF5dTlr/b2UBoH11MaGSjusDaGwz51yCQ/Z1Wg35fMuiDKbQj9X+DDS?= =?us-ascii?Q?z0BGXqYPTRK15Oww2cIszj4nEZmkmZiDSdw7IXrWRAHe3i7dzsdWwuxh1lBN?= =?us-ascii?Q?DrVrRRp/z4eOJzrD6cSBj1jfWUd+CT/iXVSjEzqj3En6G1vbpC9Yx8AS4fKl?= =?us-ascii?Q?NvMNN8nJ6kn9zmq9ytAddrvKaMlh+R9zZVF7TZG1gQkWwRIyx0jii0hWNEik?= =?us-ascii?Q?JJbyx96yuioLdBTGGrDAtnwBfQkemmIL/4bW3g2dqM+vtuWz4ioKtFgDpnF7?= =?us-ascii?Q?ofrfx8J2g9/RKNmBVFsKSiCUmYkvUQUQ+Z17OZbty9BC1OLoPEv4xshRPAVU?= =?us-ascii?Q?iEStPXEEJCwgPHp82ZV2XgAxNksfOFCgsMBBq5unmrT0HPL9ubyHPJlZES9p?= =?us-ascii?Q?Hg3q2tl55m5Gci5w1LNi4i9gNZY/?= 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:(13230040)(376014)(1800799024)(82310400026)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 11:41:00.6683 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 969880b2-2fc7-49e6-5f74-08dce8573fb0 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: SA2PEPF000015CD.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB9465 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org There is a series of weakly dependent patches related to the tx trace in mlx5 PMD: - fix issue in the trace dump Python script - update the real-time clock reading routine, make it atomic and move its initialization to the driver startup - advance the tx tracing in mlx5 PMD, provide real time parameter, read from the NIC to synchronize trace records with HW descriptors - update the trace dump script to see raw records and incomplete bursts Signed-off-by: Viacheslav Ovsiienko Tim Martin (2): net/mlx5: fix real time counter reading from PCI BAR net/mlx5: fix Tx tracing to use single clock source Viacheslav Ovsiienko (2): net/mlx5/tools: fix trace dump multiple burst completions net/mlx5: update dump script to show incomplete records .mailmap | 1 + doc/guides/nics/mlx5.rst | 6 ++ drivers/net/mlx5/mlx5.c | 4 ++ drivers/net/mlx5/mlx5_trace.h | 9 ++- drivers/net/mlx5/mlx5_tx.h | 53 ++++++++++++++-- drivers/net/mlx5/mlx5_txpp.c | 11 +--- drivers/net/mlx5/tools/mlx5_trace.py | 90 ++++++++++++++++++++-------- 7 files changed, 133 insertions(+), 41 deletions(-) -- 2.34.1