[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161123105125.GA26394@amd>
Date: Wed, 23 Nov 2016 11:51:25 +0100
From: Pavel Machek <pavel@....cz>
To: peppe.cavallaro@...com, netdev@...r.kernel.org,
kernel list <linux-kernel@...r.kernel.org>
Subject: stmmac ethernet in kernel 4.4: coalescing related pauses?
Hi!
I'm debugging strange delays during transmit in stmmac driver. They
seem to be present in 4.4 kernel (and older kernels, too). Workload is
burst of udp packets being sent, pause, burst of udp packets, ...
Test code is attached, I use these parameters for testing:
./udp-test raw 10.0.0.6 1234 1000 100 30
The delays seem to be related to coalescing:
drivers/net/ethernet/stmicro/stmmac/common.h
#define STMMAC_COAL_TX_TIMER 40000
#define STMMAC_MAX_COAL_TX_TICK 100000
#define STMMAC_TX_MAX_FRAMES 256
If I lower the parameters, delays are gone, but I get netdev watchdog
backtrace followed by broken driver.
Any ideas what is going on there?
[I'm currently trying to get newer kernels working on affected
hardware.]
Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
View attachment "CMakeLists.txt" of type "text/plain" (567 bytes)
View attachment "udp-test.cpp" of type "text/x-c++src" (6754 bytes)
Download attachment "signature.asc" of type "application/pgp-signature" (182 bytes)
Powered by blists - more mailing lists