Thread (17 messages) flat view 17 messages, 4 authors, 2016-02-24

Re: [PATCH v8 8/8] net: e1000e: Adds hardware supported cross timestamp on e1000e nic

From: Jeff Kirsher <hidden>
Date: 2016-02-24 20:22:46
Also in: intel-wired-lan, lkml

On Mon, 2016-02-22 at 03:15 -0800, Christopher S. Hall wrote:
Modern Intel systems supports cross timestamping of the network
device
clock and Always Running Timer (ART) in hardware.  This allows the
device time and system time to be precisely correlated. The timestamp
pair is returned through e1000e_phc_get_syncdevicetime() used by
get_system_device_crosststamp().  The hardware cross-timestamp result
is made available to applications through the PTP_SYS_OFFSET_PRECISE
ioctl which calls e1000e_phc_getcrosststamp().

Signed-off-by: Christopher S. Hall <redacted>
[jstultz: Reworked to use new interface, commit message tweaks]
Signed-off-by: John Stultz <redacted>
---
 drivers/net/ethernet/intel/Kconfig          |  9 +++
 drivers/net/ethernet/intel/e1000e/defines.h |  5 ++
 drivers/net/ethernet/intel/e1000e/ptp.c     | 85
+++++++++++++++++++++++++++++
 drivers/net/ethernet/intel/e1000e/regs.h    |  4 ++
 4 files changed, 103 insertions(+)
Acked-by: Jeff Kirsher <redacted>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help