From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: mfe@pengutronix.de, sha@pengutronix.de,
Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH master] ARM: mmu: increase early page table size to 256K for now
Date: Fri, 22 Aug 2025 16:01:11 +0200 [thread overview]
Message-ID: <20250822140111.811702-1-a.fatoum@barebox.org> (raw)
With recent changes for W^X, the size of our early page tables have grown
in some cases, so they no longer fit into the 64K we reserve for them.
This has been observed in at least two ARM64 platforms:
- i.MX8M with OP-TEE at start of RAM (on master)
- Raspberry Pi Zero 2 without OP-TEE (on next)
It's very likely we are overly wasteful of space, but until that's fixed
properly, increase the size reserved for our early page tables.
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
arch/arm/include/asm/barebox-arm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h
index da6f5d528338..11be8b85837e 100644
--- a/arch/arm/include/asm/barebox-arm.h
+++ b/arch/arm/include/asm/barebox-arm.h
@@ -26,7 +26,7 @@
#include <linux/stringify.h>
#include <pbl/handoff-data.h>
-#define ARM_EARLY_PAGETABLE_SIZE SZ_64K
+#define ARM_EARLY_PAGETABLE_SIZE SZ_256K
#define handoff_add_arm_machine(machine) \
do { \
--
2.39.5
next reply other threads:[~2025-08-23 6:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-22 14:01 Ahmad Fatoum [this message]
2025-08-22 16:28 ` Marco Felsch
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=20250822140111.811702-1-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
--cc=mfe@pengutronix.de \
--cc=sha@pengutronix.de \
/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