πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14290

Re: [PATCH net-next v3 0/6] net: mdio: add timestamped MDIO writes for PHY gettimex64

#14290
From: Jakub Kicinski
Date: Tue, 10 Nov 2026 23:16
15 lines
9161 bytes
On Thu,  5 Nov 2026 12:48:33 +0700 James Clark wrote:
> PTP_SYS_OFFSET_EXTENDED uses gettimex64 to bracket each PHC read with
> system clock reads. Some PHYs have a PTP hardware clock (PHC) that is
> read over MDIO and sometimes multiple MDIO transfers are needed to read
> the clock. This leads to brackets in the tens of microseconds.
> Applications that synchronize the system clock from the PHC typically
> use the midpoint of the bracket as the system time of the PHC reading.
> With multiple transfers, the midpoint of the bracket is typically far
> from the time when the PHC reading actually occurred.

There are some AI nit picks available:
https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261105054839.2248046-1-jjc@jclark.com
But frankly unless someone with time expertise reviews this it is going
nowhere.
Technical Details
Message-ID: <20261110151602.7a065b73@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360714-linux-kernel-netdev=dewy.ru
References: <20261105054839.2248046-1-jjc@jclark.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360714-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 0/6] net: mdio: add timestamped MDIO writes
 for PHY gettimex64
