Skip to content

ice: dpll: fix updates of the SyncE CGU registers on E825

Ivan Vecera intel-wired-lan lkml netdev sashiko-reviews 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2ice: dpll: serialize changes of the SyncE CGU registersdrivers/net/ethernet/intel/ice/ice_adapter.c drivers/net/ethernet/intel/ice/ice_adapter.h drivers/net/ethernet/intel/ice/ice_dpll.c +3 more+20 -72 repliesApplied
2/2ice: dpll: set the SyncE divider only for the port driving the outputdrivers/net/ethernet/intel/ice/ice_ptp.c drivers/net/ethernet/intel/ice/ice_tspll.c+9 -51 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPetr Oros
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] ice: dpll: fix updates of the SyncE CGU registers on E825

All E825C PFs share the CGU registers R10 and R11, which hold the mux and the divider of the two recovered clock outputs. Both patches fix how a link change updates them, both found in review:

- Patch 1 adds a lock shared by all PFs around the read-modify-write sequences of these registers. A link change on one PF could undo an RCLK pin change made by another PF.
- Patch 2 lets a link change set the divider of an output only when its port drives that output. Every port set it from its own link speed, which is wrong when ports run at different speeds.

Both were tested on GNR-D with dual complex E825, details are in the commit messages.

Patch 1 was also patch 2 of the net-next series "dpll: do not serialize driver callbacks under global dpll_lock" [1], which needs it. v2 of that series will drop it.

[1] https://lore.kernel.org/netdev/[email protected]/

Ivan Vecera (2):
ice: dpll: serialize changes of the SyncE CGU registers
ice: dpll: set the SyncE divider only for the port driving the output

 drivers/net/ethernet/intel/ice/ice_adapter.c |  2 ++
 drivers/net/ethernet/intel/ice/ice_adapter.h |  4 ++++
 drivers/net/ethernet/intel/ice/ice_dpll.c    | 11 ++++++-----
 drivers/net/ethernet/intel/ice/ice_dpll.h    |  4 ++++
 drivers/net/ethernet/intel/ice/ice_ptp.c     |  8 +++++++-
 drivers/net/ethernet/intel/ice/ice_tspll.c   |  8 ++++----
 6 files changed, 27 insertions(+), 10 deletions(-)

base-commit: 1d5e2c57e9ffc134e14b3f837c8d7c53b508bd22

Signature · 1 line
2.56.0