From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-fw-2101.amazon.com (smtp-fw-2101.amazon.com [72.21.196.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D32813633F for ; Wed, 5 Mar 2025 12:50:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=72.21.196.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741179021; cv=none; b=QtHjB/LLNVXAkWxSUqqAAj8MYeP90ub0L+NgII2SkytP7LEEtNvlWC31PkuBeMegnknxjRhI7MNF79gbrLamVFGzqoiFNNIDPkqpxAmYKTJlAK6f3LWSpxjQ81pvDGd04QTgghLs/x0MJVd4bM8Gu9E22S28Pj33BMVfQwnocBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741179021; c=relaxed/simple; bh=zNwyls7hnRzCGrgw8LUSVsIQC0m9mT8/7moNhs4Kq3s=; h=Subject:From:To:CC:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=CTf6Vvx6S+1XGHHhEWDJGVVvSGvwotLfdqhEhoUNNiMakqQBDcxyN4c71ffs3e5lSjchdepAll2FQKnJe8JS+jnaBuTXfoHiwzMc8w8RafJVeaJKk0DyfcbV11eaufVqHi45jir3/MxCiTF7lBUE9f3uPg/wlah+0yNp8iMq8QY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com; spf=pass smtp.mailfrom=amazon.com; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b=FR+UF7HQ; arc=none smtp.client-ip=72.21.196.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="FR+UF7HQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1741179017; x=1772715017; h=from:to:cc:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version:subject; bh=SsHT4lPrSn/PiKBlUYw2BqwKfos2DXy3sIj+3B4Qg4I=; b=FR+UF7HQ2a6DpNh3vePsRugrw+LJLFxqIzv0uOMMfYTKdRdiO3WVDLch B9ImKTlWjHphxHq9PWSi5Orsn++vj5Fp7KUe0fW1bWDXIqKOrN+qY7XbE GHtiNyDYUmU8sUR00Dh0ZWvXCH7pWe8A3G6OXIdOA/R2pFUlbX8lFNZKp s=; X-IronPort-AV: E=Sophos;i="6.14,223,1736812800"; d="scan'208";a="472257039" Subject: RE: [PATCH v8 net-next 5/5] net: ena: Add PHC documentation Thread-Topic: [PATCH v8 net-next 5/5] net: ena: Add PHC documentation Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO smtpout.prod.us-east-1.prod.farcaster.email.amazon.dev) ([10.43.8.6]) by smtp-border-fw-2101.iad2.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2025 12:50:13 +0000 Received: from EX19MTAEUA002.ant.amazon.com [10.0.43.254:28590] by smtpin.naws.eu-west-1.prod.farcaster.email.amazon.dev [10.0.0.98:2525] with esmtp (Farcaster) id 3e1c7510-2127-4301-84bf-4e50ba8ca3e6; Wed, 5 Mar 2025 12:50:12 +0000 (UTC) X-Farcaster-Flow-ID: 3e1c7510-2127-4301-84bf-4e50ba8ca3e6 Received: from EX19D004EUA001.ant.amazon.com (10.252.50.27) by EX19MTAEUA002.ant.amazon.com (10.252.50.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1544.14; Wed, 5 Mar 2025 12:50:12 +0000 Received: from EX19D005EUA002.ant.amazon.com (10.252.50.11) by EX19D004EUA001.ant.amazon.com (10.252.50.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1544.14; Wed, 5 Mar 2025 12:50:11 +0000 Received: from EX19D005EUA002.ant.amazon.com ([fe80::6aa4:b4a3:92f6:8e9]) by EX19D005EUA002.ant.amazon.com ([fe80::6aa4:b4a3:92f6:8e9%3]) with mapi id 15.02.1544.014; Wed, 5 Mar 2025 12:50:11 +0000 From: "Arinzon, David" To: Andrew Lunn CC: David Miller , Jakub Kicinski , "netdev@vger.kernel.org" , Eric Dumazet , Paolo Abeni , Simon Horman , Richard Cochran , "Woodhouse, David" , "Machulsky, Zorik" , "Matushevsky, Alexander" , "Bshara, Saeed" , "Wilson, Matt" , "Liguori, Anthony" , "Bshara, Nafea" , "Schmeilin, Evgeny" , "Belgazal, Netanel" , "Saidi, Ali" , "Herrenschmidt, Benjamin" , "Kiyanovski, Arthur" , "Dagan, Noam" , "Bernstein, Amit" , "Allen, Neil" , "Ostrovsky, Evgeny" , "Tabachnik, Ofir" , "Machnikowski, Maciek" , Rahul Rameshbabu , Gal Pressman , Vadim Fedorenko Thread-Index: AQHbjThyr28YLVH3LkCG4RZT31KA07NjeSoAgAEGKrA= Date: Wed, 5 Mar 2025 12:50:11 +0000 Message-ID: References: <20250304190504.3743-1-darinzon@amazon.com> <20250304190504.3743-6-darinzon@amazon.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 > > +The feature is turned off by default, in order to turn the feature > > +on, please use the following: > > + > > +- sysfs (during runtime): > > + > > +.. code-block:: shell > > + > > + echo 1 > /sys/bus/pci/devices//phc_enable > > + > > +All available PTP clock sources can be tracked here: > > + > > +.. code-block:: shell > > + > > + ls /sys/class/ptp > > + > > +PHC support and capabilities can be verified using ethtool: > > + > > +.. code-block:: shell > > + > > + ethtool -T > > + > > +**PHC timestamp** > > + > > +To retrieve PHC timestamp, use `ptp-userspace-api`_, usage example > using `testptp`_: > > + > > +.. code-block:: shell > > + > > + testptp -d /dev/ptp$(ethtool -T | awk '/PTP Hardware > > + Clock:/ {print $NF}') -k 1 >=20 > Why is not opening /dev/ptpX sufficient to enable the PHC? >=20 > Andrew Hi Andrew, The reasoning for the enablement option of PHC was explained in patch 3 in = the series https://lore.kernel.org/netdev/20250304190504.3743-4-darinzon@amazon.com/ David