netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [REGRESSION] asix: Lots of asix_rx_fixup() errors and slow transmissions
@ 2016-05-03  4:55 John Stultz
       [not found] ` <CALAqxLUj+-yUGTNviHu4+KE9=JTxjZyHBv4pdUob=xndAr8ZmA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2016-05-03 14:42 ` David B. Robins
  0 siblings, 2 replies; 22+ messages in thread
From: John Stultz @ 2016-05-03  4:55 UTC (permalink / raw)
  To: lkml
  Cc: Dean Jenkins, Mark Craske, David S. Miller, YongQin Liu,
	Guodong Xu, linux-usb, netdev, Ivan Vecera, David B. Robins

In testing with HiKey, we found that since commit 3f30b158eba5c60
(asix: On RX avoid creating bad Ethernet frames), we're seeing lots of
noise during network transfers:

[  239.027993] asix 1-1.1:1.0 eth0: asix_rx_fixup() Data Header
synchronisation was lost, remaining 988
[  239.037310] asix 1-1.1:1.0 eth0: asix_rx_fixup() Bad Header Length
0x54ebb5ec, offset 4
[  239.045519] asix 1-1.1:1.0 eth0: asix_rx_fixup() Bad Header Length
0xcdffe7a2, offset 4
[  239.275044] asix 1-1.1:1.0 eth0: asix_rx_fixup() Data Header
synchronisation was lost, remaining 988
[  239.284355] asix 1-1.1:1.0 eth0: asix_rx_fixup() Bad Header Length
0x1d36f59d, offset 4
[  239.292541] asix 1-1.1:1.0 eth0: asix_rx_fixup() Bad Header Length
0xaef3c1e9, offset 4
[  239.518996] asix 1-1.1:1.0 eth0: asix_rx_fixup() Data Header
synchronisation was lost, remaining 988
[  239.528300] asix 1-1.1:1.0 eth0: asix_rx_fixup() Bad Header Length
0x2881912, offset 4
[  239.536413] asix 1-1.1:1.0 eth0: asix_rx_fixup() Bad Header Length
0x5638f7e2, offset 4


And network throughput ends up being pretty bursty and slow with a
overall throughput of at best ~30kB/s.

Looking through the commits since the v4.1 kernel where we didn't see
this, I narrowed the regression down, and reverting the following two
commits seems to avoid the problem:

6a570814cd430fa5ef4f278e8046dcf12ee63f13 asix: Continue processing URB
if no RX netdev buffer
3f30b158eba5c604b6e0870027eef5d19fc9271d asix: On RX avoid creating
bad Ethernet frames

With these reverted, we don't see all the error messages, and we see
better ~1.1MB/s throughput (I've got a mouse plugged in, so I think
the usb host is only running at "full-speed" mode here).

This worries me some, as the patches seem to describe trying to fix
the issue they seem to cause, so I suspect a revert isn't the correct
solution, but am not sure why we're having such trouble and the patch
authors did not.  I'd be happy to do further testing of patches if
folks have any ideas.

Originally Reported-by: Yongqin Liu <yongqin.liu@linaro.org>

thanks
-john

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

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

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-03  4:55 [REGRESSION] asix: Lots of asix_rx_fixup() errors and slow transmissions John Stultz
     [not found] ` <CALAqxLUj+-yUGTNviHu4+KE9=JTxjZyHBv4pdUob=xndAr8ZmA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-03  9:23   ` Dean Jenkins
2016-05-03 10:04     ` Guodong Xu
2016-05-03 10:54       ` Dean Jenkins
     [not found]         ` <5728837D.60702-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2016-05-04 23:45           ` John Stultz
2016-05-05  8:11             ` Dean Jenkins
2016-05-05 12:19               ` Guodong Xu
2016-05-06 15:00                 ` Dean Jenkins
2016-05-06 15:27                   ` Andrew Lunn
2016-05-06 16:54                     ` Dean Jenkins
2016-05-06 17:40                   ` John Stultz
2016-05-06 17:06               ` John Stultz
2016-05-03 14:42 ` David B. Robins
     [not found]   ` <87ed4c76328ed9dc5591359ea0e98ab9-xeNgNI7VTeVeoWH0uzbU5w@public.gmane.org>
2016-05-03 15:44     ` John Stultz
2016-05-03 21:16     ` Dean Jenkins
2016-05-04  0:28       ` David B. Robins
2016-05-04  7:58         ` Dean Jenkins
2016-05-06 20:45           ` David B. Robins
     [not found]       ` <57291539.6080405-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2016-05-06 18:38         ` John Stultz
2016-05-06 20:57       ` John Stultz
     [not found]         ` <CALAqxLXsna_em_5w8yonXUCcMwbOGknYtL5LhqYCHUK9LKFr0A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-11 22:00           ` Dean Jenkins
2016-05-17  0:10             ` John Stultz

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