linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: sunxi: enable big-endian
Date: Mon, 25 Jul 2016 14:25:22 +0200	[thread overview]
Message-ID: <20160725122522.GL7419@lukather> (raw)
In-Reply-To: <20160722135658.GA18977@weiser.dinsnail.net>

On Fri, Jul 22, 2016 at 03:56:58PM +0200, Michael Weiser wrote:
> Hi Maxime,
> 
> On Fri, Jul 22, 2016 at 11:01:01AM +0200, Maxime Ripard wrote:
> 
> > > At least the Cubieboard2 incarnation of sunxi works correctly in
> > > big-endian mode. Allow the selection of big-endian.
> > With what devices has it been tested? The one doing DMA will probably
> > be the one who fail, have you tested the DMA engine? EMAC? GMAC?
> 
> I've tested with a Cubieboard2 Two-Card (on-board EMMC replaced with a
> second slot). I ran into and fixed DMA problems with stmmac (that's
> GMAC) and sunxi-mmc. Patches are submitted as part of this patchset.
> Endianness fixes to stmmac went much farther than just GMAC but remain
> untested since the Cubieboard2 only uses GMAC.
> 
> I have also successfully used SATA, SPI, UART, security system (with
> cryptodev), the hwmon part of the touchscreen controller, pinctrl with a
> custom interrupt pin via fdt for ethernet via SPI (ENC28J60), watchdog
> as reset controller, onboard RTC and external battery-backed DS1307 RTC
> via I2C. I have not deliberately/synthetically tested the DMA engine. It's
> enabled in the my kernel config and seems happy but was not selected by
> any other driver so seems to be unused currently.

You can test the DMA using the audio components, either the codec, i2s
or spdif. EMAC would be worth testing too.

> I was reluctant to enable big endian support this generically but found
> no better way. Since board specifics are in device tree now, I can't
> really do a && CONFIG_MACH_CUBIEBOARD2 or somesuch. Or can I?

Not really, but it doesn't really matter, since all those drivers are
at the SoC level and should affect all boards equally. And you have
MACH_SUN7I :)

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160725/5783092e/attachment.sig>

  reply	other threads:[~2016-07-25 12:25 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 [this message]
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
  -- 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=20160725122522.GL7419@lukather \
    --to=maxime.ripard@free-electrons.com \
    --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).