From: James Clark <jjc@jclark.com>
To: netdev-bot+sashiko@kernel.org
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
s-vadapalli@ti.com, rogerq@kernel.org, bigeasy@linutronix.de,
martin.kaistra@linutronix.de, vadim.fedorenko@linux.dev,
r-sharma3@ti.com, robertcnelson@gmail.com, horms@kernel.org,
nm@ti.com, vigneshr@ti.com, netdev@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH net-next v3 3/3] net: ethernet: ti: am65-cpts: implement PTP_SYS_OFFSET_PRECISE
Date: Thu, 3 Dec 2026 10:20:34 +0700 [thread overview]
Message-ID: <20261203032034.3938726-1-jjc@jclark.com> (raw)
In-Reply-To: <179626594629.3146.11520970966751095781@kernel.org>
> [Severity: Medium]
> What happens here when the arch timer clocksource is reading the virtual
> counter with a non-zero CNTVOFF?
[ ... ]
> The commit message states the assumption:
>
> The driver reads the GTC through the clocksource, which assumes that
> the clocksource counter value equals the GTC count, that is a CNTVOFF
> of 0.
>
> The code does not enforce it, though. Could getcrosststamp be withheld
> when !is_hyp_mode_available(), or the setup otherwise detected, so that
> an unsupported configuration gets -EOPNOTSUPP instead of wrong values?
is_hyp_mode_available() can't be used from a module. The other drivers
that cross-timestamp a hardware capture of the Arm counter
(dwmac-socfpga, and mlx5 and idpf on arm64) make the same assumption
without checking it. A check would belong in common code rather than in
each driver, so I would rather leave the assumption stated in the commit
message.
James
prev parent reply other threads:[~2026-12-03 3:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 2:42 [PATCH net-next v3 0/3] net: ethernet: ti: am65-cpts: add PTP_SYS_OFFSET_PRECISE support James Clark
2026-12-02 2:42 ` [PATCH net-next v3 1/3] dt-bindings: net: ti,k3-am654-cpts: add ti,gtc-push James Clark
2026-12-02 2:42 ` [PATCH net-next v3 2/3] net: ethernet: ti: am65-cpts: wait after each event FIFO pop James Clark
2026-12-03 2:45 ` netdev-bot+sashiko
2026-12-03 3:20 ` James Clark
2026-12-02 2:42 ` [PATCH net-next v3 3/3] net: ethernet: ti: am65-cpts: implement PTP_SYS_OFFSET_PRECISE James Clark
2026-12-03 2:45 ` netdev-bot+sashiko
2026-12-03 3:20 ` James Clark [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=20261203032034.3938726-1-jjc@jclark.com \
--to=jjc@jclark.com \
--cc=andrew+netdev@lunn.ch \
--cc=bigeasy@linutronix.de \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.kaistra@linutronix.de \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nm@ti.com \
--cc=pabeni@redhat.com \
--cc=r-sharma3@ti.com \
--cc=richardcochran@gmail.com \
--cc=robertcnelson@gmail.com \
--cc=robh@kernel.org \
--cc=rogerq@kernel.org \
--cc=s-vadapalli@ti.com \
--cc=vadim.fedorenko@linux.dev \
--cc=vigneshr@ti.com \
/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®