* [PATCH iwl-net] ice: Recalibrate PHY after settime64 on E825-C
@ 2026-08-11 23:10 Tony Nguyen
2026-08-12 6:11 ` [Intel-wired-lan] " Paul Menzel
2026-08-12 9:42 ` Loktionov, Aleksandr
0 siblings, 2 replies; 4+ messages in thread
From: Tony Nguyen @ 2026-08-11 23:10 UTC (permalink / raw)
To: intel-wired-lan; +Cc: Maciek Machnikowski, netdev, jacob.e.keller, Tony Nguyen
From: Maciek Machnikowski <maciej.machnikowski@intel.com>
The PHY on E825-C requires recalibration after large jumps of the
system time. Add missing PHY recalibration also on E825-C.
Fixes: 7cab44f1c35f ("ice: Introduce ETH56G PHY model for E825C products")
Signed-off-by: Maciek Machnikowski <maciej.machnikowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/ice/ice_ptp.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c
index 84b99cfc5675..bf625b9f4991 100644
--- a/drivers/net/ethernet/intel/ice/ice_ptp.c
+++ b/drivers/net/ethernet/intel/ice/ice_ptp.c
@@ -1956,8 +1956,9 @@ ice_ptp_settime64(struct ptp_clock_info *info, const struct timespec64 *ts)
/* Reenable periodic outputs */
ice_ptp_enable_all_perout(pf);
- /* Recalibrate and re-enable timestamp blocks for E822/E823 */
- if (hw->mac_type == ICE_MAC_GENERIC)
+ /* Recalibrate and re-enable timestamp blocks for E822/E823/E825-C */
+ if (hw->mac_type == ICE_MAC_GENERIC ||
+ hw->mac_type == ICE_MAC_GENERIC_3K_E825)
ice_ptp_restart_all_phy(pf);
exit:
if (err) {
--
2.47.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-net] ice: Recalibrate PHY after settime64 on E825-C
2026-08-11 23:10 [PATCH iwl-net] ice: Recalibrate PHY after settime64 on E825-C Tony Nguyen
@ 2026-08-12 6:11 ` Paul Menzel
2026-08-12 20:45 ` Jacob Keller
2026-08-12 9:42 ` Loktionov, Aleksandr
1 sibling, 1 reply; 4+ messages in thread
From: Paul Menzel @ 2026-08-12 6:11 UTC (permalink / raw)
To: Tony Nguyen, Maciek Machnikowski; +Cc: intel-wired-lan, netdev, jacob.e.keller
Dear Tony, dear Maciek,
Thank you for your patch.
Am 12.08.26 um 01:10 schrieb Tony Nguyen:
> From: Maciek Machnikowski <maciej.machnikowski@intel.com>
>
> The PHY on E825-C requires recalibration after large jumps of the
> system time. Add missing PHY recalibration also on E825-C.
Why does it need it? Does the datasheet say so? Hardware errata?
How can the issue be reproduced?
> Fixes: 7cab44f1c35f ("ice: Introduce ETH56G PHY model for E825C products")
> Signed-off-by: Maciek Machnikowski <maciej.machnikowski@intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_ptp.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c
> index 84b99cfc5675..bf625b9f4991 100644
> --- a/drivers/net/ethernet/intel/ice/ice_ptp.c
> +++ b/drivers/net/ethernet/intel/ice/ice_ptp.c
> @@ -1956,8 +1956,9 @@ ice_ptp_settime64(struct ptp_clock_info *info, const struct timespec64 *ts)
> /* Reenable periodic outputs */
> ice_ptp_enable_all_perout(pf);
>
> - /* Recalibrate and re-enable timestamp blocks for E822/E823 */
> - if (hw->mac_type == ICE_MAC_GENERIC)
> + /* Recalibrate and re-enable timestamp blocks for E822/E823/E825-C */
> + if (hw->mac_type == ICE_MAC_GENERIC ||
> + hw->mac_type == ICE_MAC_GENERIC_3K_E825)
> ice_ptp_restart_all_phy(pf);
> exit:
> if (err) {
The diff looks fine:
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Kind regards,
Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [Intel-wired-lan] [PATCH iwl-net] ice: Recalibrate PHY after settime64 on E825-C
2026-08-11 23:10 [PATCH iwl-net] ice: Recalibrate PHY after settime64 on E825-C Tony Nguyen
2026-08-12 6:11 ` [Intel-wired-lan] " Paul Menzel
@ 2026-08-12 9:42 ` Loktionov, Aleksandr
1 sibling, 0 replies; 4+ messages in thread
From: Loktionov, Aleksandr @ 2026-08-12 9:42 UTC (permalink / raw)
To: Nguyen, Anthony L, intel-wired-lan@lists.osuosl.org
Cc: Machnikowski, Maciej, netdev@vger.kernel.org, Keller, Jacob E,
Nguyen, Anthony L
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf
> Of Tony Nguyen
> Sent: Wednesday, August 12, 2026 1:11 AM
> To: intel-wired-lan@lists.osuosl.org
> Cc: Machnikowski, Maciej <maciej.machnikowski@intel.com>;
> netdev@vger.kernel.org; Keller, Jacob E <jacob.e.keller@intel.com>;
> Nguyen, Anthony L <anthony.l.nguyen@intel.com>
> Subject: [Intel-wired-lan] [PATCH iwl-net] ice: Recalibrate PHY after
> settime64 on E825-C
>
> From: Maciek Machnikowski <maciej.machnikowski@intel.com>
>
> The PHY on E825-C requires recalibration after large jumps of the
> system time. Add missing PHY recalibration also on E825-C.
>
> Fixes: 7cab44f1c35f ("ice: Introduce ETH56G PHY model for E825C
> products")
> Signed-off-by: Maciek Machnikowski <maciej.machnikowski@intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_ptp.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c
> b/drivers/net/ethernet/intel/ice/ice_ptp.c
> index 84b99cfc5675..bf625b9f4991 100644
> --- a/drivers/net/ethernet/intel/ice/ice_ptp.c
> +++ b/drivers/net/ethernet/intel/ice/ice_ptp.c
> @@ -1956,8 +1956,9 @@ ice_ptp_settime64(struct ptp_clock_info *info,
> const struct timespec64 *ts)
> /* Reenable periodic outputs */
> ice_ptp_enable_all_perout(pf);
>
> - /* Recalibrate and re-enable timestamp blocks for E822/E823 */
> - if (hw->mac_type == ICE_MAC_GENERIC)
> + /* Recalibrate and re-enable timestamp blocks for
> E822/E823/E825-C */
> + if (hw->mac_type == ICE_MAC_GENERIC ||
> + hw->mac_type == ICE_MAC_GENERIC_3K_E825)
> ice_ptp_restart_all_phy(pf);
> exit:
> if (err) {
> --
> 2.47.1
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-net] ice: Recalibrate PHY after settime64 on E825-C
2026-08-12 6:11 ` [Intel-wired-lan] " Paul Menzel
@ 2026-08-12 20:45 ` Jacob Keller
0 siblings, 0 replies; 4+ messages in thread
From: Jacob Keller @ 2026-08-12 20:45 UTC (permalink / raw)
To: Paul Menzel, Tony Nguyen, Maciek Machnikowski; +Cc: intel-wired-lan, netdev
On 8/11/2026 11:11 PM, Paul Menzel wrote:
> Dear Tony, dear Maciek,
>
>
> Thank you for your patch.
>
> Am 12.08.26 um 01:10 schrieb Tony Nguyen:
>> From: Maciek Machnikowski <maciej.machnikowski@intel.com>
>>
>> The PHY on E825-C requires recalibration after large jumps of the
>> system time. Add missing PHY recalibration also on E825-C.
>
> Why does it need it? Does the datasheet say so? Hardware errata?
>
If we don't perform this step, then the PHY timer is not synchronzized
properly to the MAC timer. This step is required and indeed was done for
E822 devices previously, but was accidentally skipped due to oversight
when we added E825C support.
> How can the issue be reproduced?
>
Without the fix:
> ptp4l[12591.505]: port 1 (eno8303np0): SLAVE to UNCALIBRATED on SYNCHRONIZATION_FAULT
> ptp4l[12591.951]: port 1 (eno8303np0): UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
> ptp4l[12592.027]: rms 752851973 max 1102277559 freq -84408798 +/- 53560133 delay 6009 +/- 92308
> ptp4l[12593.038]: rms 91302045 max 136894784 freq +100000000 +/- 0 delay 93700 +/- 24153
> ptp4l[12594.050]: rms 16036314 max 35711594 freq +47433070 +/- 46746070 delay 44899 +/- 45255
> ptp4l[12595.061]: rms 5558880 max 12292103 freq -13092285 +/- 6627317 delay -13499 +/- 6560
> ptp4l[12596.073]: rms 759533 max 1081638 freq +837063 +/- 802691 delay 711 +/- 979
> ptp4l[12597.085]: rms 60485 max 106800 freq +146706 +/- 263535 delay 145 +/- 263
> ptp4l[12598.096]: rms 16428 max 41896 freq -46707 +/- 34325 delay -40 +/- 34
> ptp4l[12599.108]: rms 3049 max 5356 freq +5337 +/- 1730 delay 7 +/- 2
> ptp4l[12600.120]: rms 284 max 381 freq +104 +/- 759 delay 2 +/- 1
> ptp4l[12601.131]: rms 42 max 119 freq -124 +/- 143 delay 2 +/- 0
> ptp4l[12602.144]: rms 11 max 25 freq +39 +/- 12 delay 3 +/- 0
> ptp4l[12603.156]: rms 2 max 4 freq +14 +/- 5 delay 3 +/- 0
> ptp4l[12604.167]: rms 1 max 3 freq +15 +/- 5 delay 2 +/- 0
> ptp4l[12605.179]: rms 1 max 4 freq +16 +/- 5 delay 2 +/- 1
> ptp4l[12606.191]: rms 1 max 3 freq +15 +/- 5 delay 3 +/- 0
With the fix:
> ptp4l[12834.266]: rms 27178238388098 max 30079328952737 freq +479164 +/- 1040869 delay 5 +/- 1
> ptp4l[12834.522]: port 1 (eno8703np0): minimum delay request interval 2^-8
> ptp4l[12835.315]: rms 86919 max 139746 freq +111289 +/- 539214 delay -35 +/- 28
> ptp4l[12836.376]: rms 5415 max 8884 freq +579 +/- 22798 delay 4 +/- 5
> ptp4l[12837.429]: rms 335 max 559 freq -305 +/- 842 delay 4 +/- 1
> ptp4l[12838.471]: rms 20 max 45 freq +79 +/- 33 delay 4 +/- 0
> ptp4l[12839.512]: rms 2 max 5 freq +44 +/- 8 delay 4 +/- 0
> ptp4l[12840.545]: rms 1 max 4 freq +46 +/- 8 delay 4 +/- 0
> ptp4l[12841.586]: rms 1 max 3 freq +46 +/- 7 delay 4 +/- 0
> ptp4l[12842.637]: rms 1 max 3 freq +46 +/- 7 delay 4 +/- 0
Without the fix, we fail to converge quickly as the effective adjustment
requested is not applied properly to the PHY timestamps, so the readings
from the timestamp are incorrect.
With the fix, we have significantly higher accuracy in the applied
update which reduces the time required to achieve synchronization.
Additionally, I suspect, but do not have a good way to verify that
without the fix there will be a persistent offset between the MAC and
PHY timers resulting in a persistent incorrectness between the Tx/Rx
timestamps and the results of clock_gettime() or PTP_SYS_OFFSET_PRECISE
and the timestamps generated by the PHY.
@Tony, @Maciek, we should include this or similar data in the commit
message.
Thanks,
Jake
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-08-12 20:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-11 23:10 [PATCH iwl-net] ice: Recalibrate PHY after settime64 on E825-C Tony Nguyen
2026-08-12 6:11 ` [Intel-wired-lan] " Paul Menzel
2026-08-12 20:45 ` Jacob Keller
2026-08-12 9:42 ` Loktionov, Aleksandr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox