linux/drivers/net/ethernet/intel/igc
Vinicius Costa Gomes b03c49cde6 igc: Save PTP time before a reset
Many TSN features depend on the internal PTP clock, so the internal
PTP jumping when the adapter is reset can cause problems, usually in
the form of "TX Hangs" warnings in the driver.

The solution is to save the PTP time before a reset and restore it
after the reset is done. The value of the PTP time is saved before a
reset and we use the difference from CLOCK_MONOTONIC from reset time
to now, to correct what's going to be the new PTP time.

This is heavily inspired by commit bf4bf09bdd ("i40e: save PTP time
before a device reset").

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2020-09-28 14:42:46 -07:00
..
igc.h igc: Save PTP time before a reset 2020-09-28 14:42:46 -07:00
igc_base.c igc: Add new device ID's 2020-09-28 14:42:45 -07:00
igc_base.h
igc_defines.h igc: Clean RX descriptor error flags 2020-09-28 14:42:45 -07:00
igc_diag.c igc: add support to eeprom, registers and link self-tests 2020-05-18 15:06:28 -07:00
igc_diag.h igc: add support to eeprom, registers and link self-tests 2020-05-18 15:06:28 -07:00
igc_dump.c igc: Remove unused registers 2020-05-19 16:00:00 -07:00
igc_ethtool.c igc: Expose LPI counters 2020-09-28 14:42:45 -07:00
igc_hw.h igc: Expose LPI counters 2020-09-28 14:42:45 -07:00
igc_i225.c igc: Add initial LTR support 2020-06-29 18:21:09 -07:00
igc_i225.h igc: Add initial LTR support 2020-06-29 18:21:09 -07:00
igc_mac.c igc: Fix static checker warning 2020-07-27 08:49:32 -07:00
igc_mac.h igc: remove IGC_REMOVED function 2020-05-19 15:01:48 -07:00
igc_main.c igc: Save PTP time before a reset 2020-09-28 14:42:46 -07:00
igc_nvm.c
igc_nvm.h
igc_phy.c igc: Add PHY power management control 2020-01-17 09:55:34 -08:00
igc_phy.h
igc_ptp.c igc: Save PTP time before a reset 2020-09-28 14:42:46 -07:00
igc_regs.h igc: Clean up the hw_stats structure 2020-07-27 08:49:32 -07:00
igc_tsn.c igc: Add support for ETF offloading 2020-04-17 10:19:24 -07:00
igc_tsn.h igc: Add support for taprio offloading 2020-04-17 10:19:24 -07:00
Makefile igc: add support to eeprom, registers and link self-tests 2020-05-18 15:06:28 -07:00