• Yinghai Lu's avatar
    x86: fix trimming e820 with MTRR holes. · 42651f15
    Yinghai Lu authored
    converting MTRR layout from continous to discrete, some time could run out of
    MTRRs. So add gran_sizek to prevent that by dumpping small RAM piece less than
    gran_sizek.
    
    previous trimming only can handle highest_pfn from mtrr to end_pfn from e820.
    when have more than 4g RAM installed, there will be holes below 4g. so need to
    check ram below 4g is coverred well.
    
    need to be applied after
    	[PATCH] x86: mtrr cleanup for converting continuous to discrete layout v7
    Signed-off-by: default avatarYinghai Lu <yinghai.lu@gmail.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    42651f15
e820_64.c 23.7 KB