linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: small correction to early_ioremap support
@ 2017-06-27  0:57 Doug Berger
  2017-06-27 10:46 ` Ard Biesheuvel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Doug Berger @ 2017-06-27  0:57 UTC (permalink / raw)
  To: linux-arm-kernel

The fixmap pages need to be on the same pmd page for the current
implementation of arm early_fixmap.  A build time bug check is
used to ensure that.  However, the worst case fixmap range is
better represented by __end_of_fixed_addresses than by the value
__end_of_early_ioremap_region.

Fixes: 2937367b8a4b ("ARM: add support for generic early_ioremap/early_memremap")
Signed-off-by: Doug Berger <opendmb@gmail.com>
---
 arch/arm/mm/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index 31af3cb59a60..74c0ed5c3b08 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -392,7 +392,7 @@ void __init early_fixmap_init(void)
 	 * The early fixmap range spans multiple pmds, for which
 	 * we are not prepared:
 	 */
-	BUILD_BUG_ON((__fix_to_virt(__end_of_early_ioremap_region) >> PMD_SHIFT)
+	BUILD_BUG_ON((__fix_to_virt(__end_of_fixed_addresses) >> PMD_SHIFT)
 		     != FIXADDR_TOP >> PMD_SHIFT);
 
 	pmd = fixmap_pmd(FIXADDR_TOP);
-- 
2.13.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-28  2:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-27  0:57 [PATCH] ARM: small correction to early_ioremap support Doug Berger
2017-06-27 10:46 ` Ard Biesheuvel
2017-06-27 21:42 ` kbuild test robot
2017-06-28  2:44 ` Doug Berger

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).