summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C
diff options
context:
space:
mode:
authorCorey Swenson <cswenson@us.ibm.com>2019-01-25 13:11:27 -0600
committerChristian R. Geddes <crgeddes@us.ibm.com>2019-02-10 22:56:15 -0600
commit99bfd4be9d12b2bb841d89bcab3cbfebb3c6dff0 (patch)
tree80cdf48011a9b2ccf6a694750054d71ff1b6c447 /src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C
parent7315298af82e5975e78e4a9b831bad8986444ccb (diff)
downloadtalos-hostboot-99bfd4be9d12b2bb841d89bcab3cbfebb3c6dff0.tar.gz
talos-hostboot-99bfd4be9d12b2bb841d89bcab3cbfebb3c6dff0.zip
Use virtual address buffer to read mvpd rings
Fragmented memory may prevent mallocing multiple pages when getting mvpd rings in xip_customize. Pass in and use a previously allocated virtual memory buffer instead. Change-Id: I43f70aab7787d2849dca5add6d4a777b5f49b62e CQ:SW451916 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70937 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Sumit Kumar <sumit_kumar@in.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70944 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C')
-rw-r--r--src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C b/src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C
index 6cb36c88b..22330564c 100644
--- a/src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C
+++ b/src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2016,2017 */
+/* Contributors Listed Below - COPYRIGHT 2016,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -57,7 +57,9 @@ extern "C"
const uint8_t i_evenOdd,
const RingId_t i_ringId,
uint8_t* o_pRingBuf,
- uint32_t& io_rRingBufsize )
+ uint32_t& io_rRingBufsize,
+ uint8_t* i_pTempBuf,
+ uint32_t i_tempBufsize )
{
fapi2::ReturnCode l_fapirc;
@@ -76,7 +78,9 @@ extern "C"
i_evenOdd,
i_ringId,
o_pRingBuf,
- io_rRingBufsize );
+ io_rRingBufsize,
+ i_pTempBuf,
+ i_tempBufsize );
FAPI_DBG("getMvpdRing: exit rc=0x%x",
OpenPOWER on IntegriCloud