mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Holger Birkmeyer <holger.birkmeyer@ebee.berlin>
Cc: barebox@lists.infradead.org
Subject: Re: ASIX USB dongle problem: asix_rx_fixup() Bad Header Length
Date: Tue, 28 Nov 2017 14:20:06 +0100	[thread overview]
Message-ID: <20171128132006.cbcplw7rr2lqvme3@pengutronix.de> (raw)
In-Reply-To: <51e9790a-364c-782d-cd81-721dcba52d78@ebee.berlin>

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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2017-11-28 13:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-27 17:01 Holger Birkmeyer
2017-11-28  8:43 ` Sascha Hauer
2017-11-28 12:40   ` Holger Birkmeyer
2017-11-28 13:20     ` Sascha Hauer [this message]
2017-11-28 13:32       ` Holger Birkmeyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171128132006.cbcplw7rr2lqvme3@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=holger.birkmeyer@ebee.berlin \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox