Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/fadump: Don't update the user-specified memory limit

If the user specifies the memory limit, the kernel should honor it such
that all allocation and reservations are made within the memory limit
specified. fadump was breaking that rule. Remove the code which updates
the memory limit such that fadump reservations are done within the
limit specified.

Signed-off-by: Aneesh Kumar K.V (IBM) <aneesh.kumar@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240403083611.172833-2-aneesh.kumar@kernel.org

authored by

Aneesh Kumar K.V (IBM) and committed by
Michael Ellerman
f94f5ac0 5ca09616

-16
-16
arch/powerpc/kernel/fadump.c
··· 573 573 } 574 574 } 575 575 576 - /* 577 - * Calculate the memory boundary. 578 - * If memory_limit is less than actual memory boundary then reserve 579 - * the memory for fadump beyond the memory_limit and adjust the 580 - * memory_limit accordingly, so that the running kernel can run with 581 - * specified memory_limit. 582 - */ 583 - if (memory_limit && memory_limit < memblock_end_of_DRAM()) { 584 - size = get_fadump_area_size(); 585 - if ((memory_limit + size) < memblock_end_of_DRAM()) 586 - memory_limit += size; 587 - else 588 - memory_limit = memblock_end_of_DRAM(); 589 - printk(KERN_INFO "Adjusted memory_limit for firmware-assisted" 590 - " dump, now %#016llx\n", memory_limit); 591 - } 592 576 if (memory_limit) 593 577 mem_boundary = memory_limit; 594 578 else