Re: ASIX USB dongle problem: asix_rx_fixup() Bad Header Length

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 28, 2017 at 01:40:28PM +0100, Holger Birkmeyer wrote:
> Dear Sascha,
> 
> the ASIX USB dongle is working on the same hardware running a 4.4
> vanilla kernel. The dongle also works on my Linux PC with a 4.13 kernel.
> 
> I added memory_display(buf, 0, len, 4, 0) to asix_rx_fixup(). Here are
> the logs:

Hm, comparing that to the traffic my device receives that may look
somewhat shifted. Do you have CONFIG_MMU enabled? If yes, please try
with MMU disabled. Also, maybe the buffer is not sufficiently aligned.
Could you print the pointer address of buf?

The buffer is statically allocated in drivers/net/usb/usbnet.c:

static char rx_buf[4096];

This looks fishy. It should be allocated with dma_alloc() instead.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux