Skip to content

Commit 58f2ffd

Browse files
shifty91davem330
authored andcommitted
stmmac: intel: Enable correction of MAC propagation delay
All captured timestamps should be corrected by PHY, MAC and CDC introduced latency/errors. The CDC correction is already used. Enable MAC propagation delay correction as well which is available since commit 26cfb83 ("net: stmmac: correct MAC propagation delay"). Before: |ptp4l[390.458]: rms 7 max 21 freq +177 +/- 14 delay 357 +/- 1 After: |ptp4l[620.012]: rms 7 max 20 freq +195 +/- 14 delay 345 +/- 1 Tested on Intel Elkhart Lake. Signed-off-by: Kurt Kanzenbach <[email protected]> Reviewed-by: Johannes Zink <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4025d3e commit 58f2ffd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ static int ehl_common_data(struct pci_dev *pdev,
627627
plat->rx_queues_to_use = 8;
628628
plat->tx_queues_to_use = 8;
629629
plat->flags |= STMMAC_FLAG_USE_PHY_WOL;
630+
plat->flags |= STMMAC_FLAG_HWTSTAMP_CORRECT_LATENCY;
630631

631632
plat->safety_feat_cfg->tsoee = 1;
632633
plat->safety_feat_cfg->mrxpee = 1;

0 commit comments

Comments
 (0)