]> git.baikalelectronics.ru Git - kernel.git/commit
x86, mm: Find_early_table_space based on ranges that are actually being mapped
authorJacob Shin <jacob.shin@amd.com>
Wed, 24 Oct 2012 19:24:44 +0000 (14:24 -0500)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 24 Oct 2012 20:37:04 +0000 (13:37 -0700)
commitcdb010d76a6dbc3a669a2430878d69f7301c2bcc
tree59889d2391056d36307b4c5d587f1db6c7952d30
parent3e8777f6717229f34847c5b8485328d5a8dbc2d2
x86, mm: Find_early_table_space based on ranges that are actually being mapped

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 is needed after f893734ccbd5cdff8936ff30e204c8cac500def1, to address
the panic reported here:

  https://lkml.org/lkml/2012/10/20/160
  https://lkml.org/lkml/2012/10/21/157

Signed-off-by: Jacob Shin <jacob.shin@amd.com>
Link: http://lkml.kernel.org/r/20121024195311.GB11779@jshin-Toonie
Tested-by: Tom Rini <trini@ti.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/mm/init.c