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 9EA49A054F; Tue, 16 Mar 2021 15:51:54 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 27C9226006A; Tue, 16 Mar 2021 15:51:54 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2040.outbound.protection.outlook.com [40.107.243.40]) by mails.dpdk.org (Postfix) with ESMTP id 1313426005B for ; Tue, 16 Mar 2021 15:51:53 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U+gnL2G80Q34TAnUJssJ1ierGJKlJS5RkfQJyk0MhPrC/10k3rEAPGjbAyKntsx2O4b0aNkoOGizoWrLZpVhrGRgaBb+P2JRK2ObShiJ/FIy1ltPX+DBlkhiuTAXpEI42xOHby3KvXGLHuNS9+F67UloyvIhbLFKMQ7jc6R1nqM9BsMg84FEvc+Ruy8c/9sj/dNQ3I3cR183v2aZJhB21pqEL67FJnaGyxbX8Z1uoNsavrp+x0OLhADI8ixn+CqHf0O76MXx5JvAyyHCs9a1yBFXJ6x0N9HZLpxI7EwmUptV2I0mAHP7k1a7xm0d5lYdwJcXRNUZP+qLdPJ64CyG+A== 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-SenderADCheck; bh=cTFHH5cJ4pa4b75a14bDlS6G7w8/vdtm8euwUIqnqgQ=; b=ZA0wJESx4ibwmhw/6FwVjLUmJ4s+FagWHvmMBkhTntFM0hsZ7EymJ/a14cjXPqfu3aHGTcSEutOt5UpqLKSPd9eAaX3ZAms3ehFt9L90oMEqfwk2GvsJcIo2wzZpyO1qLXp++9maRcMV6CKf3GbSdDcUXHEaEb6ubZ4vWwFJh+29+kGOktWkj0WYfVn86yYtEZ6RWvYlEA5ezqom42RxvJRIimIzJcNHP21znK2idjfW9XekmJ6zyArHJxQRUbYLn6n7438A+PcwA+ujgFTjC2B+O1hUeBgUQQvtAfHD0c7ZPGd00yz7LNW2FAVawlF3JJZm2k4HMCpvFAD7i7ggzA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none 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=cTFHH5cJ4pa4b75a14bDlS6G7w8/vdtm8euwUIqnqgQ=; b=UWTwZCcusk8zz4fmrdlMKCZdEIDmwEDDvR44tijEz7lQwBZfkv7RfsIJ0OMZ2VkTi4bEi8YA+Va8UA7JMuJo+WbtRnULVF9VS7dXnY+scN5R5nIuWMllR+f/aNEf6MHQtl880KvHjy7VvJgvHoVLAeVXjCxZIXy4LzrRkEpfNuu23CzNbnrdW6QCw8tRNddCEMP6L0wKFGKf5C4I5KwvmjjGCh5bvfhMkSP5nibkRZ5suCOGRut/dqjQ0CKS6p1XciksD/2hKuHs/XQkgHa7TMF0m+ry2HYBbQsqbBA42wiQhLzhDa23e4hM3fbfZv8efWWomOkF+eHvOThDT6lecw== Received: from DM6PR12MB2748.namprd12.prod.outlook.com (2603:10b6:5:43::28) by DM6PR12MB3916.namprd12.prod.outlook.com (2603:10b6:5:1ca::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.32; Tue, 16 Mar 2021 14:51:51 +0000 Received: from DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::3d94:1f7f:178f:aba2]) by DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::3d94:1f7f:178f:aba2%6]) with mapi id 15.20.3912.030; Tue, 16 Mar 2021 14:51:51 +0000 From: Raslan Darawsheh To: Slava Ovsiienko , "dev@dpdk.org" CC: Matan Azrad , Ori Kam Thread-Topic: [PATCH v3 0/5] mlx5: add timestamp format support Thread-Index: AQHXGMttcsYrtPyc00iA++kArhVPDaqGthvg Date: Tue, 16 Mar 2021 14:51:48 +0000 Message-ID: References: <20210307100251.22538-1-viacheslavo@nvidia.com> <20210314121302.5988-1-viacheslavo@nvidia.com> In-Reply-To: <20210314121302.5988-1-viacheslavo@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [188.161.229.138] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a25cd0e3-2f75-4e4e-1c40-08d8e88b08cb x-ms-traffictypediagnostic: DM6PR12MB3916: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3173; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uW9Z6wsnKpqZNLtjcguQqZTS9qK8Dq6Ex6+PeQSE3nguwSEYntk+dWu/eSmFZyWhNqyDHUc1MDyJaeyrz0pfgcp/DJAbaN5keHAEcVXudNh8yATSvMpnP2oQmiDE+XGHY8FkNFM+AyH4VtnMftV8h3nuYuxVhJYZpxu4NLYRNgJHC6Kv7TzZI350A6vB5RrF3RWFnuC3T3jEbEjX5Pc3ipoJKVHJbjqiW1VzNkQ2jX/IbgUCT8OJA/HesYaQ7p3z2/gQ9ygHW4fK3GBR3HoUMU1VyC+A9lWuXhNOfGHU402+3K1Q/9z4w4RfdtG235LvOfViinMzwTHpaVaUYmyAMfGesfXRPzZZidwkleCCKRB1EY42LG7CGn6ZgYNaqmw1MDKEZw1VpTTRJmTT0fBDs3YvQ4etEJZAfEEp7Vc7EAql7pQNFU03dqqE2Z0xJ9a1G9uOJpoPAXB97hW6hmqgA2qJDWT0T8NY/z5xZQzN+etHJoI7VjwHU+GI3MC3dgdMgyxzwJbVlWx8mbHGml9HcX4Q7Ut8XwS4v0JZo9KI2g8EJZQBm7XhCO2rOIvjz8dnj4wPgCfqagfN1cjXGZO6z4yeNl41gRmP7K/TsvDDScRE7tNIL3W5xd3OR8lyvqlcy3EmLH8NIpXZ0Pkg629nfw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB2748.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(39860400002)(376002)(346002)(136003)(107886003)(64756008)(2906002)(66446008)(478600001)(66946007)(55016002)(6666004)(52536014)(76116006)(26005)(110136005)(316002)(186003)(8936002)(9686003)(54906003)(66476007)(966005)(83380400001)(66556008)(6506007)(5660300002)(53546011)(8676002)(71200400001)(7696005)(4326008)(86362001)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?lSvLM6r5JJ0CBtkoVJ2i+c6QrBqB+02nZ5Jago5DC5+H5OSjzemgY81lNmEb?= =?us-ascii?Q?SzINsybP1gUC9wDhlK413ERlk6JKwfPxAtRwtKiqjwY/1FyqdrcBxsK31nJr?= =?us-ascii?Q?oRqKVbsb2+mXiYMM1tl5O/OSBMsjtOu6HNIw3Y5WdXo55Bt3GIRGq8vynkPW?= =?us-ascii?Q?YPFjymyZZLExinh3vsmYf6+mklyY3AA8G+sF/ElT3zcUDHdF4YC6KXiAUpkp?= =?us-ascii?Q?wKzOA/4fAhamUIhQC+cQYt+LMZB3CBTSDR+IeJ+X2UkMJvB3RxSKV9QzNL6T?= =?us-ascii?Q?+k5OsfCns5jTnSknOBImy+P4rH3iXX/fXXkxe56uMHcvVsItzVq7WHw0YWIr?= =?us-ascii?Q?kieo37H4yGWOELzqvxJR39Sh8qcY/wEw6LPY+/60BiZSVvHi1cYcGSvS7wbf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BnztpfwbTcWTG0FwZiwWaqFxbOYSMXDT?= =?us-ascii?Q?XS/0NSzcsT0dMSKvEVd2dCUI?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB2748.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a25cd0e3-2f75-4e4e-1c40-08d8e88b08cb X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Mar 2021 14:51:51.7562 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 4LN48KHG/driwYImHltUUbigZ53j/T5wv3maNcSOIU9VMCmMyTbSJ2mQkHz8ZTYgobMfQ2koxVBmOWjBVCStoQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3916 Subject: Re: [dpdk-dev] [PATCH v3 0/5] mlx5: add timestamp format support 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 Sender: "dev" Hi, > -----Original Message----- > From: Viacheslav Ovsiienko > Sent: Sunday, March 14, 2021 2:13 PM > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > ; Ori Kam > Subject: [PATCH v3 0/5] mlx5: add timestamp format support >=20 > There are two different timestamp formats can be provided potentially > by mlx5 supported hardware. >=20 > The free-running format provides some opaque values captured from > internal clock counter clocked by some independent oscillator. > The free-running frequency is not pre-defined and should be queried > from the NIC. >=20 > The real-time timestamps are presented in nanoseconds and captured from > the dedicated UTC counter, that can be adjusted on the fly and might be > synchronized with some external master clock. >=20 > Depending on the version and configuration the hardware might support > either FR or RT timestamps, or both in the same time on per queue basis. > Since firmware version xx.30.0256 the timestamp format can be configured > via fields in the queue context at the object creation time. For the > compatibility reasons the default zero value configures timestamps with > free-running format. The NIC ConnectX-5 and earlier ones support the > free-running format only. Since ConnectX-6 both formats might be > supported > and configured. The default zero value (specified in the non-defined > yet timestamp format context field) causes the queue creation failure > (rejected by firmware) if the NIC is configured to real-time timestamp > format. >=20 > Hence, it is crucial to check whether firmware/hardware supports > timestamp formats and configure queues accordingly, and this patchset > also must be provided for stable DPDK releases. >=20 > Compatibility affected (without this patchset) summary: > - ConnectX-6DX or BlueField 2 > - real-time format is configured in NV settings > - firmware is xx.30.1000 or higher >=20 > Viacheslav Ovsiienko (5): > common/mlx5: add timestamp format support to DevX > net/mlx5: add timestamp format support > vdpa/mlx5: add timestamp format support > regex/mlx5: add timestamp format support > compress/mlx5: add timestamp format support >=20 > drivers/common/mlx5/mlx5_devx_cmds.c | 35 ++++++++++++++-- > drivers/common/mlx5/mlx5_devx_cmds.h | 7 ++++ > drivers/common/mlx5/mlx5_prm.h | 55 +++++++++++++++++++++++- > - > drivers/compress/mlx5/mlx5_compress.c | 3 ++ > drivers/net/mlx5/linux/mlx5_os.c | 3 ++ > drivers/net/mlx5/mlx5.h | 3 ++ > drivers/net/mlx5/mlx5_devx.c | 2 +- > drivers/net/mlx5/mlx5_flow_age.c | 7 +++- > drivers/net/mlx5/mlx5_txpp.c | 2 + > drivers/net/mlx5/windows/mlx5_os.c | 3 ++ > drivers/regex/mlx5/mlx5_regex.c | 1 + > drivers/regex/mlx5/mlx5_regex.h | 1 + > drivers/regex/mlx5/mlx5_regex_control.c | 1 + > drivers/vdpa/mlx5/mlx5_vdpa.c | 1 + > drivers/vdpa/mlx5/mlx5_vdpa.h | 1 + > drivers/vdpa/mlx5/mlx5_vdpa_event.c | 2 + > 16 files changed, 117 insertions(+), 10 deletions(-) >=20 > -- > v1: https://inbox.dpdk.org/dev/20210307100251.22538-1- > viacheslavo@nvidia.com/ > v2: - remove non needed settings for hairpins > - the unified inline routine to set timestamp format > - typos and rewording commit messages > v3: - fix minor typo bug (, -> ;) in code > - add missed v3 tag >=20 > -- > 2.28.0 Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh