All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [net v2 0/5] igb: fix ptp suspend/resume issue
@ 2016-05-11 23:18 Jacob Keller
  2016-05-11 23:18 ` [Intel-wired-lan] [net v2 1/5] igb: introduce ptp_flags variable and use it to replace IGB_FLAG_PTP Jacob Keller
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Jacob Keller @ 2016-05-11 23:18 UTC (permalink / raw)
  To: intel-wired-lan

This patch series (properly) fixes the issue with igb's workqueue item
for overflow check from causing a surprise remove event. To do this,
properly suspend the workqueue items in suspend and then resume them
again during the resume flow.

The patch series has a few extra steps to reduce code duplication and
implement suspend and resume properly, which makes the overall fix a bit
more complicated, and thus review is welcome.

A smaller fix would be to implement suspend and resume irrespective of
the current igb_ptp_stop and igb_ptp_init but this seems more likely to
introduce bugs especially if either function ever changes in the future.

In addition, the ptp_flags variable is added mostly to simplify the work
of writing several complex MAC type checks in the ptp code while doing
this.

Jacob Keller (5):
  igb: introduce ptp_flags variable and use it to replace IGB_FLAG_PTP
  igb: introduce IGB_PTP_OVERFLOW_CHECK flag
  igb: introduce igb_ptp_resume function
  igb: implement igb_ptp_suspend
  igb: call igb_ptp_suspend/igb_ptp_resume during suspend/resume cycle

 drivers/net/ethernet/intel/igb/igb.h      |   8 ++-
 drivers/net/ethernet/intel/igb/igb_main.c |   4 +-
 drivers/net/ethernet/intel/igb/igb_ptp.c  | 110 ++++++++++++++++--------------
 3 files changed, 68 insertions(+), 54 deletions(-)

-- 
2.8.1.493.g7b22612


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-05-17 22:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-11 23:18 [Intel-wired-lan] [net v2 0/5] igb: fix ptp suspend/resume issue Jacob Keller
2016-05-11 23:18 ` [Intel-wired-lan] [net v2 1/5] igb: introduce ptp_flags variable and use it to replace IGB_FLAG_PTP Jacob Keller
2016-05-11 23:18 ` [Intel-wired-lan] [net v2 2/5] igb: introduce IGB_PTP_OVERFLOW_CHECK flag Jacob Keller
2016-05-11 23:18 ` [Intel-wired-lan] [net v2 3/5] igb: introduce igb_ptp_resume function Jacob Keller
2016-05-11 23:18 ` [Intel-wired-lan] [net v2 4/5] igb: implement igb_ptp_suspend Jacob Keller
2016-05-11 23:18 ` [Intel-wired-lan] [net v2 5/5] igb: call igb_ptp_suspend/igb_ptp_resume during suspend/resume cycle Jacob Keller
2016-05-17  1:57 ` [Intel-wired-lan] [net v2 0/5] igb: fix ptp suspend/resume issue Brown, Aaron F
2016-05-17  2:29   ` Jeff Kirsher
2016-05-17 20:46     ` Keller, Jacob E
2016-05-17 21:05       ` Brown, Aaron F
2016-05-17 21:54         ` Keller, Jacob E
2016-05-17 22:01           ` Brown, Aaron F
2016-05-17 22:04             ` Keller, Jacob E

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.