diff options
author | Doug Gilbert <dgilbert@us.ibm.com> | 2014-04-17 14:27:33 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-06-02 12:13:33 -0500 |
commit | e3a418419bd7fcf34bed25113111f06ec86ab9bb (patch) | |
tree | af54d96cbd17415982928ade5efd0ccd9ae57240 /src/usr/hwpf/hwp/mc_config | |
parent | a8e490184f0f436d8fa1e175c7f9d7368923340b (diff) | |
download | talos-hostboot-e3a418419bd7fcf34bed25113111f06ec86ab9bb.tar.gz talos-hostboot-e3a418419bd7fcf34bed25113111f06ec86ab9bb.zip |
Hostboot memory mirroring support
Change-Id: I20a5de367b33c657abdc5c6aef29cecab940a8ca
RTC: 102529
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/10641
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/mc_config')
-rw-r--r-- | src/usr/hwpf/hwp/mc_config/mc_config.C | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/usr/hwpf/hwp/mc_config/mc_config.C b/src/usr/hwpf/hwp/mc_config/mc_config.C index 44393f630..9d6f9a460 100644 --- a/src/usr/hwpf/hwp/mc_config/mc_config.C +++ b/src/usr/hwpf/hwp/mc_config/mc_config.C @@ -55,6 +55,7 @@ // fapi support #include <fapi.H> #include <fapiPlatHwpInvoker.H> +#include <fapiAttributeIds.H> #include "mc_config.H" @@ -456,6 +457,27 @@ void* call_mss_eff_config( void *io_pArgs ) TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "call_mss_eff_config entry" ); + TARGETING::Target* l_sys = NULL; + targetService().getTopLevelTarget(l_sys); + assert( l_sys != NULL ); + + // The attribute ATTR_MEM_MIRROR_PLACEMENT_POLICY should already be + // correctly set by default for all platforms except for sapphire. + // Don't allow mirroring on sapphire yet @todo-RTC:108314 + // + //ATTR_PAYLOAD_IN_MIRROR_MEM_type l_mirrored = + // l_sys->getAttr<ATTR_PAYLOAD_IN_MIRROR_MEM>(); + // + //if(l_mirrored && is_sapphire_load()) + //{ + // TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "Mirroring is enabled"); + + // uint8_t l_mmPolicy = + // fapi::ENUM_ATTR_MEM_MIRROR_PLACEMENT_POLICY_FLIPPED; + // l_sys-> + // setAttr<TARGETING::ATTR_MEM_MIRROR_PLACEMENT_POLICY>(l_mmPolicy); + //} + // Get all functional MBA chiplets TARGETING::TargetHandleList l_mbaTargetList; getAllChiplets(l_mbaTargetList, TYPE_MBA); |