Article View: linux.kernel.netdev
Article #15033Re: [PATCH net] net: stmmac: re-base EST after PTP settime64
From: Nicolai Buchwitz
Date: Thu, 12 Nov 2026 09:55
Date: Thu, 12 Nov 2026 09:55
21 lines
9260 bytes
9260 bytes
Hi Lorenzo On 11.11.2026 10:54, Lorenzo Bianconi wrote: > stmmac_set_time() initializes the PTP clock through > stmmac_init_systime() (TSINIT) while holding only ptp_lock. It neither > takes est_lock nor disables and re-bases EST around the step, unlike > stmmac_adjust_time(), which performs TSUPDT through > stmmac_adjust_systime() under est_lock. adjust_time() drops est_lock around the step, so this isn't quite right. Same for "as stmmac_adjust_time() does" below. Please reword this if there is a v2. > [...] Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de> Thanks, Nicolai
Technical Details
Message-ID:
<6fcb41af4802e0d5b9d759b5e2d3ecd6@tipi-net.de>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361686-linux-kernel-netdev=dewy.ruReferences:
<20261111-stmmac_set_time-est_lock-v1-1-da1554f233e6@oss.qualcomm.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361686-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: stmmac: re-base EST after PTP settime64 Date: Thu, 12 Nov 2026 10:55:49 +0100 Organization: Usenet Network Message-ID: <6fcb41af4802e0d5b9d759b5e2d3ecd6@tipi-net.de> References: <20261111-stmmac_set_time-est_lock-v1-1-da1554f233e6@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1058693"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:9dhSeyHYNYyxpcJTR9lNnIF/96M= sha256:RxHiMN12vuoYN6b7C96z+PaQHVyDENGsypQa5Qfh/b0= sha1:nw0X13Ec9voG1OadlJIS8fc1s14= sha256:hkC59XRi/g3fcLnDpiV71k/quyclqXwGxoTDeeSUHKU= 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 EB6E51141AE; Thu, 12 Nov 2026 13:16:22 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 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] 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 bp3lRHBkocaJ; Thu, 12 Nov 2026 13:16:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-361686-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 1603511415F; Thu, 12 Nov 2026 13:16:09 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id AF0BE47128; Thu, 12 Nov 2026 09:55:55 +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=1794477355; b=2cz0GZS9cztNPvbqfZox5v597P0USyBsKbwnO7YW1GgWGLxpDh9IwXLeCRnHOv84Lq7J DXMyleoNq+vJTCJ75XeHCYYLFq5OGCIbhM8iMOEX7WpjhBS7w7p3ZvthNYiD9sqUQy2Nz ma6wFBoYTasl+FbY/znpYgHgE4t3in8je9KZy9v5oI4slBTOlKJFZebJ0UBZT2JCem/IY h6vWYNC+eFkofr+xs5+QpIg0sYY4m2yTi5gJcK8qtJw4znBUUqtE7rqT7cfEe2b0aj836 qWshrK698y7sumrDnT0MhjjLM4RcCQHe4rLTPGOGqMvfmVGlWHMkaP64ui1hG95zFGw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794477355; 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=yEC/vZNOKTkAFWLkMBKlCC1dHTq3fXauXlYSOK1PQyw=; b=U3+TzeIjfq1n2oIuiEJTdIGKphgSa3sMM+9K3EW4yrQNGH1LE6cfS4eWdfOY/U1/umrm SrQ7a9ZjL7OxIyxcChH18OHop8Jry2IGo+Y/p6L/PzEn1V2px6m50Kdog2L+MP6eEsw8t i9RfwVqZ7HtUaGT4DTQDkdNhba4R7AhEgZUcT5Sls8atOzkF6cKbn5aehwNU98zprkc0Y 2RH2r/8qlnthNrHYkiIdNc21fIHkI/rL9Fg6gHeaVw0TCOYiAknUBXdKkLd3qkx9XVCvw FwaTGq1yH99x701KDy8wLXt+XDFJZ3R2D3k7YEnf3Y/xANdmugmkAgvmHCjxdb8FDyg== 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=ZrNPvQFC; 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 044C1606A32E; Thu, 12 Nov 2026 09:55:55 +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=ZrNPvQFC 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=1794477354; b=QIOtophuMD3OimBQzpQ9uLtUN2cpWnKk0+UWQ5ihIozFXMfvsbTITSRe9o3hoj63/GaB V+S9QcaFz0/WUMoqqLyIKpBxN0Ikjkke1GG1cBgD/EkEQzFiZgn1GGSa0NTRhSlIYfIss sB+T0yNknI69SUwKKEYwbUTKxAgTTPi221X3EEKnkD6qVJXdZNfMct3f7R1hYL2ti/P4q rJUKHrOIp6RjFhk4ORB0tZvQeNg7WsBeRMQB0YK7re5FrUSXr1+w+QRKjXAW7qdngx7wg e+JahXBWtXipzXvtj+bPLDlWmEG50gsRbFQI8dNSmzolw3vnQ8o4kKCg3sUkBGEqueg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794477354; 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=yEC/vZNOKTkAFWLkMBKlCC1dHTq3fXauXlYSOK1PQyw=; b=OstzSJrdJG4LfOH5OqbddRkq86SE7eWn1VJ7fZekeOD9DmwBG+P2RHTIC/HXiXCnMNLX gNY7i85frko4TJRGzieOm5hZIFVl1v/6t/eizhtPBA1XjLJ7GYB6rFFTM4gytsmgtqWIY KMPaHuGQLLY2WWUZ3ZcvkJlXTxZgkn6jukic/Ak+0X1O17qjXkmHOnLgNF76Q8v82SdyJ 9fArNVRo9g27PtSXiiboiyAmuE/uormIBn1Q+x/sGjZ9CG3VODMf1H/38qnmZIBu1dCV4 ugiirFSTHInOb2ncr1zU3fIPQKM5Cp8K0bSAKHPO+0/M0/qrdm+Fg3Nq/Al03lsetsQ== 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=ZrNPvQFC; 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 A940F606A323 for <netdev@vger.kernel.org>; Thu, 12 Nov 2026 09:55:53 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A940F606A323 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 DC880A166C; Thu, 12 Nov 2026 10:55:49 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1794477351; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=yEC/vZNOKTkAFWLkMBKlCC1dHTq3fXauXlYSOK1PQyw=; b=ZrNPvQFCjsKZS7uA10pKE5Ip5QJMXl7RtmjRFs5ZpJwi4sQNluDjt2qSC7fH+oUYwvcC9t cqo3Ws0M/ab44x9I7FmHdrzIG6HsXHXWY6nQwOd/kKqZvLWO+yMCabcflpxOXgz0gP3NPu 7QdvnVxkgVAbBVUUAxBh5GDCi0+AbkI7alCvyXUKLmOMccEyvtGbf2y1m8H/9oER8+3X3q gkTUN+1qv0cnZvoWOtZtBqx0m/i9Mkb46zs9vmFOuL6nC/VdOgY9vR8TxKEaeIWqyZysyU Wfqwdt14wRUuwQlAjbdeOWgJ693cGtodKUTQlnB6YJeTO3GbMH5DpZMVcQSO9g== 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: Maxime Chevallier <maxime.chevallier@bootlin.com>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Richard Cochran <richardcochran@gmail.com>, Jose Abreu <Jose.Abreu@synopsys.com>, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-In-Reply-To: <20261111-stmmac_set_time-est_lock-v1-1-da1554f233e6@oss.qualcomm.com> X-Sender: nb@tipi-net.de X-Last-TLS-Session-Version: TLSv1.3