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 7c5f479c5c00..ec7538a802f9 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c | |||
@@ -620,15 +620,12 @@ static int __init add_huge_page_size(unsigned long long size) | |||
620 | * firmware we only add hugetlb support for page sizes that can be | 620 | * firmware we only add hugetlb support for page sizes that can be |
621 | * supported by linux page table layout. | 621 | * supported by linux page table layout. |
622 | * For now we have | 622 | * For now we have |
623 | * Radix: 2M | 623 | * Radix: 2M and 1G |
624 | * Hash: 16M and 16G | 624 | * Hash: 16M and 16G |
625 | */ | 625 | */ |
626 | if (radix_enabled()) { | 626 | if (radix_enabled()) { |
627 | if (mmu_psize != MMU_PAGE_2M) { | 627 | if (mmu_psize != MMU_PAGE_2M && mmu_psize != MMU_PAGE_1G) |
628 | if (cpu_has_feature(CPU_FTR_POWER9_DD1) || | 628 | return -EINVAL; |
629 | (mmu_psize != MMU_PAGE_1G)) | ||
630 | return -EINVAL; | ||
631 | } | ||
632 | } else { | 629 | } else { |
633 | if (mmu_psize != MMU_PAGE_16M && mmu_psize != MMU_PAGE_16G) | 630 | if (mmu_psize != MMU_PAGE_16M && mmu_psize != MMU_PAGE_16G) |
634 | return -EINVAL; | 631 | return -EINVAL; |