]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/powerpc/mm/hugetlbpage.c
Merge branch 'topic/ppc-kvm' into next
[linux.git] / arch / powerpc / mm / hugetlbpage.c
index 8a9a49c138652ba2b971a265db233988e01aa7b1..f425b5b37d58de4dd940b3ad2a670b2019394cd3 100644 (file)
@@ -621,15 +621,12 @@ static int __init add_huge_page_size(unsigned long long size)
         * firmware we only add hugetlb support for page sizes that can be
         * supported by linux page table layout.
         * For now we have
-        * Radix: 2M
+        * Radix: 2M and 1G
         * Hash: 16M and 16G
         */
        if (radix_enabled()) {
-               if (mmu_psize != MMU_PAGE_2M) {
-                       if (cpu_has_feature(CPU_FTR_POWER9_DD1) ||
-                           (mmu_psize != MMU_PAGE_1G))
-                               return -EINVAL;
-               }
+               if (mmu_psize != MMU_PAGE_2M && mmu_psize != MMU_PAGE_1G)
+                       return -EINVAL;
        } else {
                if (mmu_psize != MMU_PAGE_16M && mmu_psize != MMU_PAGE_16G)
                        return -EINVAL;