mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + mm-calc-the-right-pfn-if-page-size-is-not-4k.patch added to -mm tree
@ 2022-04-20 22:28 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-04-20 22:28 UTC (permalink / raw)
  To: mm-commits, will, david, catalin.marinas, ardb,
	anshuman.khandual, mawupeng1, akpm


The patch titled
     Subject: mm/page_alloc.c: calc the right pfn if page size is not 4K
has been added to the -mm tree.  Its filename is
     mm-calc-the-right-pfn-if-page-size-is-not-4k.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/mm-calc-the-right-pfn-if-page-size-is-not-4k.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/mm-calc-the-right-pfn-if-page-size-is-not-4k.patch

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 and is updated
there every 3-4 working days

------------------------------------------------------
From: Ma Wupeng <mawupeng1@huawei.com>
Subject: mm/page_alloc.c: calc the right pfn if page size is not 4K

Previous 0x100000 is used to check the 4G limit in
find_zone_movable_pfns_for_nodes().  This is right in x86 because the page
size can only be 4K.  But 16K and 64K are available in arm64.  So replace
it with PHYS_PFN(SZ_4G).

Link: https://lkml.kernel.org/r/20220414101314.1250667-8-mawupeng1@huawei.com
Signed-off-by: Ma Wupeng <mawupeng1@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/page_alloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/page_alloc.c~mm-calc-the-right-pfn-if-page-size-is-not-4k
+++ a/mm/page_alloc.c
@@ -7870,7 +7870,7 @@ static void __init find_zone_movable_pfn
 
 			usable_startpfn = memblock_region_memory_base_pfn(r);
 
-			if (usable_startpfn < 0x100000) {
+			if (usable_startpfn < PHYS_PFN(SZ_4G)) {
 				mem_below_4gb_not_mirrored = true;
 				continue;
 			}
_

Patches currently in -mm which might be from mawupeng1@huawei.com are

mm-calc-the-right-pfn-if-page-size-is-not-4k.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-20 22:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 22:28 + mm-calc-the-right-pfn-if-page-size-is-not-4k.patch added to -mm tree Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).