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 52553A0C47; Tue, 10 Aug 2021 06:36:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35D454068E; Tue, 10 Aug 2021 06:36:44 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 4619740683 for ; Tue, 10 Aug 2021 06:36:42 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10070"; a="211726556" X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="211726556" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2021 21:36:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="468906049" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga008.jf.intel.com with ESMTP; 09 Aug 2021 21:36:41 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx606.amr.corp.intel.com (10.18.126.86) 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:36:40 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx608.amr.corp.intel.com (10.18.126.88) 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:36:40 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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 via Frontend Transport; Mon, 9 Aug 2021 21:36:40 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.45) by edgegateway.intel.com (192.55.55.70) 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:36:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e3y/rIs48/BNwa7vKoE6DfUgnDFpLUWy28Ojng8LfkraOBxA7CdziceKWBSgm/MBsSzIbnznKQqHtw0VgUhjKR0ZerbzF6JdLmPMJsdo9dfgTruBC0jLBJblWpJxe9//A1c/LODit0DMSnTeqIHLdnY4VvwxRPbk4q3aWDSW/VFYVe0FMRjn7zl8maTrENQqNrzS+76hGvz1gNJYX7mIv3wEndkMNjHFMl6JvpSSBTg9FX4aZ9KrRCAy/C9DXASWQm4PnidZo1pNU7NkQadLhmFoEQ05tUfRyffs6PdVLQ51CtfeBWqw9huemqQDDTCAw8G7o2Ft69x/pbB/eMq5lw== 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=PVwiObF3RrmSg3QB9hC2X9IKCOtC+YooO8d0OAWtkOE=; b=OCbPwn+fgjNqyO5RqoG2csyqtJ1G++vu27W7reZnDL1kfi/xAqocUPlDJ/CJUo7vpvsxLtHhafOugYOCo6YhmJNdRWiYGYsDPovwQ+C3LswGg/bntgPxABz6MHQn0ge3TV3tE29Iu2P60X7Y0iQBPtLK6dofJyVpy92qWdOpdJL12e9SWLG7HViymnVfZPLV1PNtzlCcxKyBCyfH6wxjqi1X9weduTWfULLSZEoYdzlc0s/KKPv4I+7Pl4vGBFeSLSHzJ+7pJnZJ6v20i6wlN7+Ew2OOqxyE77xRPU2usrkcgJsuZPwHb3XvpqBsyIwSYKU2tZh/PeFRRrPuOdmpDQ== 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=PVwiObF3RrmSg3QB9hC2X9IKCOtC+YooO8d0OAWtkOE=; b=u7GHfT4qAIazHQRIXJq5HfES/PwTaKqvht8Lmlkdup7v1q18O11jbdh9HSJbcT/HKgGU9JOCRT3PyzuE8dipn2rhJfvmXy/Embi3u53sn5Urlby5P36Xmmni39HnRTB+pFXMw7j78epkwlAYqWdaLn1CjtjdEDR6fm10AhKOiJQ= 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:36:37 +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:36:37 +0000 From: "Guo, Junfeng" To: "Zhang, Qi Z" , "Yang, Qiming" CC: "dev@dpdk.org" , "Keller, Jacob E" Thread-Topic: [PATCH 06/28] net/ice/base: add clock initialization function Thread-Index: AQHXjZJC5Wrloz+uU0+kbdXrc7w2wqtsJ0RA Date: Tue, 10 Aug 2021 04:36:37 +0000 Message-ID: References: <20210810025140.1698163-1-qi.z.zhang@intel.com> <20210810025140.1698163-7-qi.z.zhang@intel.com> In-Reply-To: <20210810025140.1698163-7-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: 4ddac82c-ae56-4482-85c0-08d95bb870ca 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:6108; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: T98fs/lU8Ic9N5ZR1KSyG7p77iVK+okzjq6ekFB+ZZpZBwwZE/lRIaOxFHwXM6uJLqKEfvmO7ghJ35XCu+DhzpCAE3+UPs/jcvCarpKOBPxnwU8HlGIoxf9prf7hL9lAHGWeQzUAZ19B5CbBy4ufAeSJKxyInaCJjsTvo07L9tC8Y8lQC/AfC/I60G4pQBIxNikSQ/Ty98AMNF5mZjcE5EN30BYVnxNaZ37Gik7h6dfDUZTFYSQqgFq4nWDkO3GBG04/zw1RRuO70UDzMY18vFY8q691rTvy4qZWLzV3om1B8ALnYQUwoDcpbig5mvOtZ3Dj65yhorMS3d3FHmr20JoyY74Mt8wKvTExyJdQS3X4vnAu9QsqKurm+0RuXcfHoWtcws8cTbJCiqZ/QaVfgEoXfdGwxcx/H2gE+dTeemFvVY0m7kNjWRJ7RlfjOSy/T3B+sNhiphrqz92M+P2lwuczzjebSGHAP1tFbljY+xyBjUMh0/Fmv8i6ikrd4ooGXJ9/PCLb+nzY4PBA4C0oXdo9Jh76Hs+QtYIGhO4efdu2LRWcJN2TPiSFU+ye6mBcDXfqXS1ExljMM0SOvYGmfhvQdGBtdEmKrztlEHJUbYib1KYS4LrWG5JnQFSERyK1DPZgSrRi+7eH5937Q9IVrOKXcKROdtEOchu03WYDaLvIw7cqpJtIgHhUefgbs9DO8GFXFchRy4v8+vi8mwRdow== 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?epdmcdd3k0fBl/OaCno3q2qv2AHlxTMB0NQip1fd8VsldaSnShLxj8WPn4aN?= =?us-ascii?Q?NmhUHx8mc0NYI6jJafwBZLdv5S+MCZNBwIpinPf7xGLUdSzCjGMt65rJYWYx?= =?us-ascii?Q?rr1zFTHUXafiRz1UshiInn0cELgctNXclNJbMIJZ+DGEx9czZu9TRXKKFH6Q?= =?us-ascii?Q?byxuh0lErIrkQO1+yF68YgKjtHyWzqkn4jg9MEzcBSw16vKFLXgWrNpvlW4p?= =?us-ascii?Q?htvUhg6hS86AF5HEnjvWb1gKnJerz+tYSwmkxHFBmzPeP+XozDbkCe5NhGfB?= =?us-ascii?Q?96sS5lcNPoV7jJqDZat19bDIvB44epZDhHAPJLBCx0R1zE9Yy3Rov1dg8nDi?= =?us-ascii?Q?5tf19aQaSjGIzfMUf5wEQ8NC3A0CpbbPb2dp41/4z4nBPj722Ue2f1EFQ0a9?= =?us-ascii?Q?6IQVPC7UvxaYzXo4gDK2rl11g1Ftw9ZcAjKcUdyjcvgE+fiN+CdgbURO0jpE?= =?us-ascii?Q?nvreCkUYbLJ5kplY6onuCZjyIRvIo7fhrT3zX3NRj4qMGSpaF/ADYqxRIGVa?= =?us-ascii?Q?jwBigvPowE+eBPgn0MwHUxB7oho1TY8RINJhF4jRSJtW4VqT7gvevTPfejky?= =?us-ascii?Q?qnhc1cyc/kQydb7dIzESz6pfxm/iVH3rGIYi45QukB0AbtwcO0ebvZ18OtXb?= =?us-ascii?Q?ig9u/9QcNIlREQSnHMgW2wJEJUMNws2bH+u8iaCriA9WZKSj6zRmoEEDSJ5X?= =?us-ascii?Q?lFtO1n/woIW3j11ExGmFXXUd1QJ5/US9NJAr2q/RlmkRiQxdhpmwUAXPF8mz?= =?us-ascii?Q?vJR8sz5t91q/7n7/wnyM57KWu6HTvlXEwnfIFi8Z/YskO7qG6HIRwlOmX4NN?= =?us-ascii?Q?SVxV1iqRefafIurizqv1ymwJlWtWkpByIRbJjUtCYGepCzB26fyg1z5QkC6n?= =?us-ascii?Q?zdNW0S/r985sZwyNUqcg3Fh+C1dputqr3BGPXzUJ9YZMgTYHdv9Adbj5DZVi?= =?us-ascii?Q?aK5OGOaAaHnnrlwR+UI3a7wq9vBfet989M8nx4cK3917hrOSP2xAowlRLY4i?= =?us-ascii?Q?wcYgwkutyYN6Q38icM4xGxYNgi9Kd3Wj7ozCZXZ9oHMvv4qTqS1smRFzrymj?= =?us-ascii?Q?BUkJMbYR6G/tLfZ3NXWp8ZphZDsh0dzdo9it1gdC/oDMZeVwCLkOvkfRMCvd?= =?us-ascii?Q?3PPpbND189hL8aVmos9AA4OsAmqsDelmASxm4t/RmoFgAYplzcJACrjadNtP?= =?us-ascii?Q?1cL/t7DG0pIVIp/Gu+0uHW71egh7MNQ2UmGPHsQMkCZFFwojQqC4gs5Z+oLb?= =?us-ascii?Q?UtlQWfDqsFx0u7g/RO0EfVWOqGdAQQasOrN/48wLHeSM13y1OcBBIg8yvqeh?= =?us-ascii?Q?RKsEz3RTWEgGeeLdibBATIoV?= 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: 4ddac82c-ae56-4482-85c0-08d95bb870ca X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2021 04:36:37.3097 (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: JhdebIPgXDq4rGPpYDLA+AEObHmy50tgP9YsEqC25onsYLG0EnZtHq6hWNc8klDO16l/da4YY3sfPvRGdfD7Cw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1101MB2074 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 06/28] net/ice/base: add clock initialization function 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 06/28] net/ice/base: add clock initialization function >=20 > Before the device PTP hardware clock can be initialized, some steps must > be taken by the driver. This includes writing some registers and > initializing the PHY. >=20 > Some of these steps are distinct depending on the device type (E810 or > E822). Additionally, a future change will introduce more steps for E822 > devices to program the Clock Generation Unit. >=20 > Introduce ice_ptp_init_phc as well as device-specific sub-functions for > e810 and e822 devices. >=20 > Signed-off-by: Jacob Keller > Signed-off-by: Qi Zhang > --- > drivers/net/ice/base/ice_cgu_regs.h | 117 +++++++++ > drivers/net/ice/base/ice_ptp_consts.h | 74 ++++++ > drivers/net/ice/base/ice_ptp_hw.c | 348 > +++++++++++++++++++++++++- > drivers/net/ice/base/ice_ptp_hw.h | 24 ++ > 4 files changed, 562 insertions(+), 1 deletion(-) > -- > 2.26.2 Acked-by: Junfeng Guo Regards, Junfeng Guo