linux/drivers/net/ethernet/intel/igc
Christopher S M Hall 1a931c4f5e igc: add lock preventing multiple simultaneous PTM transactions
Add a mutex around the PTM transaction to prevent multiple transactors

Multiple processes try to initiate a PTM transaction, one or all may
fail. This can be reproduced by running two instances of the
following:

$ sudo phc2sys -O 0 -i tsn0 -m

PHC2SYS exits with:

"ioctl PTP_OFFSET_PRECISE: Connection timed out" when the PTM transaction
 fails

Note: Normally two instance of PHC2SYS will not run, but one process
 should not break another.

Fixes: a90ec84837 ("igc: Add support for PTP getcrosststamp()")
Signed-off-by: Christopher S M Hall <christopher.s.hall@intel.com>
Reviewed-by: Corinna Vinschen <vinschen@redhat.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Mor Bar-Gabay <morx.bar.gabay@intel.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2025-04-11 09:13:28 -07:00
..
Makefile net: intel: Use *-y instead of *-objs in Makefile 2024-06-10 19:52:44 -07:00
igc.h igc: add lock preventing multiple simultaneous PTM transactions 2025-04-11 09:13:28 -07:00
igc_base.c igc: return early when failing to read EECD register 2025-01-07 09:01:15 -08:00
igc_base.h igc: Add support for PTP .getcyclesx64() 2023-11-13 15:17:09 -08:00
igc_defines.h igc: increase wait time before retrying PTM 2025-04-11 09:13:28 -07:00
igc_diag.c igc: remove autoneg parameter from igc_mac_info 2024-11-13 10:30:21 -08:00
igc_diag.h
igc_dump.c
igc_ethtool.c igc: remove autoneg parameter from igc_mac_info 2024-11-13 10:30:21 -08:00
igc_hw.h igc: Remove unused igc_read/write_pcie_cap_reg 2025-01-06 13:32:44 -08:00
igc_i225.c igc: field get conversion 2023-12-18 11:20:43 -08:00
igc_i225.h
igc_leds.c igc: Fix LED-related deadlock on driver unbind 2024-04-24 20:09:30 -07:00
igc_mac.c igc: remove autoneg parameter from igc_mac_info 2024-11-13 10:30:21 -08:00
igc_mac.h
igc_main.c igc: cleanup PTP module if probe fails 2025-04-11 09:13:28 -07:00
igc_nvm.c igc: Remove unused igc_acquire/release_nvm 2025-01-06 13:32:44 -08:00
igc_nvm.h igc: Remove unused igc_acquire/release_nvm 2025-01-06 13:32:44 -08:00
igc_phy.c igc: remove autoneg parameter from igc_mac_info 2024-11-13 10:30:21 -08:00
igc_phy.h
igc_ptp.c igc: add lock preventing multiple simultaneous PTM transactions 2025-04-11 09:13:28 -07:00
igc_regs.h igc: Move the MULTI GBT AN Control Register to _regs file 2024-08-30 07:44:39 -07:00
igc_tsn.c igc: Add MQPRIO offload support 2024-08-30 07:33:46 -07:00
igc_tsn.h igc: Fix qbv_config_change_errors logics 2024-08-07 13:30:23 -07:00
igc_xdp.c igc: Fix XSK queue NAPI ID mapping 2025-04-02 08:51:41 -07:00
igc_xdp.h