Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 CF8E41C84DB for ; Tue, 4 Mar 2025 21:10:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741122610; cv=none; b=Jnu7g6ftcfEXy4mLQ5WyPH/TE/F89RM6x0UANpZnQ9dSd9r3wiTP2QKvlVWzXHtIJQx6H2/bGYANnBsjv2bDpDwK3fgo7MdvOZIwv1x6JFk5/h2LWzLgHt8rOwmCUUhCjPA+8a1he8tjQQn9SDpqyFfqhiXMtnGFalNizQKrkck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741122610; c=relaxed/simple; bh=LOe6YN/ICgwOkhX7oZRIibsNIwZTPRTqVfQk7HlSDjo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ujeRUR82gKsckimTqx11kOHTWVWLTGrvbCwZuLZPKeBr+oB6yys/iCXRB/mQRWGpjoZgGIzXDmbBaABQ2kmdbvFOZs13Uqja4btBhaji4YdU2aa83hI7J3MQx3bVWPXq0tfJhpEL7mByeS1MMJD6ErHd9fkcmJgKu5eCdHbo9C8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=zNhIUS5k; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="zNhIUS5k" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=C7AcgVH2dgLSukAc/yiRNsvC4mW8nP1lzJAKxR2RSyw=; b=zNhIUS5kRSdckAH2eHJQjp7GKM Lnkquw1hMlTZZ19smZUg2zcdp8XxomtzbYDDhcYEe7LxWqYpXjb/BZ9RceJ9aV2QmOs7i29xrbod3 Vt71hW5y6sOu0NDKaqUx93LwG7AcJtL2XY5HOXm6nH/NtsJCSCHGnzLv6shr5SM9fY2c=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1tpZWg-002Gg5-UZ; Tue, 04 Mar 2025 22:10:06 +0100 Date: Tue, 4 Mar 2025 22:10:06 +0100 From: Andrew Lunn To: David Arinzon Cc: David Miller , Jakub Kicinski , netdev@vger.kernel.org, Eric Dumazet , Paolo Abeni , Simon Horman , Richard Cochran , "Woodhouse, David" , "Machulsky, Zorik" , "Matushevsky, Alexander" , Saeed Bshara , "Wilson, Matt" , "Liguori, Anthony" , "Bshara, Nafea" , "Schmeilin, Evgeny" , "Belgazal, Netanel" , "Saidi, Ali" , "Herrenschmidt, Benjamin" , "Kiyanovski, Arthur" , "Dagan, Noam" , "Bernstein, Amit" , "Agroskin, Shay" , "Ostrovsky, Evgeny" , "Tabachnik, Ofir" , "Machnikowski, Maciek" , Rahul Rameshbabu , Gal Pressman , Vadim Fedorenko Subject: Re: [PATCH v8 net-next 5/5] net: ena: Add PHC documentation Message-ID: References: <20250304190504.3743-1-darinzon@amazon.com> <20250304190504.3743-6-darinzon@amazon.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250304190504.3743-6-darinzon@amazon.com> > +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 Why is not opening /dev/ptpX sufficient to enable the PHC? Andrew