Skip to content

igc: Add basic support for Timestamping/PTP

Vinicius Costa Gomes intel-wired-lan oe-kbuild-all 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v25 patches 0 repliesSuperseded
  3. v14 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Rebased against Jeff's next-queue tree.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5igc: Add basic skeleton for PTPdrivers/net/ethernet/intel/igc/Makefile drivers/net/ethernet/intel/igc/igc.h drivers/net/ethernet/intel/igc/igc_defines.h +3 more+439 -11 reply
2/5igc: Add support for RX timestampingdrivers/net/ethernet/intel/igc/igc.h drivers/net/ethernet/intel/igc/igc_defines.h drivers/net/ethernet/intel/igc/igc_main.c +2 more+340 -01 reply
3/5igc: Add support for TX timestampingdrivers/net/ethernet/intel/igc/igc.h drivers/net/ethernet/intel/igc/igc_defines.h drivers/net/ethernet/intel/igc/igc_main.c +1 more+157 -01 reply
4/5igc: Add support for ethtool GET_TS_INFO commanddrivers/net/ethernet/intel/igc/igc_ethtool.c+34 -01 reply
5/5igc: Use Start of Packet signal from PHY for timestampingdrivers/net/ethernet/intel/igc/igc_defines.h drivers/net/ethernet/intel/igc/igc_ptp.c+6 -11 reply

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchAaron Brown
1/5T-b
2/5T-b
3/5T-b
4/5T-b
5/5T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Intel-wired-lan] [next-queue PATCH v3 0/5] igc: Add basic support for Timestamping/PTP

Hi,

Changes from v2:
- Rebased against Jeff's next-queue tree.

Changes from v1:
- Fixed wrong value for IGC_SRRCTL_TIMESTAMP;
- Added support for retrieving timestamps from PHY (patch 5/5);

Original cover letter (lightly edited):

This adds basic support for Timestamping and enables ptp4l/phc2sys to work using i225.

To get ptp4l/phc2sys to work we need 2 basic feature sets:
(1) reading/adjusting the PHC clock;
(2) enabling/retrieving HW timestamps;

Patch 1/5 adds support for (1), patch 2/5 and 3/5 adds support for (2) and patch 4/5 implements the ethtool ioctl that ptp4l uses to check what timestamping methods are supported.

As most of the functionality is similar to i210, this code uses that as a base. To keep this short, only the features necessary to make time synchronization using linuxptp are added.

The most important differences from i210 is that there's now support for multiple PTP domains, with multiple timestamping registers.

Still aiming to keep this series short, only support for one PTP domain is added, and also only one of the timestamping registers is used.

Missing from this series is also support configuring/using the programmable pins.

Cheers,
--
Vinicius

Vinicius Costa Gomes (5):
igc: Add basic skeleton for PTP
igc: Add support for RX timestamping
igc: Add support for TX timestamping
igc: Add support for ethtool GET_TS_INFO command
igc: Use Start of Packet signal from PHY for timestamping

 drivers/net/ethernet/intel/igc/Makefile      |   2 +-
 drivers/net/ethernet/intel/igc/igc.h         |  45 ++
 drivers/net/ethernet/intel/igc/igc_defines.h |  66 ++
 drivers/net/ethernet/intel/igc/igc_ethtool.c |  34 +
 drivers/net/ethernet/intel/igc/igc_main.c    |  86 +++
 drivers/net/ethernet/intel/igc/igc_ptp.c     | 716 +++++++++++++++++++
 drivers/net/ethernet/intel/igc/igc_regs.h    |  27 +
 7 files changed, 975 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ethernet/intel/igc/igc_ptp.c
Signature · 1 line
2.24.0