]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: fixmap: Allow 256K early_ioremap() at any offset
authorYu Peng <pengyu@kylinos.cn>
Wed, 8 Jul 2026 02:35:14 +0000 (10:35 +0800)
committerWill Deacon <will@kernel.org>
Thu, 16 Jul 2026 13:50:30 +0000 (14:50 +0100)
commit21fc7ec93f8b633b60d5bddef2f1529ff6b36185
tree06ea173097a1190d36f8c5ad2edc4c829a6d5c61
parent977f52909c624210178a1247fab0b02b110c1106
arm64: fixmap: Allow 256K early_ioremap() at any offset

NR_FIX_BTMAPS is the per-slot page limit for early_ioremap(). Since
__early_ioremap() maps the page-aligned physical range, a 256K request
can require one extra page when the physical address is not page-aligned.

Reserve one extra page per slot so the 256K mapping budget is usable
regardless of the initial page offset.

Link: https://lore.kernel.org/r/08fd96fa-ee3a-4904-bd11-bb08bd90436f@kylinos.cn
Signed-off-by: Yu Peng <pengyu@kylinos.cn>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/fixmap.h