linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: jeremy.linton@arm.com (Jeremy Linton)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: mm: Prevent the initial page table setup from creating larger blocks
Date: Wed, 25 Nov 2015 16:58:52 -0600	[thread overview]
Message-ID: <56563D2C.7050807@arm.com> (raw)
In-Reply-To: <1448387338-27851-1-git-send-email-catalin.marinas@arm.com>

On 11/24/2015 11:48 AM, Catalin Marinas wrote:
> This patch prevents the larger block mappings at all levels _if_ the
> existing pud/pmd entry is present _and_ not already a block mapping.
> Contiguous ptes are rejected if any of the entries in the range are
> non-empty and non-contiguous.
>
> In addition, TLB flushing is added for the cases where an existing block
> entry is changed.

Ok, it seems to boot fairly reliably on the m400/ACPI, over a few dozen 
reboots yesterday and today. So, for that:

Tested-by: Jeremy Linton <jeremy.linton@arm.com>

That said, it basically disables the CONT ranges for the main kernel 
text section.

With this patch:

0xfffffe0000000000-0xfffffe0000090000 (paddr=0x4000000000)        576K 
    RW NX SHD AF            UXN MEM/NORMAL
0xfffffe0000090000-0xfffffe0000c50000 (paddr=0x4000090000)      12032K 
    ro x  SHD AF            UXN MEM/NORMAL
0xfffffe0000c50000-0xfffffe0001600000 (paddr=0x4000c50000)       9920K 
    RW NX SHD AF            UXN MEM/NORMAL
0xfffffe0001600000-0xfffffe0020000000 (paddr=0x4001600000)        490M 
    RW NX SHD AF    CON     UXN MEM/NORMAL
0xfffffe0020000000-0xfffffe1000000000 (paddr=0x4020000000)      65024M 
    RW NX SHD AF        BLK UXN MEM/NORMAL

without:

0xfffffe0000000000-0xfffffe0000090000 (paddr=0x4000000000)        576K 
    RW NX SHD AF            UXN MEM/NORMAL
0xfffffe0000090000-0xfffffe0000200000 (paddr=0x4000090000)       1472K 
    ro x  SHD AF            UXN MEM/NORMAL
0xfffffe0000200000-0xfffffe0000c00000 (paddr=0x4000200000)         10M 
    ro x  SHD AF    CON     UXN MEM/NORMAL
0xfffffe0000c00000-0xfffffe0000c50000 (paddr=0x4000c00000)        320K 
    ro x  SHD AF            UXN MEM/NORMAL
0xfffffe0000c50000-0xfffffe0000e00000 (paddr=0x4000c50000)       1728K 
    RW NX SHD AF            UXN MEM/NORMAL
0xfffffe0000e00000-0xfffffe0020000000 (paddr=0x4000e00000)        498M 
    RW NX SHD AF    CON     UXN MEM/NORMAL
0xfffffe0020000000-0xfffffe1000000000 (paddr=0x4020000000)      65024M 
    RW NX SHD AF        BLK UXN MEM/NORMAL

  parent reply	other threads:[~2015-11-25 22:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-24 17:48 [PATCH] arm64: mm: Prevent the initial page table setup from creating larger blocks Catalin Marinas
2015-11-25 16:31 ` Jeremy Linton
2015-11-25 18:08   ` Catalin Marinas
2015-11-25 22:58 ` Jeremy Linton [this message]
2015-11-26 16:06   ` Catalin Marinas

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=56563D2C.7050807@arm.com \
    --to=jeremy.linton@arm.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).