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 CA28D45DA7; Tue, 26 Nov 2024 09:30:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B2BF840E2B; Tue, 26 Nov 2024 09:30:44 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by mails.dpdk.org (Postfix) with ESMTP id D634540E2B for ; Tue, 26 Nov 2024 09:30:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732609842; x=1764145842; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=lbIdiDRUetC0BDehrQSSUGlgUwlyBJpP4Y7f79P0tKI=; b=A3Q0cBqVFEqkkjLL8GBTmnPdVzwm/eKx1c6DiIzyXQK/zilVK0cjbWBh XpXQXKDchyHDQ0w0NMSF/79wGudR89Aaj8PDHbjlAz4W5bzm3RxXbPOJd BPNHpWHVh7yeTLw32hgLF3zM7ZSAerfDDPxbPN9MPrG46VaSfRWSjl+wO r+N4N1iYSZCUupbPIsBRWIgwdn4JXau4BjuEBTTGExgTylBiFeMqanyY6 Wz7YACRomrUnWF7aY3u2oItKkT74K4JCWFPv9HcmGFv+8oOdB/GNmlPmu CDR15N9mX7zWkZ6oX0rsZJcxweq3X6yMjgweK5DGhrKOpZDA5K3VgcR89 Q==; X-CSE-ConnectionGUID: 9lKVepg3SImSRxeVnSkMbw== X-CSE-MsgGUID: 4Jstr1y8S++iwXffCjGAPA== X-IronPort-AV: E=McAfee;i="6700,10204,11267"; a="32904112" X-IronPort-AV: E=Sophos;i="6.12,185,1728975600"; d="scan'208";a="32904112" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2024 00:30:41 -0800 X-CSE-ConnectionGUID: nDaTgdxVThO5RJRI3wZPMQ== X-CSE-MsgGUID: iSKeP27rRL6fdodXxeMQzA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,185,1728975600"; d="scan'208";a="95628664" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 26 Nov 2024 00:30:38 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) 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.2507.39; Tue, 26 Nov 2024 00:30:32 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) 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 00:30:32 -0800 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.48) by edgegateway.intel.com (134.134.137.103) 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 00:30:32 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uHYDncuFe1ypz/RGXOwaC4ddbQcmeLp7jMcht5FfKVOpiJt4asyDVejhNispMl4tD0Te3OZ0ZSYKg96PChbQi0yb0DU2tnlN/Ga7doZBrzcA+LYchZ3+zD9ZbVJZp6dOE3eH33Whtgkc5TLNCN3C7wvJMbqiuHaMvzHjL+vVA6OsCqh4DXVg3lXb8qp7v9Ws7C5YEeSt5Q7NN2QXnxA+yo5ffXL8TKG2+OeVo/dSXmFHJOYDlsYUtgIRrf2v37vAAzM+YbJu9zeSGNdJ5Mbkwo5SgWPsbfNrmafXHN074OABm5zHl+4QSSvmPrptcfAqynE6qK4hy8cqniikdk51Wg== 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=lbIdiDRUetC0BDehrQSSUGlgUwlyBJpP4Y7f79P0tKI=; b=B1fTQupHgkr3pwdUP45n//AYs5oeeGwrEN+Y8+iAoFoOhMrfpmVG651dEZ4NCEgbBYFAW/EKXNYDrRrTF2ZBi32xVY4hmkS7M5SQG+HQqRQ4AiLfc8FwAGEfQEzMu1Vz/94Kg/PqKsYjQZIHe8RQ3aH82PCLrS514TZtXnRcuJE4tXeDwENnUZ4s38wg9IVx5O+KUpf9eMr8He4jo4VW7GEpuaysSZnEYppPBtkvdBDs7IZQn/YpadDV7gm8W+RZM1/xLYFc5KBkcpbeOXbt9wfqmCZ1/Lpt/SnjjN5yrdnGTdkyQWON3xThPAIhXPNvctwYWfzPGYDuVIKei4XUZA== 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 Received: from MW4PR11MB5912.namprd11.prod.outlook.com (2603:10b6:303:18a::20) by CO1PR11MB4881.namprd11.prod.outlook.com (2603:10b6:303:91::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.21; Tue, 26 Nov 2024 08:30:25 +0000 Received: from MW4PR11MB5912.namprd11.prod.outlook.com ([fe80::7a4b:e159:c4b0:7c21]) by MW4PR11MB5912.namprd11.prod.outlook.com ([fe80::7a4b:e159:c4b0:7c21%5]) with mapi id 15.20.8182.019; Tue, 26 Nov 2024 08:30:25 +0000 From: "Xu, HailinX" To: "Burakov, Anatoly" , "dev@dpdk.org" Subject: RE: [PATCH v2 3/3] net/e1000: initialize PTP to system time Thread-Topic: [PATCH v2 3/3] net/e1000: initialize PTP to system time Thread-Index: AQHbPy3/R2i8PbYzUkWPaFSWf8vGRrLJPGvw Date: Tue, 26 Nov 2024 08:30:25 +0000 Message-ID: References: <38eca384ecd00e1601532dd10e20ef45aedf8434.1732288709.git.anatoly.burakov@intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR11MB5912:EE_|CO1PR11MB4881:EE_ x-ms-office365-filtering-correlation-id: 3fa5fcaf-79db-4060-29d5-08dd0df49373 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|7053199007|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?qFStKWZujrC6Q7rd5U/kAJWpjFnAaqc+xJsV2+BihswPyQnryUHIAxlAvH3J?= =?us-ascii?Q?47nxWp3l8a0zKOcTh9SQRte4ajlDE5XEpK+wfbutVFipbqqeU+SD4HA6YhHj?= =?us-ascii?Q?4k/fO8XYwH83U8Aw1pwHDDLnEUidZWWpF1deP+YUT8HGG0AUbB0baX+l2lYO?= =?us-ascii?Q?f4ZaPoL+xGuMes5fyiA79ujEaJsP0GkHvPRsptwcI9iL2fMauPHo0VTgWLyl?= =?us-ascii?Q?3/nsO0oW/UyVychdIJNKhqjEFEdPiIdLkZ91O3yvS/QUoPlS7Bhp8qKAUEgS?= =?us-ascii?Q?gw9VAdfb2lXCS13ejg8RGlqiil7baEoG7+D1+0lHztqfWMZCKaWdZvcTMN8W?= =?us-ascii?Q?awuYTdwF5eJmgR2HY9PID3k+w5UdUV7xuKBBmoAtMvoSRLcK7c7smbyKmHFL?= =?us-ascii?Q?eN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ho?= =?us-ascii?Q?J+9lMutS3N8WfN7VKLuLWTl6Afvnjf0THp57RpC37g3xa3RfmW7EyPtlwtes?= =?us-ascii?Q?8engcpYLzSLfAxWIqgMfGl0a67I/99qYSUK0Y5Xyz8hou2teOw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5912.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(7053199007)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jyzovjJXYeoP76rTBTy8f/8jCYkdhcpDo4IV06lHS4bRff1YSK9DmSEgUgRk?= =?us-ascii?Q?ZVEpErIoT7Z5H8TGK8kItb8fGixcN79Rx1FOt8UWFPUmU61/V+rnsg9zg2eZ?= =?us-ascii?Q?ZXa+6pKUZ1BrIc1O7CnWdV5IoWhkZk7+uhBu2RE1ziJYU1+l+kmyB7iZO16y?= =?us-ascii?Q?bC7TMmxTcnLwKC4i++tjbsJptcTGDGmhPIzoZYeidtFX3qcJw2IF6a9V+4Ok?= =?us-ascii?Q?awZdJYDy1nhymc0tVs3J0cXHHzEjaJUOAXtctSSFzcMdHhlDo8mINKnDFi3n?= =?us-ascii?Q?Cbnp413T0Prd9+el6Erz5nMRFRyInO5Tl++kBlfbsq/kuEg13JAqumRWYX4B?= =?us-ascii?Q?eTUjClt6bNR9wpCuf8PYplHVRcBYDIM2KHzGD/jGA2m6eZ/BVBJrZ2j7r2Jh?= =?us-ascii?Q?FpwCKL2ewhIWhJmE4pC7V7vEOI2TRhgBoAITZn3+bZYDo4NI2X2tkPAMpYJU?= =?us-ascii?Q?zsVGBUzBqgtpOKUfBZuhwid62Aj8akbs7KVpDwheYPoy+FYwHZhsYINFl7iG?= =?us-ascii?Q?y4gwH5DLGc3Scx4MBLbFjdylLTOYKFosX4PTMQYK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JjmsGhxp8pJU2JwH+7aAm5l8eLcjta/TzRe/d4VlXxK0az69q2eQ?= =?us-ascii?Q?bWGpihLH53NZ0u5165dqowJSO44S13/Rw+TzJLgdEPx1xg7TJGla/OJosEhA?= =?us-ascii?Q?uH86DJvr9lMP/l3GtyuxBKMJciYKXMexqSDhRQbU?= 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: MW4PR11MB5912.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3fa5fcaf-79db-4060-29d5-08dd0df49373 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Nov 2024 08:30:25.3079 (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: 7UXENbvELfMLoFd+yHYwWc3S4YhTuSFRdlcH1tkVQmUAywq5IrqioNW6nOoYUs9qlJOVHSoAY+Sw0MmO+ttBAA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4881 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 > -----Original Message----- > From: Anatoly Burakov > Sent: Monday, November 25, 2024 7:33 PM > To: dev@dpdk.org > Subject: [PATCH v2 3/3] net/e1000: initialize PTP to system time >=20 > Currently, e1000 driver initializes PTP timestamp to 0. This is different= from > what kernel driver does (which initializes it to system time). >=20 > Align the DPDK driver to kernel driver by setting PTP timestamp to system= time > when enabling PTP. >=20 > Note that e1000 driver always uses zero-based timestamps for PTP, so we > would only ever update the internal timecounter and not the actual NIC > registers. >=20 > Signed-off-by: Anatoly Burakov > --- Tested-by: Hailin Xu