Commit d7609f42 authored by's avatar Committed by Ingo Molnar
Browse files

x86/platform/UV: Add kernel parameter to set memory block size

Add a kernel parameter that allows setting UV memory block size.  This
is to provide an adjustment for new forms of PMEM and other DIMM memory
that might require alignment restrictions other than scanning the global
address table for the required minimum alignment.  The value set will be
further adjusted by both the GAM range table scan as well as restrictions
imposed by set_memory_block_size_order().
Signed-off-by: default avatarMike Travis <>
Reviewed-by: default avatarAndrew Banman <>
Cc: Andrew Morton <>
Cc: Dimitri Sivanich <>
Cc: Linus Torvalds <>
Cc: Peter Zijlstra <>
Cc: Russ Anderson <>
Cc: Thomas Gleixner <>

Signed-off-by: default avatarIngo Molnar <>
parent bbbd2b51
......@@ -396,6 +396,17 @@ EXPORT_SYMBOL(uv_hub_info_version);
/* Default UV memory block size is 2GB */
static unsigned long mem_block_size = (2UL << 30);
/* Kernel parameter to specify UV mem block size */
static int parse_mem_block_size(char *ptr)
unsigned long size = memparse(ptr, NULL);
/* Size will be rounded down by set_block_size() below */
mem_block_size = size;
return 0;
early_param("uv_memblksize", parse_mem_block_size);
static __init int adj_blksize(u32 lgre)
unsigned long base = (unsigned long)lgre << UV_GAM_RANGE_SHFT;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment