mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
powerpc/book3s64/mm: enable transparent pud hugepage
This is enabled only with radix translation and 1G hugepage size. This will be used with devdax device memory with a namespace alignment of 1G. Anon transparent hugepage is not supported even though we do have helpers checking pud_trans_huge(). We should never find that return true. The only expected pte bit combination is _PAGE_PTE | _PAGE_DEVMAP. Some of the helpers are never expected to get called on hash translation and hence is marked to call BUG() in such a case. Link: https://lkml.kernel.org/r/20230724190759.483013-10-aneesh.kumar@linux.ibm.com Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Christophe Leroy <christophe.leroy@csgroup.eu> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Joao Martins <joao.m.martins@oracle.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Muchun Song <muchun.song@linux.dev> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Oscar Salvador <osalvador@suse.de> Cc: Will Deacon <will@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
104c49d5b6
commit
27af67f356
@@ -30,6 +30,11 @@ DEFINE_EVENT(hugepage_set, hugepage_set_pmd,
|
||||
TP_ARGS(addr, pmd)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(hugepage_set, hugepage_set_pud,
|
||||
TP_PROTO(unsigned long addr, unsigned long pud),
|
||||
TP_ARGS(addr, pud)
|
||||
);
|
||||
|
||||
DECLARE_EVENT_CLASS(hugepage_update,
|
||||
|
||||
TP_PROTO(unsigned long addr, unsigned long pte, unsigned long clr, unsigned long set),
|
||||
@@ -57,6 +62,11 @@ DEFINE_EVENT(hugepage_update, hugepage_update_pmd,
|
||||
TP_ARGS(addr, pmd, clr, set)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(hugepage_update, hugepage_update_pud,
|
||||
TP_PROTO(unsigned long addr, unsigned long pud, unsigned long clr, unsigned long set),
|
||||
TP_ARGS(addr, pud, clr, set)
|
||||
);
|
||||
|
||||
DECLARE_EVENT_CLASS(migration_pmd,
|
||||
|
||||
TP_PROTO(unsigned long addr, unsigned long pmd),
|
||||
|
||||
Reference in New Issue
Block a user