linux_dsm_epyc7002/drivers/net/ethernet/intel/ixgbe
Jacob Keller 8fecf67c7e ixgbe: fix lockdep annotation issue for ptp's work item
This patch fixes a lockdep issue created due to ixgbe_ptp_stop always running
cancel_work_sync even if the work item had not been created properly with
INIT_WORK. This is caused because ixgbe_ptp_stop did not check to actually
ensure PTP was running first. The new implementation introduces a state in the
&adapter->state field which is used to indicate that PTP is running. (This
replaces the IXGBE_FLAG2_PTP_ENABLED field). This state will use the atomic
set_bit, test_bit, and test_and_clear_bit functions. ixgbe_ptp_stop will check
to ensure that PTP was enabled, (and if not, it will not attempt to do any
cleanup work from ixgbe_ptp_init). This resolves the lockdep annotation warning
found by Stephen Hemminger

Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2013-07-31 01:00:57 -07:00
..
ixgbe_82598.c ixgbe: fix semaphore lock for I2C read/writes on 82598 2013-07-30 17:50:01 -07:00
ixgbe_82599.c ixgbe: add new media type. 2013-07-30 17:35:21 -07:00
ixgbe_common.c ixgbe: add new media type. 2013-07-30 17:35:21 -07:00
ixgbe_common.h ixgbe: fix fc autoneg ethtool reporting. 2013-07-30 17:26:32 -07:00
ixgbe_dcb_82598.c ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00
ixgbe_dcb_82598.h ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00
ixgbe_dcb_82599.c ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00
ixgbe_dcb_82599.h IXGBE: Set the SW prio_tc values at initialization to the HW setting. 2013-05-21 03:14:21 -07:00
ixgbe_dcb_nl.c IXGBE: Set the SW prio_tc values at initialization to the HW setting. 2013-05-21 03:14:21 -07:00
ixgbe_dcb.c IXGBE: Set the SW prio_tc values at initialization to the HW setting. 2013-05-21 03:14:21 -07:00
ixgbe_dcb.h IXGBE: Set the SW prio_tc values at initialization to the HW setting. 2013-05-21 03:14:21 -07:00
ixgbe_debugfs.c ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00
ixgbe_ethtool.c ixgbe: fix SFF data dumps of SFP+ modules 2013-07-30 17:56:04 -07:00
ixgbe_fcoe.c drivers: net: Remove remaining alloc/OOM messages 2013-02-08 17:44:39 -05:00
ixgbe_fcoe.h ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00
ixgbe_lib.c ixgbe: add support for ndo_ll_poll 2013-06-10 21:22:36 -07:00
ixgbe_main.c ixgbe: fix lockdep annotation issue for ptp's work item 2013-07-31 01:00:57 -07:00
ixgbe_mbx.c ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00
ixgbe_mbx.h ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00
ixgbe_phy.c ixgbe: fix semaphore lock for I2C read/writes on 82598 2013-07-30 17:50:01 -07:00
ixgbe_phy.h ixgbe: fix semaphore lock for I2C read/writes on 82598 2013-07-30 17:50:01 -07:00
ixgbe_ptp.c ixgbe: fix lockdep annotation issue for ptp's work item 2013-07-31 01:00:57 -07:00
ixgbe_sriov.c ixgbe: Use pci_vfs_assigned instead of ixgbe_vfs_are_assigned 2013-07-30 17:13:11 -07:00
ixgbe_sriov.h ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00
ixgbe_sysfs.c ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00
ixgbe_type.h ixgbe: fix semaphore lock for I2C read/writes on 82598 2013-07-30 17:50:01 -07:00
ixgbe_x540.c ixgbe: fix MNG FW support when adapter not up 2013-04-17 22:03:09 -07:00
ixgbe.h ixgbe: fix lockdep annotation issue for ptp's work item 2013-07-31 01:00:57 -07:00
Makefile ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00