coreboot-kgpe-d16/src/northbridge/amd
Siyuan Wang 29840e234c AMD Fam 15tn: Use all memory on systems with more than 4 GB
Take a Parmer board with 4G memory as an example.

Use 'cat /proc/meminfo' to check memory, it reads 'MemTotal 3327540kB'.
Parmer uses 512M as video memory when it has 4G.
3327540+512*1024 = 3851828(kB), so some memory is lost.

When Parmer has 4G memory, TOM2 low is 0x1F000000, TOM2 high is
0x00000001. But in e820 table or coreboot table, the last item is

    6: 0000000100000000 - 0000000118000000 = 1 RAM

This is not correct, it should be

    6: 0000000100000000 - 000000011f000000 = 1 RAM

This patch changes the memory layout when TOM2 is set.

Change-Id: I4e2d163ae8fe1e65ddc384b520a5112ca067b1d1
Signed-off-by: Siyuan Wang <SiYuan.Wang@amd.com>
Signed-off-by: Siyuan Wang <wangsiyuanbuaa@gmail.com>
Reviewed-on: http://review.coreboot.org/3366
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-06-04 17:48:47 +02:00
..
agesa AMD Fam 15tn: Use all memory on systems with more than 4 GB 2013-06-04 17:48:47 +02:00
amdfam10 x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
amdht GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
amdk8 Get rid of a number of __GNUC__ checks 2013-05-10 17:31:31 +02:00
amdmct northbridge/amd/amdmct: Use static const instead of const static 2013-06-03 08:20:54 +02:00
cimx GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
gx1 AMD GX1: Remove useless copied header file northbridge.h 2013-04-04 03:26:58 +02:00
gx2 GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
lx GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
Kconfig RD890: AMD RD890/SR56X0 CIMX wrapper 2012-02-16 19:35:09 +01:00
Makefile.inc Fix AMD Agesa leaking Kconfig 2012-03-16 22:39:09 +01:00