Skip to content

Commit

Permalink
Updating HWP's to use PROC_CHIP_MEM_TO_USE attribute
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
e-liner authored and dcrowell77 committed Mar 16, 2018
1 parent 9b5cfe7 commit 4761f0c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/import/chips/p9/procedures/hwp/perv/p9_setup_sbe_config.C
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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");
Expand All @@ -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
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 4761f0c

Please sign in to comment.