x86-numa_emu-simplify-allocation-of-phys_dist.patch removed from -mm tree
The quilt patch titled
Subject: x86/numa_emu: simplify allocation of phys_dist
has been removed from the -mm tree. Its filename was
x86-numa_emu-simplify-allocation-of-phys_dist.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Mike Rapoport (Microsoft)" <[email protected]>
Subject: x86/numa_emu: simplify allocation of phys_dist
Date: Wed, 7 Aug 2024 09:40:57 +0300
By the time numa_emulation() is called, all physical memory is already mapped in the direct map and there is no need to define limits for memblock allocation.
Replace memblock_phys_alloc_range() with memblock_alloc().
---
arch/x86/mm/numa_emulation.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
arch/x86/mm/numa_emulation.c renamed from arch/x86/mm/numa_emulation.c~x86-numa_emu-simplify-allocation-of-phys_dist +2 -6
@@ -448,15 +448,11 @@ void __init numa_emulation(struct numa_m/* copy the physical distance table */ if (numa_dist_cnt) { -u64 phys; - - phys =memblock_phys_alloc_range (phys_size,PAGE_SIZE ,0 , -PFN_PHYS (max_pfn_mapped)); -if (!phys) { + phys_dist =memblock_alloc (phys_size,PAGE_SIZE ); +if (!phys_dist) {pr_warn ("NUMA: Warning: can't allocate copy of distance table, disabling emulation\n" ); goto no_emu; } - phys_dist =__va (phys);for (i =0 ; i < numa_dist_cnt; i++)for (j =0 ; j < numa_dist_cnt; j++)
_
Patches currently in -mm which might be from [email protected] are