πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15380

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

#15380
From: Nicolai Buchwitz
Date: Thu, 12 Nov 2026 19:30
24 lines
10121 bytes

On November 11, 2026 12:16:02 AM GMT+01:00, Jakub Kicinski <kuba@kernel.org> wrote:
>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.

I have been quite busy with other work, but will try to make some time for a deeper look in the next days.
Technical Details
Message-ID: <99CF7794-BD73-4E84-815F-7819AA4BBE5B@tipi-net.de>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362163-linux-kernel-netdev=dewy.ru
References: <20261105054839.2248046-1-jjc@jclark.com> <20261110151602.7a065b73@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362163-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 0/6] net: mdio: add timestamped MDIO writes for PHY gettimex64
Date: Thu, 12 Nov 2026 20:30:33 +0100
Organization: Usenet Network
Message-ID: <99CF7794-BD73-4E84-815F-7819AA4BBE5B@tipi-net.de>
References: <20261105054839.2248046-1-jjc@jclark.com> <20261110151602.7a065b73@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="1170550"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:bdaVjNOmOKlSwHHk7hBipfw00ro= sha256:CBehM3o6Zg7qqy0wECSA/camGB2uSYsvbmAUApuZI9I=
	sha1:5vHQK3zPd4PvtLrNMlstTs4TPYg= sha256:hCztffmpEoi7x0rVXfsiLapa4OcKhkUit2478DfyEMA=
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 AF7F2114381; Thu, 12 Nov 2026 23:29:51 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31
	tests=[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]
	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 taSV3jqCbhy6;
	Thu, 12 Nov 2026 23:29:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-362163-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id C15B3114370; Thu, 12 Nov 2026 23:29:35 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 00866682EF9; Thu, 12 Nov 2026 19:31:16 +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=1794511851;
	b=ehlfrhjFO1EJBijluJ+6G8d9/wfznO0QPgZ+bRrdV8vM0gAsA3HGABJ2VtTRvj0Ftn6s
	 cUXyH1Qf+IrqmyFe4++5rDPouQ4EZ8uhMGXVUJjtr0ICujgA/hAF190g6N4poBG1sBtGF
	 kxfI6a0BgptpIBWnfcedg2w2qdpnqUAfhPvRk7VLsGiAXyiWX19xZDYyevDOYm4s3x4Jr
	 syoqRJRFyzL1zN9IXTDHW8Vtj2S9t39kmeJjb/wE0xoCckGpQFABlo9E9NT6TCy6KS2Mg
	 swXsmXA9v0jstYkuiG498zaTqGUVy+rEmZ3kYWDD0kOx1SbT1sRgok2Q+BMkQEcluYQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794511851;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Date:
	 From:To:CC:Subject:User-Agent:In-Reply-To:References:Message-ID:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=dVmGUOAC/RT1NKlC/mYP5cJfsGUMVjyOOI8i2FgSf+0=;
	b=b9+Twh3FmwaXjrSoqCKCblXTAaVrkKK+gV4MlZbTvnWT6W5P/93eL13Tjeryjcxn0PU3
	 C7fyMEqP7Aq1zXhn9b8jF60FlXQclI93XpaOroLuqkgB2g+Z5xs/MrDlO9fBokNDf1CV3
	 HkZspCJnI+Gc0RZP+RvcxI46kQldVXp9bVLhryCmUwxcj/j2cVHmCTkO2MUpPOpgGI3tG
	 G85+7PgsyvbVsNgOeoMv48wuSHhvN4JzFXYXAorv8QiN772CWLslC4y4JOhyoV0PJM+/9
	 ZmNTkpuhmL21jSEVyeRyFQOw6QcYrjt3soj2g6OljTVbMlcsv0v4iwcDqRXU2yo0BTQ==
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=uqwwLbb7;
	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 AB27B606A323;
	Thu, 12 Nov 2026 19:30:51 +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=uqwwLbb7
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=1794511845;
	b=b6+fBqhuZ8D93NPg9E9OW25tvgT+wM3U+H8/LQaPaFQEk3HN69ibnL9ucdFW6hNciV8Y
	 U4Oq/iNV/JhkcQTXixh6H2U/XzuHqlNDV+/OIapHePWwnae8xLqEzoCI8wNiK5DDNIsq6
	 31j4c2ZS3RDgarQhABViwJU+9NvTCIKvh/jKax7jl29I9hgZc2sl7067IGMNPzUEiTaoX
	 TWm/L2inezuUZjw4FHo05XH4WWsbatvJay67jn9xlGoEN41nVYFpdnfiztglEHcLS7T/p
	 dfMtKAa08JvrylqthJp5FuFAF2iAhJZlCJ5qV7Wi2kPYG2mtMaoujMZZCl0QFWqCA8w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794511845;
	h=DMARC-Filter:Received:DKIM-Signature:Date:From:To:CC:Subject:
	 User-Agent:In-Reply-To:References:Message-ID:MIME-Version:
	 Content-Type:Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=dVmGUOAC/RT1NKlC/mYP5cJfsGUMVjyOOI8i2FgSf+0=;
	b=1ZAUs0M3UXINSGCozj+7XLfjlZW29uByG8jhzQAMebRyjlxICskriifDCMs3SAwddpIH
	 7JRTI4/m2LpcNE0RRh70T3I0rwMTp6+MOwhkXEGpm0DuUf0BK4sFznR/blhEfRCNXBx55
	 f8pNWbDKYRnhso3lL5URGuj2+l+53yOxeitE1aePHnU53Y+z/ey+RyFombnd6rIhCE7R3
	 fmRpaCHW9Wr51tyforQqO67JBIJlqvPMPqjJRKni1uCaSHubJiMQrgaPE8muP1vABkdMO
	 4uZ1UwLwZDqgzYugWx+VEzUZiJoD5bH2BtFN43+ErUWdsw5/w2IzhuMyuJIoSa+qQFw==
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=uqwwLbb7;
	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) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACAE0606A31C;
	Thu, 12 Nov 2026 19:30:44 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ACAE0606A31C
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 D7CC6A02E2;
	Thu, 12 Nov 2026 20:30:37 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1794511841; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=dVmGUOAC/RT1NKlC/mYP5cJfsGUMVjyOOI8i2FgSf+0=;
	b=uqwwLbb7jyZwL+AGCWepunM4AWYUTElrxYlK50uYAQUsb6gN0Oeq93ADOF5Jm4ieuJaRCG
	v3CxPV22oXfrwm1GceAyeL3EwazH3T0Rg+IIHrKZjaiyGDSgLd4gkl74UCsAqwto8crkId
	mRZKkHM9+ad6H6+R5zlAm3M32gzyfEwAFYl3rcL0HJI6w+BiIzdetnnVCLSHpdYDau5wTp
	MNqx+o/ls9kJ13UCYEMaU5D7HN1qIoXYRYgh38jQT8U65W7fnhvtACLtAsP/DJFSX4c2sx
	765KKTUeIy+bDrWcUcWPZe3EG1vtomsADKCAHR9/ILYqtPPT9lbEzYaJRwG6PA==
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>,
 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-User-Agent: Thunderbird for Android
X-In-Reply-To: <20261110151602.7a065b73@kernel.org>
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-Last-TLS-Session-Version: TLSv1.3