Devicetree
 help / color / mirror / Atom feed
* [PATCH net-next v4 0/5] net: dsa: mv88e6xxx: various hwstamp fixes
@ 2026-07-27  3:59 Luke Howard
  2026-07-27  3:59 ` [PATCH net-next v4 1/5] net: dsa: mv88e6xxx: only time stamp PTPv2 frames Luke Howard
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Luke Howard @ 2026-07-27  3:59 UTC (permalink / raw)
  To: Vladimir Oltean, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Vivien Didelot, Gregory CLEMENT, Andrew Lunn,
	Richard Cochran, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Simon Horman
  Cc: Cedric Jehasse, Kieran Tyrrell, Max Holtmann, Max Hunter,
	Christoph Mellauner, Simon Gapp, netdev, linux-kernel,
	Luke Howard, devicetree

Three fixes for improving the reliably of hardware timestamp acquisition
on Marvell switches. In our tests this eliminated missed timestamps in
ptp4l, whilst also preserving PTP event and general message ordering on
switches that support embedded timestamps.

Signed-off-by: Luke Howard <lukeh@padl.com>
---
Changes in v4:
- Gate embedded PTP arrival time support on new DSA protocol
- Only timestamp PTPv2 frames (Marvell switches do not support PTPv1)
- Link to v3: https://patch.msgid.link/20260719-mv88e6xxx-ptp-fixes-v3-0-161386ac8a62@padl.com

Changes in v3:
- Unset UDP checksum on all embedded timestamp cases
- Handle embedded PTP arrival times without worker dispatch
- Link to v2: https://patch.msgid.link/20260710-mv88e6xxx-ptp-fixes-v2-0-af97c38df247@padl.com

Changes in v2:
- Lineraize SKBs before retrieving embedded timestamp
- Hoist driver register lock out of per-frame loop
- Link to v1: https://patch.msgid.link/20260703-mv88e6xxx-ptp-fixes-v1-0-0138581889a9@padl.com

To: Andrew Lunn <andrew@lunn.ch>
To: Vladimir Oltean <olteanv@gmail.com>
To: "David S. Miller" <davem@davemloft.net>
To: Eric Dumazet <edumazet@google.com>
To: Jakub Kicinski <kuba@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>
To: Richard Cochran <richardcochran@gmail.com>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Florian Fainelli <f.fainelli@gmail.com>
To: Simon Horman <horms@kernel.org>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org

---
Luke Howard (5):
      net: dsa: mv88e6xxx: only time stamp PTPv2 frames
      net: dsa: mv88e6xxx: use ARRIVAL1 counter for all peer delay messages
      net: dsa: mv88e6xxx: decouple the PTP timecounter from the register lock
      dt-bindings: net: dsa: add EDSA arrival-timestamp tag protocol
      net: dsa: mv88e6xxx: embedded PTP timestamp support

 .../devicetree/bindings/net/dsa/dsa-port.yaml      |   1 +
 drivers/net/dsa/mv88e6xxx/chip.c                   |  30 ++-
 drivers/net/dsa/mv88e6xxx/chip.h                   |  22 ++-
 drivers/net/dsa/mv88e6xxx/hwtstamp.c               | 218 ++++++++++++++++++---
 drivers/net/dsa/mv88e6xxx/hwtstamp.h               |  21 +-
 drivers/net/dsa/mv88e6xxx/ptp.c                    |  65 +++++-
 drivers/net/dsa/mv88e6xxx/ptp.h                    |   1 +
 include/net/dsa.h                                  |   2 +
 net/dsa/tag_dsa.c                                  |  18 ++
 9 files changed, 342 insertions(+), 36 deletions(-)
---
base-commit: ce6b4d3216b63f902bb8e9695ee6c10c83415f65
change-id: 20260630-mv88e6xxx-ptp-fixes-1732570b8829

Best regards,
--  
Luke Howard <lukeh@padl.com>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-07-28  4:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-27  3:59 [PATCH net-next v4 0/5] net: dsa: mv88e6xxx: various hwstamp fixes Luke Howard
2026-07-27  3:59 ` [PATCH net-next v4 1/5] net: dsa: mv88e6xxx: only time stamp PTPv2 frames Luke Howard
2026-07-28  3:59   ` sashiko-bot
2026-07-27  3:59 ` [PATCH net-next v4 2/5] net: dsa: mv88e6xxx: use ARRIVAL1 counter for all peer delay messages Luke Howard
2026-07-28  3:59   ` sashiko-bot
2026-07-27  3:59 ` [PATCH net-next v4 3/5] net: dsa: mv88e6xxx: decouple the PTP timecounter from the register lock Luke Howard
2026-07-28  4:00   ` sashiko-bot
2026-07-27  3:59 ` [PATCH net-next v4 4/5] dt-bindings: net: dsa: add EDSA arrival-timestamp tag protocol Luke Howard
2026-07-27  3:59 ` [PATCH net-next v4 5/5] net: dsa: mv88e6xxx: embedded PTP timestamp support Luke Howard
2026-07-28  3:59   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox