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 D1611A0C47; Tue, 10 Aug 2021 06:38:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B66474068E; Tue, 10 Aug 2021 06:38:42 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id DDE2F40683 for ; Tue, 10 Aug 2021 06:38:40 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10070"; a="300421052" X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="300421052" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2021 21:38:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="674612720" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga005.fm.intel.com with ESMTP; 09 Aug 2021 21:38:39 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) 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:38:39 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) 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:38:39 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.175) by edgegateway.intel.com (192.55.55.68) 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:38:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CHuPlKisAVJjefKUnJSqMy1DEugHPqf4woxsT5fTdv2y44lwaljBz+4FN1qt4t7J0MSDeDvP5aP+MX/+42IyL850VBcQlFTCm99Fzxhdw+ZvlsV4Xa/7C3HulNZpiD5vyoJiqoDPFAEZtPztcM+JabE9Nk/CXRNIXlAF6bCcSCtDy8CNHiiHIEbY3V5mmXSQIlfe+jd0ODjM1uj8MgyJS9u3MBLffNOYXu136P/voTXpupe2MREaG/tXOigCoeaFsIC09b8f2zlRgHd9B2FDz8deiiq8BwSkhZhmRuWxPMwiHCuACr5Iu8o+mw0sRt5pG9QVjTADxgBRsicsX8m7/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=rpw/SF3tXzuMHs6Jv2ZASzmfhu1JAfgZvKsDoZjIn7E=; b=CGk8cplBp6ELok7HBU8NJFb7+RSkK1OEsrhqyDbXEcSB1gvSOUup+Ss+tkVsuWFalblR1nydf1MFKIoNgac203T0Np6cj0iS9YWW1rnWEKeCtjxU/3/cxc5Id+vO4hWtbTDWzcvCtsMedPJGSzUsYEStzHOLl/sRzquaAC4ygoqwr59RoISA6rxbDCaE0AvTWyRDnBFjma81Gn8u1SoR/L4yRpfDuqJtRpifX9ep2mz777PkpuSRcz/lX59FsJGnzuH7qjpEJ/0JfQIEF8n6ou550y/t3+SquWbx+vlh815FLXu+7fD4fZa4pVSrNZemgETA9Fg7UuIaRLv2lGyObg== 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=rpw/SF3tXzuMHs6Jv2ZASzmfhu1JAfgZvKsDoZjIn7E=; b=Ze4sq3DX/tJu50Sibrgp6GU7pUef8x2tHg7JiGkDB1wUTW+FMifMfK0w+xtkc/4AlrXZ96D85zUJ7r5YK5DCW6ArGeIWJs2MG2zsV0bvecwmtgRhOgdWXLjns34f5n10+CJbpDDp88IdmvYPiZfbltg+vwcuRR6peslV83he5/k= Received: from DM6PR11MB3723.namprd11.prod.outlook.com (2603:10b6:5:13f::25) by DM6PR11MB3322.namprd11.prod.outlook.com (2603:10b6:5:55::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.21; Tue, 10 Aug 2021 04:38:33 +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:38:33 +0000 From: "Guo, Junfeng" To: "Zhang, Qi Z" , "Yang, Qiming" CC: "dev@dpdk.org" , "Keller, Jacob E" Thread-Topic: [PATCH 09/28] net/ice/base: implement Vernier calibration logic for E822 devices Thread-Index: AQHXjZJJkTxFRhuWLEuGmd9JYh0vkKtsJ9Sg Date: Tue, 10 Aug 2021 04:38:33 +0000 Message-ID: References: <20210810025140.1698163-1-qi.z.zhang@intel.com> <20210810025140.1698163-10-qi.z.zhang@intel.com> In-Reply-To: <20210810025140.1698163-10-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: c1a3512c-5b48-4c94-ed8d-08d95bb8b5d7 x-ms-traffictypediagnostic: DM6PR11MB3322: 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:6108; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HmGOkTWJ0kO+ebFskmPosrSsQ3h5lqoXuvEP0GacLXiNBf/1KONRwYLdUy6TNpD2VXjpxEkBglSxxp/i5FECEKf6Znbl4jxTkRj5f8A+/5GPry2zq4czjr+6qKwfVe7uI6n6MBXl7BMhaMY1Ab03DlSLeejS51AA1mZEjqB6U94Ev2VyovfDEx3t+7YS5BvqMpWgUXbnlYwF+QvFhW2rAw+Yt5An5uWkZokA6hMoxF3+85FpBh9ZBqqaApnzzn8VUTa4jXQ2BCR4/L4+0jrrtsdSkPJ/PB7nf/l9D+DtU5mwxyxh/zrd41JxWFSoS8Dpga3+FeemUj2DFGNDY3sCW1fFCtl/0EzUVaG8/xj2D55gjNftCzSGG9uZ+KbNsIT1zh0JF9S0qVy7aL4amT62ppEJBjL395DoOCwgywYez0aCrdVWTJXhFhL42beh0Pmfk0c0oWt938lumFSuhtRU1CtiRwP00yPuDyfcuJSI5UUDjobMVHp35xvDtzO3NbaiHkJ4zXcj5GiOZuani2tS5CzF93glcaLZAIr/H886NbF2NlwihPuqLjmIRmZx/Qyfu5kCLD5quW7RgQzoGkwsASb8h5v9mS9iGLIynbGQc0BdtpXkYv4V5CH5dchfWqqTluN8MYke6wcQIke2bF767GhNlCffe9+b/dil6DAC6NlaS5n377h0LiXqr5QgOST3ap2y8iZCLRdQWxRonM/Ofw== 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)(39860400002)(136003)(376002)(366004)(396003)(346002)(316002)(9686003)(83380400001)(110136005)(122000001)(38100700002)(52536014)(6506007)(7696005)(53546011)(66476007)(64756008)(66446008)(38070700005)(186003)(2906002)(66556008)(107886003)(26005)(33656002)(71200400001)(4326008)(8936002)(55016002)(8676002)(6636002)(66946007)(86362001)(76116006)(54906003)(5660300002)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?iQDZw2M+bRuVMPPzZwgDpFjl3QUpY75+Bc0GQqwFmWdmlHpz8e56xGBxM1v0?= =?us-ascii?Q?tkArTQqyZj8dXylWcu01d85sE6nUNf3YYACd/cV2eqAUxvntxvoxxdSfq4DU?= =?us-ascii?Q?LPHtyYATNCR6EI+y8IZ4u7bLGe2DziAR89qlRqIFq+EqwSsukqHT19Hxcf33?= =?us-ascii?Q?mUCQb4S/DlzGI6tfTAf4fkrctwizlxupnGD3YJjlXLbtOLSzNeoalnaBAJH6?= =?us-ascii?Q?M/t3ew9QF6qjg1G5zwtOzSMHMbb1fVmf6IesmAUrZjiEFR88gRApYKk7xdyw?= =?us-ascii?Q?pfk85bKpVdbA88/9hK+LsZjN+csm/X5HgCqcmzfBGKtSWAKo8ZId39fLfqQJ?= =?us-ascii?Q?VdcQt3dibM3n5VMFq+4JUwCODFXYWzoiWSHXqWz8VtHrrI9y4/ekSBG3HqOd?= =?us-ascii?Q?S9eR2xQ+RP6AaMX//zbfiHxW85zjOeTy+yRH2ST1belt3lJssa8Tl4/IRWrM?= =?us-ascii?Q?+cvexvuMrR54NPlFeY4zHG3S0lJCYjfBD36R4c6S3Byb6t4zDJcSQ5V+RRQ8?= =?us-ascii?Q?LbLrYqbp3oXTlTwoo4OQ5v8juEJTKAa/YfYmigplvBpSFsMmuYLMWfQhpoJ0?= =?us-ascii?Q?kF17p3BYeEnrot9blY2I+GwUT1X9pRP2WpXo9FEwkvBxwx+TJEtnvtNS+t4q?= =?us-ascii?Q?lz2NfHK6YCmzrRGAjFPEdam4h6YsY3t2YX8P3Q/7ywDgcHWZf9p234bMGFex?= =?us-ascii?Q?H9V2XxoWAIN1YtMfmTnJgCQ3CVB7DnWr/3w2dx3scpBFKs9QaYgCms7ePWp1?= =?us-ascii?Q?3mOu4xlBMnICm1jsYBInPyiMrxL8usspWEK+kzZ/9IAgIaPSZgSA/OVmMGKr?= =?us-ascii?Q?OivOJdS2TwkRUtkowWymUiUdzJkkbceDFMDRFJcoutQQLKe+8IpvUtiZUUOa?= =?us-ascii?Q?+HMsJMoQ+ZXqwv/Ehku8eFlwYVZUr6MzOMN+6OMS0ss0jpaUZfbA3u+HNO3l?= =?us-ascii?Q?3TQMdrhdDU2MYgVaAoQ8cFWl40cDlBfg3tKPyeGa28k6AvatM03lP5aoPw+/?= =?us-ascii?Q?gXzMy+IdNNlvWSHH5WzlTlDgkiJgRCl0YSjq5BZcueBReXUdH62d7O+37VCf?= =?us-ascii?Q?Lxqt6TGBAWFJchPnfESIgh8Tq3oTalru7WKRocJQV0t7ZUr4VbIUND3umDYV?= =?us-ascii?Q?uOwoR+LfhXP4bR5he1q3PPhigxURoCHgKQyKpqxcro/jhQEJhc22+sSNFyQ+?= =?us-ascii?Q?lko5Dfi7HyBMRq5MB6PT07a45RkwI+MhFg41ybDOz/5Q9M/cEM9K6ZT3rEE6?= =?us-ascii?Q?zKv3jV5iV56TIzD/CzxtNUZTidijRMkTo4fBPKpl15MciY/3c+OE0JtGBK//?= =?us-ascii?Q?g1FBd0sTfcykpw+0Ae8skfrA?= 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: c1a3512c-5b48-4c94-ed8d-08d95bb8b5d7 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2021 04:38:33.1643 (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: ip2/VdO3j4GRlVUwaLtXSAQ1ax/YX/rjg8B002kf8xqhCHwaU/ZwAtgX+BN6MQMsdtIYNHe1S9/wIDlCuqV5Pg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3322 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 09/28] net/ice/base: implement Vernier calibration logic for E822 devices 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 09/28] net/ice/base: implement Vernier calibration logic > for E822 devices >=20 > Move the implementation of Vernier calibration from Linux core ice_ptp.c > into the shared ice_ptp_hw.c file. >=20 > This implementation was recently refactored in Linux, so the move should > be verbatim with the latest Linux code that we had implemented. >=20 > This includes a new constant table with pre-determined values based on > link speed, new functions to aide in reading the multi-register values > from the PHY, functions to program the PAR/PCS conversion ratios, and > the UIX conversion ratios, functions to program the total Tx and Rx > offset after vernier calibration in the hardware completes, and finally > a function to start and stop the PHY timestamping block. >=20 > Signed-off-by: Jacob Keller > Signed-off-by: Qi Zhang > --- > drivers/net/ice/base/ice_ptp_consts.h | 216 ++++++ > drivers/net/ice/base/ice_ptp_hw.c | 999 > ++++++++++++++++++++++++++ > drivers/net/ice/base/ice_ptp_hw.h | 47 ++ > 3 files changed, 1262 insertions(+) >=20 > -- > 2.26.2 Acked-by: Junfeng Guo Regards, Junfeng Guo