* mm-next: manual merge of the akpm/mm-unstable branch
@ 2026-11-23 17:33 David Hildenbrand (Arm)
2026-11-23 18:34 ` Andrew Morton
0 siblings, 1 reply; 14+ messages in thread
From: David Hildenbrand (Arm) @ 2026-11-23 17:33 UTC (permalink / raw)
To: akpm@linux-foundation.org, Vlastimil Babka, Johannes Weiner
Cc: mm-commits@vger.kernel.org
Hi,
today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
include/linux/alloc_tag.h
between the commit:
dbbc5a3d50f9 mm: vmscan: tell direct reclaim the allocation is ALLOC_NOFRAGMENT
from the page_alloc/page_alloc/for-next branch and the commit:
2cc623f19566 mm/vmscan: move vmscan tracepoints to a local header
from the akpm/mm-unstable branch.
The conflict doesn't make any sense, because we're really touching something very unrelated.
It's likely a merge config problem on my end.
I resolved the conflicts manually for now and shall investigate:
diff --git a/mm/vmscan.c b/mm/vmscan.c
index e94d58aa2626..1b3acbbfed15 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -72,8 +72,7 @@
#include "swap.h"
#define CREATE_TRACE_POINTS
-<<<<<<< HEAD
-#include <trace/events/vmscan.h>
+#include "trace_vmscan.h"
struct scan_control {
/* How many pages shrink_list() should reclaim */
@@ -185,9 +184,6 @@ struct scan_control {
/* for recording the reclaimed slab by now */
struct reclaim_state reclaim_state;
};
-=======
-#include "trace_vmscan.h"
->>>>>>> akpm/mm-unstable
#ifdef ARCH_HAS_PREFETCHW
static inline void prefetchw_prev_lru_folio(struct folio *folio,
--
Cheers,
David
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: mm-next: manual merge of the akpm/mm-unstable branch
2026-11-23 17:33 mm-next: manual merge of the akpm/mm-unstable branch David Hildenbrand (Arm)
@ 2026-11-23 18:34 ` Andrew Morton
2026-11-23 18:50 ` David Hildenbrand (Arm)
0 siblings, 1 reply; 14+ messages in thread
From: Andrew Morton @ 2026-11-23 18:34 UTC (permalink / raw)
To: David Hildenbrand (Arm)
Cc: Vlastimil Babka, Johannes Weiner, mm-commits@vger.kernel.org,
Ridong Chen
On Mon, 23 Nov 2026 18:33:36 +0100 "David Hildenbrand (Arm)" <david@kernel.org> wrote:
> today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
>
> include/linux/alloc_tag.h
>
> between the commit:
>
> dbbc5a3d50f9 mm: vmscan: tell direct reclaim the allocation is ALLOC_NOFRAGMENT
>
> from the page_alloc/page_alloc/for-next branch and the commit:
>
> 2cc623f19566 mm/vmscan: move vmscan tracepoints to a local header
>
> from the akpm/mm-unstable branch.
>
> The conflict doesn't make any sense, because we're really touching something very unrelated.
> It's likely a merge config problem on my end.
>
> I resolved the conflicts manually for now and shall investigate:
Ridong's series "mm/vmscan: move tracepoints to mm/ and add MGLRU
tracepoints" is large and contains a lot of optional code movement.
So I think at this time we should drop it and ask Ridong for a much
smaller and tighter patch[set] which just adds those MGLRU tracepoints.
wdyt?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mm-next: manual merge of the akpm/mm-unstable branch
2026-11-23 18:34 ` Andrew Morton
@ 2026-11-23 18:50 ` David Hildenbrand (Arm)
2026-11-24 10:18 ` Vlastimil Babka (SUSE)
0 siblings, 1 reply; 14+ messages in thread
From: David Hildenbrand (Arm) @ 2026-11-23 18:50 UTC (permalink / raw)
To: Andrew Morton
Cc: Vlastimil Babka, Johannes Weiner, mm-commits@vger.kernel.org,
Ridong Chen
On 11/23/26 19:34, Andrew Morton wrote:
> On Mon, 23 Nov 2026 18:33:36 +0100 "David Hildenbrand (Arm)" <david@kernel.org> wrote:
>
>> today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
>>
>> include/linux/alloc_tag.h
>>
>> between the commit:
>>
>> dbbc5a3d50f9 mm: vmscan: tell direct reclaim the allocation is ALLOC_NOFRAGMENT
>>
>> from the page_alloc/page_alloc/for-next branch and the commit:
>>
>> 2cc623f19566 mm/vmscan: move vmscan tracepoints to a local header
>>
>> from the akpm/mm-unstable branch.
>>
>> The conflict doesn't make any sense, because we're really touching something very unrelated.
>> It's likely a merge config problem on my end.
>>
>> I resolved the conflicts manually for now and shall investigate:
Scrap the above, it's more complicated. I managed to confuse myself ... and I
learned just the hard way the limitations of git rerere :)
The following would be the right email:
----------
Hi,
today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
mm/vmscan.c
between the commits:
dbbc5a3d50f9 mm: vmscan: tell direct reclaim the allocation is ALLOC_NOFRAGMENT
from the page_alloc/page_alloc/for-next branch and the commit:
2cc623f19566 mm/vmscan: move vmscan tracepoints to a local header
b87fab0ca9ce mm/vmscan: move struct scan_control to a dedicated header
from the akpm/mm-unstable branch.
I resolved the conflicts manually:
diff --git a/mm/vmscan.c b/mm/vmscan.c
index e94d58aa2626..672b339c7bc5 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -72,122 +72,7 @@
#include "swap.h"
#define CREATE_TRACE_POINTS
-<<<<<<< HEAD
-#include <trace/events/vmscan.h>
-
-struct scan_control {
- /* How many pages shrink_list() should reclaim */
- unsigned long nr_to_reclaim;
-
- /*
- * Nodemask of nodes allowed by the caller. If NULL, all nodes
- * are scanned.
- */
- const nodemask_t *nodemask;
-
- /*
- * The memory cgroup that hit its limit and as a result is the
- * primary target of this reclaim invocation.
- */
- struct mem_cgroup *target_mem_cgroup;
-
- /*
- * Scan pressure balancing between anon and file LRUs
- */
- unsigned long anon_cost;
- unsigned long file_cost;
-
- /* Swappiness value for proactive reclaim. Always use sc_swappiness()! */
- int *proactive_swappiness;
-
- /* Can active folios be deactivated as part of reclaim? */
-#define DEACTIVATE_ANON 1
-#define DEACTIVATE_FILE 2
- unsigned int may_deactivate:2;
- unsigned int force_deactivate:1;
- unsigned int skipped_deactivate:1;
-
- /* zone_reclaim_mode, boost reclaim */
- unsigned int may_writepage:1;
-
- /* zone_reclaim_mode */
- unsigned int may_unmap:1;
-
- /* zone_reclaim_mode, boost reclaim, cgroup restrictions */
- unsigned int may_swap:1;
-
- /* Not allow cache_trim_mode to be turned on as part of reclaim? */
- unsigned int no_cache_trim_mode:1;
-
- /* Has cache_trim_mode failed at least once? */
- unsigned int cache_trim_mode_failed:1;
-
- /* Proactive reclaim invoked by userspace */
- unsigned int proactive:1;
-
- /*
- * Cgroup memory below memory.low is protected as long as we
- * don't threaten to OOM. If any cgroup is reclaimed at
- * reduced force or passed over entirely due to its memory.low
- * setting (memcg_low_skipped), and nothing is reclaimed as a
- * result, then go back for one more cycle that reclaims the protected
- * memory (memcg_low_reclaim) to avert OOM.
- */
- unsigned int memcg_low_reclaim:1;
- unsigned int memcg_low_skipped:1;
-
- /* Shared cgroup tree walk failed, rescan the whole tree */
- unsigned int memcg_full_walk:1;
-
- unsigned int hibernation_mode:1;
-
- /* One of the zones is ready for compaction */
- unsigned int compaction_ready:1;
-
- /* The allocation may not steal from other migratetypes' blocks */
- unsigned int nofragment:1;
-
- /* There is easily reclaimable cold cache in the current node */
- unsigned int cache_trim_mode:1;
-
- /* The file folios on the current node are dangerously low */
- unsigned int file_is_tiny:1;
-
- /* Always discard instead of demoting to lower tier memory */
- unsigned int no_demotion:1;
-
- /* Allocation order */
- s8 order;
-
- /* Scan (total_size >> priority) pages at once */
- s8 priority;
-
- /* The highest zone to isolate folios for reclaim from */
- s8 reclaim_idx;
-
- /* This context's GFP mask */
- gfp_t gfp_mask;
-
- /* Incremented by the number of inactive pages that were scanned */
- unsigned long nr_scanned;
-
- /* Number of pages freed so far during a call to shrink_zones() */
- unsigned long nr_reclaimed;
-
- struct {
- unsigned int dirty;
- unsigned int congested;
- unsigned int writeback;
- unsigned int immediate;
- unsigned int taken;
- } nr;
-
- /* for recording the reclaimed slab by now */
- struct reclaim_state reclaim_state;
-};
-=======
#include "trace_vmscan.h"
->>>>>>> akpm/mm-unstable
#ifdef ARCH_HAS_PREFETCHW
static inline void prefetchw_prev_lru_folio(struct folio *folio,
diff --git a/mm/vmscan.h b/mm/vmscan.h
index c2cea36289f3..6a8f5981235f 100644
--- a/mm/vmscan.h
+++ b/mm/vmscan.h
@@ -77,6 +77,9 @@ struct scan_control {
/* One of the zones is ready for compaction */
unsigned int compaction_ready:1;
+ /* The allocation may not steal from other migratetypes' blocks */
+ unsigned int nofragment:1;
+
/* There is easily reclaimable cold cache in the current node */
unsigned int cache_trim_mode:1;
---
>
> Ridong's series "mm/vmscan: move tracepoints to mm/ and add MGLRU
> tracepoints" is large and contains a lot of optional code movement.
Yes, the move to vmscan.h is the real problem.
>
> So I think at this time we should drop it and ask Ridong for a much
> smaller and tighter patch[set] which just adds those MGLRU tracepoints.
> wdyt?
It's a good learning experience on my end ;) I don't care carrying the fixup
forward.
We'll just have to let Linus know about it.
Later, for changes that go through my tree (PULL requests from other components
to me), I can just fix that up when merging and nobody will ever now.
--
Cheers,
David
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: mm-next: manual merge of the akpm/mm-unstable branch
2026-11-23 18:50 ` David Hildenbrand (Arm)
@ 2026-11-24 10:18 ` Vlastimil Babka (SUSE)
0 siblings, 0 replies; 14+ messages in thread
From: Vlastimil Babka (SUSE) @ 2026-11-24 10:18 UTC (permalink / raw)
To: David Hildenbrand (Arm), Andrew Morton
Cc: Johannes Weiner, mm-commits@vger.kernel.org, Ridong Chen
On 11/23/26 19:50, David Hildenbrand (Arm) wrote:
> On 11/23/26 19:34, Andrew Morton wrote:
> --- a/mm/vmscan.h
> +++ b/mm/vmscan.h
> @@ -77,6 +77,9 @@ struct scan_control {
> /* One of the zones is ready for compaction */
> unsigned int compaction_ready:1;
>
> + /* The allocation may not steal from other migratetypes' blocks */
> + unsigned int nofragment:1;
> +
> /* There is easily reclaimable cold cache in the current node */
> unsigned int cache_trim_mode:1;
>
> ---
>
>
>>
>> Ridong's series "mm/vmscan: move tracepoints to mm/ and add MGLRU
>> tracepoints" is large and contains a lot of optional code movement.
>
> Yes, the move to vmscan.h is the real problem.
I guess this one not optional for the series if the structure needs to be
visible to multiple .c files.
>>
>> So I think at this time we should drop it and ask Ridong for a much
>> smaller and tighter patch[set] which just adds those MGLRU tracepoints.
>> wdyt?
>
> It's a good learning experience on my end ;) I don't care carrying the fixup
> forward.
>
> We'll just have to let Linus know about it.
Yeah Linus always says merge conflicts are fine so I'd only start dropping
things when there's something more serious e.g. a semantic conflict. We need
to learn to live with this.
Thanks!
> Later, for changes that go through my tree (PULL requests from other components
> to me), I can just fix that up when merging and nobody will ever now.
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* mm-next: manual merge of the akpm/mm-unstable branch
@ 2026-11-26 16:10 David Hildenbrand (Arm)
0 siblings, 0 replies; 14+ messages in thread
From: David Hildenbrand (Arm) @ 2026-11-26 16:10 UTC (permalink / raw)
To: akpm@linux-foundation.org
Cc: Yeoreum Yun, Lorenzo Stoakes, mm-commits@vger.kernel.org
Hi,
today's (and yesterday's ;) ) mm-next merge of the akpm/mm-unstable branch
tree got a conflict in:
mm/khugepaged.c
between the commit:
0d100a39e288 mm: khugepaged: ignore MADV_HUGEPAGE for shadow stacks
from the core/for-next branch and the commit:
e94cbda0f126 mm/madvise: convert madvise_vma_behavior() to use vma_flags_t
from the akpm/mm-unstable branch.
I resolved the conflicts manually (trivial):
diff --git a/mm/khugepaged.c b/mm/khugepaged.c
index a77235c78a5e..34bb22b73152 100644
--- a/mm/khugepaged.c
+++ b/mm/khugepaged.c
@@ -383,16 +383,11 @@ int hugepage_madvise(struct vm_area_struct *vma,
{
switch (advice) {
case MADV_HUGEPAGE:
-<<<<<<< HEAD
/* PTE batching doesn't work reliably. */
if (vma_test_single_mask(vma, VMA_SHADOW_STACK))
break;
- *vm_flags &= ~VM_NOHUGEPAGE;
- *vm_flags |= VM_HUGEPAGE;
-=======
vma_flags_clear(vma_flags, VMA_NOHUGEPAGE_BIT);
vma_flags_set(vma_flags, VMA_HUGEPAGE_BIT);
->>>>>>> akpm/mm-unstable
break;
case MADV_NOHUGEPAGE:
vma_flags_clear(vma_flags, VMA_HUGEPAGE_BIT);
--
Cheers,
David
^ permalink raw reply related [flat|nested] 14+ messages in thread* mm-next: manual merge of the akpm/mm-unstable branch
@ 2026-11-20 11:42 David Hildenbrand (Arm)
0 siblings, 0 replies; 14+ messages in thread
From: David Hildenbrand (Arm) @ 2026-11-20 11:42 UTC (permalink / raw)
To: akpm@linux-foundation.org, Vlastimil Babka, Johannes Weiner
Cc: mm-commits@vger.kernel.org
Hi,
today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
include/linux/alloc_tag.h
between the commit:
cd890190497b alloc_tag: handle a NULL tag in alloc_tag_set_inaccurate()
from the page_alloc/page_alloc/for-next branch and the commit:
5f15df08db91 alloc_tag: introduce IOCTLs to toggle allocation tracepoints
from the akpm/mm-unstable branch.
I resolved the conflicts manually:
# Conflict resolution:
#
# diff --git a/include/linux/alloc_tag.h b/include/linux/alloc_tag.h
# index ad968d79eb3a..d3317e197787 100644
# --- a/include/linux/alloc_tag.h
# +++ b/include/linux/alloc_tag.h
# @@ -138,7 +138,8 @@ static inline bool mem_alloc_profiling_enabled(void)
#
# static inline void alloc_tag_set_inaccurate(struct alloc_tag *tag)
# {
# - atomic_or(CODETAG_FLAG_INACCURATE, &tag->ct.flags);
# + if (tag)
# + atomic_or(CODETAG_FLAG_INACCURATE, &tag->ct.flags);
# }
#
# static inline bool alloc_tag_is_inaccurate(struct alloc_tag *tag)
# @@ -283,20 +284,6 @@ static inline void alloc_tag_sub(union codetag_ref *ref, size_t bytes, const voi
# ref->ct = NULL;
# }
#
# -<<<<<<< HEAD
# -static inline void alloc_tag_set_inaccurate(struct alloc_tag *tag)
# -{
# - if (tag)
# - tag->ct.flags |= CODETAG_FLAG_INACCURATE;
# -}
# -
# -static inline bool alloc_tag_is_inaccurate(struct alloc_tag *tag)
# -{
# - return !!(tag->ct.flags & CODETAG_FLAG_INACCURATE);
# -}
# -
# -=======
# ->>>>>>> akpm/mm-unstable
# #define alloc_tag_record(p) ((p) = current->alloc_tag)
#
# #else /* CONFIG_MEM_ALLOC_PROFILING */
--
Cheers,
David
^ permalink raw reply [flat|nested] 14+ messages in thread* mm-next: manual merge of the akpm/mm-unstable branch
@ 2026-10-14 9:16 David Hildenbrand (Arm)
0 siblings, 0 replies; 14+ messages in thread
From: David Hildenbrand (Arm) @ 2026-10-14 9:16 UTC (permalink / raw)
To: Andrew Morton, Mike Rapoport; +Cc: mm-commits, Muchun Song, Kaitao Cheng
Hi,
today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
mm/sparse-vmemmap.c
between the commit:
063b5e8bbd21 mm: Remove unused exact_nid parameter from memmap_alloc()
from the memblock/for-next branch:
59cbd435300c mm/sparse-vmemmap: factor out shared vmemmap tail page allocation
from the akpm/mm-unstable branch.
I resolved the conflict manually and will carry the conflict resolution going
forward. "git show --remerge-diff" output for brevity; if people prefer a
different (longer?) output please shout.
diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c
remerge CONFLICT (content): Merge conflict in mm/sparse-vmemmap.c
index a43f1256bf5e..5d7e982f94d0 100644
--- a/mm/sparse-vmemmap.c
+++ b/mm/sparse-vmemmap.c
@@ -36,11 +36,7 @@
#include "mm_init.h"
#include "sparse.h"
-<<<<<<< 46c6d937b2c5 (Merge https://git.kernel.org/pub/scm/linux/kernel/git/mm/memblock.git for-next into for-next)
-void * __meminit vmemmap_alloc_block(unsigned long size, int node)
-=======
void __ref *vmemmap_alloc_block(unsigned long size, int node)
->>>>>>> 1d0b04a60516 (mm: page_alloc: make defrag_mode retries follow the promoted order)
{
/* If the main allocator is up use that, fallback to bootmem. */
if (slab_is_available()) {
@@ -60,11 +56,7 @@ void __ref *vmemmap_alloc_block(unsigned long size, int node)
}
return NULL;
} else
-<<<<<<< 46c6d937b2c5 (Merge https://git.kernel.org/pub/scm/linux/kernel/git/mm/memblock.git for-next into for-next)
return memmap_alloc(size, size, __pa(MAX_DMA_ADDRESS), node);
-=======
- return memmap_alloc(size, size, __pa(MAX_DMA_ADDRESS), node, false);
->>>>>>> 1d0b04a60516 (mm: page_alloc: make defrag_mode retries follow the promoted order)
}
static void * __meminit altmap_alloc_block_buf(unsigned long size,
^ permalink raw reply related [flat|nested] 14+ messages in thread* mm-next: manual merge of the akpm/mm-unstable branch
@ 2026-10-02 6:22 David Hildenbrand (Arm)
2026-10-02 8:15 ` Lorenzo Stoakes (ARM)
2026-10-02 23:22 ` Andrew Morton
0 siblings, 2 replies; 14+ messages in thread
From: David Hildenbrand (Arm) @ 2026-10-02 6:22 UTC (permalink / raw)
To: Andrew Morton
Cc: mm-commits, Paolo Bonzini, Lorenzo Stoakes (Arm), Marc Zyngier,
Oliver Upton, Zi Yan
Hi,
today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
arch/arm64/kvm/mmu.c
between the commit:
71cc2c67fb8f KVM: arm64: Use stage-1 leaf size for VM_PFNMAP
from Linus' tree and commits:
7a41ed87f53f mm: drop some redundant checks around hugetlb VMAs
f09773c2c4d0 mm: rename is_vm_hugetlb_page() to vma_is_hugetlb()
from the akpm/mm-unstable branch.
I resolved the conflicts manually:
diff --cc arch/arm64/kvm/mmu.c
index bf6d6526639f,73c8492e85c4..b0ea1a9391da
--- a/arch/arm64/kvm/mmu.c
+++ b/arch/arm64/kvm/mmu.c
@@@ -1468,11 -1468,30 +1468,11 @@@ transparent_hugepage_adjust(struct kvm
return PAGE_SIZE;
}
-static int get_vma_page_shift(struct vm_area_struct *vma, unsigned long hva)
+static int get_vma_page_shift(struct vm_area_struct *vma)
{
- if (is_vm_hugetlb_page(vma))
- unsigned long pa;
-
+ if (vma_is_hugetlb(vma))
return huge_page_shift(hstate_vma(vma));
- if (!(vma->vm_flags & VM_PFNMAP))
- return PAGE_SHIFT;
-
- pa = (vma->vm_pgoff << PAGE_SHIFT) + (hva - vma->vm_start);
-
-#ifndef __PAGETABLE_PMD_FOLDED
- if ((hva & (PUD_SIZE - 1)) == (pa & (PUD_SIZE - 1)) &&
- ALIGN_DOWN(hva, PUD_SIZE) >= vma->vm_start &&
- ALIGN(hva, PUD_SIZE) <= vma->vm_end)
- return PUD_SHIFT;
-#endif
-
- if ((hva & (PMD_SIZE - 1)) == (pa & (PMD_SIZE - 1)) &&
- ALIGN_DOWN(hva, PMD_SIZE) >= vma->vm_start &&
- ALIGN(hva, PMD_SIZE) <= vma->vm_end)
- return PMD_SHIFT;
-
return PAGE_SHIFT;
}
--
Cheers,
David
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: mm-next: manual merge of the akpm/mm-unstable branch
2026-10-02 6:22 David Hildenbrand (Arm)
@ 2026-10-02 8:15 ` Lorenzo Stoakes (ARM)
2026-10-02 12:16 ` David Hildenbrand (Arm)
2026-10-02 23:22 ` Andrew Morton
1 sibling, 1 reply; 14+ messages in thread
From: Lorenzo Stoakes (ARM) @ 2026-10-02 8:15 UTC (permalink / raw)
To: David Hildenbrand (Arm)
Cc: Andrew Morton, mm-commits, Paolo Bonzini, Marc Zyngier,
Oliver Upton, Zi Yan
On Fri, Oct 02, 2026 at 08:22:17AM +0200, David Hildenbrand (Arm) wrote:
> Hi,
>
> today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
>
> arch/arm64/kvm/mmu.c
>
> between the commit:
>
> 71cc2c67fb8f KVM: arm64: Use stage-1 leaf size for VM_PFNMAP
>
> from Linus' tree and commits:
>
> 7a41ed87f53f mm: drop some redundant checks around hugetlb VMAs
> f09773c2c4d0 mm: rename is_vm_hugetlb_page() to vma_is_hugetlb()
>
> from the akpm/mm-unstable branch.
>
> I resolved the conflicts manually:
Nice to see this from mm-next :)
This looks the same as [0] and similar to that this LGTM.
[0]:https://lore.kernel.org/all/ar5ZsSo2ybT39BEQ@sirena.org.uk/
>
>
> diff --cc arch/arm64/kvm/mmu.c
> index bf6d6526639f,73c8492e85c4..b0ea1a9391da
> --- a/arch/arm64/kvm/mmu.c
> +++ b/arch/arm64/kvm/mmu.c
> @@@ -1468,11 -1468,30 +1468,11 @@@ transparent_hugepage_adjust(struct kvm
> return PAGE_SIZE;
> }
>
> -static int get_vma_page_shift(struct vm_area_struct *vma, unsigned long hva)
> +static int get_vma_page_shift(struct vm_area_struct *vma)
> {
> - if (is_vm_hugetlb_page(vma))
> - unsigned long pa;
> -
> + if (vma_is_hugetlb(vma))
> return huge_page_shift(hstate_vma(vma));
>
> - if (!(vma->vm_flags & VM_PFNMAP))
> - return PAGE_SHIFT;
> -
> - pa = (vma->vm_pgoff << PAGE_SHIFT) + (hva - vma->vm_start);
> -
> -#ifndef __PAGETABLE_PMD_FOLDED
> - if ((hva & (PUD_SIZE - 1)) == (pa & (PUD_SIZE - 1)) &&
> - ALIGN_DOWN(hva, PUD_SIZE) >= vma->vm_start &&
> - ALIGN(hva, PUD_SIZE) <= vma->vm_end)
> - return PUD_SHIFT;
> -#endif
> -
> - if ((hva & (PMD_SIZE - 1)) == (pa & (PMD_SIZE - 1)) &&
> - ALIGN_DOWN(hva, PMD_SIZE) >= vma->vm_start &&
> - ALIGN(hva, PMD_SIZE) <= vma->vm_end)
> - return PMD_SHIFT;
> -
> return PAGE_SHIFT;
> }
>
> --
> Cheers,
>
> David
>
--
Cheers, Lorenzo
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: mm-next: manual merge of the akpm/mm-unstable branch
2026-10-02 8:15 ` Lorenzo Stoakes (ARM)
@ 2026-10-02 12:16 ` David Hildenbrand (Arm)
2026-10-02 12:24 ` Lorenzo Stoakes (ARM)
0 siblings, 1 reply; 14+ messages in thread
From: David Hildenbrand (Arm) @ 2026-10-02 12:16 UTC (permalink / raw)
To: Lorenzo Stoakes (ARM)
Cc: Andrew Morton, mm-commits, Paolo Bonzini, Marc Zyngier,
Oliver Upton, Zi Yan
On 10/2/26 10:15, Lorenzo Stoakes (ARM) wrote:
> On Fri, Oct 02, 2026 at 08:22:17AM +0200, David Hildenbrand (Arm) wrote:
>> Hi,
>>
>> today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
>>
>> arch/arm64/kvm/mmu.c
>>
>> between the commit:
>>
>> 71cc2c67fb8f KVM: arm64: Use stage-1 leaf size for VM_PFNMAP
>>
>> from Linus' tree and commits:
>>
>> 7a41ed87f53f mm: drop some redundant checks around hugetlb VMAs
>> f09773c2c4d0 mm: rename is_vm_hugetlb_page() to vma_is_hugetlb()
>>
>> from the akpm/mm-unstable branch.
>>
>> I resolved the conflicts manually:
>
> Nice to see this from mm-next :)
>
> This looks the same as [0] and similar to that this LGTM.
Yes, there are some situations where we hit that in -next first and later (once
fixes go upstream) in mm-next. In other situations (primarily as we add new
material into mm-next when conflicting fixes are already upstream) we get the
conflicts only in mm-next.
All good dry runs for our incoming intra-mm conflicts that will be entirely in
mm-next :)
--
Cheers,
David
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mm-next: manual merge of the akpm/mm-unstable branch
2026-10-02 12:16 ` David Hildenbrand (Arm)
@ 2026-10-02 12:24 ` Lorenzo Stoakes (ARM)
0 siblings, 0 replies; 14+ messages in thread
From: Lorenzo Stoakes (ARM) @ 2026-10-02 12:24 UTC (permalink / raw)
To: David Hildenbrand (Arm)
Cc: Andrew Morton, mm-commits, Paolo Bonzini, Marc Zyngier,
Oliver Upton, Zi Yan
On Fri, Oct 02, 2026 at 02:16:14PM +0200, David Hildenbrand (Arm) wrote:
> On 10/2/26 10:15, Lorenzo Stoakes (ARM) wrote:
> > On Fri, Oct 02, 2026 at 08:22:17AM +0200, David Hildenbrand (Arm) wrote:
> >> Hi,
> >>
> >> today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
> >>
> >> arch/arm64/kvm/mmu.c
> >>
> >> between the commit:
> >>
> >> 71cc2c67fb8f KVM: arm64: Use stage-1 leaf size for VM_PFNMAP
> >>
> >> from Linus' tree and commits:
> >>
> >> 7a41ed87f53f mm: drop some redundant checks around hugetlb VMAs
> >> f09773c2c4d0 mm: rename is_vm_hugetlb_page() to vma_is_hugetlb()
> >>
> >> from the akpm/mm-unstable branch.
> >>
> >> I resolved the conflicts manually:
> >
> > Nice to see this from mm-next :)
> >
> > This looks the same as [0] and similar to that this LGTM.
>
> Yes, there are some situations where we hit that in -next first and later (once
> fixes go upstream) in mm-next. In other situations (primarily as we add new
> material into mm-next when conflicting fixes are already upstream) we get the
> conflicts only in mm-next.
>
> All good dry runs for our incoming intra-mm conflicts that will be entirely in
> mm-next :)
Yes love to see it! <3
>
> --
> Cheers,
>
> David
--
Cheers, Lorenzo
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mm-next: manual merge of the akpm/mm-unstable branch
2026-10-02 6:22 David Hildenbrand (Arm)
2026-10-02 8:15 ` Lorenzo Stoakes (ARM)
@ 2026-10-02 23:22 ` Andrew Morton
1 sibling, 0 replies; 14+ messages in thread
From: Andrew Morton @ 2026-10-02 23:22 UTC (permalink / raw)
To: David Hildenbrand (Arm)
Cc: mm-commits, Paolo Bonzini, Lorenzo Stoakes (Arm), Marc Zyngier,
Oliver Upton, Zi Yan
On Fri, 2 Oct 2026 08:22:17 +0200 "David Hildenbrand (Arm)" <david@kernel.org> wrote:
> Hi,
>
> today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
>
> arch/arm64/kvm/mmu.c
>
> between the commit:
>
> 71cc2c67fb8f KVM: arm64: Use stage-1 leaf size for VM_PFNMAP
>
> from Linus' tree and commits:
>
> 7a41ed87f53f mm: drop some redundant checks around hugetlb VMAs
> f09773c2c4d0 mm: rename is_vm_hugetlb_page() to vma_is_hugetlb()
>
> from the akpm/mm-unstable branch.
>
> I resolved the conflicts manually:
Thanks. I rebased mm.git on latest Linus (ff47652a4b66) and fixed this
up (check my handiwork!), so that should go away.
I'll attempt to make ff47652a4b66 the base for the next merge window.
^ permalink raw reply [flat|nested] 14+ messages in thread
* mm-next: manual merge of the akpm/mm-unstable branch
@ 2026-09-22 19:17 David Hildenbrand (Arm)
2026-09-22 19:48 ` Andrew Morton
0 siblings, 1 reply; 14+ messages in thread
From: David Hildenbrand (Arm) @ 2026-09-22 19:17 UTC (permalink / raw)
To: Andrew Morton; +Cc: mm-commits
Hi,
today's (well, and the last couple of days) mm-next merge of the
akpm/mm-unstable branch tree got a conflict in:
drivers/infiniband/hw/hfi1/file_ops.c
between the commit:
62f0f34fbd2b ("IB/hfi1: Fix the PIO_CRED credit-return mmap")
from Linus' tree and commit:
e7d9f14bb73b ("infiniband: update hfi1 to use remap_vmalloc_range()")
from the akpm/mm-unstable branch.
I resolved the conflicts manually:
diff --cc drivers/infiniband/hw/hfi1/file_ops.c
index 1a36f995c4f6,b02d1f1dbb27..680364fda856
--- a/drivers/infiniband/hw/hfi1/file_ops.c
+++ b/drivers/infiniband/hw/hfi1/file_ops.c
@@@ -325,8 -320,7 +320,8 @@@ static int hfi1_file_mmap(struct file *
memaddr = 0;
void *memvirt = NULL;
dma_addr_t memdma = 0;
- u8 subctxt, mapio = 0, vmf = 0, type;
+ u8 subctxt, mapio = 0, is_vmalloc = 0, type;
+ size_t memdmalen = 0;
ssize_t memlen = 0;
int ret = 0;
u16 ctxt;
@@@ -569,16 -546,13 +556,14 @@@
}
vm_flags_reset(vma, flags);
- mmap_cdbg(ctxt, subctxt, type, mapio, vmf, memaddr, memvirt, memdma,
+ mmap_cdbg(ctxt, subctxt, type, mapio, is_vmalloc, memaddr, memvirt, memdma,
memlen, vma);
- if (vmf) {
- vma->vm_pgoff = PFN_DOWN(memaddr);
- vma->vm_ops = &vm_ops;
- ret = 0;
+ if (is_vmalloc) {
+ ret = remap_vmalloc_range(vma, memvirt, 0);
} else if (memdma) {
ret = dma_mmap_coherent(&dd->pcidev->dev, vma,
- memvirt, memdma, memlen);
+ memvirt, memdma,
+ memdmalen ? memdmalen : memlen);
} else if (mapio) {
ret = io_remap_pfn_range(vma, vma->vm_start,
PFN_DOWN(memaddr),
--
Cheers,
David
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: mm-next: manual merge of the akpm/mm-unstable branch
2026-09-22 19:17 David Hildenbrand (Arm)
@ 2026-09-22 19:48 ` Andrew Morton
0 siblings, 0 replies; 14+ messages in thread
From: Andrew Morton @ 2026-09-22 19:48 UTC (permalink / raw)
To: David Hildenbrand (Arm); +Cc: mm-commits
On Tue, 22 Sep 2026 21:17:56 +0200 "David Hildenbrand (Arm)" <david@kernel.org> wrote:
> Hi,
>
> today's (well, and the last couple of days) mm-next merge of the
> akpm/mm-unstable branch tree got a conflict in:
>
> drivers/infiniband/hw/hfi1/file_ops.c
>
> between the commit:
>
> 62f0f34fbd2b ("IB/hfi1: Fix the PIO_CRED credit-return mmap")
>
> from Linus' tree and commit:
>
> e7d9f14bb73b ("infiniband: update hfi1 to use remap_vmalloc_range()")
>
> from the akpm/mm-unstable branch.
>
Thanks, I've now resynced with Linus and fixed that up.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2026-11-26 16:10 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 17:33 mm-next: manual merge of the akpm/mm-unstable branch David Hildenbrand (Arm)
2026-11-23 18:34 ` Andrew Morton
2026-11-23 18:50 ` David Hildenbrand (Arm)
2026-11-24 10:18 ` Vlastimil Babka (SUSE)
-- strict thread matches above, loose matches on Subject: below --
2026-11-26 16:10 David Hildenbrand (Arm)
2026-11-20 11:42 David Hildenbrand (Arm)
2026-10-14 9:16 David Hildenbrand (Arm)
2026-10-02 6:22 David Hildenbrand (Arm)
2026-10-02 8:15 ` Lorenzo Stoakes (ARM)
2026-10-02 12:16 ` David Hildenbrand (Arm)
2026-10-02 12:24 ` Lorenzo Stoakes (ARM)
2026-10-02 23:22 ` Andrew Morton
2026-09-22 19:17 David Hildenbrand (Arm)
2026-09-22 19:48 ` Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.