On 11/11/26 10:44, [email protected] wrote:
Thank you for your contribution! Sashiko AI review found no new issues
in this patch, but noticed 1 related pre-existing issue it does not
introduce:
- [Medium] ice: wrong port modulo in ice_tspll_bypass_mux_active_e825c()
   [1]
--

commit 54d93c3b2bb6d3588addc95fab52eae6473a669b
Author: Ivan Vecera <[email protected]>

ice: dpll: serialize changes of the SyncE CGU registers

This commit adds a mutex to struct ice_adapter to serialize read-modify-write
updates to the shared E825C SyncE CGU registers R10 and R11 across PFs.

diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c 
b/drivers/net/ethernet/intel/ice/ice_ptp.c
index 7980eaf9ce253..449819cf8c879 100644
--- a/drivers/net/ethernet/intel/ice/ice_ptp.c
+++ b/drivers/net/ethernet/intel/ice/ice_ptp.c
@@ -1368,7 +1368,9 @@ void ice_ptp_link_change(struct ice_pf *pf, bool linkup)
                                break;
                        }
+ mutex_lock(&pf->adapter->cgu_synce_lock);
                        err = ice_tspll_cfg_synce_ethdiv_e825c(hw, clk_pin);
+                       mutex_unlock(&pf->adapter->cgu_synce_lock);
                        if (active && err) {
                                dev_err_once(ice_pf_to_dev(pf),
                                             "Failed to configure SyncE ETH divider 
for pin %d, err %d\n",

[Severity: Medium]
This problem wasn't introduced by this patch, but does
ice_tspll_bypass_mux_active_e825c() compute the wrong port index when setting
active here [1]?

Yes. Patch 2/2 of this series fixes it, the check now compares with
port + ICE_CGU_BYPASS_MUX_OFFSET_E825C, as
ice_tspll_cfg_bypass_mux_e825c() and ice_dpll_rclk_update_e825c() do.

Thanks,
Ivan

Reply via email to