> -----Original Message----- > From: Sergey Temerkhanov <[email protected]> > Sent: Tuesday, October 13, 2026 2:13 AM > To: [email protected] > Subject: [PATCH RESEND iwl-net v6 3/7] ice: Reject PTP access without a > control PF > > The timesync register space is not accessible through a secondary NAC. > ice_get_primary_hw() currently falls back to the caller's hardware when the > control PF is absent, causing secondary PFs to access the wrong register > space after the control PF is removed. > > Return NULL instead and propagate the missing control PF through PHC reads > and timer setup paths. This leaves secondary PFs operational while PTP > requests fail safely until a control PF is available again. > > A failed PHC read invalidates the cached PHC time by publishing zero. > ice_ptp_get_rx_hwts() already treats a zero cache as "no timestamp"; teach > ice_ptp_extend_40b_ts() to > do the same so that Tx timestamps are discarded > rather than extended against a value that no longer tracks the clock. > > Fixes: e2193f9f9ec9 ("ice: enable timesync operation on 2xNAC E825 devices") > Signed-off-by: Sergey Temerkhanov <[email protected]> > Reviewed-by: Aleksandr Loktionov <[email protected]> > --- > drivers/net/ethernet/intel/ice/ice.h | 9 +- > drivers/net/ethernet/intel/ice/ice_ptp.c | 85 ++++++++++++++----- > drivers/net/ethernet/intel/ice/ice_ptp.h | 11 +-- > drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 24 +++++- > .../net/ethernet/intel/ice/virt/virtchnl.c | 5 +- > 5 files changed, 98 insertions(+), 36 deletions(-)
Tested-by: Alexander Nowlin <[email protected]>
