diff options
| author | Matt Ploetz <maploetz@us.ibm.com> | 2015-09-15 16:12:22 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-09-20 07:59:46 -0500 |
| commit | 6847d73d03f0afa787b0dc9d86fd2964fcc20d05 (patch) | |
| tree | 0485a5a18d6ec718dd8a537c5f169ab8289817a1 /src/usr/hwpf | |
| parent | 731725c50fbf662ca9d7e964e7f93529a04e87f0 (diff) | |
| download | blackbird-hostboot-6847d73d03f0afa787b0dc9d86fd2964fcc20d05.tar.gz blackbird-hostboot-6847d73d03f0afa787b0dc9d86fd2964fcc20d05.zip | |
Increase memory allocation during centuar SBE init
This change will reduce the amount of memory fragmentation
during the centuar SBE initilization
Change-Id: I999f35e90801e46ed975fcc764ad3998001901cf
CQ:SW317290
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20538
Tested-by: Jenkins Server
Tested-by: Jenkins OP Build CI
Tested-by: FSP CI Jenkins
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf')
| -rw-r--r-- | src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C b/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C index 67fdf9a02..b749919a8 100644 --- a/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C +++ b/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2012,2014 */ +/* Contributors Listed Below - COPYRIGHT 2012,2015 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -55,6 +57,7 @@ #include <errl/errludtarget.H> #include <sbe/sbeif.H> #include "cen_xip_customize.H" +#include <util/align.H> extern fapi::ReturnCode fapiPoreVe(const fapi::Target i_target, std::list<uint64_t> & io_sharedObjectArgs); @@ -66,7 +69,7 @@ const uint64_t REPAIR_LOADER_RETRY_CTR_MASK = 0x000007FC00000000ull; const uint64_t CENTAUR_SBE_PNOR_MRR = 0; // Max SBE image buffer size -const uint32_t MAX_SBE_IMG_SIZE = 48 * 1024; +const uint32_t MAX_SBE_IMG_SIZE = 48 * 1024; namespace SBE_CENTAUR_INIT { @@ -168,9 +171,9 @@ void* call_sbe_centaur_init( void *io_pArgs ) (const_cast<TARGETING::Target*>(l_membuf_target))); // Expand buffer for new image size - const uint32_t l_customizedMaxSize = MAX_SBE_IMG_SIZE; - const uint32_t l_buf1Size = MAX_SBE_IMG_SIZE; - const uint32_t l_buf2Size = MAX_SBE_IMG_SIZE; + const uint32_t l_customizedMaxSize = ALIGN_POW2(MAX_SBE_IMG_SIZE); + const uint32_t l_buf1Size = ALIGN_POW2(MAX_SBE_IMG_SIZE); + const uint32_t l_buf2Size = ALIGN_POW2(MAX_SBE_IMG_SIZE); uint32_t l_customizedSize = l_customizedMaxSize; char * l_pCustomizedImage = (char *)malloc(l_customizedMaxSize); |

