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 0145545DAB; Tue, 26 Nov 2024 16:44:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E552242708; Tue, 26 Nov 2024 16:44:44 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by mails.dpdk.org (Postfix) with ESMTP id 31D8B42670 for ; Tue, 26 Nov 2024 16:44:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732635884; x=1764171884; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=DBut7aAHtK3xMoEcsLTzkSjVZlTJcVwElfWVyPvmSh0=; b=ICqMqjx0CR6OsjhuPgp4PuOhG09Q9pwLY8qFYLzDDacoe4U1T2oHulzc 7PvYYDPCH561tl9s+FJy7QTSdcJacClAmfQaspQA/gfgKpdzo0jFjc6rA hxxdAL/uLqDJvvgkvMbbcfYHOMxB8wjISeBbJf4yS27TrBP4O5mgGU86h hYw8hH6ERVXV21ovLREi0s8KVUd27qPy58oLiSzREi0oqEvEqtztRGEGz /rOMOvK6rrA++kG7tgqi3r1rT1U+54hEhdyDbRHcHG7A+aXGFW4EpjnYY LCT1BKCzgBXFhicU8fM9ErQQ/MFL5vZ/9MsyXZ2MRQDq2PiM6FzpOuWEu Q==; X-CSE-ConnectionGUID: 4bAL1eB6S9Cg8ZYXlwTKuA== X-CSE-MsgGUID: CuzRos6FSy+Y/vAlJJNLSg== X-IronPort-AV: E=McAfee;i="6700,10204,11268"; a="32744331" X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="32744331" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2024 07:44:42 -0800 X-CSE-ConnectionGUID: 6c2lj/stTfKgMrTu8TnMcg== X-CSE-MsgGUID: Yur/a8MTT0+Ol4hOUINTkA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="122501210" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 26 Nov 2024 07:44:42 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) 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; Tue, 26 Nov 2024 07:44:41 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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 07:44:41 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.44) 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.2507.39; Tue, 26 Nov 2024 07:44:41 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kdC4Y7CNSsE9acFPL4uIf7AVtMDzTspk4qv8Fz+n+6ctmg4QdzbrvoV9mQJ8PU/px8nLsoL6i9GTG8brVjCPNw9joohnNHS751p1Ffm7b4pIm8mbI1yR4JqJCWuQRF1DygV28s71Y8hn4y+vD3SRdayzvzDDPiuRJmAzaVsahDedupK28LAjzvK2b1MfQ9JnWC80AKuSL0UCqk7pxdSKmK28TbvrhtkINdeJCta6gM3Hh5sEUY0NgBtpjUza8n5UH4Ope/D6T9rW8PRKApMqnpk6B4MOPQv8o02TruvViBIB1uR/sdYBgvUTCQGPSdCM0OmjgGB2lcx7LIMGhtQutw== 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=CG4C6IFFn/MgjvEsTY1Rsjm3YoW8daeOFh0GjxYVxtY=; b=gfX/QoWBaOvtY7z11oa/p1ghRZqxAQqW5MVGefKGjzYqlgnojTThIt5/3aEhAP0pg70zpTOee1O9MH7Pj/6zOMIPAW1m5yKOF6cTyF/W9V1+o/D5XpLbEwZqzTD3lL8hMoUNGaQB+oOxLkeHrEd1SQvQTTtN5qQ61gqTRBNQ5Fmq0TIs9XFy3BJDqIMdWKjGhufCKkJX1RanE2yptu7tf7xYdapXgsVg7vQP2KiYd+I9VSESZjXKsmFAMrTHVguCCJVT8HV4z8TUuxrA97HQudVRK3lHHW2mj1m731RMdu23USzSd7/3Jk5ZFLXqsQOaUXWe+DClCZAf2q9zyDUDeg== 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:38 +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:38 +0000 Date: Tue, 26 Nov 2024 15:44:33 +0000 From: Bruce Richardson To: Anatoly Burakov CC: Subject: Re: [PATCH v2 3/3] net/e1000: initialize PTP to system time Message-ID: References: <38eca384ecd00e1601532dd10e20ef45aedf8434.1732288709.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: LO4P265CA0079.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2bd::12) 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: bb52de67-f081-4238-f103-08dd0e313c38 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?02wrs53GZMPoBO6/lb+R2VyBENNXARu8H3mIcz+H9+/XNjjqn/yY/MVc8GIN?= =?us-ascii?Q?pyfNwTVrO8NRZxItJ/8seGzIQpZ+lmYJR3HgkWBsllUZP0h4vlQKBs+2+kgO?= =?us-ascii?Q?PpuJo/onl/FwpO+I7XhnIXx0gqnIAhJkxE2lST8rbXw6hxdQg/vMHmn6mJZi?= =?us-ascii?Q?uO/M9oZ8rU30aneVhc5p44HcX+XakSP+tTZxsSqMalhWCy6OTwQEuxg/5wSB?= =?us-ascii?Q?D9L6E5atH3w3C8QcSAvotflai+qbSfxLjtc1FV8loiGSut13MxaC63/vW0iB?= =?us-ascii?Q?rfC24PParfu4gfbCp08MqSRFWEn1JeESDrQWRpow2j9WpxRJY6F5r6bL+vMx?= =?us-ascii?Q?/Se0loBNxVmK+QDVriBR14mAFNm9zf0EHE/BOekbvhHoXSz6UbMpZkctR95C?= =?us-ascii?Q?Dy0gJCZSh2uixFdBx0IYYW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-ascii?Q?mI3YY8wzs5f9iLZY8w2aO7VhPwRCFSqcFoGVPXjePHnv/w=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?YrFeHOVsTNnhhTAJTmZARzhd3inYt2qygXbLwQs5s+iDqxVhXox66IUd3s/8?= =?us-ascii?Q?me39r9EPmf0f0JibrJdkFY0m2MRM1UBe9nJN+Dwn5Rp5D9JtzmJg0SwmJ5+m?= =?us-ascii?Q?XCb9BR0gFuAHaUparUDfXynLSqPFmoiFnAZt4tyR5AdditPhDe5wWiTdrVke?= =?us-ascii?Q?wSIUsqxlz/WaT8xifGVC3PvYiwI3Z+S90jJt3dlNeqCbHnU+B2UCTyZGt+IV?= =?us-ascii?Q?Ys50L/q9H1v8XsohRtCLU7WZo8S1m4wia2hI/idSvy5hOyf8i+GD24muH2Yi?= =?us-ascii?Q?x6m0GaiqEpVYtjX92GJU8IvUL1bkiy40GNICdn7jxlOJJVxFsla6rNcViPN/?= =?us-ascii?Q?o+GOn8Y9XOd5BJKoPnRDJsH/IyJQ3F2a42rBc9+yaKYX3U9gJtcmJfpbFs20?= =?us-ascii?Q?cKyzKHehSQ51fm8bCbtj7q5ruPeSGu0QJkS9CWVGUe0nL6Ou5YYlTjq384gW?= =?us-ascii?Q?Vhi9AUr1T/j+yqzGUka/GeSGXKhr3FYKuwNf+scppWWwpP8GhfnQevNOa4oe?= =?us-ascii?Q?iAWCmnQF11su2w7ArggbxN8MhrnKzm0HMtGlmcYlUsErAbijG0nu03UiXj2Z?= =?us-ascii?Q?fh9Kfo3rKo96qWALjwr9N1H2DAIusr0+qXn2qU8HyfriTLyWMKidc3bL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Mq/y2alrgfDnwYWj0wc2IcwfVr+8Qh/7lgm8xp?= =?us-ascii?Q?mX31IIo0/7YcuNA7ZwCA0+excLCgPD8E3HlsDW/rDknTyq6unOdl5E35Eu8+?= =?us-ascii?Q?+w=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: bb52de67-f081-4238-f103-08dd0e313c38 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:38.5373 (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: 1+LTFVVGPN6qV6chAcpb8ouG29fA+QtcbGCYzziPdB//okYe23LAye/EcntnT9UUWdAlhSU/5v6eAvmvlFtY+QRaMqehtHwPtMISuTQlkrI= 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:26AM +0000, Anatoly Burakov wrote: > Currently, e1000 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 e1000 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