linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: michael.weiser@gmx.de (Michael Weiser)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: sunxi: enable big-endian
Date: Fri, 29 Jul 2016 20:55:38 +0200	[thread overview]
Message-ID: <20160729185538.GA7042@weiser.dinsnail.net> (raw)
In-Reply-To: <20160729163907.GD6215@lukather>

Hi Maxime,

On Fri, Jul 29, 2016 at 06:39:07PM +0200, Maxime Ripard wrote:

> > it doesn't seem to accept incoming packets. I suspect that programming
> > of its own MAC address (which the driver chooses randomly) suffers from
> > an endianness issue. I'm somewhat stumped as to what is causing it since
> Maybe a good way to confirm that would be to generate outgoing
> traffic, dump that and see what the mac address is? If it's not
> programmed properly, you should see it in the packets.

That's what I've done: When trying to ping another machine, with tcpdump
I see ARP requests coming from the cubieboard with the right MAC and I
see the target machine sending ARP responses to the right MAC. But I do
not see them coming in with tcpdump on the cubieboard.

The same process works fine with a little-endian kernel (same .config and
dtb) and userland, so I'm sure it's an endianess issue somewhere.

I'll do some more comparison of little- and big-endian kernel behaviour
and dig a bit deeper into the code.
-- 
Thanks,
Michael

  reply	other threads:[~2016-07-29 18:55 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-21 18:23 [PATCH 0/3 v2] Fixes for running a big-endian kernel on Cubieboard2 Michael Weiser
2016-07-21 18:23 ` [PATCH 1/3] mmc: sunxi-mmc: change idma descriptor to __le32 Michael Weiser
2016-07-22  8:59   ` Maxime Ripard
2016-07-21 18:23 ` [PATCH 2/3] stmmac: change dma descriptors " Michael Weiser
2016-07-26 12:13   ` Giuseppe CAVALLARO
2016-07-29  7:53     ` Michael Weiser
2016-07-29  8:26       ` Giuseppe CAVALLARO
2016-07-21 18:23 ` [PATCH 3/3] ARM: sunxi: enable big-endian Michael Weiser
2016-07-22  9:01   ` Maxime Ripard
2016-07-22 13:56     ` Michael Weiser
2016-07-25 12:25       ` Maxime Ripard
2016-07-26 19:26         ` Michael Weiser
2016-07-27  1:55           ` Chen-Yu Tsai
2016-07-29  7:59             ` Michael Weiser
2016-07-29 16:39               ` Maxime Ripard
2016-07-29 18:55                 ` Michael Weiser [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-07-18 16:23 [PATCH 0/3] Fixes for running a big-endian kernel on Cubieboard2 Michael Weiser
2016-07-18 16:23 ` [PATCH 3/3] ARM: sunxi: enable big-endian Michael Weiser

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=20160729185538.GA7042@weiser.dinsnail.net \
    --to=michael.weiser@gmx.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).