AN 739: Altera 1588 System Solution

ID 683410
Date 1/28/2016
Public
Document Table of Contents

1.2.6. Timestamp Packet Functional Flow in Linux Driver

This section describes the timestamp packet flow between Linux driver and the system hardware.

The reference design uses TX Ingress Timestamp FIFO and RX Ingress Timestamp FIFO to store the timestamp with fingerprint. The Linux PTP driver will access these FIFO to obtain the timestamp information for PTP software processing. A FIFO status read can be omitted if the FIFO read delay is determined. CPU can read the RX FIFO without any delay while for TX FIFO, a delay is necessary and most often depends on the sum of MTU delay of a scheduled packet, DMA delays and the PTP packet transmit delays. In general, 3*MTU delay is the common value for TX FIFO read delay.

The following figure shows the timestamp packet flow between Linux driver and the system hardware for receive path.
Figure 9. Timestamp Flow Between Linux Driver and System Hardware for Receive Path
The following figure shows the timestamp packet flow between Linux driver and the system hardware for transmit path.
Figure 10. Timestamp Flow Between Linux Driver and System Hardware for Transmit Path