diff options
author | CHRISTINA L. GRAVES <clgraves@us.ibm.com> | 2017-01-19 17:27:57 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2017-01-22 23:57:27 -0500 |
commit | 2a0e537f7ced4308723c462f1a41e49277dc594a (patch) | |
tree | cf70a81afd17e5653668fb7fcc000eb498d45af6 /src | |
parent | bd7be40f9d93fd0ad88149c1e41cfd649c71c317 (diff) | |
download | talos-sbe-2a0e537f7ced4308723c462f1a41e49277dc594a.tar.gz talos-sbe-2a0e537f7ced4308723c462f1a41e49277dc594a.zip |
Changing ttype to dma for MPIPL runs
Change-Id: I577d0c49a40e6636dd52cf479f699232e92e0a51
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35130
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35131
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/nest/p9_sbe_load_bootloader.C | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_sbe_load_bootloader.C b/src/import/chips/p9/procedures/hwp/nest/p9_sbe_load_bootloader.C index 09e23e59..e58e83a9 100644 --- a/src/import/chips/p9/procedures/hwp/nest/p9_sbe_load_bootloader.C +++ b/src/import/chips/p9/procedures/hwp/nest/p9_sbe_load_bootloader.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER sbe Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2016 */ +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -87,6 +87,7 @@ fapi2::ReturnCode p9_sbe_load_bootloader( uint32_t l_exception_vector_size = 0; uint8_t l_master_core = 0; int l_cacheline_num = 0; + uint8_t l_is_mpipl = 0x0; p9_PBA_oper_flag l_myPbaFlag; fapi2::buffer<uint64_t> l_dataBuf; fapi2::Target<fapi2::TARGET_TYPE_CORE> l_coreTarget; @@ -191,7 +192,17 @@ fapi2::ReturnCode p9_sbe_load_bootloader( // move data using PBA setup/access HWPs l_myPbaFlag.setFastMode(true); // FASTMODE - l_myPbaFlag.setOperationType(p9_PBA_oper_flag::LCO); // LCO operation + + FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_IS_MPIPL, FAPI_SYSTEM, l_is_mpipl), "fapiGetAttribute of ATTR_IS_MPIPL failed!"); + + if (!l_is_mpipl) + { + l_myPbaFlag.setOperationType(p9_PBA_oper_flag::LCO); // LCO operation + } + else + { + l_myPbaFlag.setOperationType(p9_PBA_oper_flag::DMA); // DMA operation + } while (l_target_address < (l_chip_base_address_nm0 + i_payload_size + l_exception_vector_size)) { |