linux/arch
Kefeng Wang 9cf6a060f9 arm64: hugetlb: enable __HAVE_ARCH_FLUSH_HUGETLB_TLB_RANGE
It is better to use huge page size instead of PAGE_SIZE for stride when
flush hugepage, which reduces the loop in __flush_tlb_range().

Let's support arch's flush_hugetlb_tlb_range(), which is used in
hugetlb_unshare_all_pmds(), move_hugetlb_page_tables() and
hugetlb_change_protection() for now.

Note,: for hugepages based on contiguous bit, it has to be invalidated
individually since the contiguous PTE bit is just a hint, the hardware may
or may not take it into account.

Link: https://lkml.kernel.org/r/20230802012731.62512-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Barry Song <21cnbao@gmail.com>
Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Cc: Kalesh Singh <kaleshsingh@google.com>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Mina Almasry <almasrymina@google.com>
Cc: Will Deacon <will@kernel.org>
Cc: William Kucharski <william.kucharski@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-08-21 13:37:40 -07:00
..
alpha Merge branch 'expand-stack' 2023-06-28 20:35:21 -07:00
arc arc: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:33 -07:00
arm arm: adjust_pte() use pte_offset_map_nolock() 2023-08-18 10:12:23 -07:00
arm64 arm64: hugetlb: enable __HAVE_ARCH_FLUSH_HUGETLB_TLB_RANGE 2023-08-21 13:37:40 -07:00
csky arch/csky patches for 6.5 2023-07-01 21:12:32 -07:00
hexagon hexagon: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:32 -07:00
ia64 ia64: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:33 -07:00
loongarch mm/vmemmap optimization: split hugetlb and devdax vmemmap optimization 2023-08-18 10:12:54 -07:00
m68k asm-generic/iomap.h: remove ARCH_HAS_IOREMAP_xx macros 2023-08-18 10:12:32 -07:00
microblaze slab updates for 6.5 2023-06-29 16:34:12 -07:00
mips asm-generic/iomap.h: remove ARCH_HAS_IOREMAP_xx macros 2023-08-18 10:12:32 -07:00
nios2 slab updates for 6.5 2023-06-29 16:34:12 -07:00
openrisc openrisc: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:34 -07:00
parisc parisc: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:35 -07:00
powerpc powerpc/book3s64/radix: add debug message to give more details of vmemmap allocation 2023-08-18 10:12:56 -07:00
riscv mm/vmemmap optimization: split hugetlb and devdax vmemmap optimization 2023-08-18 10:12:54 -07:00
s390 mm/vmemmap optimization: split hugetlb and devdax vmemmap optimization 2023-08-18 10:12:54 -07:00
sh sh: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:34 -07:00
sparc sparc: add pte_free_defer() for pte_t *pgtable_t 2023-08-18 10:12:24 -07:00
um arch/*/configs/*defconfig: Replace AUTOFS4_FS by AUTOFS_FS 2023-07-29 14:08:22 -07:00
x86 mm/vmemmap optimization: split hugetlb and devdax vmemmap optimization 2023-08-18 10:12:54 -07:00
xtensa xtensa: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:35 -07:00
.gitignore
Kconfig - Arnd Bergmann has fixed a bunch of -Wmissing-prototypes in 2023-06-28 10:59:38 -07:00