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 27DD1A0C4C; Tue, 10 Aug 2021 06:33:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B574E4068E; Tue, 10 Aug 2021 06:33:36 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 52D6F40683 for ; Tue, 10 Aug 2021 06:33:35 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10070"; a="236836019" X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="236836019" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2021 21:33:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="671535857" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga006.fm.intel.com with ESMTP; 09 Aug 2021 21:33:34 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 9 Aug 2021 21:33:33 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 9 Aug 2021 21:33:33 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Mon, 9 Aug 2021 21:33:33 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.105) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Mon, 9 Aug 2021 21:33:31 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aKp67rY2CjC+JB4SStViKWkcrENR5a15WrSmzPj1olZkRujT4uwb8TjEPaIp4Be93aD/WelGD8gwxzmFH4ku3Hpfc61dpg/8d0imzhYfLyuXtvS49QaCElMDCS9fJcWnbLHT6MCzmdWwe/7Soa5drc8Cfx5agPdHM1PGeeZwsI8PZNtWAZJSQUVWmIwZnRztZ3E8qcPTSucB53gHZWGpmXZtAdF3akNLTJBpIASrD6QgmjVQPYFUm+N/2URfVKL1T3mFT3OVcPfA6p4z1eAJY/RydJGZ5qkJB+QBPv3/dADhk3n8QE9b6j2/fwZoZaYamP+it7WgXJ9f41aqaIISeg== 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=50v59bKyA/n2JF7TeExK46WgD+oLNU9Ss8wgAAVylLI=; b=b+Y0tJyC9zxP1X4myZDFcGTjpqe9yTzUjb+mPYMHi+kLwOYi3aCqbBzN+gLuBnj1XTZVnrK4hQn1Ir4t0qJQHzRPGZLTTOcCAkKy3iaPoS1enWFHN2o3RAHASxzHNMyEE2wpyE1m4WKjuin9dyPgSgjCxllrS3v+U+g0hpnNs4ukqte3XVJx/7YJWoh7PkNgd1KIRp30Jr4bSjlI/6XErBkEd5bE6+e+qTMCtdmXEm9nFF4NRjDfZ54KVJtECrPprggbp6b7iZ4agfL5HkOFmyBwZ0B/jzYPER2rxdqQ+T/sZcrq5dWYUbNcGwRVLWwr3U1mXYlzwJ1OqIMF8gCkXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=50v59bKyA/n2JF7TeExK46WgD+oLNU9Ss8wgAAVylLI=; b=IA7wBZEfzcZ4jDoLMpxM6JhtJNYFEXO3Ktc2+U0Za2/RBxPg4Swm9Wc/MOJ0E6if/gi6MitVSNSjWhCW3vj2I+zBC6krCYe2dI6r4s2NDD3w9bGYN1gd0Zey4zTEOEhTSftgMCgfQjjAI8lVF++Et6GxS+ZBqKa79eeKs4C4I3E= Received: from DM6PR11MB3723.namprd11.prod.outlook.com (2603:10b6:5:13f::25) by DM5PR1101MB2074.namprd11.prod.outlook.com (2603:10b6:4:50::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17; Tue, 10 Aug 2021 04:33:24 +0000 Received: from DM6PR11MB3723.namprd11.prod.outlook.com ([fe80::1c0c:7480:b096:196d]) by DM6PR11MB3723.namprd11.prod.outlook.com ([fe80::1c0c:7480:b096:196d%5]) with mapi id 15.20.4394.023; Tue, 10 Aug 2021 04:33:24 +0000 From: "Guo, Junfeng" To: "Zhang, Qi Z" , "Yang, Qiming" CC: "dev@dpdk.org" , "Keller, Jacob E" Thread-Topic: [PATCH 02/28] net/ice/base: add low level functions for device clock control Thread-Index: AQHXjZI9gKgmSOv+uU2+euxsGTKPTatsJh+Q Date: Tue, 10 Aug 2021 04:33:24 +0000 Message-ID: References: <20210810025140.1698163-1-qi.z.zhang@intel.com> <20210810025140.1698163-3-qi.z.zhang@intel.com> In-Reply-To: <20210810025140.1698163-3-qi.z.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e5c4077e-5de9-4030-9d94-08d95bb7fdb8 x-ms-traffictypediagnostic: DM5PR1101MB2074: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PwtDksBdH1yNv/VwzPy73lAjDfRNYduAzj9ggBIKO179HdazYi2zWE6hABrihjjKPSLQnbY8Hc/A1OHtVJexQRyXajA3E6LZdYjL+9OCQKEXilTm/ucCZ+KhSExGKBlacOUuwPTCD91WvgizdM9uhuUTOWaN1OfG9ph/SpBjZBxIgtQeA1pBMSESgvXTnxDogW6VSsEDMPeOwPNVtNLqfNtXkXgg4+zsqEP9V82mGlyzPKWtCcfSrXV3gidWNBEhScNQ+h6h0BfhwFwGxoERdS1tkrUH+DHv7eXi5qf86ayYS4UtWp33s+vhsz1lwwogr4bJXGxnUUc5qICWSUcy82nhZ0ikSjcVUQbSmLWyj6tHiVU6pyYHbIPrrHhINNwteIjviPO/Q5aMwg+KWRLsC9VYgynu7cUfNX88TFs0upi4WmIfVGS3tbT+8c4/76GVfJo8p2jalqD9Sumy+JxKNa7+bM7OtNLHrsVLx+uE52QqChvxoJlbSqVfEzH3SB7lRMwixilSStjPfa8xoWtqLx11eMOZtSFCTTaBICCXbJh/NRySYMpasdLeMaUFDIeWFb2l9uFU2N8YJuCfXcuvQKy14u6OvdAVZzKaBGInijs8Sxxo8b9pP1rldJeA42ycOqmNhrp9eFOQ2+zrpNNhV+BWpx35P82CsIeiTxv+u8EGn6a90SshtC7TCuCLCV1E63waBlO9RoyuLKH+N8iAKQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3723.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(39860400002)(366004)(136003)(26005)(76116006)(66446008)(64756008)(66556008)(66476007)(186003)(33656002)(38070700005)(5660300002)(66946007)(54906003)(83380400001)(110136005)(107886003)(4326008)(7696005)(316002)(2906002)(8936002)(38100700002)(6636002)(6506007)(55016002)(9686003)(52536014)(8676002)(86362001)(478600001)(71200400001)(53546011)(122000001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?v0A+JOflE+27e5BNvs275hP++ktLzjHw82oHA45mMrdCsAcKyM+SQHXxcZYf?= =?us-ascii?Q?6DAS9jrLZvUV7Pysz29ey6nGsKhkmoo20MksUUtRa1pISGphtubsP/jW1ZNQ?= =?us-ascii?Q?cxw1Og0XqYt6O3x367LH9fn0zj35wVZBRHSe30XPoUdrir4aXvcCcwWXxhAQ?= =?us-ascii?Q?JjM4yRQf8XgKtq3dimxHXpnOc/XTsmba7AfP24TVAylSC0lgsJJvVaI3B2iW?= =?us-ascii?Q?07+cwspmLsprCvaj0pL7eM9DFS2gCZ9ZR8WLeH+2TkusmYswO540KetgvoEr?= =?us-ascii?Q?ozTB+0H+jPlF2MarvHMCNnISOGB78ccH7NyePnKRdKpRnEYyO7vnQr9TYYsb?= =?us-ascii?Q?0p/n0eKi5f0EOeQgMt8RzwiDLQ+pnMv+9ZsaDgvxZtGXREk8MsNqXCkzl1IY?= =?us-ascii?Q?F1VG8zMKF6JW7qHH4c2i+UMdRFzDeyXjJtIqXK1eVpO1k7UkWTCJ0HjLKuJy?= =?us-ascii?Q?xF8XXL0328xrQi64tRCwR9jZYVEdseUG06vxwPE6pdAd+9V3jkycUsB458pO?= =?us-ascii?Q?EAnqEXtffbuEwxnKWCKVPiMXbSrKkbV2TtgkMmQAjVc07D0IP3XZ56CYqwdt?= =?us-ascii?Q?tNEm6WsRdvUon2NrCcErfhAWHlkssbheaqH/Oxs7qCvdEc2o8rCr+GoZTVB1?= =?us-ascii?Q?K/kMReTPkkoIbhrs9g8PIhXyDrElt9/iSBprfxRgTfZD7IAftkmpr7jqhERy?= =?us-ascii?Q?EVgQD/1Yhx+HxPM8M233pvDy6o7PUESdWE//KSd9ZB0zwhbKp7VbqKH6Hmp+?= =?us-ascii?Q?teS2qFymKfcIsotOAnBr/p2rhRZXVNM17RenfulRfplohYEMGc0Q0XDxDbxC?= =?us-ascii?Q?MLIv5tm74j96FH09WbTf9rjcVE0R0AQLir/o75j0tljWf10sYBgiANoecviA?= =?us-ascii?Q?eieDxMeprmVTa3x4T01h0lu6csl0ReUSsyzVmr2PCK7NMctMi+8qsroNinOp?= =?us-ascii?Q?8D2it7WpKt5nBanof8m0g3Ii3LVhPF7olQ33dWRmS98GQW9bAgfCc7CPqnOf?= =?us-ascii?Q?15HKWQjB4ZuzAzgkXrVGp+MCvfzTaXjJjHq9sNyU0Ibitgv6L4J5Ej2rRSbX?= =?us-ascii?Q?tupRxPfZvb+TODrk9/8apiyrpmyHaz3DNIxO+UDdTO2jFhcDjgmPmGpqXM15?= =?us-ascii?Q?dMjcZpMGafhZpICtAkwMgkPOLU1VrCH3hDu6YUC7kGF/GVmqk6sExd2/CuMW?= =?us-ascii?Q?faEt5eKQmML9Z2Bs3Lt5il0X+6eT0WZPNMtw1u3SSc8BcMAnzwYppBhdbDFs?= =?us-ascii?Q?7FKqSuiML/sdXWjmbF7iYAQAREgHn9qnnDNJGdRkzPHwIeoOeBbSJsL921wU?= =?us-ascii?Q?t+dhp+KV/WRpbxvEQhK2mqAI?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3723.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5c4077e-5de9-4030-9d94-08d95bb7fdb8 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2021 04:33:24.2213 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EKy2D5ilZjF83L5dfYsXmbI9e7fQAJ05h1qlYSmjr5KjVGqScS0bQRgkhZ8Yq/mJ0tHRvdOw/01pCj9hSz+hIA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1101MB2074 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 02/28] net/ice/base: add low level functions for device clock control 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" > -----Original Message----- > From: Zhang, Qi Z > Sent: Tuesday, August 10, 2021 10:51 > To: Yang, Qiming > Cc: Guo, Junfeng ; dev@dpdk.org; Zhang, Qi Z > ; Keller, Jacob E > Subject: [PATCH 02/28] net/ice/base: add low level functions for device > clock control >=20 > The ice hardware supports exposing a hardware clock for high precision > timestamping. This is primarily intended for accelerating the Precision > Time Protocol. >=20 > Add several low level functions intended to be used as the basis for > enabling the device clock, and ensuring that the port timers are > synchronized properly. >=20 > Signed-off-by: Jacob Keller > Signed-off-by: Qi Zhang > --- > drivers/net/ice/base/ice_adminq_cmd.h | 1 + > drivers/net/ice/base/ice_common.c | 143 ++ > drivers/net/ice/base/ice_common.h | 11 + > drivers/net/ice/base/ice_controlq.c | 52 +- > drivers/net/ice/base/ice_controlq.h | 2 + > drivers/net/ice/base/ice_ptp_consts.h | 86 ++ > drivers/net/ice/base/ice_ptp_hw.c | 2023 > +++++++++++++++++++++++++ > drivers/net/ice/base/ice_ptp_hw.h | 376 +++++ > drivers/net/ice/base/ice_type.h | 3 + > drivers/net/ice/base/meson.build | 1 + > 10 files changed, 2697 insertions(+), 1 deletion(-) > create mode 100644 drivers/net/ice/base/ice_ptp_consts.h > create mode 100644 drivers/net/ice/base/ice_ptp_hw.c > create mode 100644 drivers/net/ice/base/ice_ptp_hw.h > 2.26.2 Acked-by: Junfeng Guo Regards, Junfeng Guo