[PATCH mm-unstable v2 16/16] mm: Respect mmap hint before THP alignment if allocation is possible

2024-12-11 Thread Kalesh Singh
Commit 249608ee4713 ("mm: respect mmap hint address when aligning for THP") fallsback to PAGE_SIZE alignment instead of THP alignment for anonymous mapping as long as a hint address is provided by the user -- even if we weren't able to allocate the unmapped area at the hint address in the end. Thi

[PATCH mm-unstable v2 00/16] mm: Introduce arch_mmap_hint()

2024-12-11 Thread Kalesh Singh
Hi all, This is v2 othe the arch_mmap_hint() series. Changes in v2: - MAP_FIXED case is also handled in arch_mmap_hint() since this is just a special case of the hint addr being "enforced", per Yang Shi. - Consolidate most of the error handling in arch_mmap_hint(). - Patch 16 ("mm: Fall

[PATCH mm-unstable v2 08/16] mm: mips: Introduce arch_align_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce mips arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED case is also handled in arch_mmap_hint() since this is just a special case of the hint addr being "enf

Re: [PATCH 1/2] asm-generic: provide generic page_to_phys and phys_to_page implementations

2024-12-11 Thread patchwork-bot+linux-riscv
Hello: This series was applied to riscv/linux.git (fixes) by Arnd Bergmann : On Wed, 23 Oct 2024 07:36:36 +0200 you wrote: > page_to_phys is duplicated by all architectures, and from some strange > reason placed in where it doesn't fit at all. > > phys_to_page is only provided by a few architec

[PATCH mm-unstable v2 07/16] mm: loongarch: Introduce arch_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce loongarch arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED case is also handled in arch_mmap_hint() since this is just a special case of the hint addr being

[PATCH mm-unstable v2 14/16] mm: xtensa: Introduce arch_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce xtensa arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. If a sufficiently sized hole doesn't exist at the hint address, fallback to searching the entire valid VA space instead of only the VA space above the hint address. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED cas

[PATCH mm-unstable v2 13/16] mm: sparc64: Introduce arch_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce sparc64 arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED case is also handled in arch_mmap_hint() since this is just a special case of the hint addr being "

[PATCH mm-unstable v2 15/16] mm: powerpc: Introduce arch_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce powerpc arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Signed-off-by: Kalesh Singh --- arch/powerpc/include/asm/book3s/64/slice.h | 1 + arch/powerpc/mm/book3s64/slice.c | 31 ++ 2 files c

[PATCH mm-unstable v2 11/16] mm: sh: Introduce arch_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce sh arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED case is also handled in arch_mmap_hint() since this is just a special case of the hint addr being "enfor

[PATCH mm-unstable v2 06/16] mm: csky: Introduce arch_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce csky arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED case is also handled in arch_mmap_hint() since this is just a special case of the hint addr being "enf

[PATCH mm-unstable v2 05/16] mm: arc: Use generic_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce arc arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED case is also handled in arch_mmap_hint() since this is just a special case of the hint addr being "enfo

[PATCH mm-unstable v2 09/16] mm: parisc: Introduce arch_align_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce parisc arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED case is also handled in arch_mmap_hint() since this is just a special case of the hint addr being "e

[PATCH mm-unstable v2 04/16] mm: alpha: Introduce arch_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce alpha arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Signed-off-by: Kalesh Singh --- Changes in v2: - Consolidate error handling in arch_mmap_hint(). arch/alpha/include/asm/pgtable.h | 1 + arch/alpha/kernel/osf_sy

[PATCH mm-unstable v2 12/16] mm: sparc32: Introduce arch_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce sparc32 arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. If a sufficiently sized hole doesn't exist at the hint address, fallback to searching the entire valid VA space instead of only the VA space above the hint address. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED ca

[PATCH mm-unstable v2 10/16] mm: s390: Use generic_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce s390 arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED case is also handled in arch_mmap_hint() since this is just a special case of the hint addr being "enf

[PATCH mm-unstable v2 02/16] mm: x86: Introduce arch_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce x86 arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Fallback to generic_mmap_hint() if an architecture doesn't provide HAVE_ARCH_MMAP_HINT. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED case is also handl

[PATCH mm-unstable v2 01/16] mm: Introduce generic_mmap_hint()

2024-12-11 Thread Kalesh Singh
Consolidate the hint searches from both directions (topdown and bottomup) into generic_mmap_hint(). No functional change is introduced. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED case is also handled in arch_mmap_hint() since this is just a special case of the hint addr be

[PATCH mm-unstable v2 03/16] mm: arm: Introduce arch_mmap_hint()

2024-12-11 Thread Kalesh Singh
Introduce arm arch_mmap_hint() and define HAVE_ARCH_MMAP_HINT. This is a preparatory patch, no functional change is introduced. Signed-off-by: Kalesh Singh --- Changes in v2: - MAP_FIXED case is also handled in arch_mmap_hint() since this is just a special case of the hint addr being "enfo