summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/plat/fapiPlatUtil.C
diff options
context:
space:
mode:
authoraalugore <aalugore@us.ibm.com>2015-08-24 13:42:24 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-09-18 19:31:11 -0500
commitb672d269a8b235d0e4b4555d39192194af1bd55a (patch)
tree20e3c01961df4cf4d71a1f590a5b4861f6e3f60a /src/usr/hwpf/plat/fapiPlatUtil.C
parent66569e88a40376b4881bef6c23df411380c8f367 (diff)
downloadblackbird-hostboot-b672d269a8b235d0e4b4555d39192194af1bd55a.tar.gz
blackbird-hostboot-b672d269a8b235d0e4b4555d39192194af1bd55a.zip
Function to set Nest Frequency based off DIMM memory capability
-Needed for 32x32GB DIMM support -Finds max capable frequency of system and all present DIMMs and deconfigures any DIMM that cannot run at desired frequency -If necessary, Sets Nest Freq and triggers SBE update Change-Id: I9bba92f55f1b67ff4a15d79113f19d39272ec72d RTC:122884 Depends-on:I1dca7196cd02a2704a238665b73b522c9e103936 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/17829 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Tested-by: Jenkins OP HW Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/plat/fapiPlatUtil.C')
-rw-r--r--src/usr/hwpf/plat/fapiPlatUtil.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatUtil.C b/src/usr/hwpf/plat/fapiPlatUtil.C
index d03b6705b..269c36fe0 100644
--- a/src/usr/hwpf/plat/fapiPlatUtil.C
+++ b/src/usr/hwpf/plat/fapiPlatUtil.C
@@ -334,7 +334,7 @@ void* fapiPlatMalloc(size_t s)
{
if (s > PAGE_SIZE)
{
- s = ALIGN_TO_NEXT_POWER_OF_TWO_PAGES(s);
+ s = PAGE_SIZE * ALIGN_POW2(ALIGN_PAGE(s) / PAGE_SIZE);
}
return malloc(s);
}
OpenPOWER on IntegriCloud