linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: Oops at boot after commit 965278dcb8ab... when using split memory region
Date: Wed, 1 Jul 2015 19:57:22 +0100	[thread overview]
Message-ID: <20150701185722.GN7557@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20150701180618.GI2310@leverpostej>

On Wed, Jul 01, 2015 at 07:06:19PM +0100, Mark Rutland wrote:
> On Wed, Jul 01, 2015 at 04:40:07PM +0100, Mark Rutland wrote:
> > Certainly. I did not mean to imply otherwise.
> > 
> > Using a similar command line I can reproduce the issue on TC2, getting a
> > hang when freeing unused kernel memory. I'm digging into that now.
> 
> If I pass mem=56316K at 0${MY_MEM_BASE} (i.e. 55M - 4K), I get hangs with
> and without commit 965278dcb8ab. It looks like we have a latent bug when
> a bank is insufficiently aligned, and my patch increased that necessary
> alignment from 1M to 2M.

It's not a latent bug.  I've _always_ said that memory banks _must_ be
aligned to a section boundary, because that's what the ARM MM layer has
been coded for.

Yes, we've recently been _trying_ to relax that restriction, and what
we're finding is that it's not trivial to do - we're constantly running
into these "it causes the kernel to stop booting on X" bugs, or worse
"fixing X causes plaforms Y to work but causes platforms Z to break."

Maybe we should just stop trying, and instead go back to the old
requirement of requiring banks of memory aligned to a section, and be
done with it.

In any case, to call this a "latent bug" is incorrect - we've merely
been trying so far _unsuccessfully_ to extend the ARM MM layer to accept
something that it's never accepted before.

-- 
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.

  reply	other threads:[~2015-07-01 18:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-01 14:15 Oops at boot after commit 965278dcb8ab... when using split memory region jean-philippe francois
2015-07-01 14:46 ` Mark Rutland
2015-07-01 14:53   ` Russell King - ARM Linux
2015-07-01 15:40     ` Mark Rutland
2015-07-01 18:06       ` Mark Rutland
2015-07-01 18:57         ` Russell King - ARM Linux [this message]
2015-07-02  0:41       ` Laura Abbott
2015-07-03 17:23         ` Mark Rutland

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=20150701185722.GN7557@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --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).