Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp47881pxb; Wed, 18 Aug 2021 15:38:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCyj7GCvQhUTNW92gMzinTOy5z1cBsM9gJKSmG10qW4Vm6FriKVXmRooBSoLz3vy0xXxDI X-Received: by 2002:a05:6402:214d:: with SMTP id bq13mr12554182edb.263.1629326295663; Wed, 18 Aug 2021 15:38:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1629326295; cv=pass; d=google.com; s=arc-20160816; b=uHFv2fimPGcjTpaI2WCdTgPgYRfMP6s3FPSLUPTUJCOCLRmv771VWH+qkH8SV2yi2n K4+Juwc2NCHWrla198Zr9eaaI15SFrU1Z/yRqrYpXzVl2T+mySCXnP/cPFTj+PidaxR4 U2xaVJ4A44dY21A4l2wpNiPNY/3CzIwPTX0cSVARywpO3CPz+tDaWp1vHKIFO8rWriuq EUrb9Kcd+O8qMv4xis73K34+gUHBjgj4YW9DYwd9/DFEVeOoyOUdC2CyetA6TK6abRYV kYPWZsTms2fFDL8YA2PB/hgL6UQZSy7lMD64/R7dnLGqadtNyAPCcwpBXfmahs5GcDdD sCmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-product:dlp-version:dlp-reaction:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=WPlBZmvPFE90eF0vVQwsx/kdzdwVOuZY/9PwRjvSHoQ=; b=XShV9x3SJr95wbTECzgWV7cslJhpjt/wHEkAMTiqNdmW0xjWj3IqoLD9MU4WP8jbhf toQFpqMMpJiP94V7AFPTWAxW48uxCUSOb6/WOgZH4z/DcE369fs1oAOfJQZ18P7V2RiP JxY1q1CgVc1SLnB9a40L18JdgTv4fukC9EOnDO6VVFya0/wzHvjkG2XZeMH1sqk+a8NI 9/eoCtIrXgsCTL6KkvcUDeOYcDEbTuuORBnNmrK7kVu1ZWdHPEgp4YavWCrV3SMl8jNV MjQrmWoa9XXugyreI85+8uZQKvjrQub8YNuNGwg8OdDboDPhx1kyruc3N9kgHK4m0YQi Xf6A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=fkhnQEDZ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si1043259edb.423.2021.08.18.15.37.49; Wed, 18 Aug 2021 15:38:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=fkhnQEDZ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234710AbhHRWgs (ORCPT + 99 others); Wed, 18 Aug 2021 18:36:48 -0400 Received: from mga02.intel.com ([134.134.136.20]:10196 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234693AbhHRWgo (ORCPT ); Wed, 18 Aug 2021 18:36:44 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10080"; a="203640986" X-IronPort-AV: E=Sophos;i="5.84,332,1620716400"; d="scan'208";a="203640986" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2021 15:36:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,332,1620716400"; d="scan'208";a="573389129" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga004.jf.intel.com with ESMTP; 18 Aug 2021 15:36:08 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Wed, 18 Aug 2021 15:36:08 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Wed, 18 Aug 2021 15:36:08 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.42) 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; Wed, 18 Aug 2021 15:36:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LnBSz7pOZR1oJZsfIwih7sA0Tui1G6YNUE1x+YmvYd8JV0zwBuT31IEfdQhqCpU9N5eNcI2RwnbogCQjQP6RtqMqzdEHWEQAxH5Rx9JcZmHb4Bm5vBzW6yMuhcF5dWV7fddne8CXfY2HN06QHt2veQPXsezV3EH2TULgm4GfSUDuUf79QbveAalYbKRqT7CNk2AofGWhUJL0NMHzw2HP6+Cm6YMJfozvW2ClSF6p9es/Y0D/ajgi4NkrPgb9J/ssL4AzsbREqGm1HoCzxx279aVh2pUJwxzd2qwCykFNB5S7UFwSGGWe7M4c2+WHo06OtrTNTUg62rmgbAGccCPSTg== 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=WPlBZmvPFE90eF0vVQwsx/kdzdwVOuZY/9PwRjvSHoQ=; b=YTDOutiCnR7MCzbNEUFqV/biFUah3vM9AjVIt1HainqAOazzY+ooYlD6QN3yXftkTCUJAVARgmO3X90iocd2nXCy5SVQlRD+79G3H6eI56bevHhSF68Ps7kKVS0BOJwi7PhMfJktyEfUUl9RboVRx3Xz8JJP7uDCyMmYeg9faqGmlpk9j6kUv12oXRjD9+qlpnGk5zcNFVP02lLDhgmec58ygOvHjf1UU8uJoLuiBwb8tiYRJmgXvod2pL3S/p2rxEwF3hWLewEyDY7H2SM/pjcv55RyVl68xcygWy9PdKN/PXxgy55No3/vIRYm5eGujMHM4JnjCDax+xNUUTC8zA== 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=WPlBZmvPFE90eF0vVQwsx/kdzdwVOuZY/9PwRjvSHoQ=; b=fkhnQEDZNjw+gk73G75ZRkwff8HPCJsj0tW+C6OtSQxKcf8rPFyD/OndY0iNfAjxoBMdsrmW9jNL2dZw6K2oBSO9A+4yjsqylmaHKTnLNeRaUYkrObA2zN5EQg4moHBMLTwWSEw7r3Lf3uw4f7Afz9+scwie6S36kbRZls627vI= Received: from PH0PR11MB4951.namprd11.prod.outlook.com (2603:10b6:510:43::5) by PH0PR11MB4776.namprd11.prod.outlook.com (2603:10b6:510:30::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16; Wed, 18 Aug 2021 22:36:03 +0000 Received: from PH0PR11MB4951.namprd11.prod.outlook.com ([fe80::58cd:3e24:745c:e221]) by PH0PR11MB4951.namprd11.prod.outlook.com ([fe80::58cd:3e24:745c:e221%7]) with mapi id 15.20.4415.019; Wed, 18 Aug 2021 22:36:03 +0000 From: "Machnikowski, Maciej" To: Richard Cochran CC: "Kubalewski, Arkadiusz" , "linux-kernel@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "Brandeburg, Jesse" , "Nguyen, Anthony L" , "davem@davemloft.net" , "kuba@kernel.org" , "shuah@kernel.org" , "arnd@arndb.de" , "nikolay@nvidia.com" , "cong.wang@bytedance.com" , "colin.king@canonical.com" , "gustavoars@kernel.org" , "Bross, Kevin" , "Stanton, Kevin B" , Ahmad Byagowi Subject: RE: [RFC net-next 1/7] ptp: Add interface for acquiring DPLL state Thread-Topic: [RFC net-next 1/7] ptp: Add interface for acquiring DPLL state Thread-Index: AQHXkrpDE4/97678+kqD5jc+QEB2qKt2zoSAgACcQzCAAhWPgIAAVWdw Date: Wed, 18 Aug 2021 22:36:03 +0000 Message-ID: References: <20210816160717.31285-1-arkadiusz.kubalewski@intel.com> <20210816160717.31285-2-arkadiusz.kubalewski@intel.com> <20210816235400.GA24680@hoboy.vegasvil.org> <20210818170259.GD9992@hoboy.vegasvil.org> In-Reply-To: <20210818170259.GD9992@hoboy.vegasvil.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e6f654ee-68e6-4010-defc-08d962988ff9 x-ms-traffictypediagnostic: PH0PR11MB4776: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: m1v73qBaQnsTxV8TIPuoJDOKD9my1ZEjG9te7gz2wy7ZgAHVfp3UzTIy/B4AchgqukzpV7a7FpXSkN1D4zTZRlcQ9n/1G5iWqNCltf97Ynmkif4b1adtr/IcxRq5vHMw3iKmEH4LZgqf+wINNw5FphVwn3/NgAOAojxYE0uzdU1nTWiZsp0misZf4ijcY1SBWaxkVBRAWjR0O1lBFPtGQ0UQLJrDXtVOPYb7syAfg/dR6qiY+rNKOi62PiVF5HU4/YDKnGj8p1/+wusP6TbT/Cx0eDkRjHLHbvLhhKnizaolK337Up5rV58JZfKNL8Q7fzIbYG9ZPgSpACof1w6QxgVRqmFNcnGXHgmiV/mwU+Sm+OyNTrYxG8GkaGJ46a05pelUJwYcdeb1ehCxP1jOv6uTFvS2peL9JyosHxpXy05+mnnhxiMYYCTLOxa20HW/hbvOEHL/eNaEz49FHtW8g5bkSiUEqMypiAvK0G1hENnWtbMgeT8eRcWVLsPs+7XtUpsCjSgAyRDTMsj/SCp0FrqKg5CxZkQKAzJLKxwgzZij0BJf/bhNaUe4+aG+pjRAv96QPFI36yP2VyI2oFQfMDnGkkXRXOZhf/Y5+7Dlzq6cEEju4x+0i6D6G1reCwZ7t2EM2plZ1I8qPGxzY0o5Ku0MDdCJ2IvSP6fjMpDfqT+jJM9uXEbXvGB4K4zClIs/JXFILcM9kYMlzKKOAYRs1g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB4951.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(316002)(6506007)(86362001)(8676002)(9686003)(66476007)(4326008)(186003)(52536014)(7696005)(54906003)(122000001)(5660300002)(83380400001)(53546011)(8936002)(33656002)(66446008)(508600001)(38100700002)(38070700005)(66946007)(76116006)(64756008)(71200400001)(66556008)(55016002)(6916009)(7416002)(2906002)(26005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?v6nHxs9ZnW5UmA26RkRrS8tlqSwP4pxkucNrqiFXbAgNGxRqwz4h2DWKtmzy?= =?us-ascii?Q?5dmjN8ueP63SDtJPktJbkhWnXTJIUCuxfHUuhBViXNIEQb/LYTRPOgToTbom?= =?us-ascii?Q?+6FNMbQJ9Ep0FOQMJsjIp2tgRWKKMwMLRL/mbXhAL/hfP5W9rAmq4Z9gzlTh?= =?us-ascii?Q?rWS6wZwIax8sLGs8DMz1rJyO02oitfx+C2XRDx0eWC8iPACG3XwN56InAhL0?= =?us-ascii?Q?2NabjgSd6XkkyBhF4IDB1Jk5atoUXByurCbmQZHjMENTJ5zjwGV/i3o91JS0?= =?us-ascii?Q?kTvuACExOz2zmXOSKpF4kiYzjusKspgFn70Cms5dAorV0OJeAC51WvvaB9FP?= =?us-ascii?Q?nqfR8sisrKrt4ghvKJjbtA/93Ey4AVSIisqe1EV7MFHnVnQGeaSC2o2vvHi8?= =?us-ascii?Q?Lzys2tnDXUPQ8BOnit0Nf9EMMp9MCxuGg96egDktJ92zngcEtm+jQ2pXyhbm?= =?us-ascii?Q?dT4PKdPAiuql8ab+KZ1ZoixuAHFlnXAiiFI2JJ8BuolBN88Wx80vU2CemkFX?= =?us-ascii?Q?1rhyvdS5aMKBzsUfnyCBf8flK+GFR8VQLvOG8qc4khyUAJ7Rz12foP6crOV6?= =?us-ascii?Q?IRNtH1ZfjgRvsLjFYzk6dUexrE9Y7tw7nWmq8HdUACy1E17O6H1qNAXIG/P1?= =?us-ascii?Q?CY7wXHVBhy46l+QXgIVYkLDPDO8UZ1nokIM+84b4fEaMVjwZyEsiIfu3+PL9?= =?us-ascii?Q?aR0eZBmipiqSqWgJg4ZKfI1Xw+aUn+NTr6u6eCR10cwUxQYnIZ4UXQIlKA52?= =?us-ascii?Q?1ZtdBLcHNNzQHnr6HJxsk4cYu2+cXE+bcj7RyWu6N//7TVRq+L1nVRvFD/ZS?= =?us-ascii?Q?ng3r9ighD1X+3H0C6fA+6TOIj/wQx9N7Vm2znsfk7gmCJRslAxPND6OqaoHI?= =?us-ascii?Q?DSPvLza9NIC7ghava8fYZAeKk/QwyFriH4ehcDQ7Y1Mq6JxHYUuL3kfZsE5D?= =?us-ascii?Q?Dsp39aIDSf/WZiFHJIaptPbZpKJrXUv5GmTcv4cP5qRU6ALLlRNf5+FpZihf?= =?us-ascii?Q?8soVGZLQpA5+D7TB4lc0452khfpTZ9wsLFlEiG1lwXfIhvfRaFsIQgdR5LFk?= =?us-ascii?Q?g1ENyyAUAQPnCSxRqZroPExDHgjDAklBVsilGVV/ZflcU4I7y/UqGmPHO8+N?= =?us-ascii?Q?tDwSQUz7gCJkvbCefEq4+hJma3mW0uxVLR67RFIF+FNzxbZgSh4zmfoMOoM9?= =?us-ascii?Q?L6Gmy5OKcCCtSrtzF5Uvk+jPG9brpnJLpteObgyeR1zv2aAwmR90eY86owJm?= =?us-ascii?Q?Qm/GmTemy0OGIP6tZpabkggHIm1vd9v8qMfeS1nWZ49rk7Dy+BhfK3wt+1xn?= =?us-ascii?Q?AvDhi98M52wZUX3KaAf8oJ2v?= 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: PH0PR11MB4951.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6f654ee-68e6-4010-defc-08d962988ff9 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Aug 2021 22:36:03.8250 (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: LkP7RAiDBa/XVMkfb2lzUPH/VLfr/uEjWvgvTU2aA28UQIHS3hOeBIBqO7BoUPqKrswGLxHfH2EyA+mFxJj7SsiCHlJ6f+wpNDjHzWNQ6Kg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4776 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Richard Cochran > Sent: Wednesday, August 18, 2021 7:03 PM > To: Machnikowski, Maciej > Cc: Kubalewski, Arkadiusz ; linux- > kernel@vger.kernel.org; intel-wired-lan@lists.osuosl.org; > netdev@vger.kernel.org; linux-kselftest@vger.kernel.org; Brandeburg, > Jesse ; Nguyen, Anthony L > ; davem@davemloft.net; kuba@kernel.org; > shuah@kernel.org; arnd@arndb.de; nikolay@nvidia.com; > cong.wang@bytedance.com; colin.king@canonical.com; > gustavoars@kernel.org > Subject: Re: [RFC net-next 1/7] ptp: Add interface for acquiring DPLL sta= te >=20 > > Additionally we'll lose ability to rely on external HW to monitor > > external TS events. >=20 > Sorry, I can't see that at all. >=20 > Please do NOT tack this stuff onto the PHC subsystem just because you can= . >=20 > Thanks, > Richard OK, Let's take a step back and forget about SyncE.=20 A PTP clock is a device that has a phase and a frequency, and its frequency= can be adjusted using API calls. On the other hand, there's the physical side of the PTP clock. The PTP cloc= k can run on cheap quartz, on the CSAC, or the PLL.=20 The first two of them will get a clock signal from a passive device, but in= the PLL case, it'll get it from an active one. If it runs on an active PLL device, you get another place that adjusts the = frequency of your PTP clock.=20 No matter what source you use as a reference for it - CSAC, SyncE, or GNSS = receiver. Adding the PLL state to the PTP subsystem is just another indicator of the = state of the PTP clock.=20 The upper layer can use it, or ignored it, but it fits into the timer subsy= stem, as the time generated by the PTP on top will be derived from the freq= uency generated by the PLL. And it is applicable to both a PHC and a completely separate implementation= of timer, like the one that's present in the Time Card . Regards Maciek