* + s390-make-setup_zero_pages-use-memblock-fix.patch added to mm-unstable branch
@ 2025-03-12 21:49 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-03-12 21:49 UTC (permalink / raw)
To: mm-commits, hca, ardb, rppt, akpm
The patch titled
Subject: s390: use memblock_alloc_or_panic() in setup_zero_page()
has been added to the -mm mm-unstable branch. Its filename is
s390-make-setup_zero_pages-use-memblock-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/s390-make-setup_zero_pages-use-memblock-fix.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: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Subject: s390: use memblock_alloc_or_panic() in setup_zero_page()
Date: Tue, 11 Mar 2025 07:51:27 +0200
Link: https://lkml.kernel.org/r/Z8_Qawg0dGtZdys7@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
arch/s390/mm/init.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
--- a/arch/s390/mm/init.c~s390-make-setup_zero_pages-use-memblock-fix
+++ a/arch/s390/mm/init.c
@@ -81,9 +81,7 @@ static void __init setup_zero_pages(void
while (order > 2 && (total_pages >> 10) < (1UL << order))
order--;
- empty_zero_page = (unsigned long)memblock_alloc(PAGE_SIZE << order, order);
- if (!empty_zero_page)
- panic("Out of memory in setup_zero_pages");
+ empty_zero_page = (unsigned long)memblock_alloc_or_panic(PAGE_SIZE << order, order);
zero_page_mask = ((PAGE_SIZE << order) - 1) & PAGE_MASK;
}
_
Patches currently in -mm which might be from rppt@kernel.org are
arm-mem_init-use-memblock_phys_free-to-free-dma-memory-on-sa1111.patch
csky-move-setup_initrd-to-setupc.patch
hexagon-move-initialization-of-init_mmcontext-init-to-paging_init.patch
mips-consolidate-mem_init-for-numa-machines.patch
mips-make-setup_zero_pages-use-memblock.patch
nios2-move-pr_debug-about-memory-start-and-end-to-setup_arch.patch
s390-make-setup_zero_pages-use-memblock.patch
s390-make-setup_zero_pages-use-memblock-fix.patch
xtensa-split-out-printing-of-virtual-memory-layout-to-a-function.patch
arch-mm-set-max_mapnr-when-allocating-memory-map-for-flatmem.patch
arch-mm-set-high_memory-in-free_area_init.patch
arch-mm-streamline-highmem-freeing.patch
arch-mm-introduce-arch_mm_preinit.patch
arch-mm-make-releasing-of-memory-to-page-allocator-more-explicit.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-12 21:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-12 21:49 + s390-make-setup_zero_pages-use-memblock-fix.patch added to mm-unstable branch 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.