netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] URGENT for 3.9: net: fec: revert NAPI introduction
@ 2013-04-19 14:36 Lucas Stach
  2013-04-19 14:36 ` [PATCH 1/3] Revert "net: fec: fix missing napi_disable call" Lucas Stach
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Lucas Stach @ 2013-04-19 14:36 UTC (permalink / raw)
  To: netdev; +Cc: David Miller, Frank Li, Shawn Guo, Fabio Estevam, Lucas Stach

Those patches introduce instability to the point of kernel OOPSes with
NULL-ptr dereferences.

The patches drop locks from the code without justifying why this would
be safe at all. In fact it isn't safe as now the controller restart can
happily free the RX and TX ring buffers while the NAPI poll function is
still accessing them. So with a heavily loaded but slightly instable
link we regularly end up with OOPSes because link change restarts
the FEC and bombs away buffers still in use.

Also the NAPI enabled interrupt handler ACKs the INT and only later
masks it, this way introducing a window where new interrupts could sneak
in while we are already in polling mode.

As it's way too late in the cycle to try and fix this up just revert the
relevant patches for now.

Lucas Stach (3):
  Revert "net: fec: fix missing napi_disable call"
  Revert "net: fec: put tx to napi poll function to fix dead lock"
  Revert "net: fec: add napi support to improve proformance"

 drivers/net/ethernet/freescale/fec.c | 126 ++++++++++++++---------------------
 drivers/net/ethernet/freescale/fec.h |   5 +-
 2 files changed, 53 insertions(+), 78 deletions(-)

-- 
1.8.2.rc2

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

end of thread, other threads:[~2013-04-27  7:12 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19 14:36 [PATCH 0/3] URGENT for 3.9: net: fec: revert NAPI introduction Lucas Stach
2013-04-19 14:36 ` [PATCH 1/3] Revert "net: fec: fix missing napi_disable call" Lucas Stach
2013-04-19 14:36 ` [PATCH 2/3] Revert "net: fec: put tx to napi poll function to fix dead lock" Lucas Stach
2013-04-19 14:36 ` [PATCH 3/3] Revert "net: fec: add napi support to improve proformance" Lucas Stach
2013-04-19 17:38 ` [PATCH 0/3] URGENT for 3.9: net: fec: revert NAPI introduction David Miller
2013-04-25 12:44   ` Lucas Stach
2013-04-25 19:14     ` David Miller
2013-04-19 18:22 ` Fabio Estevam
2013-04-19 18:26   ` David Miller
2013-04-19 20:05 ` Fabio Estevam
2013-04-20 12:35   ` Frank Li
2013-04-22  8:56     ` Lucas Stach
2013-04-22  9:17       ` Frank Li
2013-04-25 12:31         ` Lucas Stach
2013-04-25 14:45           ` Frank Li
2013-04-25 14:57             ` Lucas Stach
2013-04-27  7:12               ` Frank Li
2013-04-25 12:37   ` Lucas Stach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).