All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: James Hogan <james.hogan@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>, linux-mips@linux-mips.org
Subject: Re: [PATCH 0/2] MIPS: Memory setup tweaks
Date: Tue, 16 Aug 2016 17:36:07 +0200	[thread overview]
Message-ID: <20160816153606.GF3894@linux-mips.org> (raw)
In-Reply-To: <cover.842913b0756706569a896ef308bb5bf98be4f0ce.1470745146.git-series.james.hogan@imgtec.com>

On Tue, Aug 09, 2016 at 01:21:47PM +0100, James Hogan wrote:

> Here are a couple of tweaks for MIPS memory setup, primarily in order to
> handle memory which extends right up to the end of physical memory on
> 32-bit systems with 32-bit phys_addr_t. More specifically we omit the
> final page of physical memory to avoid the overflow (see patch 1 for
> details).
> 
> Patch 2 improves the rounding in the MAAR setup, so as to include the
> first full page of an already aligned region, and to avoid a BUG_ON for
> regions with non 64-KByte aligned end addresses (which I happened to hit
> while working on a different version of patch 1 which wasn't correctly
> merging the kernel data section into the main RAM region).

There's a DMA issue with one of the system controllers on Malta which
afair only affects one endianess and can be worked around by not using
the last bit of memory. That isn't the only platform having such issues
I've seen and debugging has always been very painful so I'm wondering
if as a general precaution we should just leave the last page of memory
unused.

  Ralf

  parent reply	other threads:[~2016-08-16 15:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-09 12:21 [PATCH 0/2] MIPS: Memory setup tweaks James Hogan
2016-08-09 12:21 ` James Hogan
2016-08-09 12:21 ` [PATCH 1/2] MIPS: Allow memory reaching top of physical James Hogan
2016-08-09 12:21   ` James Hogan
2016-08-09 12:21 ` [PATCH 2/2] MIPS: MAAR: Fix address alignment James Hogan
2016-08-09 12:21   ` James Hogan
2016-08-16 15:36 ` Ralf Baechle [this message]
2016-08-16 15:39   ` [PATCH 0/2] MIPS: Memory setup tweaks James Hogan
2016-08-16 15:39     ` James Hogan

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=20160816153606.GF3894@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=james.hogan@imgtec.com \
    --cc=linux-mips@linux-mips.org \
    --cc=paul.burton@imgtec.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.