mm-next: manual merge of the akpm/mm-unstable branch
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:
arch/arm64/kvm/mmu.c +0 -0
@@@ -1468,11 -1468,30 +1468,11 @@@ transparent_hugepage_adjust(struct kvmreturn 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;
}
Signature · 3 lines
Cheers, David
Quoted 10 lines · David Hildenbrand (Arm)
Hi,
today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
arch/arm64/kvm/mmu.cbetween the commit:
71cc2c67fb8fKVM: arm64: Use stage-1 leaf size forVM_PFNMAP
Quoted 8 lines
from Linus' tree and commits:
7a41ed87f53fmm: drop some redundant checks around hugetlb VMAsf09773c2c4d0mm: renameis_vm_hugetlb_page()tovma_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/[email protected]/
Quoted 42 lines
arch/arm64/kvm/mmu.c +1
-2@@@ -1468,11 -1468,30 +1468,11 @@@ transparent_hugepage_adjust(struct kvmreturn 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,
Quoted 2 lines
David
--
Cheers, Lorenzo
Quoted 16 lines · Lorenzo Stoakes (ARM)
Quoted 15 lines · David Hildenbrand (Arm)
Hi,
today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
arch/arm64/kvm/mmu.cbetween the commit:
71cc2c67fb8fKVM: arm64: Use stage-1 leaf size forVM_PFNMAPfrom Linus' tree and commits:
7a41ed87f53fmm: drop some redundant checks around hugetlb VMAsf09773c2c4d0mm: renameis_vm_hugetlb_page()tovma_is_hugetlb()
Quoted 7 lines
Quoted 3 lines
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 :)
Signature · 3 lines
Cheers, David
Quoted 25 lines · David Hildenbrand (Arm)
Quoted 16 lines · Lorenzo Stoakes (ARM)
Quoted 15 lines · David Hildenbrand (Arm)
Hi,
today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
arch/arm64/kvm/mmu.cbetween the commit:
71cc2c67fb8fKVM: arm64: Use stage-1 leaf size forVM_PFNMAPfrom Linus' tree and commits:
7a41ed87f53fmm: drop some redundant checks around hugetlb VMAsf09773c2c4d0mm: renameis_vm_hugetlb_page()tovma_is_hugetlb()Quoted 7 lines
Quoted 3 lines
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.
Quoted 7 lines
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
Quoted 5 lines
--
Cheers,David
--
Cheers, Lorenzo
Quoted 10 lines · On Fri, 2 Oct 2026 08:22:17 +0200 "David Hildenbrand (Arm)" <[email protected]>…
Hi,
today's mm-next merge of the akpm/mm-unstable branch tree got a conflict in:
arch/arm64/kvm/mmu.cbetween the commit:
71cc2c67fb8fKVM: arm64: Use stage-1 leaf size forVM_PFNMAP
Quoted 8 lines
from Linus' tree and commits:
7a41ed87f53fmm: drop some redundant checks around hugetlb VMAsf09773c2c4d0mm: renameis_vm_hugetlb_page()tovma_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.