[PATCH mm-hotfixes v5 1/2] Introduce cpu_icache_is_aliasing() across all architectures

2024-12-09 Thread Zi Yan
user_(high)page() easier. This will be used by the following commit. Suggested-by: Mathieu Desnoyers Signed-off-by: Zi Yan Reviewed-by: Mathieu Desnoyers Acked-by: Vlastimil Babka --- arch/arc/Kconfig | 1 + arch/arc/include/asm/cachetype.h | 8 include/linux/c

[PATCH mm-hotfixes v5 2/2] mm: use clear_user_(high)page() for arch with special user folio handling

2024-12-09 Thread Zi Yan
om/ Tested-by: Geert Uytterhoeven Signed-off-by: Zi Yan Acked-by: Vlastimil Babka --- include/linux/highmem.h | 8 +++- include/linux/mm.h | 18 ++ mm/huge_memory.c| 9 + mm/internal.h | 6 -- mm/memory.c | 10 +- 5 file

Re: [PATCH v4 2/2] mm: use clear_user_(high)page() for arch with special user folio handling

2024-12-09 Thread Zi Yan
On 9 Dec 2024, at 13:12, Vlastimil Babka wrote: > On 12/7/24 18:16, Zi Yan wrote: >> Some architectures have special handling after clearing user folios: >> architectures, which set cpu_dcache_is_aliasing() to true, require >> flushing dcache; arc, which sets cpu_icache_

[PATCH v4 2/2] mm: use clear_user_(high)page() for arch with special user folio handling

2024-12-07 Thread Zi Yan
ted-by: Geert Uytterhoeven Signed-off-by: Zi Yan --- include/linux/highmem.h | 8 +++- include/linux/mm.h | 18 ++ mm/huge_memory.c| 9 + mm/internal.h | 6 -- mm/memory.c | 10 +- 5 files changed, 35 insertions(+),

[PATCH v4 1/2] Introduce cpu_icache_is_aliasing() across all architectures

2024-12-07 Thread Zi Yan
user_(high)page() easier. This will be used by the following commit. Suggested-by: Mathieu Desnoyers Signed-off-by: Zi Yan Reviewed-by: Mathieu Desnoyers --- arch/arc/Kconfig | 1 + arch/arc/include/asm/cachetype.h | 8 include/linux/cacheinfo.h| 6 ++ 3 fil

[PATCH v3 2/2] mm: use clear_user_(high)page() for arch with special user folio handling

2024-12-07 Thread Zi Yan
ify its intend. Fixes: 5708d96da20b ("mm: avoid zeroing user movable page twice with init_on_alloc=1") Reported-by: Geert Uytterhoeven Closes: https://lore.kernel.org/linux-mm/CAMuHMdV1hRp_NtR5YnJo=hsfgkqeh91j537gh4gkk3pfzhs...@mail.gmail.com/ Tested-by: Geert Uytterhoeven Signed-o

[PATCH v3 1/2] Introduce cpu_icache_is_aliasing() across all architectures

2024-12-07 Thread Zi Yan
user_(high)page() easier. This will be used by the following commit. Suggested-by: Mathieu Desnoyers Signed-off-by: Zi Yan --- arch/arc/Kconfig | 1 + arch/arc/include/asm/cachetype.h | 8 include/linux/cacheinfo.h| 6 ++ 3 files changed, 15 insertions(+) c

[PATCH] arch: mm: rename FORCE_MAX_ZONEORDER to ARCH_FORCE_MAX_ORDER

2022-08-15 Thread Zi Yan
From: Zi Yan This Kconfig option is used by individual arch to set its desired MAX_ORDER. Rename it to reflect its actual use. Acked-by: Mike Rapoport Signed-off-by: Zi Yan Cc: Vineet Gupta Cc: Shawn Guo Cc: Taichi Sugaya Cc: Neil Armstrong Cc: Qin Jian Cc: Catalin Marinas Cc: Guo Ren

[RFC PATCH 02/15] arch: mm: rename FORCE_MAX_ZONEORDER to ARCH_FORCE_MAX_ORDER

2021-08-05 Thread Zi Yan
From: Zi Yan This Kconfig option is used by individual arch to set its desired MAX_ORDER. Rename it to reflect its actual use. Signed-off-by: Zi Yan Cc: Vineet Gupta Cc: Shawn Guo Cc: Catalin Marinas Cc: Guo Ren Cc: Geert Uytterhoeven Cc: Thomas Bogendoerfer Cc: Ley Foon Tan Cc: Michael

Re: [PATCH V2 1/3] mm/debug: Add tests validating arch page table helpers for core features

2020-03-26 Thread Zi Yan
On 25 Mar 2020, at 22:18, Anshuman Khandual wrote: > External email: Use caution opening links or attachments > > > On 03/24/2020 06:59 PM, Zi Yan wrote: >> On 24 Mar 2020, at 1:22, Anshuman Khandual wrote: >> >>> This adds new tests validating arch page table hel

Re: [PATCH V2 1/3] mm/debug: Add tests validating arch page table helpers for core features

2020-03-24 Thread Zi Yan
On 24 Mar 2020, at 1:22, Anshuman Khandual wrote: > This adds new tests validating arch page table helpers for these following > core memory features. These tests create and test specific mapping types at > various page table levels. > > 1. SPECIAL mapping > 2. PROTNONE mapping > 3. DEVMAP mapping

[RFC PATCH 0/9] Enable THP migration for all possible architectures

2018-04-26 Thread Zi Yan
From: Zi Yan Hi all, THP migration is only enabled on x86_64 with a special ARCH_ENABLE_THP_MIGRATION macro. This patchset enables THP migration for all architectures that uses transparent hugepage, so that special macro can be dropped. Instead, THP migration is enabled/disabled via /sys/kernel

[RFC PATCH 9/9] mm: migrate: enable thp migration for all possible architectures.

2018-04-26 Thread Zi Yan
From: Zi Yan Remove CONFIG_ARCH_ENABLE_THP_MIGRATION. thp migration is enabled along with transparent hugepage and can be toggled via /sys/kernel/mm/transparent_hugepage/enable_thp_migration. Signed-off-by: Zi Yan Cc: linux...@kvack.org Cc: Vineet Gupta Cc: linux-snps-arc@lists.infradead.org

[RFC PATCH 1/9] arc: mm: migrate: add pmd swap entry to support thp migration.

2018-04-26 Thread Zi Yan
From: Zi Yan Signed-off-by: Zi Yan Cc: Vineet Gupta Cc: linux-snps-arc@lists.infradead.org Cc: linux...@kvack.org --- arch/arc/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arc/include/asm/pgtable.h b/arch/arc/include/asm/pgtable.h index 08fe33830d4b