[PATCH net v3] net: stmmac: propagate PTP addend and system time programming errors
Maxime Chevallier
maxime.chevallier at bootlin.com
Tue Oct 6 08:28:05 PDT 2026
Hi,
On 10/6/26 17:12, Anirudh Srinivasan wrote:
> Maybe someone more familiar with this board/has used PTP on it before
> can help out understanding why this is happening. Maybe this is some
> issue to do with clocks.
Good point, can you give us the full dmesg log of the board booting ?
Maxime
text:
Return-Path: <netdev+bounces-341920-maxime.chevallier=bootlin.com at vger.kernel.org>
Delivered-To: maxime.chevallier at bootlin.com
Received: from mail.galae.net ([172.22.1.253])
by 9e7fea892943 with LMTP
id AP0BH74TxWp5BAQAtaWaaQ
(envelope-from <netdev+bounces-341920-maxime.chevallier=bootlin.com at vger.kernel.org>)
for <maxime.chevallier at bootlin.com>; Tue, 06 Oct 2026 17:29:02 +0200
X-Original-To: maxime.chevallier at bootlin.com
Received: from smtpin-01.galae.net (smtpin-01.galae.net [51.159.2.148])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
(No client certificate requested)
by mail.galae.net (Postcow) with ESMTPS id D8F12103308C0
for <maxime.chevallier at bootlin.com>; Tue, 6 Oct 2026 17:28:57 +0200 (CEST)
Authentication-Results: mail.galae.net;
dkim=pass header.d=bootlin.com header.s=dkim header.b=Zge95CWJ;
arc=pass ("subspace.kernel.org:s=arc-20240116:i=1");
dmarc=pass (policy=reject) header.from=bootlin.com;
spf=pass (mail.galae.net: domain of "netdev+bounces-341920-maxime.chevallier=bootlin.com at vger.kernel.org" designates 172.234.253.10 as permitted sender) smtp.mailfrom="netdev+bounces-341920-maxime.chevallier=bootlin.com at vger.kernel.org"
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com;
s=dkim; t=1791300538;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:
list-unsubscribe:list-subscribe:dkim-signature;
bh=BLd0ZSi6AYEzF6Z1S6jhxHqmJ/tVEdxhmTaij18Onuw=;
b=I4UsZyH18owvi7L5xvwNBy+o+6OMHI7t3ScRIYhQGgU/tzAk2KtVbJ5CEMEyoq3uWVDWJ7
WwbV2B6PnE+AM98S+vIUQFBQZFFgH0rm1haI1LPk/lEU/qm0YdjewdXafZTY7tR+RNF/HM
2hU+LJYIFMOx5zREP0bIEeWkekuCrvRPGs94IkvtNIxySDi0XPohQuPNpcv8tsy7HHshe7
7tJAP4lRdcUvMmi3TKXdfoWc3aLWRuf8HKXDr4O+jwasH1tVmh9Gcc9pTmgPULO32e8A33
Rl4cK/BelLVSpYTFJgiNAXNzXvGfirr9qQbfRk6txPoSUTCypDz0/ZEEIoDO3w==
ARC-Authentication-Results: i=2;
mail.galae.net;
dkim=pass header.d=bootlin.com header.s=dkim header.b=Zge95CWJ;
arc=pass ("subspace.kernel.org:s=arc-20240116:i=1");
dmarc=pass (policy=reject) header.from=bootlin.com;
spf=pass (mail.galae.net: domain of "netdev+bounces-341920-maxime.chevallier=bootlin.com at vger.kernel.org" designates 172.234.253.10 as permitted sender) smtp.mailfrom="netdev+bounces-341920-maxime.chevallier=bootlin.com at vger.kernel.org"
ARC-Seal: i=2; s=dkim; d=bootlin.com; t=1791300538; a=rsa-sha256; cv=pass;
b=qv/SISiv0tGqso7hppWQA31en0i4AR8GyHfCET6LQZmEcYrza2eXpu4/lfGZ8z0UBkz/dL
pK3bh7gK+ZhU4CEL8dd18/7/qTt/ESE0BrRlj8pstSDkZAzYSqtfrAIOQUxUJ12V48Spcq
Hngo6UqFG0QCKfX80GNqFAK/PQRTKq2SrUaZcuLszqxb4cAq3Xf5FLiO+cRlFiqeziQied
1hsS4JhV3BW5F7wdkyMJ1oq0Da9ZNSe26Jh533eqZOSt5+l78j1aDJvBdNHYcAjsHH9CXj
UwiyABcN6etN/yq0ot/HAD0sS1lyOGe+lCPn1/sGeBA2cb6hLAvyGtK0eK/eAQ==
Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by smtpin-01.galae.net (Postfix) with ESMTPS id 440793422A5
for <maxime.chevallier at bootlin.com>; Tue, 6 Oct 2026 15:28:57 +0000 (UTC)
Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sea.lore.kernel.org (Postfix) with ESMTP id EEC7F3649B
for <maxime.chevallier at bootlin.com>; Tue, 6 Oct 2026 15:28:27 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A78449C4BC;
Tue, 6 Oct 2026 15:28:27 +0000 (UTC)
X-Original-To: netdev at vger.kernel.org
Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37B4C37FF46
for <netdev at vger.kernel.org>; Tue, 6 Oct 2026 15:28:22 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56
ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791300506; cv=none; b=arMcdVOSW15zNQ3vkOmoyrUvKoXy0PO7xkYrYpDwKuZ4zWMwUN62UGRJX3nJ6yEHcJusfpMpY4KJKvtjplt1l2tSD1ViXPNQ0IvT2apBzPIlCd9UnIdYnrLFNiEgLKtx1IW6DGHLveBIVP8dDyrm9cxzPe0+hfckwvHlbdEtG1U=
ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791300506; c=relaxed/simple;
bh=BLd0ZSi6AYEzF6Z1S6jhxHqmJ/tVEdxhmTaij18Onuw=;
h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:
In-Reply-To:Content-Type; b=kWCa6zpHVMy0iAqM+E1I05yfiARTt2E8xyA/3JZckud2PtBLESoHrGpkyD2U4PSAcq6WnFFkoc9z4nEK62VjfhLZqKWc9y+Q7ptfpR5k0CCtp+dnHjcUTbPrkM0bHKSmjHYu2TEM6fhlhgKuGDQ9aSqUsI2ndohrbyw2WDBGH0E=
ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Zge95CWJ; arc=none smtp.client-ip=185.246.84.56
Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com
Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com
Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233])
by smtpout-02.galae.net (Postfix) with ESMTPS id 457331A114B;
Tue, 6 Oct 2026 15:28:21 +0000 (UTC)
Received: from mail.galae.net (mail.galae.net [212.83.136.155])
by smtpout-01.galae.net (Postfix) with ESMTPS id 1708E60553;
Tue, 6 Oct 2026 15:28:21 +0000 (UTC)
Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id A148B103303AB;
Tue, 6 Oct 2026 17:28:06 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim;
t=1791300495; h=from:subject:date:message-id:to:cc:mime-version:content-type:
content-transfer-encoding:content-language:in-reply-to:references;
bh=BLd0ZSi6AYEzF6Z1S6jhxHqmJ/tVEdxhmTaij18Onuw=;
b=Zge95CWJorrmzM4yUowmuOkxRgpEyfxGYa2/sfKipV7dd+RjsKMy/oaGCJ/mVs5Pzo0eEF
QAvqalpkxByxwJKXE5vyKH5kFSUwYu2xwYqM4H22Gg37EqMoVQPaCoVQg1pwSTO1lx6V/3
Vlba435uh1H4ftEgJSuP+lH4zK400PqocG4hEyzBxYsnoXtQg5EHCs8c/6zB6t0Ce/IzsS
zc24HAe/gkebKe8qWRsgGTXAIxZzqeo6jh5cRaaxVEC8RvbhI9cXK0HSSF2/J6ZyylYtTw
sQGayXcUHQwmPGI2afJ4QcT9d7FjSH/TXieM2eordIciOwm0Sdwh2ldqsJ84dg==
Message-ID: <72e19e46-3a14-4a07-9b50-01e5480bf1a3 at bootlin.com>
Date: Tue, 6 Oct 2026 17:28:05 +0200
Precedence: bulk
X-Mailing-List: netdev at vger.kernel.org
List-Id: <netdev.vger.kernel.org>
List-Subscribe: <mailto:netdev+subscribe at vger.kernel.org>
List-Unsubscribe: <mailto:netdev+unsubscribe at vger.kernel.org>
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [PATCH net v3] net: stmmac: propagate PTP addend and system time
programming errors
To: Anirudh Srinivasan <asrinivasan at oss.tenstorrent.com>,
Lorenzo Bianconi <lorenzo.bianconi at oss.qualcomm.com>
Cc: Andrew Lunn <andrew+netdev at lunn.ch>, "David S. Miller"
<davem at davemloft.net>, Eric Dumazet <edumazet at kernel.org>,
Jakub Kicinski <kuba at kernel.org>, Paolo Abeni <pabeni at redhat.com>,
Maxime Coquelin <mcoquelin.stm32 at gmail.com>,
Alexandre Torgue <alexandre.torgue at foss.st.com>,
Richard Cochran <richardcochran at gmail.com>,
Jose Abreu <Jose.Abreu at synopsys.com>, netdev at vger.kernel.org,
linux-stm32 at st-md-mailman.stormreply.com,
linux-arm-kernel at lists.infradead.org, Drew Fustini <fustini at kernel.org>,
Jisheng Zhang <jszhang at kernel.org>, linux-riscv at lists.infradead.org
References: <20260929-stmmac-ptp-added-systime-error-v3-1-ddd6afe936b4 at oss.qualcomm.com>
<dy5xfj3754wnp3gh2kpoyf3vpx3vfsfhblgbwbwsgts27xqxga at dzb33gt3zgca>
<asQcQIh56MV1OJur at lore-desk>
<CAEev2e8+fr1tJnSErD+2TtLDw5fGJbQOMcM5eefMnLyFUR+m7w at mail.gmail.com>
<asSb3RNcityVg6ia at lore-desk>
<CAEev2e8c6hZQQom6NV-URgdSoWiafCcRR3BtA6yxxqy7T-me8g at mail.gmail.com>
<asUGoxyJWVcsYBWG at lore-desk>
<CAEev2e_+Dcj60Rj2+_UD=3_kNQxLK4rmWTGK-dr-Ve9mGJBARg at mail.gmail.com>
Content-Language: en-US
From: Maxime Chevallier <maxime.chevallier at bootlin.com>
In-Reply-To: <CAEev2e_+Dcj60Rj2+_UD=3_kNQxLK4rmWTGK-dr-Ve9mGJBARg at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Last-TLS-Session-Version: TLSv1.3
X-Last-TLS-Session-Version: TLSv1.3
X-Spamd-Result: default: False [-5.59 / 30.00];
BAYES_HAM(-3.51)[94.55%];
SUSPICIOUS_RECIPS(1.50)[];
IP_REPUTATION_HAM(-1.41)[asn: 63949(-0.40), country: SG(-0.01), ip: 172.234.253.10(-1.00)];
ARC_ALLOW(-1.00)[subspace.kernel.org:s=arc-20240116:i=1];
DMARC_POLICY_ALLOW(-0.50)[bootlin.com,reject];
R_DKIM_ALLOW(-0.20)[bootlin.com:s=dkim];
R_SPF_ALLOW(-0.20)[+ip4:172.234.253.10:c];
MAILLIST(-0.15)[generic];
MIME_GOOD(-0.10)[text/plain];
HAS_LIST_UNSUB(-0.01)[];
MX_GOOD(-0.01)[];
RCVD_TLS_LAST(0.00)[];
TAGGED_FROM(0.00)[bounces-341920-maxime.chevallier=bootlin.com];
URIBL_BLOCKED(0.00)[bootlin.com:mid,bootlin.com:dkim,sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns];
RECEIVED_HELO_LOCALHOST(0.00)[];
FORGED_SENDER_MAILLIST(0.00)[];
RCPT_COUNT_TWELVE(0.00)[17];
MAILCOW_DOMAIN_HEADER_FROM(0.00)[bootlin.com];
TO_DN_SOME(0.00)[];
BCC(0.00)[];
MIME_TRACE(0.00)[0:+];
RCPT_MAILCOW_DOMAIN(0.00)[bootlin.com];
RBL_SENDERSCORE_REPUT_BLOCKED(0.00)[172.234.253.10:from];
ARC_SIGNED(0.00)[bootlin.com:s=dkim:i=2];
DNSWL_BLOCKED(0.00)[172.234.253.10:from,185.246.84.56:received,212.83.136.155:received,212.83.139.233:received,100.90.174.1:received];
NEURAL_HAM(-0.00)[-1.000];
MID_RHS_MATCH_FROM(0.00)[];
PRECEDENCE_BULK(0.00)[];
FROM_HAS_DN(0.00)[];
FROM_NEQ_ENVFROM(0.00)[maxime.chevallier at bootlin.com,netdev at vger.kernel.org];
FREEMAIL_CC(0.00)[lunn.ch,davemloft.net,kernel.org,redhat.com,gmail.com,foss.st.com,synopsys.com,vger.kernel.org,st-md-mailman.stormreply.com,lists.infradead.org];
DWL_DNSWL_BLOCKED(0.00)[bootlin.com:dkim];
RCVD_VIA_SMTP_AUTH(0.00)[];
DKIM_TRACE(0.00)[bootlin.com:+];
TAGGED_RCPT(0.00)[netdev];
FORGED_RECIPIENTS_MAILLIST(0.00)[];
EXTERNAL_RELAY_AUTHENTICATED(0.00)[];
ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG];
RCVD_COUNT_SEVEN(0.00)[7]
X-Rspamd-Queue-Id: D8F12103308C0
Hi,
On 10/6/26 17:12, Anirudh Srinivasan wrote:
> Maybe someone more familiar with this board/has used PTP on it before
> can help out understanding why this is happening. Maybe this is some
> issue to do with clocks.
Good point, can you give us the full dmesg log of the board booting ?
Maxime
More information about the linux-riscv
mailing list