Skip to content

Commit 5a33423

Browse files
committed
ice: check low latency PHY timer update firmware capability
jira LE-3460 Rebuild_History Non-Buildable kernel-6.12.0-55.17.1.el10_0 commit-author Jacob Keller <jacob.e.keller@intel.com> commit a5c69d4 Newer versions of firmware support programming the PHY timer via the low latency interface exposed over REG_LL_PROXY_L and REG_LL_PROXY_H. Add support for checking the device capabilities for this feature. Co-developed-by: Karol Kolacinski <karol.kolacinski@intel.com> Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Milena Olech <milena.olech@intel.com> Signed-off-by: Anton Nadezhdin <anton.nadezhdin@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> (cherry picked from commit a5c69d4) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 2874b7c commit 5a33423

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/net/ethernet/intel/ice/ice_common.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,6 +2526,7 @@ ice_parse_1588_dev_caps(struct ice_hw *hw, struct ice_hw_dev_caps *dev_p,
25262526

25272527
info->ts_ll_read = ((number & ICE_TS_LL_TX_TS_READ_M) != 0);
25282528
info->ts_ll_int_read = ((number & ICE_TS_LL_TX_TS_INT_READ_M) != 0);
2529+
info->ll_phy_tmr_update = ((number & ICE_TS_LL_PHY_TMR_UPDATE_M) != 0);
25292530

25302531
info->ena_ports = logical_id;
25312532
info->tmr_own_map = phys_id;
@@ -2548,6 +2549,8 @@ ice_parse_1588_dev_caps(struct ice_hw *hw, struct ice_hw_dev_caps *dev_p,
25482549
info->ts_ll_read);
25492550
ice_debug(hw, ICE_DBG_INIT, "dev caps: ts_ll_int_read = %u\n",
25502551
info->ts_ll_int_read);
2552+
ice_debug(hw, ICE_DBG_INIT, "dev caps: ll_phy_tmr_update = %u\n",
2553+
info->ll_phy_tmr_update);
25512554
ice_debug(hw, ICE_DBG_INIT, "dev caps: ieee_1588 ena_ports = %u\n",
25522555
info->ena_ports);
25532556
ice_debug(hw, ICE_DBG_INIT, "dev caps: tmr_own_map = %u\n",

drivers/net/ethernet/intel/ice/ice_type.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ struct ice_ts_func_info {
369369
#define ICE_TS_TMR1_ENA_M BIT(26)
370370
#define ICE_TS_LL_TX_TS_READ_M BIT(28)
371371
#define ICE_TS_LL_TX_TS_INT_READ_M BIT(29)
372+
#define ICE_TS_LL_PHY_TMR_UPDATE_M BIT(30)
372373

373374
struct ice_ts_dev_info {
374375
/* Device specific info */
@@ -383,6 +384,7 @@ struct ice_ts_dev_info {
383384
u8 tmr1_ena;
384385
u8 ts_ll_read;
385386
u8 ts_ll_int_read;
387+
u8 ll_phy_tmr_update;
386388
};
387389

388390
#define ICE_NAC_TOPO_PRIMARY_M BIT(0)

0 commit comments

Comments
 (0)