]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ice: update PCS latency settings for E825 10G/25Gb modes
authorGrzegorz Nitka <grzegorz.nitka@intel.com>
Fri, 17 Apr 2026 00:53:26 +0000 (17:53 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Apr 2026 19:01:33 +0000 (12:01 -0700)
Update MAC Rx/Tx offset registers settings (PHY_MAC_[RX|TX]_OFFSET
registers) with the data obtained with the latest research. It applies
to PCS latency settings for the following speeds/modes:
* 10Gb NO-FEC
        - TX latency changed from 71.25 ns to 73 ns
        - RX latency changed from -25.6 ns to -28 ns
* 25Gb NO-FEC
- TX latency changed from 28.17 ns to 33 ns
        - RX latency changed from -12.45 ns to -12 ns
* 25Gb RS-FEC
        - TX latency changed from 64.5 ns to 69 ns
        - RX latency changed from -3.6 ns to -3 ns

The original data came from simulation and pre-production hardware.
The new data measures the actual delays and as such is more accurate.

Fixes: 7cab44f1c35f ("ice: Introduce ETH56G PHY model for E825C products")
Co-developed-by: Zoltan Fodor <zoltan.fodor@intel.com>
Signed-off-by: Zoltan Fodor <zoltan.fodor@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Grzegorz Nitka <grzegorz.nitka@intel.com>
Tested-by: Sunitha Mekala <sunithax.d.mekala@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260416-iwl-net-submission-2026-04-14-v2-2-686c33c9828d@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_ptp_consts.h

index 19dddd9b53dddb0d91654cc1b8f03804ecb828df..4d298c27bfb2736194f43cce29b83051cc87df53 100644 (file)
@@ -78,14 +78,14 @@ struct ice_eth56g_mac_reg_cfg eth56g_mac_cfg[NUM_ICE_ETH56G_LNK_SPD] = {
                .blktime = 0x666, /* 3.2 */
                .tx_offset = {
                        .serdes = 0x234c, /* 17.6484848 */
-                       .no_fec = 0x8e80, /* 71.25 */
+                       .no_fec = 0x93d9, /* 73 */
                        .fc = 0xb4a4, /* 90.32 */
                        .sfd = 0x4a4, /* 2.32 */
                        .onestep = 0x4ccd /* 38.4 */
                },
                .rx_offset = {
                        .serdes = 0xffffeb27, /* -10.42424 */
-                       .no_fec = 0xffffcccd, /* -25.6 */
+                       .no_fec = 0xffffc7b6, /* -28 */
                        .fc = 0xfffc557b, /* -469.26 */
                        .sfd = 0x4a4, /* 2.32 */
                        .bs_ds = 0x32 /* 0.0969697 */
@@ -118,17 +118,17 @@ struct ice_eth56g_mac_reg_cfg eth56g_mac_cfg[NUM_ICE_ETH56G_LNK_SPD] = {
                .mktime = 0x147b, /* 10.24, only if RS-FEC enabled */
                .tx_offset = {
                        .serdes = 0xe1e, /* 7.0593939 */
-                       .no_fec = 0x3857, /* 28.17 */
+                       .no_fec = 0x4266, /* 33 */
                        .fc = 0x48c3, /* 36.38 */
-                       .rs = 0x8100, /* 64.5 */
+                       .rs = 0x8a00, /* 69 */
                        .sfd = 0x1dc, /* 0.93 */
                        .onestep = 0x1eb8 /* 15.36 */
                },
                .rx_offset = {
                        .serdes = 0xfffff7a9, /* -4.1697 */
-                       .no_fec = 0xffffe71a, /* -12.45 */
+                       .no_fec = 0xffffe700, /* -12 */
                        .fc = 0xfffe894d, /* -187.35 */
-                       .rs = 0xfffff8cd, /* -3.6 */
+                       .rs = 0xfffff8cc, /* -3 */
                        .sfd = 0x1dc, /* 0.93 */
                        .bs_ds = 0x14 /* 0.0387879, RS-FEC 0 */
                }