From: Nicolai Buchwitz <nb@tipi-net.de>
To: James Clark <jjc@jclark.com>
Cc: Florian Fainelli <florian.fainelli@broadcom.com>,
Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Richard Cochran <richardcochran@gmail.com>,
Russell King <linux@armlinux.org.uk>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@broadcom.com>,
Jonathan Lemon <jonathan.lemon@gmail.com>,
netdev@vger.kernel.org
Subject: Re: [PATCH net 2/2] net: phy: broadcom: fix one-step P2P timestamping
Date: Wed, 02 Dec 2026 10:54:18 +0100 [thread overview]
Message-ID: <5e3709e3f7a003fc53d556725cfb0961@tipi-net.de> (raw)
In-Reply-To: <729e09f62c40ac871cd6aba1a66f78db4706c61b.1795772837.git.jjc@jclark.com>
On 27.11.2026 10:50, James Clark wrote:
> On a Raspberry Pi CM4 and CM5, with one-step P2P, the BCM54210PE PHY
> sends an incorrect Pdelay_Resp: its correctionField does not include
> the time between receiving the Pdelay_Req and sending the Pdelay_Resp.
> This is because the driver sets up the PHY as for two-step. The peer
> then measures a path delay that is tens of microseconds too large.
>
> With one-step P2P, use mode 1 for Pdelay_Req on receive and for
> Pdelay_Resp on transmit; in this mode the PHY adds the time between the
> two to the correctionField. Also skip the normal processing of an RX
> timestamp for a Pdelay_Req, since in this mode the PHY does not insert
> one. Reject one-step P2P when the filter is HWTSTAMP_FILTER_NONE, since
> that filter turns off the PHY's processing of received messages, which
> would make the correctionField of Pdelay_Resp be incorrect.
>
> With this patch, on the CM4, the path delay measured with one-step P2P
> is the same as with E2E, over L2 and UDPv4. The PHY keeps the UDP
> checksum of Pdelay_Resp valid over UDPv4 and UDPv6, still captures the
> TX timestamp of Pdelay_Resp, and handles a Pdelay_Req and Pdelay_Resp
> on
> either side of a second boundary.
>
> Fixes: 39db6be781cd ("net: phy: broadcom: Add PTP support for some
> Broadcom PHYs.")
> Cc: stable@vger.kernel.org
> Signed-off-by: James Clark <jjc@jclark.com>
> [...]
Tested-by: Nicolai Buchwitz <nb@tipi-net.de> # CM4, CM5
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
Thanks,
Nicolai
prev parent reply other threads:[~2026-12-02 9:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 9:50 [PATCH net 0/2] net: phy: broadcom: fix P2P timestamping James Clark
2026-11-27 9:50 ` [PATCH net 1/2] net: phy: broadcom: fix two-step " James Clark
2026-12-02 9:53 ` Nicolai Buchwitz
2026-11-27 9:50 ` [PATCH net 2/2] net: phy: broadcom: fix one-step " James Clark
2026-12-02 9:54 ` Nicolai Buchwitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5e3709e3f7a003fc53d556725cfb0961@tipi-net.de \
--to=nb@tipi-net.de \
--cc=andrew@lunn.ch \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=hkallweit1@gmail.com \
--cc=jjc@jclark.com \
--cc=jonathan.lemon@gmail.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.