summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2018-10-22 15:22:46 -0600
committerMarshall Dawson <marshalldawson3rd@gmail.com>2018-10-25 00:05:23 +0000
commit74258d789cf3da7f1885e0fb405eb63205106a9d (patch)
treea57eb7f058a216cc5bb85374ae3012e7dd452520 /src/soc/amd
parent76118a7d192af29f26fa0dbe85b1cd324cb774d5 (diff)
soc/amd/common/pi: Correct top of DRAM reporting by AGESA
Accurately reflect the intention of the syslimit value returned from AmdInitPost(). Assume FFs for the non-present bits. BUG=b:118178425 TEST=Boot Grunt and verify reported value = TOM2-1. Change-Id: Ie8ea4fcbfd52c46ad441890f0decaf0f55816cfd Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/29229 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/common/block/pi/agesawrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/pi/agesawrapper.c b/src/soc/amd/common/block/pi/agesawrapper.c
index 49a2c4c998..87e0b69b8d 100644
--- a/src/soc/amd/common/block/pi/agesawrapper.c
+++ b/src/soc/amd/common/block/pi/agesawrapper.c
@@ -164,7 +164,7 @@ static void print_init_post_settings(AMD_POST_PARAMS *parms)
break;
}
- syslimit = (u64)parms->MemConfig.SysLimit * 64 * KiB;
+ syslimit = (u64)(parms->MemConfig.SysLimit + 1) * 64 * KiB - 1;
bottomio = (u64)parms->MemConfig.BottomIo * 64 * KiB;
uma_size = (u64)parms->MemConfig.UmaSize * 64 * KiB;