aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorGregory Price <[email protected]>2025-01-27 15:34:04 +0000
committerAndrew Morton <[email protected]>2025-05-12 00:48:07 +0000
commitb1143537098b33affd4e50cec2c10e4b3858d93c (patch)
tree3bd97729ee1e6cebdefdd58776199529a7837493 /mm/hugetlb.c
parentmemory: implement memory_block_advise/probe_max_size (diff)
downloadkernel-b1143537098b33affd4e50cec2c10e4b3858d93c.tar.gz
kernel-b1143537098b33affd4e50cec2c10e4b3858d93c.zip
x86: probe memory block size advisement value during mm init
Systems with hotplug may provide an advisement value on what the memblock size should be. Probe this value when the rest of the configuration values are considered. The new heuristic is as follows 1) set_memory_block_size_order value if already set (cmdline param) 2) minimum block size if memory is less than large block limit 3) if no hotplug advice: Max block size if system is bare-metal, otherwise use end of memory alignment. 4) if hotplug advice: lesser of advice and end of memory alignment. Convert to cpu_feature_enabled() while at it.[1] [1] https://lore.kernel.org/all/20241031103401.GBZyNdGQ-ZyXKyzC_z@fat_crate.local/ Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Gregory Price <[email protected]> Suggested-by: Borislav Petkov <[email protected]> Suggested-by: David Hildenbrand <[email protected]> Acked-by: David Hildenbrand <[email protected]> Acked-by: Dave Hansen <[email protected]> Acked-by: Mike Rapoport (Microsoft) <[email protected]> Acked-by: Dan Williams <[email protected]> Tested-by: Fan Ni <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Acked-by: Oscar Salvador <[email protected]> Cc: Alison Schofield <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Bruno Faccini <[email protected]> Cc: Dave Jiang <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Haibo Xu <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Joanthan Cameron <[email protected]> Cc: Len Brown <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Cc: Robert Richter <[email protected]> Cc: Thomas Gleinxer <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions