Enable RX HW timestamp for PTP packets using CPTS FIFO
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v8 Latest2 patches 2 repliesApplied 2/2
- v62 patches 1 replySuperseded
- v72 patches 2 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 2 patches | 2 replies | Superseded | |
| v4 | 3 patches | 6 replies | Superseded | |
| v3 | 3 patches | 1 reply | Superseded | |
| v2 | 3 patches | 2 replies | Superseded | |
| v1 | 2 patches | 13 replies | Superseded |
Changes in v8 from the cover letter
- Removed empty lines between trailers in [PATCH v7 2/2] as suggested by Jakub.
Patches in v8 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: ethernet: ti: am65-cpts: Enable RX HW timestamp for PTP packets using CPTS FIFOdrivers/ drivers/ | +83 | 0 replies | Applied |
| 2/2 | net: ethernet: ti: am65-cpsw/ethtool: Enable RX HW timestamp only for PTP packetsdrivers/ drivers/ drivers/ +1 more | +35 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.
Cover letter [PATCH net-next v8 0/2] Enable RX HW timestamp for PTP packets using CPTS FIFO
The CPSW offers two mechanisms for communicating packet ingress timestamp information to the host.
The first mechanism is via the CPTS Event FIFO which records timestamp when triggered by certain events. One such event is the reception of an Ethernet packet with a specified EtherType field. This is used to capture ingress timestamps for PTP packets. With this mechanism the host must read the timestamp (from the CPTS FIFO) separately from the packet payload which is delivered via DMA.
In the second mechanism of timestamping, CPSW driver enables hardware timestamping for all received packets by setting the TSTAMP_EN bit in CPTS_CONTROL register, which directs the CPTS module to timestamp all received packets, followed by passing timestamp via DMA descriptors. This mechanism is responsible for triggering errata i2401:
"CPSW: Host Timestamps Cause CPSW Port to Lock up."
The errata affects all K3 SoCs. Link to errata for AM64x:
https://www.ti.com/lit/er/sprz457h/sprz457h.pdf
As a workaround we can use first mechanism to timestamp received packets.
Series is based on linux-next tagged next-20240419.
Link to v7:
https://lore.kernel.org/r/[email protected]/
Changes from v7 to v8:
- Removed empty lines between trailers in [PATCH v7 2/2] as suggested by Jakub.
Chintan Vankar (2):
net: ethernet: ti: am65-cpts: Enable RX HW timestamp for PTP packets
using CPTS FIFO
net: ethernet: ti: am65-cpsw/ethtool: Enable RX HW timestamp only for
PTP packets
drivers/net/ethernet/ti/am65-cpsw-ethtool.c | 13 ++- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 51 +++++----- drivers/net/ethernet/ti/am65-cpts.c | 107 ++++++++++++++------ drivers/net/ethernet/ti/am65-cpts.h | 11 +- 4 files changed, 118 insertions(+), 64 deletions(-)
Signature · 1 line
2.34.1