Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

From
Greg KH <gregkh@linuxfoundation.org>
Date
2016-11-24 18:42:47
Also in
lkml
Reply to
Mark Lord, 2016-11-24
On Thu, Nov 24, 2016 at 11:43:53AM -0500, Mark Lord wrote:
On 16-11-24 11:21 AM, David Miller wrote:
quoted
From: Hayes Wang <redacted>
Date: Thu, 24 Nov 2016 13:26:55 +0000
quoted
I don't think the garbage results from our driver or device.
This is my impression with what has been presented so far as well.
It's not garbage.

The latest run with the debug code I posted here earlier just spat out this below.
Using coherent (guarded, non-cacheable) RX buffers, with mb() calls:

[   15.199157] r8152_check_rx_desc: rx_desc looks bad.
[   15.204270] r8152_rx_bottom: offset=0/3376 bad rx_desc
[   15.209584] r8152_dump_rx_desc: 3d435253 3034336d 202f3a30 47524154 2f3d5445 3034336d rx_len=21075

The bad data in this case is ASCII:

        "SRC=m3400:/ TARGET=/m340"
Have you tried using usbmon?  Details for how to use it is in
Documentation/usbmon.txt and it might help you rule out the driver vs.
the USB host controller issues as it sees the raw data the USB host
controller sees before it sends it to the driver.

thanks,

greg k-h
Thread (63 messages) 63 messages, 9 authors, last reply 2019-01-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help