From: Siddharth Vadapalli <s-vadapalli@ti.com>
To: Jesper Lyager Nielsen <jln@pascal-audio.com>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Richard Cochran <richardcochran@gmail.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Martin Kaistra <martin.kaistra@linutronix.de>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Roger Quadros <rogerq@kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
<s-vadapalli@ti.com>
Subject: Re: [PATCH net] net: ethernet: ti: am65-cpts: keep port and direction when matching PTPv1 TX timestamps
Date: Tue, 3 Nov 2026 12:16:48 +0530 [thread overview]
Message-ID: <01142ad6-a75b-4ead-b5b1-bcec8c3b9af5@ti.com> (raw)
In-Reply-To: <AS8PR05MB9908A5534BB1DD88BDC4685C8A6A2@AS8PR05MB9908.eurprd05.prod.outlook.com>
On 11/2/26 7:05 PM, Jesper Lyager Nielsen wrote:
> Hi Siddharth,
>
> Thanks for looking at this.
>
> On 10/30/26 ..., Siddharth Vadapalli wrote:
>>> For PTPv1 this defeats
>>> commit a23c657e332f ("net: ethernet: ti: am65-cpsw: Use also port number to identify timestamps").
>>
>> nitpick: This could be wrapped as done for the previous instance above.
>
> Will do in v2.
>
>>> With a PTPv1 master on both ports
>>> whose sequence ids run in step (e.g. a Dante device with primary and
>>
>> Does this mean there are two PTP grandmasters? Is CPSW configured in EMAC
>> mode or Switch mode? Is the PTP application bound to both network
>> interfaces?
>
> CPSW is in multi-port MAC (EMAC) mode: eth0 and eth1 are separate
> interfaces with their own addresses on two physically separate networks,
> there is no bridge between them.
>
> This is Dante network redundancy. The audio device is connected to a
> primary network (eth1) and a completely separate secondary network
> (eth0), and every Dante device sends the same audio on both. There is a
> single PTP application (Audinate's PTPv1 daemon), one process bound to
> both interfaces, using hardware timestamps on both.
>
> So there is one clock, the CPTS, and one PTP instance. When that device
> is elected leader, it is the master on each of the two networks, with
> each port sending Sync/Follow_Up into its own network, both timestamped
> by the same CPTS. Each network has exactly one master; it is the same
> device and the same time base on both, much like a boundary clock or
> ptp4l with two ports sharing one PHC.
>
> The daemon keeps a sequence counter per port. When both ports start at
> the same time, the counters run in step, so Sync N leaves on eth0 and
> eth1 within microseconds of each other. That is when the same-seqid
> event of the other port can be matched.
Thank you for explaining. The motivation for this patch and the problem it
fixes is clear to me now.
>
>> nitpick: Unlike other subsystems, comments in netdev do not have an empty
>> line at the start.
>
> Will fix in v2. I'll wait for your review of the code before sending it.
The code looks good to me. With the nitpicks addressed,
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Regards,
Siddharth.
prev parent reply other threads:[~2026-11-03 6:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-30 13:19 Jesper L. Nielsen via B4 Relay
2026-11-02 4:42 ` Siddharth Vadapalli
2026-11-02 13:35 ` Jesper Lyager Nielsen
2026-11-03 6:46 ` Siddharth Vadapalli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=01142ad6-a75b-4ead-b5b1-bcec8c3b9af5@ti.com \
--to=s-vadapalli@ti.com \
--cc=andrew+netdev@lunn.ch \
--cc=bigeasy@linutronix.de \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=jln@pascal-audio.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.kaistra@linutronix.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=rogerq@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®