* [PATCH master] ARM: mmu32: mark whole early pagetable region as reserved
@ 2023-08-31 9:09 Ahmad Fatoum
2023-09-04 9:08 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2023-08-31 9:09 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
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(-)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH master] ARM: mmu32: mark whole early pagetable region as reserved
2023-08-31 9:09 [PATCH master] ARM: mmu32: mark whole early pagetable region as reserved Ahmad Fatoum
@ 2023-09-04 9:08 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2023-09-04 9:08 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
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 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-04 9:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-31 9:09 [PATCH master] ARM: mmu32: mark whole early pagetable region as reserved Ahmad Fatoum
2023-09-04 9:08 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox