Re: [PATCH 2/5] x86: find_early_table_space based on memory rangesthat are being mapped

From: Tom Rini
Date: Sun Oct 21 2012 - 17:22:45 EST


On Fri, Aug 24, 2012 at 06:55:13PM -0500, Jacob Shin wrote:

> Current logic finds enough space for direct mapping page tables from 0
> to end. Instead, we only need to find enough space to cover mr[0].start
> to mr[nr_range].end -- the range that is actually being mapped by
> init_memory_mapping()
>
> This patch also reportedly fixes suspend/resume issue reported in:
>
> https://lkml.org/lkml/2012/8/11/83
>
> Signed-off-by: Jacob Shin <jacob.shin@xxxxxxx>

This fixes a bug I see that was introduced in 1bbbbe7

Tested-by: Tom Rini <trini@xxxxxx>

--
Tom
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/