All of lore.kernel.org
 help / color / mirror / Atom feed
* 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
* 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
* 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

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.