Date: Tue, 10 Nov 2026 15:16:02 -0800
Organization: Usenet Network
Message-ID: <20261110151602.7a065b73@kernel.org>
References: <20261105054839.2248046-1-jjc@jclark.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="727363"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:KHxVcFRoRTe1IYU0FS7ajKEiPMg= sha256:jOYzARIr+Ptvvpj3IBgekcddS8LOD8xfWpusvtS2lEk=
	sha1:9p8dsvS8zpkaYtJgCF5W/m8RTxg= sha256:CWiBjFqdrCCJI7r/wbTYJmUBuuF+8PDCBs7EfZREps4=
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 3E2A4113DA7; Wed, 11 Nov 2026 02:19:45 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
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 KKew5WqvxYf5;
	Wed, 11 Nov 2026 02:19:41 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-360714-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 8FF95113A85; Wed, 11 Nov 2026 02:19:32 +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 2F40DA4761; Tue, 10 Nov 2026 23:16:07 +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=1794352566;
	b=P6nZPH/ReE6UADI+qoThqnCMsulR6haOe2dw3dfoGXn89YctYyPaSaG3EBB9El4Y/BqA
	 L34mG24juEUP+GDeJzSToblxXZ2VHCY8PxMP391QKUdBZ4DKrHT0pmLr1Tv7uqoEBfzpF
	 B3JrX6oXGWeUsqpZRa4VCzI2/QgSpYYkR9zDBHrT1/N/bI7bc8Syb16klJAI4nI8BpwMI
	 MfhvoUYbZ9w4JQKt+2qjkYpkk4kCNM0ZAT0YFFKXrivvTjNivFmXcQSyVvRa17QCkVORE
	 Z2F1QMV012qBqHFlnDOIYS7y7InFMCDzK6yQGwkUNnGQAfZ+aD6jWfDop9rSNffP5Fg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794352566;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=aXOcZXRZG9W9cTt57WRkxGPk1ieKxWzcKQyjGslnx3U=;
	b=bYvFbUzRSPFOe+2Qmwmx/4UF6GBtfIf47ilftGwGGIC5dr7mkTzs6xHl4P677hjdEac5
	 LQw+BiMWsa9bHkl6mJq359WFi2/0KLoV6G/0duz/BWQorSDwYcMavwFY9lQQrR5ZUDjL1
	 MtkLlhL8SDelL+O87dZmYDgB+24rjOxpGtZ8cyfWwjdmzDomvoq8lXTEusR7HXRZFZtj8
	 kb6E90l/xxwtTz2wbLMdJvVn5HGaPh0/4REgWBtmyhmLGu077ViCN70Nane0m5mSCc7h8
	 M2K2eEgHFebr+qXsLNM7iW+cOI0KrI+TRM0Y+1CrD9gAKUNCjPq7I1ewtswwdqZJI6Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=goArgeLC;
	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 12430606A330;
	Tue, 10 Nov 2026 23:16:06 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=goArgeLC
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794352565;
	b=zIC8NP5CaY/K0Z2FO3WEyAkNLUcQDptMMjaLks5z4FdQUDnlx3gKKk0hdAmpw8mcjy6i
	 SU8VduixvqBTcVsWH6e/gWgyv0qMvDRNFOgBqlEFDj+Ztev5ZLkZE3NMFxEkfrQ+vQ1DS
	 DHvQDGYkWqSCA0pEHTB9pCVbUcZsoi+TWvL4RMjZCJ+lrrJdJRURFGY6pCL1Q0ngzc6IA
	 PuBJS8HyQ57EsN/+QytFOJzwDvkzbOYzTffL+IdAFh3WyfhF8WdsD0xuyA0Ly+G7rx7kJ
	 l1gs4jkl6edvguUnI+M63DLHGw9zfnoSDuEwGOxF3hmk6jU648tGn73qEFTkCyKPAlQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794352565;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=aXOcZXRZG9W9cTt57WRkxGPk1ieKxWzcKQyjGslnx3U=;
	b=GkFR2NT0Y2DPwgV8sTiqTfrpoWyZu6utX/5LKQWfRtEhmpOn0jT9wEiK3yyDCt/e95H1
	 NNrLP/ayuPPEsPrnOUH0sqc9DU1cjhcKGdU0NqGd92GdHYJtSqMUZi8QA0L1cd4C86jae
	 l39uYPOF6qKOKJ7M1qW2nKn3yDUZzU4MvZ3X8kpLgu0OTr11JobmZ/qyqUfvy6/jsMykZ
	 TmFvlaWn8zhNdG6qD3M5V3ngXarGzKoUQLKAowp3rZ6Vygj9zPgGat0ZTvgsQHRX1dkXk
	 d836KqMijtJb2CKa7XpAln7pKYXD2mZpptsIrSUyZrnjvWBRv1hRGYgMlXRhznFiFWg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=goArgeLC;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(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 E3DBE606A31C;
	Tue, 10 Nov 2026 23:16:04 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15D531F0093C;
	Tue, 10 Nov 2026 23:16:04 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794352564;
	bh=aXOcZXRZG9W9cTt57WRkxGPk1ieKxWzcKQyjGslnx3U=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=goArgeLCqTdLh1pc3Du1L2cgqIMUG4ujmouYTqhWdu//9Dxngx2x4ncWfM7v+qVTY
	 Kpg+i8NLYpO9RV19S//2Zy0get7IG37AB5AUVwQajojjnoHj08Hv2h53ARAdbyys/T
	 nDgB28HVfTT0dJynSquxooDiEsjfO7eiUjKUSXNA1Fb4STSRHDpLnsyXdto9HN9ecB
	 ssM8wVYEQsxxqKRxy47RNefAZ2NihcRCT0viSc87xJnEblWYxJH6Ce9U45LJXDfd8F
	 WWGC2eE1SUx31xN48rUBTcJ0DS8Cvsk3LtfEK2gnUeXL/4OGa9RVO8vI6mBQaIWzIn
	 afBpEx2nAUUog==
X-Cc: "David S. Miller" <davem@davemloft.net>, Eric Dumazet
 <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Andrew Lunn
 <andrew+netdev@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Richard
 Cochran <richardcochran@gmail.com>, Florian Fainelli
 <florian.fainelli@broadcom.com>, Doug Berger <opendmb@gmail.com>, Nicolai
 Buchwitz <nb@tipi-net.de>, ThΓ©o Lebrun
 <theo.lebrun@bootlin.com>, Andrew Lunn <andrew@lunn.ch>, Russell King
 <linux@armlinux.org.uk>, Conor Dooley <conor.dooley@microchip.com>,
 Broadcom internal kernel review list
 <bcm-kernel-feedback-list@broadcom.com>, Thomas Gleixner <tglx@kernel.org>,
 John Stultz <jstultz@google.com>, Stephen Boyd <sboyd@kernel.org>, Miroslav
 Lichvar <mlichvar@redhat.com>, Vladimir Oltean <olteanv@gmail.com>, Hubert
 Feurstein <h.feurstein@gmail.com>, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org
X-In-Reply-To: <20261105054839.2248046-1-jjc@jclark.com>
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