From: David Daney <ddaney.cavm@gmail.com>
To: Paul Martin <paul.martin@codethink.co.uk>,
"Makarov, Aleksey" <aleksey.makarov@auriga.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH 0/7] MIPS: OCTEON: Experimental patches to enable Little Endian
Date: Mon, 16 Mar 2015 12:19:09 -0700 [thread overview]
Message-ID: <55072CAD.7050906@gmail.com> (raw)
In-Reply-To: <1426529923-13340-1-git-send-email-paul.martin@codethink.co.uk>
On 03/16/2015 11:18 AM, Paul Martin wrote:
> Octeon II CPUs can switch from Big Endian to Little Endian freely
> even in kernel/supervisor mode.
There are many caveats for dynamic endian switching. "Freely" doesn't
really describe it.
>
> These patches allow an EdgeRouterPro to boot in LE mode with no
> hardware modifications. They have not been subjected to extensive
> testing yet and should be considered experimental. (I have seen some
> strange memory corruption in libstdc++ which I haven't yet been able
> to trace.)
>
> Parts of this patchset are based on the "GPL" sources released by
> Ubiquiti.
>
Aleksey (On the To: list here) also has a patch set for this that he is
readying.
Some of your patches are even incorrect. I will respond to those
individually.
> v2:
> * Remove unneeded assembler code in kernel-entry-init.h
> * Add patch to octeon-md5 code
> * Re-order patches
> * Sign the patches
>
> Paul Martin (7):
> MIPS: OCTEON: Ensure CPUs come up little endian
> MIPS: OCTEON: Turn hardware bitfields and structures inside out
> MIPS: OCTEON: Set appropriate endianness in L2C registers
> MIPS: OCTEON: Reverse the order of register accesses to the FAU
> MIPS: OCTEON: Set up ethernet hardware for little endian
> MIPS: OCTEON: Make octeon-md5 driver endian-agnostic
> MIPS: OCTEON: Tell the kernel build system we can do Little Endian
>
> arch/mips/Kconfig | 1 +
> arch/mips/cavium-octeon/crypto/octeon-crypto.h | 8 +-
> arch/mips/cavium-octeon/executive/cvmx-l2c.c | 45 ++++
> arch/mips/cavium-octeon/octeon-platform.c | 12 +
> .../asm/mach-cavium-octeon/kernel-entry-init.h | 68 ++++++
> arch/mips/include/asm/octeon/cvmx-address.h | 67 ++++++
> arch/mips/include/asm/octeon/cvmx-bootinfo.h | 55 +++++
> arch/mips/include/asm/octeon/cvmx-bootmem.h | 14 ++
> arch/mips/include/asm/octeon/cvmx-fau.h | 22 ++
> arch/mips/include/asm/octeon/cvmx-fpa.h | 7 +
> arch/mips/include/asm/octeon/cvmx-l2c.h | 9 +
> arch/mips/include/asm/octeon/cvmx-packet.h | 8 +
> arch/mips/include/asm/octeon/cvmx-pko.h | 31 +++
> arch/mips/include/asm/octeon/cvmx-pow.h | 247 +++++++++++++++++++++
> arch/mips/include/asm/octeon/cvmx-wqe.h | 71 ++++++
> drivers/staging/octeon/ethernet-tx.c | 3 +
> drivers/staging/octeon/ethernet.c | 10 +
> 17 files changed, 674 insertions(+), 4 deletions(-)
>
prev parent reply other threads:[~2015-03-16 19:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-16 18:18 [PATCH 0/7] MIPS: OCTEON: Experimental patches to enable Little Endian Paul Martin
2015-03-16 18:18 ` [PATCH 1/7] MIPS: OCTEON: Ensure CPUs come up little endian Paul Martin
2015-03-16 19:34 ` David Daney
2015-03-27 16:12 ` Paul Martin
2015-03-16 18:18 ` [PATCH 2/7] MIPS: OCTEON: Turn hardware bitfields and structures inside out Paul Martin
2015-03-16 18:18 ` [PATCH 3/7] MIPS: OCTEON: Set appropriate endianness in L2C registers Paul Martin
2015-03-16 18:18 ` [PATCH 4/7] MIPS: OCTEON: Reverse the order of register accesses to the FAU Paul Martin
2015-03-16 18:18 ` [PATCH 5/7] MIPS: OCTEON: Set up ethernet hardware for little endian Paul Martin
2015-03-16 18:18 ` [PATCH 6/7] MIPS: OCTEON: Make octeon-md5 driver endian-agnostic Paul Martin
2015-03-16 18:18 ` [PATCH 7/7] MIPS: OCTEON: Tell the kernel build system we can do Little Endian Paul Martin
2015-03-16 19:19 ` David Daney [this message]
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=55072CAD.7050906@gmail.com \
--to=ddaney.cavm@gmail.com \
--cc=aleksey.makarov@auriga.com \
--cc=linux-mips@linux-mips.org \
--cc=paul.martin@codethink.co.uk \
/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