diff options
author | Elizabeth Liner <eliner@us.ibm.com> | 2018-02-22 14:30:41 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-03-16 13:38:45 -0400 |
commit | 4761f0cf880a057733a1d31ce0150ebbe6b129b1 (patch) | |
tree | af80a0eddb6deee188e67cea4a4d5424865281d3 /src/import/chips | |
parent | 9b5cfe7260efe3cb7b66c8c14c38ea1ba9595e46 (diff) | |
download | talos-hostboot-4761f0cf880a057733a1d31ce0150ebbe6b129b1.tar.gz talos-hostboot-4761f0cf880a057733a1d31ce0150ebbe6b129b1.zip |
Updating HWP's to use PROC_CHIP_MEM_TO_USE attribute
Change-Id: I649400f7675b1df10049d05336a80accd3bf63c9
RTC:176434
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54601
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: Richard J. Knight <rjknight@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54674
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/perv/p9_setup_sbe_config.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_setup_sbe_config.C b/src/import/chips/p9/procedures/hwp/perv/p9_setup_sbe_config.C index a6144985b..e665fdb4d 100644 --- a/src/import/chips/p9/procedures/hwp/perv/p9_setup_sbe_config.C +++ b/src/import/chips/p9/procedures/hwp/perv/p9_setup_sbe_config.C @@ -96,6 +96,8 @@ enum P9_SETUP_SBE_CONFIG_Private_Constants ATTR_DISABLE_HBBL_VECTORS_BIT = 3, ATTR_MC_SYNC_MODE_BIT = 4, ATTR_SLOW_PCI_REF_CLOCK_BIT = 5, + ATTR_PROC_CHIP_MEM_TO_USE_STARTBIT = 6, + ATTR_PROC_CHIP_MEM_TO_USE_LENGTH = 4, // Scratch_reg_6 ATTR_PROC_EFF_FABRIC_GROUP_ID_STARTBIT = 17, @@ -422,6 +424,7 @@ fapi2::ReturnCode p9_setup_sbe_config(const uint8_t l_disable_hbbl_vectors; uint32_t l_pll_mux; uint8_t l_mc_sync_mode; + uint8_t l_proc_chip_mem_to_use; uint8_t l_slow_pci_ref_clock; FAPI_DBG("Reading Scratch_reg5"); @@ -444,6 +447,7 @@ fapi2::ReturnCode p9_setup_sbe_config(const FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_SYS_FORCE_ALL_CORES, FAPI_SYSTEM, l_force_all_cores)); FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_DISABLE_HBBL_VECTORS, FAPI_SYSTEM, l_disable_hbbl_vectors)); FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_MC_SYNC_MODE, i_target_chip, l_mc_sync_mode)); + FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_PROC_CHIP_MEM_TO_USE, FAPI_SYSTEM, l_proc_chip_mem_to_use)); FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_DD1_SLOW_PCI_REF_CLOCK, FAPI_SYSTEM, l_slow_pci_ref_clock)); // set cache contained flag @@ -489,6 +493,11 @@ fapi2::ReturnCode p9_setup_sbe_config(const l_read_scratch_reg.clearBit<ATTR_MC_SYNC_MODE_BIT>(); } + // set which proc memory to use + l_read_scratch_reg.insert<ATTR_PROC_CHIP_MEM_TO_USE_STARTBIT, + ATTR_PROC_CHIP_MEM_TO_USE_LENGTH, + 4>(l_proc_chip_mem_to_use); + // set slow PCI ref clock bit if (l_slow_pci_ref_clock == fapi2::ENUM_ATTR_DD1_SLOW_PCI_REF_CLOCK_SLOW) { |