netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/8] net: mediatek: make the driver pass stress tests
@ 2016-04-07 19:26 John Crispin
  2016-04-07 19:26 ` [PATCH V2 1/8] net: mediatek: watchdog_timeo was not set John Crispin
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: John Crispin @ 2016-04-07 19:26 UTC (permalink / raw)
  To: David S. Miller
  Cc: Felix Fietkau, netdev-u79uwXL29TY76Z2rM5mHXA,
	Sean Wang (王志亘),
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Matthias Brugger,
	John Crispin

While testing the driver we managed to get the TX path to stall and fail
to recover. When dual MAC support was added to the driver, the whole queue
stop/wake code was not properly adapted. There was also a regression in the
locking of the xmit function. The fact that watchdog_timeo was not set and
that the tx_timeout code failed to properly reset the dma, irq and queue
just made the mess complete.

This series make the driver pass stress testing. With this series applied
the testbed has been running for several days and still has not locked up.
We have a second setup that has a small hack patch applied to randomly stop
irqs and/or one of the queues and successfully manages to recover from these
simulated tx stalls.

John Crispin (8):
  net: mediatek: watchdog_timeo was not set
  net: mediatek: mtk_cal_txd_req() returns bad value
  net: mediatek: remove superfluous reset call
  net: mediatek: fix stop and wakeup of queue
  net: mediatek: fix mtk_pending_work
  net: mediatek: fix TX locking
  net: mediatek: move the pending_work struct to the device generic
    struct
  net: mediatek: do not set the QID field in the TX DMA descriptors

 drivers/net/ethernet/mediatek/mtk_eth_soc.c |  106 ++++++++++++++++-----------
 drivers/net/ethernet/mediatek/mtk_eth_soc.h |    4 +-
 2 files changed, 66 insertions(+), 44 deletions(-)

-- 
1.7.10.4

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

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

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-07 19:26 [PATCH V2 0/8] net: mediatek: make the driver pass stress tests John Crispin
2016-04-07 19:26 ` [PATCH V2 1/8] net: mediatek: watchdog_timeo was not set John Crispin
     [not found] ` <1460057210-55786-1-git-send-email-blogic-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2016-04-07 19:26   ` [PATCH V2 2/8] net: mediatek: mtk_cal_txd_req() returns bad value John Crispin
2016-04-07 19:26   ` [PATCH V2 3/8] net: mediatek: remove superfluous reset call John Crispin
2016-04-07 19:26   ` [PATCH V2 4/8] net: mediatek: fix stop and wakeup of queue John Crispin
2016-04-07 19:26   ` [PATCH V2 5/8] net: mediatek: fix mtk_pending_work John Crispin
2016-04-07 22:00     ` kbuild test robot
2016-04-07 19:26   ` [PATCH V2 6/8] net: mediatek: fix TX locking John Crispin
2016-04-07 19:46     ` Sergei Shtylyov
2016-04-07 19:26 ` [PATCH V2 7/8] net: mediatek: move the pending_work struct to the device generic struct John Crispin
2016-04-07 19:26 ` [PATCH V2 8/8] net: mediatek: do not set the QID field in the TX DMA descriptors John Crispin

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).