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 5D88645DAB; Tue, 26 Nov 2024 16:44:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4EA3C4161A; Tue, 26 Nov 2024 16:44:31 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by mails.dpdk.org (Postfix) with ESMTP id 8158641611 for ; Tue, 26 Nov 2024 16:44:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732635870; x=1764171870; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=KQ/GgdkqcZ1W73RNHIHw18paMr6UWngsS4w0RIcJ1mE=; b=ZnesLzRR3TLXXewQ+JchZ3oGQJBNXAz9kWUcRN4Cs7Kj+yBsRZSO7bdm TtdIeUtMtMTLVGa9C+72as/3iSuOGhdVYURAq3e4PFWdUmY3C0RuTyejw /Y4yS0osm3Gcaped9fDqwsu9F4ESxiV1zOj9RSamSuMc38jxZTTNlcibe cf11oxCsH3LOctg4gMsf1Yjovu2VJQm3QFRR8ZjthPGTGClySmP4S0gjr szv9R0ScGdpWJDWbiUUZWQle9EBA82jdOLhDI/4UWI5tJlrUrh4oDgQpY TQMDXs3f0MTK9ddH/T2lq945u0Br8hsI4SKq44IJN68NYm8ujquIwEy2c Q==; X-CSE-ConnectionGUID: vJvYLm4ET5K0ZL+f0k23fw== X-CSE-MsgGUID: yxchvUc7Tf6RBbshNgl1og== X-IronPort-AV: E=McAfee;i="6700,10204,11268"; a="32546500" X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="32546500" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2024 07:44:29 -0800 X-CSE-ConnectionGUID: YJhavaA7RdKV0o8t+ed6sA== X-CSE-MsgGUID: 4hyyaBSqRMa74Xo/5X56Yg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="91762764" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orviesa006.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 26 Nov 2024 07:44:28 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 26 Nov 2024 07:44:27 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Tue, 26 Nov 2024 07:44:27 -0800 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.44) 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.2507.39; Tue, 26 Nov 2024 07:44:26 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WP2Yps0whd0LHh8lfmr+MBnTf0ko60EWWpM9u26tHX7bTK+KI6BoqDWNuAZNEr+6Wdi/ge+gFBb6HO9yRpZV0dOYAxsusF62834EkVtFLz+Cqfhhw9A9BhrJX54RT2jIoabFPPESKLuCWT2Mth/VT5KYiHVYbHXzjy9Mo4WzdsDukzAjo0vTSNJO42JwBV/jPtGRaMhMAyUNY+DZoNwz/NKOdL8WdGHw9wiH1Uyb9yd6c84ZT785ncIJPBAdNQ5ojeWEBC8r6Qrwi74/JtM0TCIRPXwakxd+Mt4dJn+4i6FuKyPjNUbOeBeoRFRJRWLlGo7AwbrwK8HpyfDXu36M4Q== 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=ykZTX64Nr5+HEhn8GBrhjRMjF+bK4M1UpMtxpataac8=; b=kTb936n2a55zS4tj3ZfdmcO9n8nyDchQyWzQPq7vdwsgIaGihJG+PnhuTp8KFNVbmQ962o8SRlorSkDHXjTpnU8QiHI6LoI9qybnbI4BPJ51D4lwCi9lyU3lQfGYSaDVs+by79XwONPBH6bL0sub9EbNyl6LrftpBxZB9qY2KF7uWyviV5ICq2YQ84iGxJM42k3dl1xLc3/QN7vH39rxEwBGx2l3O2KBzD7TCugvM10EJBOG/VjaVo8uDlz5CBHZeqKB/+tNjh1iRf0O/EhElDUGSS7ZREagja+wPKU+T5XjGdPe4kd/wZsiW20xqIzIQJvbwenSpKz+hc2FqTLMiw== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by SA3PR11MB7485.namprd11.prod.outlook.com (2603:10b6:806:31c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.12; Tue, 26 Nov 2024 15:44:22 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b%4]) with mapi id 15.20.8093.018; Tue, 26 Nov 2024 15:44:22 +0000 Date: Tue, 26 Nov 2024 15:44:17 +0000 From: Bruce Richardson To: Anatoly Burakov CC: , Ian Stokes Subject: Re: [PATCH v2 2/3] net/i40e: initialize PTP to system time Message-ID: References: <38eca384ecd00e1601532dd10e20ef45aedf8434.1732288709.git.anatoly.burakov@intel.com> <8d96c68882f0cab115220fabc9ffa3ac2ec013c0.1732534388.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <8d96c68882f0cab115220fabc9ffa3ac2ec013c0.1732534388.git.anatoly.burakov@intel.com> X-ClientProxiedBy: LO4P265CA0035.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ae::11) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|SA3PR11MB7485:EE_ X-MS-Office365-Filtering-Correlation-Id: 8a1d7d29-48f2-41a9-3972-08dd0e313284 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?gptD45yW8kif7Lbn7cfoX3gN+Ng8NwG5O/vZBXiKam0Leo3k8wDmxhc6hVxl?= =?us-ascii?Q?QW0VrLoKE44bimHcfrPzZmfNSElpfzYG+8BJS+nifVAOKjaXkIdr8mirYAsN?= =?us-ascii?Q?FJJwDzB8Jh2wkgr48H7WZ8SsEjQC24+Wp7iM6gXz6SeJGdQXsIxFENF+rSpR?= =?us-ascii?Q?WRFh2eAheWbv021wh9ZOePK9akap3LfzOfOHH+vwcqxU1XmE1KBXWmvfOBjR?= =?us-ascii?Q?x/RBQAMkQJAPYWJarfQuTG75ond4cvU/USg0pwYBp9GumUKSYE5pr/VNKXvW?= =?us-ascii?Q?JSkGvy4mjT+nj44Y3WNQ21iZkHSKMw7CGipM+BcAF1RwTzfYe3/+vf1Ql1W/?= =?us-ascii?Q?dw2s63tsZW1mYN0UfV8j65BKMdczvBlLh7Lqol+QF/hrZtoOLtaEUvokjHFB?= =?us-ascii?Q?r3UlVKCZmfOcBWfBiOPmE3SKAU9I9PM6e0OEKqwkVR8YAWJHZpM8S7mjpQDi?= =?us-ascii?Q?pgkfPyAnsFJYiVP3ll28V+oh1J8bfHe6CKRgcDcyBq62RFbvUoZwydAT8xNU?= =?us-ascii?Q?x65jidtAkjSeSThhlBL8+cU57it8jvbpQ/uQwCBH+ASmVz83qVc5+deK0cpj?= =?us-ascii?Q?G/DALXBXZvJtTmVgHE0nXhHjDdlamhkgUHExctUn7qr7ZS/FYGlYoGIyDa71?= =?us-ascii?Q?HONThaI9YqOg1KyqWjXjE3UbUd82e8Tgt9ZxiP2ux2HI8OThYObU14NAARSj?= =?us-ascii?Q?3ASaZvsnxNlT+5/yDBzycSA/NBWodQef7dDspirF1GorFA62e3c3DUCI7aKW?= =?us-ascii?Q?0sq40d3S4FK2rZxCvCH4gxi12rX5H5Yki8fBVui530SuwzqazOsljgvfOxqV?= =?us-ascii?Q?1YyWOArLJnpCWWilUKvcMym44864TUStJprmKCiij72Uh9oaoy5Nw7vrjLPm?= =?us-ascii?Q?bvvMLzGRxDbRikAms7lSF9SpfXEcJl7qy4fSGgXwpo4huII2uY64fa860WVf?= =?us-ascii?Q?bWg/xw8yfqnQaWX0OkmxH3TrnTPb/7vPeuDc70pX6qabR9x7oTal2IoOgM4L?= =?us-ascii?Q?sRi5DA/2/TD0CTLnTnr9V5ra78gFNPD90dJ473WzPkdvhPlgI/ogdVif7XcB?= =?us-ascii?Q?FSqjNedAzP5il7LNXR19Uc03ZF7M7Ewt8UAIQQrryull2Z3Xl28N/ZM9LTNm?= =?us-ascii?Q?8mhOgpFoR4cWDRNJ6sTiFFKmn+N4pvqmjbDl6oejk+VBXYkAzKYmb1gnKkci?= =?us-ascii?Q?6Vgj9bH/FkPALuXu7I8JCqHchzEqJlUpq3/rvHdI83Aua+bHtZzo/XTbEMvu?= =?us-ascii?Q?9Ha1mI1bv+6RygGqZ5xBJ5bLXD8wq0OCbDVx7lPB+YrXDC/E9GGslmtJ93p+?= =?us-ascii?Q?qPGGHVXNBTNccMoe604doUibICdriDlCNQsfDAER5012OQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Sw8LpQiXOrho1w7DqDWMAL72kl7uWNZop+MbVzIfbl3JzED8pVA5Xs3LQaqe?= =?us-ascii?Q?XTyIgWFIx113HEgVaFG4QGJ4Vqg2T/COOTHkoGS72nWY8RI6O0XYIGmPzuAU?= =?us-ascii?Q?wSq2NdSzp2rFn171wgbmNY6FCwHAsWEjy8YQiqdYVnpBC6dRMzLOpw0+zUwX?= =?us-ascii?Q?asyk/nWtQV8cHvbs40CKJxwKPt6YA+4SPMLxfs30VZQa4hDdIkaYwkut7uvS?= =?us-ascii?Q?4cPAo7Ein37dzIA+KIXLnColae3ouXNWiBRaZSB9JgSrxEWXw8N6QPKAsbMi?= =?us-ascii?Q?2e/xlviuT76u20mteltzoC4PKrVMx0iuneBkbL9ZPv23bTqBUfpl8Fa0REze?= =?us-ascii?Q?CaGkc3hE9UASAiUN0SkZK5m+KeKCPP/CYwxlkBNlC83WQO/KRbz0K99Q2kni?= =?us-ascii?Q?hWl3shAPnEaH6Fel70yjEaZh50hZ+EjgllpTewsgvgXmKGUxaIfAObL41Wof?= =?us-ascii?Q?bAwPaIwEBfncIBysc8qN6UmWB7eUR3sMEeULU0PHsp6CyLmjbm6qEl3qKTeY?= =?us-ascii?Q?bPIh/eaqQN3kzDz35Mx42Q/2zu9z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us-ascii?Q?dkmG8j5VbKg+c43nPB7A8SB1uaBdHc5h21fzbZkcSshbrHrU5oYSlvFq+ONF?= =?us-ascii?Q?B0smkB4unYl2eT+51wdJrnR7RkIngH4XhJzd2F8OlookKy5plx6MBDWjopYz?= =?us-ascii?Q?D95/qZ/lmkJwwPMtpRuPUDUaNjfhLUGrzo/m8ACC9RXZAzSITnFZBPbiG6r2?= =?us-ascii?Q?sQ=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 8a1d7d29-48f2-41a9-3972-08dd0e313284 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2024 15:44:22.2176 (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: Zj3YJdIqumw5Qj+ZpBNm/tRzbc7HSwqt3uJhp+qmysWT+iRInJHHn67I8IQ2xzgGccGNnEXKkgpmvoVRw0NcH2xVGYPonWN1hCgLAdN3gYc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB7485 X-OriginatorOrg: intel.com 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 On Mon, Nov 25, 2024 at 11:33:25AM +0000, Anatoly Burakov wrote: > Currently, i40e driver initializes PTP timestamp to 0. This is different > from what kernel driver does (which initializes it to system time). > > Align the DPDK driver to kernel driver by setting PTP timestamp to system > time when enabling PTP. > > Note that i40e driver always uses zero-based timestamps for PTP, so we > would only ever update the internal timecounter and not the actual NIC > registers. > > Signed-off-by: Anatoly Burakov > --- Acked-by: Bruce Richardson