summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2019-04-29 18:25:49 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-05-02 13:25:05 -0500
commitc18d709e4a1710839b1651153e3679c4dc1f6a68 (patch)
tree0f11aa9459cef0a4e6c47341a27dec5abd0cb4fb /src
parenteb3c89638a1e1ba41f16af41dbb8538c395529ff (diff)
downloadtalos-hostboot-c18d709e4a1710839b1651153e3679c4dc1f6a68.tar.gz
talos-hostboot-c18d709e4a1710839b1651153e3679c4dc1f6a68.zip
Set endianess switch attributes to workaround inband OCMB sim issues
We are seeing in simics that these attributes need to be flipped from their default values. This indicates that simics is interpretting the spec that describes this communication differently than what the test board is doing currently. This issue needs to be resolves when we get hardware. Change-Id: I78341df30336bd21b96db2851e8c1caa5904ca57 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/76696 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: Glenn Miles <milesg@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')
-rw-r--r--src/usr/isteps/istep07/call_mss_eff_config.C37
1 files changed, 27 insertions, 10 deletions
diff --git a/src/usr/isteps/istep07/call_mss_eff_config.C b/src/usr/isteps/istep07/call_mss_eff_config.C
index 8c6754d1b..00340627f 100644
--- a/src/usr/isteps/istep07/call_mss_eff_config.C
+++ b/src/usr/isteps/istep07/call_mss_eff_config.C
@@ -30,46 +30,59 @@
/******************************************************************************/
// Includes
/******************************************************************************/
+
+// STD
#include <stdint.h>
+#include <stdlib.h>
#include <map>
+// Generated
+#include <attributeenums.H>
+#include <config.h>
+
+// Errors and Tracing Support
#include <trace/interface.H>
#include <initservice/taskargs.H>
+#include <initservice/isteps_trace.H>
#include <errl/errlentry.H>
-
-#include <isteps/hwpisteperror.H>
#include <errl/errludtarget.H>
+#include <isteps/hwpisteperror.H>
+#include <hbotcompid.H>
-#include <initservice/isteps_trace.H>
-
+// Pnor Support
#include <pnor/pnorif.H>
-// targeting support
+// Targeting Support
#include <targeting/common/commontargeting.H>
#include <targeting/common/utilFilter.H>
-#include <config.h>
+// Fapi Support
#include <fapi2.H>
#include <fapi2/plat_hwp_invoker.H>
-// HWP
+// Nimbus Specific HWPs
#include <p9_mss_eff_config.H>
#include <p9_mss_eff_config_thermal.H>
#include <p9_mss_eff_grouping.H>
+
+// Cumulus Specific HWPs
#include <p9c_mss_eff_config.H>
#include <p9c_mss_eff_mb_interleave.H>
#include <p9c_mss_eff_config_thermal.H>
+// Axone Specific HWPs
#ifdef CONFIG_AXONE
#include <p9a_mss_eff_config.H>
#include <p9a_mss_eff_config_thermal.H>
#endif
-#include <hbotcompid.H>
+// SMF Support
+#include <secureboot/smf.H>
+// NVDIMM Support
#include <nvram/nvram_interface.H>
-#include <secureboot/smf.H>
-#include <stdlib.h>
+
+
namespace ISTEP_07
{
@@ -203,6 +216,10 @@ void* call_mss_eff_config( void *io_pArgs )
TARGETING::TargetHandleList l_memportTargetList;
std::vector<fapi2::Target<fapi2::TARGET_TYPE_MEM_PORT>> l_fapi_memport_targets;
+ //TODO RTC: 202491 Ensure endianess in simics matches hardware
+ l_sys->setAttr<TARGETING::ATTR_MSS_OCMB_EXP_STRUCT_MMIO_ENDIAN_CTRL>(fapi2::ENUM_ATTR_MSS_OCMB_EXP_STRUCT_MMIO_ENDIAN_CTRL_NO_SWAP);
+ l_sys->setAttr<TARGETING::ATTR_MSS_OCMB_EXP_STRUCT_ENDIAN>(fapi2::ENUM_ATTR_MSS_OCMB_EXP_STRUCT_ENDIAN_LITTLE_ENDIAN);
+
if(l_procModel == TARGETING::MODEL_CUMULUS)
{
// Get all Centaur targets
OpenPOWER on IntegriCloud