mm/ioremap: probe platform for p4d huge map support
Finish up what commit c2febafc67
("mm: convert generic code to 5-level
paging") started while levelling up P4D huge mapping support at par with
PUD and PMD. A new arch call back arch_ioremap_p4d_supported() is added
which just maintains status quo (P4D huge map not supported) on x86,
arm64 and powerpc.
When HAVE_ARCH_HUGE_VMAP is enabled its just a simple check from the
arch about the support, hence runtime effects are minimal.
Link: http://lkml.kernel.org/r/1561699231-20991-1-git-send-email-anshuman.khandual@arm.com
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

gecommit door
Linus Torvalds

bovenliggende
6b95ab4218
commit
0f472d04f5
@@ -30,6 +30,8 @@ early_param("nohugeiomap", set_nohugeiomap);
|
||||
void __init ioremap_huge_init(void)
|
||||
{
|
||||
if (!ioremap_huge_disabled) {
|
||||
if (arch_ioremap_p4d_supported())
|
||||
ioremap_p4d_capable = 1;
|
||||
if (arch_ioremap_pud_supported())
|
||||
ioremap_pud_capable = 1;
|
||||
if (arch_ioremap_pmd_supported())
|
||||
|
Verwijs in nieuw issue
Block a user