From: Tony Nguyen <anthony.l.nguyen@intel.com>
To: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
edumazet@kernel.org, andrew+netdev@lunn.ch,
netdev@vger.kernel.org
Cc: Grzegorz Nitka <grzegorz.nitka@intel.com>,
anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com,
maciej.machnikowski@intel.com, jacob.e.keller@intel.com,
richardcochran@gmail.com,
Sergey Temerkhanov <sergey.temerkhanov@intel.com>,
Milena Olech <milena.olech@intel.com>,
Simon Horman <horms@kernel.org>,
Aleksandr Loktionov <aleksandr.loktionov@intel.com>,
Ayush Singh <ayush1x.singh@intel.com>
Subject: [PATCH net v2 2/3] ice: remove redundant cross-timestamp PTP command
Date: Mon, 30 Nov 2026 16:52:55 -0800 [thread overview]
Message-ID: <20261201005258.1323948-3-anthony.l.nguyen@intel.com> (raw)
In-Reply-To: <20261201005258.1323948-1-anthony.l.nguyen@intel.com>
From: Grzegorz Nitka <grzegorz.nitka@intel.com>
The cross-timestamp capture path programs GLTSYN_CMD with READ_TIME before
starting the ART/device capture and clears it with NOP afterwards.
Since GLTSYN_CMD is shared with other PTP operations, concurrent executions
will race and cause desync across PHY timers causing PHY timestamps to be
incorrect and resulting in faulty PTP behavior. Remove the redundant source
command programming instead of adding another guard around it.
This was found on an early pre-production stepping of a device, and it was
assumed that it would be required for all E823 devices. We discovered that
this isn't actually required on E823 production devices as originally
believed. The only device SKUs that actually require this are
pre-production and have device IDs which aren't supported by the driver.
We tested this across a wide array of E823 silicon steppings.
Testing hints:
Verify crosstimestamp path, for example with phc2sys tool, on
E822/E823/E825/E830 devices. Please note that the phc2sys tool performs
cross-timestamping by default when supported by the hardware. This can
be observed when the reported delay is 0, indicating that the system
time and PHC time were latched simultaneously.
Fixes: 88c360e49f51 ("ice: Support cross-timestamping for E823 devices")
Signed-off-by: Grzegorz Nitka <grzegorz.nitka@intel.com>
Reviewed-by: Sergey Temerkhanov <sergey.temerkhanov@intel.com>
Reviewed-by: Milena Olech <milena.olech@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Ayush Singh <ayush1x.singh@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/ice/ice_ptp.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c
index 8908b4f3db35..db1d0e42ae52 100644
--- a/drivers/net/ethernet/intel/ice/ice_ptp.c
+++ b/drivers/net/ethernet/intel/ice/ice_ptp.c
@@ -2183,9 +2183,6 @@ static int ice_capture_crosststamp(ktime_t *device,
/* Snapshot system time for historic interpolation */
ktime_get_snapshot_id(ctx->snapshot_clock_id, &ctx->snapshot);
- /* Program cmd to master timer */
- ice_ptp_src_cmd(hw, ICE_PTP_READ_TIME);
-
/* Start the ART and device clock sync sequence */
ctl = rd32(hw, cfg->ctl_reg);
ctl |= cfg->ctl_active;
@@ -2212,9 +2209,6 @@ static int ice_capture_crosststamp(ktime_t *device,
*device = ns_to_ktime(ts);
err_timeout:
- /* Clear the master timer */
- ice_ptp_src_cmd(hw, ICE_PTP_NOP);
-
/* Release HW lock */
lock = rd32(hw, cfg->lock_reg);
lock &= ~cfg->lock_busy;
--
2.47.1
next prev parent reply other threads:[~2026-12-01 0:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 0:52 [PATCH net v2 0/3][pull request] Intel Wired LAN Driver Updates 2026-11-25 (ice) Tony Nguyen
2026-12-01 0:52 ` [PATCH net v2 1/3] ice: ptp: serialize E825 PHY timer start with PTP lock and incval Tony Nguyen
2026-12-01 0:52 ` Tony Nguyen [this message]
2026-12-01 0:52 ` [PATCH net v2 3/3] ice: fix computation of ETF timestamps for E830 Tony Nguyen
2026-12-01 0:58 ` [PATCH net v2 0/3][pull request] Intel Wired LAN Driver Updates 2026-11-25 (ice) netdev-bot+sinfo
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=20261201005258.1323948-3-anthony.l.nguyen@intel.com \
--to=anthony.l.nguyen@intel.com \
--cc=aleksandr.loktionov@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=ayush1x.singh@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=grzegorz.nitka@intel.com \
--cc=horms@kernel.org \
--cc=jacob.e.keller@intel.com \
--cc=kuba@kernel.org \
--cc=maciej.machnikowski@intel.com \
--cc=milena.olech@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=richardcochran@gmail.com \
--cc=sergey.temerkhanov@intel.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