+ mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3.patch added to mm-unstable branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3
has been added to the -mm mm-unstable branch.  Its filename is
     mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3.patch

This patch will later appear in the mm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Frank van der Linden <fvdl@xxxxxxxxxx>
Subject: mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3
Date: Tue, 10 Jan 2023 18:12:08 +0000

Link: https://lkml.kernel.org/r/20230110181208.1633879-1-fvdl@xxxxxxxxxx
Fixes: 399145f9eb6c ("mm/debug: add tests validating architecture page table helpers")
Signed-off-by: Frank van der Linden <fvdl@xxxxxxxxxx>
Cc: Anshuman Khandual <anshuman.khandual@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/debug_vm_pgtable.c |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

--- a/mm/debug_vm_pgtable.c~mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3
+++ a/mm/debug_vm_pgtable.c
@@ -1089,8 +1089,8 @@ debug_vm_pgtable_alloc_huge_page(struct
  * it's not used on x86.
  */
 static void  __init phys_align_check(phys_addr_t pstart,
-	phys_addr_t pend, unsigned long psize, phys_addr_t *physp,
-	unsigned long *alignp)
+				     phys_addr_t pend, unsigned long psize,
+				     phys_addr_t *physp, unsigned long *alignp)
 {
 	phys_addr_t aligned_start, aligned_end;
 
@@ -1133,20 +1133,19 @@ static void __init init_fixed_pfns(struc
 	for_each_mem_range(idx, &pstart, &pend) {
 		/* First check for a PUD-aligned area */
 		phys_align_check(pstart, pend, PUD_SIZE, &phys,
-				&args->fixed_alignment);
+				 &args->fixed_alignment);
 
 		/* If a PUD-aligned area is found, we're done */
-		if (args->fixed_alignment >= PUD_SIZE)
+		if (args->fixed_alignment == PUD_SIZE)
 			break;
 
 		/*
 		 * If no PMD-aligned area found yet, check for one,
 		 * but continue the loop to look for a PUD-aligned area.
 		 */
-		if (args->fixed_alignment < PMD_SIZE) {
+		if (args->fixed_alignment < PMD_SIZE)
 			phys_align_check(pstart, pend, PMD_SIZE, &phys,
-					&args->fixed_alignment);
-		}
+					 &args->fixed_alignment);
 	}
 
 	args->fixed_pgd_pfn = __phys_to_pfn(phys & PGDIR_MASK);
_

Patches currently in -mm which might be from fvdl@xxxxxxxxxx are

mm-debug-use-valid-physical-memory-for-pmd-pud-tests.patch
mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux