summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/accessors/p9_mvpd_ring_funcs.H
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_mvpd_ring_funcs.H
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_mvpd_ring_funcs.H')
-rw-r--r--src/import/chips/p9/procedures/hwp/accessors/p9_mvpd_ring_funcs.H13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/import/chips/p9/procedures/hwp/accessors/p9_mvpd_ring_funcs.H b/src/import/chips/p9/procedures/hwp/accessors/p9_mvpd_ring_funcs.H
index 449a684cc..d40f69170 100644
--- a/src/import/chips/p9/procedures/hwp/accessors/p9_mvpd_ring_funcs.H
+++ b/src/import/chips/p9/procedures/hwp/accessors/p9_mvpd_ring_funcs.H
@@ -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 @@ typedef ReturnCode (*mvpdRingFuncs_FP_t) (
const uint64_t,
const RingId_t,
uint8_t*,
- uint32_t& );
+ uint32_t&,
+ uint8_t*,
+ uint32_t );
extern "C"
{
@@ -78,6 +80,9 @@ extern "C"
* @param i_ringId - Ring ID
* @param o_pRingBuf - The buffer to receive or send the ring
* @param io_rRingBufsize - Size of ring / ring buffer
+ * @param i_pTempBuf - Temp buffer, must be large enough to fit the
+ * largest vpd record that contains ring data
+ * @param i_tempBufsize - Size of temp buffer
*
* @return fapi2::ReturnCode - FAPI_RC_SUCCESS if success,
* relevant error code for failure.
@@ -91,7 +96,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 = nullptr,
+ uint32_t i_tempBufsize = 0 );
} // extern "C"
} // namespace fapi
OpenPOWER on IntegriCloud