mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH master] ARM: mmu32: mark whole early pagetable region as reserved
Date: Mon, 4 Sep 2023 11:08:56 +0200	[thread overview]
Message-ID: <20230904090856.GE189379@pengutronix.de> (raw)
In-Reply-To: <20230831090943.3778087-1-a.fatoum@pengutronix.de>

On Thu, Aug 31, 2023 at 11:09:43AM +0200, Ahmad Fatoum wrote:
> The TTB area allocated for early MMU is now 64K instead of 16K, yet only
> the old 16K were requested to ensure e.g. memtest doesn't touch them.
> 
> Fix this by requesting the full region.
> 
> Fixes: 407ff71a3b5d ("ARM: mmu: alloc 64k for early page tables")
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  arch/arm/cpu/mmu_32.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/cpu/mmu_32.c b/arch/arm/cpu/mmu_32.c
> index ebe92969997e..3ed76e30840a 100644
> --- a/arch/arm/cpu/mmu_32.c
> +++ b/arch/arm/cpu/mmu_32.c
> @@ -561,7 +561,8 @@ void __mmu_init(bool mmu_on)
>  	struct memory_bank *bank;
>  	uint32_t *ttb = get_ttb();
>  
> -	if (!request_sdram_region("ttb", (unsigned long)ttb, SZ_16K))
> +	if (!request_sdram_region("ttb", (unsigned long)ttb,
> +				  ARM_EARLY_PAGETABLE_SIZE))
>  		/*
>  		 * This can mean that:
>  		 * - the early MMU code has put the ttb into a place
> -- 
> 2.39.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



      reply	other threads:[~2023-09-04  9:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-31  9:09 Ahmad Fatoum
2023-09-04  9:08 ` Sascha Hauer [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=20230904090856.GE189379@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@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