Article View: linux.kernel.netdev
Article #1581[BUG] atlantic: PTP receive time stamp left on, or cut from, frames
From: John Gildred
Date: Sat, 10 Oct 2026 06:37
Date: Sat, 10 Oct 2026 06:37
71 lines
11043 bytes
11043 bytes
Hello,
On an AQC107 (TP-Link TX401, PCI 1d6a:07b1 rev 02, firmware 3.1.100)
with the in-tree atlantic driver, received PTP frames reach user space
with the hardware receive time stamp handled wrongly, in two ways. The
kernel is a distribution build of 7.2.5; I have not tried net-next yet.
It is tainted only by NVIDIA's out-of-tree graphics driver (flags O
and E), which has no part in the network path. The recent mainline
changes to atlantic (AQC113 PTP support in June 2026, RX and TX buffer
fixes in August) do not seem to touch the AQC107's receive time
stamps.
linuxptp's ptp4l 4.4 runs on the port with hardware time stamping and
the L2 transport, so the receive filter is
HWTSTAMP_FILTER_PTP_V2_L2_EVENT. The frame lengths below are as
dumpcap captures them on the receiving port.
1. After the link renegotiates, multicast PTP frames keep the time
stamp.
Changing the pause parameters while the link is up
(ethtool -A enp2s0 autoneg off rx off tx off), or unplugging the cable
and plugging it back in, renegotiates the link. From then on every PTP
frame received for 01:1B:19:00:00:00 or 01:80:C2:00:00:0E arrives 12
octets longer than before: a 60-octet Sync arrives as 72, a 92-octet
Follow_Up as 104, a 104-octet Announce as 116, a 68-octet Pdelay_Req
as 80. The extra octets follow the PTP message and look like the time
stamp: one of them counts up by one each second. ptp4l takes them for
a malformed TLV and drops every message ("bad message"), so the port
never synchronizes.
Restarting ptp4l, which sets SIOCSHWTSTAMP again, does not help.
"ip link set dev enp2s0 down" followed by "up" does, until the next
renegotiation. Taking the interface down and up does not itself cause
the fault.
2. Unicast PTP frames lose their last 12 octets.
With the link in the good state, a Delay_Resp sent to the port's own
MAC address (ptp4l's hybrid_e2e, IEEE 1588-2019 16.9) arrives as 56
octets. A tap on the sender's link shows 72 octets plus FCS on the
wire: 14 octets of Ethernet header, a VLAN 0 priority tag (PCP 7),
which the port strips, and the 54-octet Delay_Resp. 56 is below the
Ethernet minimum and is exactly the 68 octets left after the tag less
12, so the driver appears to remove a trailer the hardware never
appended. The Delay_Resp loses the end of receiveTimestamp and all of
requestingPortIdentity, and ptp4l drops it. Multicast PTP frames
arrive whole in the same state.
Both look like the driver and the hardware disagreeing about which
received frames carry a time stamp: after a renegotiation the hardware
still appends it to multicast PTP frames but the driver no longer
takes it off, and for unicast PTP frames the driver takes off 12
octets the hardware did not append.
To reproduce, with the AQC107 port linked to a PTP grandmaster that
sends L2 PTP (any 802.1AS bridge, or an IEEE 1588 L2 grandmaster):
# ptp4l -i enp2s0 -f configs/gPTP.cfg -m (syncs)
# ethtool -A enp2s0 autoneg off rx off tx off (renegotiates)
ptp4l now logs "port 1 (enp2s0): bad message" for every frame
and for the unicast case, ptp4l with "hybrid_e2e 1" and
"delay_mechanism E2E" on L2 against a grandmaster that answers unicast
Delay_Req: every Delay_Resp is dropped.
I can test patches, and capture more (frames, register dumps) on this
card.
Thanks,
John Gildred
Technical Details
Message-ID:
<179161426357.982836.14940819580364358369@scramble.tools>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344075-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344075-linux-kernel-netdev=dewy.ru
From: john@scramble.tools (John Gildred)
Newsgroups: linux.kernel.netdev
Subject: [BUG] atlantic: PTP receive time stamp left on, or cut from, frames
Date: Fri, 09 Oct 2026 23:37:43 -0700
Organization: Usenet Network
Message-ID: <179161426357.982836.14940819580364358369@scramble.tools>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1273321"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:1hFePdI5vtMtKeCQHwODq2pY3Q8= sha256:fZxOKGFkeyBiLUjupS4UFoYZX5louKb/ql6qbHhXrLU=
sha1:ViWajsjiwu7MLHv7JrrQXUnV/N0= sha256:O5MYNtjLukJioLDLGmBy6e8smTS6TFIzMrR0N7iFEQQ=
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 C1F4E10F85C; Sat, 10 Oct 2026 09:38:03 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.651
X-Spam-Status: No, score=-0.651 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
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=gildred-net.20251104.gappssmtp.com
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 deWA-1PrLO3t;
Sat, 10 Oct 2026 09:38:00 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-344075-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=scramble.tools
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id BA01E10EA17; Sat, 10 Oct 2026 09:37:54 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by tor.lore.kernel.org (Postfix) with ESMTP id 4265C304C2; Sat, 10 Oct 2026 06:37:53 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id B22E83D9027;
Sat, 10 Oct 2026 06:37:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gildred-net.20251104.gappssmtp.com header.i=@gildred-net.20251104.gappssmtp.com header.b="TBlL+Jil"
X-Received: from mail-dy1-f170.google.com (mail-dy1-f170.google.com [74.125.82.170])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFDED3806D9
for <netdev@vger.kernel.org>; Sat, 10 Oct 2026 06:37:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.170
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791614272; cv=none; b=DtT5MW/4DCQoinV8XUdXzVStuOWNf0fkIMfQ+pwzWZjTkT2/RkFWYhZGHlQgjg//v9h79KGRv1g9z5KT3DAww5SLfMOzJ+XOsF4gS1XtJlEzJhOSL9VXjQ1GDs0xHkwo1wUXacZLAOYxcOn4HZENGAc8l7OISccwX+3RLjD0HcE=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791614272; c=relaxed/simple;
bh=sMKf6UDT7/vaS+7Li4uwAz0LP+Q/4d5o0YcVL/T2Uqg=;
h=From:To:Cc:Subject:MIME-Version:Content-Type:Date:Message-ID; b=lhzXokDhgYiHuM4LG0v3e2feDaCz66PUVualDSQJglvVuK3gLnAzsanlENIOOdEIdRBsiQ2PNoFuffdgWUwrSJyBWadeBj65hTp94tcqjvbI2J1cBcUhxlEm3PXPKD4TOflJmIrn8UAxxR+xCSYJsCewmj1j+8MPBWoOmWzl4Nk=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=scramble.tools; spf=pass smtp.mailfrom=gildred.net; dkim=pass (2048-bit key) header.d=gildred-net.20251104.gappssmtp.com header.i=@gildred-net.20251104.gappssmtp.com header.b=TBlL+Jil; arc=none smtp.client-ip=74.125.82.170
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=scramble.tools
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gildred.net
X-Received: by mail-dy1-f170.google.com with SMTP id 5a478bee46e88-33fb4680717so1340995eec.1
for <netdev@vger.kernel.org>; Fri, 09 Oct 2026 23:37:50 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gildred-net.20251104.gappssmtp.com; s=20251104; t=1791614270; x=1792219070; darn=vger.kernel.org;
h=message-id:date:content-transfer-encoding:content-type:mime-version
:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=/yV0lwwuniGUnn1moAe0URUcCaHzm8fGoXLy9SraqIo=;
b=TBlL+Jil6S9Bhdh/1fBX1ESRpNEA7CwWzPXT4fClIxxxtH6rXUtbuZAfGnC7oHWUPr
VPwR3R24TeAe/kPcM1W6c1T0B4DUAKU2Des4qbMdsxbNzRcfp+mfjeNSc5n30FEjIwbd
O3bNSsf/VRx83WWwnbF0Mdo2/7ua9SWqRklmuJQg0uaXJYkeXZzjb1N3FRa7GSfJUMR/
DuVPEiiX0pL2F1aUu5VpDz/yYNJth2qyW7dKmTqfyOZE+HdaMNstdIwi5ouwbmC/vBGK
G1MBVLwajRirsrKl3aSRfI53HKkWfmg3plk454J88KFQZs7GyJgVIgcK/H4bilEkLu+R
ueLA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791614270; x=1792219070;
h=message-id:date:content-transfer-encoding:content-type:mime-version
:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject
:date:message-id:reply-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2KV7pe8Vbjb69Qh+8NQ57yt
w==
X-Received: by 2002:a05:7300:81:b0:353:81a3:9032 with SMTP id 5a478bee46e88-35381a391eamr4996691eec.39.1791614269497;
Fri, 09 Oct 2026 23:37:49 -0700 (PDT)
X-Received: from [192.168.4.107] ([2600:8801:de00:2a5:5f43:aedd:35ff:e547])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3537c843079sm11917076eec.1.2026.10.09.23.37.48
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 09 Oct 2026 23:37:49 -0700 (PDT)
X-Cc: netdev@vger.kernel.org
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>