diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-07-05 04:47:00 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-07-15 21:37:21 -0400 |
commit | 2bf1071a8d50928a4ae366bb3108833166c2b70c (patch) | |
tree | ebffef07f7ebbb9bb1ba231c4cb8ff00cc6fd795 /arch/powerpc/mm/hugetlbpage.c | |
parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) |
powerpc/64s: Remove POWER9 DD1 support
POWER9 DD1 was never a product. It is no longer supported by upstream
firmware, and it is not effectively supported in Linux due to lack of
testing.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Michael Ellerman <mpe@ellerman.id.au>
[mpe: Remove arch_make_huge_pte() entirely]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
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; |