diff options
Diffstat (limited to 'arch/powerpc/mm/hugetlbpage.c')
-rw-r--r-- | arch/powerpc/mm/hugetlbpage.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 8a9a49c13865..f425b5b37d58 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c | |||
@@ -621,15 +621,12 @@ static int __init add_huge_page_size(unsigned long long size) | |||
621 | * firmware we only add hugetlb support for page sizes that can be | 621 | * firmware we only add hugetlb support for page sizes that can be |
622 | * supported by linux page table layout. | 622 | * supported by linux page table layout. |
623 | * For now we have | 623 | * For now we have |
624 | * Radix: 2M | 624 | * Radix: 2M and 1G |
625 | * Hash: 16M and 16G | 625 | * Hash: 16M and 16G |
626 | */ | 626 | */ |
627 | if (radix_enabled()) { | 627 | if (radix_enabled()) { |
628 | if (mmu_psize != MMU_PAGE_2M) { | 628 | if (mmu_psize != MMU_PAGE_2M && mmu_psize != MMU_PAGE_1G) |
629 | if (cpu_has_feature(CPU_FTR_POWER9_DD1) || | 629 | return -EINVAL; |
630 | (mmu_psize != MMU_PAGE_1G)) | ||
631 | return -EINVAL; | ||
632 | } | ||
633 | } else { | 630 | } else { |
634 | if (mmu_psize != MMU_PAGE_16M && mmu_psize != MMU_PAGE_16G) | 631 | if (mmu_psize != MMU_PAGE_16M && mmu_psize != MMU_PAGE_16G) |
635 | return -EINVAL; | 632 | return -EINVAL; |