Re: [PATCH net-next RFC v4 2/5] net: Expose available time stamping layers to user space.

From
Andrew Lunn <andrew@lunn.ch>
Date
2023-05-11 20:50:36
Reply to
Vladimir Oltean, 2023-05-11
On Thu, May 11, 2023 at 11:36:46PM +0300, Vladimir Oltean wrote:
On Thu, Apr 06, 2023 at 06:46:46PM -0700, Jakub Kicinski wrote:
quoted
quoted
+/* Hardware layer of the SO_TIMESTAMPING provider */
+enum timestamping_layer {
+	SOF_MAC_TIMESTAMPING = (1<<0),
+	SOF_PHY_TIMESTAMPING = (1<<1),
We need a value for DMA timestamps here.
What's a DMA timestamp, technically? Is it a snapshot of the PHC's time
domain, just not at the MII pins?
I also wounder if there is one definition of DMA timestampting, or
multiple. It could simply be that the time stamp is in the DMA
descriptor, but the sample of the PHC was taken as the SOF was
received. It could be the sample of the PHC at the point the DMA
descriptor was handed back to the host. It could be the PHC was
sampled when the host reads the descriptor, etc.

I also wounder if there is sufficient documentation to be able to tell
them apart for devices which support it. So maybe it does not even
matter what the exact definition is?

	Andrew
Thread (76 messages) 76 messages, 10 authors, last reply 2023-09-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help