From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org, anshuman.khandual@arm.com,
fvdl@google.com, akpm@linux-foundation.org
Subject: + mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3.patch added to mm-unstable branch
Date: Tue, 10 Jan 2023 15:05:11 -0800 [thread overview]
Message-ID: <20230110230511.CDCE4C433D2@smtp.kernel.org> (raw)
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@google.com>
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@google.com
Fixes: 399145f9eb6c ("mm/debug: add tests validating architecture page table helpers")
Signed-off-by: Frank van der Linden <fvdl@google.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
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@google.com are
mm-debug-use-valid-physical-memory-for-pmd-pud-tests.patch
mm-debug-use-valid-physical-memory-for-pmd-pud-tests-v3.patch
reply other threads:[~2023-01-10 23:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230110230511.CDCE4C433D2@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=anshuman.khandual@arm.com \
--cc=fvdl@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.