Article View: linux.kernel.netdev
Article #25725Re: [PATCH net 2/2] net: phy: broadcom: fix one-step P2P timestamping
From: Nicolai Buchwitz
Date: Wed, 02 Dec 2026 09:54
Date: Wed, 02 Dec 2026 09:54
35 lines
10337 bytes
10337 bytes
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
Technical Details
Message-ID:
<5e3709e3f7a003fc53d556725cfb0961@tipi-net.de>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375708-linux-kernel-netdev=dewy.ruReferences:
<cover.1795772837.git.jjc@jclark.com> <729e09f62c40ac871cd6aba1a66f78db4706c61b.1795772837.git.jjc@jclark.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375708-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 2/2] net: phy: broadcom: fix one-step P2P timestamping Date: Wed, 02 Dec 2026 10:54:18 +0100 Organization: Usenet Network Message-ID: <5e3709e3f7a003fc53d556725cfb0961@tipi-net.de> References: <cover.1795772837.git.jjc@jclark.com> <729e09f62c40ac871cd6aba1a66f78db4706c61b.1795772837.git.jjc@jclark.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1940975"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:cFF55XXW1SiCj+pEwYFEubOANZ4= sha256:jTmLqWTKI0A75uPtsldZjZZX1+ww8ZyGWGaosCYjQf8= sha1:fvJvXDaPaFWFQkcA/u9rnI7nAiU= sha256:8dSJs85GeNQYUv2DuFDx1PI3hICipslLYCU3OZJ5v4o= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id ADFA21175F1; Wed, 2 Dec 2026 12:54:36 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=tipi-net.de X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ubIW36DL0YQ8; Wed, 2 Dec 2026 12:54:34 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375708-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 924D71175F0; Wed, 2 Dec 2026 12:54:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 124382E437; Wed, 2 Dec 2026 09:54:23 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796205262; b=wtNnLZgfakhuDI265fbu1WdTphGoMb+FRDzLPWLUiBwRfH2L3TC7oeD0Y2CHpUhZsrFS J+R2swKhjMR/BCsNsH9wsn53yEpNBqgZVNJfSA/FAAlKQRgFDEfj9PBWKoV4KAiAOS4OZ SYyE2xBnIb8kAd9dz3m18hWTPyvHrL3SUhC4ltjxjt6dLuqyv6L51opMBu74WxYYcN1qn SKWNQsoh6bihI75yrY4pY05JEsTkWPm164o1bQTtMUvD00WXrr3srj57LipB+7kSexQbH HTB1R6L/wiB79Cxoaft92xWV3g3g/zlTGg1TBVUnqI24TJ+iOsGTLUIq+2JfiIFrkMA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796205262; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Date:From:To:Cc: Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=JHuLsJmdW2eiE/dPQk6rVIVlo6gIUiiRISo1PN9RDoc=; b=aPuubkC84zBTFDD8u/0r9mZQ/rUUEkvPCnpEVfj5I7xDhl6tnEmRUZH4dBDyv8pocXgQ pYDOSdu0tCOx2TuXx/jXQwu3pGon3qRkmxZKEAE11CVFTLQHc3R7UXwpLe4Lx4DY9MqMc hvVc1/6GjXMd7HBH+qXi1PLpMnqhi7ov38YU3pmNxgwYQg0o2SSdmb57ssxbJd4Q8mlHw jBCANN6kd4+eqxKHBBNsma4eQp8gkMGC07eVAslCR/3spLLOTCPCkzXdW3st9xmFyw6sT 5ndAihp5r1yG6ns8qTzxR+UgjdFBjfr6//DLjsrk0yYcocqDdWYTc2aC6sQda10048w== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=dHmXkWVF; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D841F606A335; Wed, 2 Dec 2026 09:54:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=dHmXkWVF X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796205262; b=ddOG02I3oJG6+2rzo3WNHJFwgdqoxm3gAmVLmpRSaoLsVopeGqeG4YZnPjz5A9/o2IFO crWH6bfPz9csv/WGF1gtngZqZq4ARNHp2la5V0w1oPNrKISWQFM8yWkuJoTh9M/O8djJU wfs1RQ2AIPF7fv0cDgs+l59Oc3w98N5OaG5dv0cMlSzIjQA+mL4Gj52H+74QgxmXh7ZO+ bzJxLQWU8Mh6jW/Cua//Z2ipbJY8iZhT7Z7LbXIbQ+HfBxy8pTY46B9H3uc7+hIVV+unE 2tfBer2NDyMoFC7UE8etHuwRcFrhtEr08tPv3l3mPJDusuQqcOapZ2vTMOkDHK2JaOA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796205262; h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc: Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=JHuLsJmdW2eiE/dPQk6rVIVlo6gIUiiRISo1PN9RDoc=; b=HQFZ4HZsC8qDex2CMtiBykv6OsklGQ8rgcYgETV3M4AGFC8tpJBsV9xXDDfdeegJsXaD CJobdBL3OhFLDmItZeqsfAejvFBzJeJzoJtFUQPC2SjnQbd5rybiCCyjLD16ZjHXcteH4 5Kg9cEBd3qZ8jmeZRaJj6glZ8kDsuSkm/0RDa/fKTdiGOc3+jNa6Or9i0VBHjGKhPA8Va hzY0f/N/bC6OHbJH0VjPTgoo80wklQM/IsbSDpDRUwa+avqRelFQc7l1n/mTKVWNoVZmv +boQGZ1yINET2Tk6PWQIn21ElN2Zcx46x5N0b2F4Z/ImwCHXfS3clJWZPyyWcP3LALg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=dHmXkWVF; arc=none smtp.remote-ip=194.13.80.246 X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1FD3606A32F for <netdev@vger.kernel.org>; Wed, 2 Dec 2026 09:54:20 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C1FD3606A32F X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C338DA0044; Wed, 02 Dec 2026 10:54:18 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1796205259; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=JHuLsJmdW2eiE/dPQk6rVIVlo6gIUiiRISo1PN9RDoc=; b=dHmXkWVFB3labdt/L18sHX9qf7AyZIQCTUTO9/xT8F9fiJqc4VbtgOKRkN/i4IHuu7dQqG 7CZ4IDz7SvIfd+h5i1OpLwnZujmDzoxvZWUk42txPH5rvB8hvoJXaPT7AA4uxqjNdCIOie /SmNgkRmELAdpbBmxG74lpkKODaT3DGFhNgapnhYjBdpNq+McpSd733Ru04aqBBw03hRT8 deee88ZLtTKnBBKQEYVWGyar4c1TIiSBHWl3hy3C+xw/pEisWLVBtb1jDOD0uU2JucQu++ Tvc3fTz9eAO7k0ebMLKkFrgFcVP4H2Eeay0+mDVUSlWhjipoAfEYwF5irHg4wg== X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-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 X-In-Reply-To: <729e09f62c40ac871cd6aba1a66f78db4706c61b.1795772837.git.jjc@jclark.com> X-Sender: nb@tipi-net.de X-Last-TLS-Session-Version: TLSv1.3