Re: hardware time stamping with extra skb->hwtstamp

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oliver Hartkopp
Date: Wednesday, November 26, 2008 - 11:14 pm

Hello Patrick,

Patrick Ohly wrote:
(..)


This looks really better to me :-)


I still have two questions of understanding regarding these (offset) 
transformations that make it still difficult:

1. As no one has an insight of how the specific hardware generates the 
hw time stamp anyway, why can't you put the already transformed values 
into the hw timestamp field? I won't stick on the fact that the hw time 
stamp is the value that has been read from specific controller registers 
that are very hardware depended.

2. From what i've read in the discussion, i understood that the hardware 
clock and the system clock skew. Assuming both to be strong 
monotonic(?), is there a linear skew observable from your testing 
experiences?

If so i would suggest to have some kind of sysfs entry like e.g.

/sys/class/net/eth0/hwstamp_skew_ns

that gives something like

-86234765@12277656012584334095

as output. In general:

<skew_in_ns>@<systemtime>

So if you would check this sysfs entry two or more times, you would get 
an impression about the hw time stamp behaviour of your hardware by 
simply calculating the linear (timedepended) offset based on several 
'skew-sample-points', right?

I hope these suggestions are not completely damaged ;-)

Best regards,
Oliver

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
hardware time stamping with extra skb-&gt;hwtstamp, Patrick Ohly, (Wed Nov 19, 5:08 am)
[RFC PATCH 07/11] igb: stub support for SIOCSHWTSTAMP, Patrick Ohly, (Wed Nov 19, 5:08 am)
Re: hardware time stamping with extra skb->hwtstamp, Oliver Hartkopp, (Wed Nov 26, 11:14 pm)
Re: hardware time stamping with extra skb-&gt;hwtstamp, Patrick Ohly, (Thu Nov 27, 3:07 am)
Re: hardware time stamping with extra skb-&gt;hwtstamp, Octavian Purdila, (Thu Nov 27, 7:02 am)
Re: hardware time stamping with extra skb-&gt;hwtstamp, Patrick Ohly, (Thu Nov 27, 8:31 am)
Re: hardware time stamping with extra skb-&gt;hwtstamp, Octavian Purdila, (Thu Nov 27, 11:53 am)
Re: hardware time stamping with extra skb-&gt;hwtstamp, Oliver Hartkopp, (Thu Nov 27, 3:13 pm)
Re: hardware time stamping with extra skb-&gt;hwtstamp, Octavian Purdila, (Fri Nov 28, 5:55 am)
Re: hardware time stamping with extra skb-&gt;hwtstamp, Oliver Hartkopp, (Fri Nov 28, 8:38 am)
Re: hardware time stamping with extra skb-&gt;hwtstamp, Octavian Purdila, (Fri Nov 28, 9:00 am)
Re: hardware time stamping with extra skb-&gt;hwtstamp, Patrick Ohly, (Mon Dec 1, 3:37 am)
Re: hardware time stamping with extra skb-&gt;hwtstamp, Patrick Ohly, (Mon Dec 1, 9:31 am)
Re: hardware time stamping with extra skb-&gt;hwtstamp, Oliver Hartkopp, (Mon Dec 1, 9:45 am)