diff options
author | Andre Marin <aamarin@us.ibm.com> | 2019-07-09 15:50:06 -0400 |
---|---|---|
committer | Daniel M Crowell <dcrowell@us.ibm.com> | 2019-07-19 09:07:03 -0500 |
commit | 831f9e0d8b3297f38acd3f059b853f5711877530 (patch) | |
tree | a9b405fc568edca26ce2239fc15adc442c520794 /src/import/generic/memory/lib/data_engine/p9n | |
parent | dd6aa0faadde7069f8bf628b5557b98206730c2c (diff) | |
download | talos-hostboot-831f9e0d8b3297f38acd3f059b853f5711877530.tar.gz talos-hostboot-831f9e0d8b3297f38acd3f059b853f5711877530.zip |
Fix HB error with -Os compile flag due to eff_config
Top level template is NOT unique between the two files
when using the -Os compile flag. The linker just picks
the wrong file template definition between p9a and p9n.
In -O3 everything is left in place, inline so it just works
which is why we didn't hit this error before in HB
Change-Id: I529f93fc91684ae14a132d96f518a5f66f036d4b
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80167
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Dev-Ready: STEPHEN GLANCY <sglancy@us.ibm.com>
Reviewed-by: Jennifer A Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80229
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/generic/memory/lib/data_engine/p9n')
-rw-r--r-- | src/import/generic/memory/lib/data_engine/p9n/p9n_data_init_traits.H | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/src/import/generic/memory/lib/data_engine/p9n/p9n_data_init_traits.H b/src/import/generic/memory/lib/data_engine/p9n/p9n_data_init_traits.H index cf520c148..cb70955c0 100644 --- a/src/import/generic/memory/lib/data_engine/p9n/p9n_data_init_traits.H +++ b/src/import/generic/memory/lib/data_engine/p9n/p9n_data_init_traits.H @@ -50,7 +50,7 @@ namespace mss /// @note NIMBUS, DIMM_TYPE specialization /// template<> -class preDataInitTraits<mss::proc_type::NIMBUS, DIMM_TYPE> +class preDataInitTraits<mss::proc_type::NIMBUS, pre_data_init_fields::DIMM_TYPE> { public: using attr_type = fapi2::ATTR_EFF_DIMM_TYPE_Type; @@ -91,7 +91,7 @@ class preDataInitTraits<mss::proc_type::NIMBUS, DIMM_TYPE> /// @note NIMBUS, DRAM_GEN specialization /// template<> -class preDataInitTraits<mss::proc_type::NIMBUS, DRAM_GEN> +class preDataInitTraits<mss::proc_type::NIMBUS, pre_data_init_fields::DRAM_GEN> { public: using attr_type = fapi2::ATTR_EFF_DRAM_GEN_Type; @@ -132,7 +132,7 @@ class preDataInitTraits<mss::proc_type::NIMBUS, DRAM_GEN> /// @note NIMBUS, HYBRID specialization /// template<> -class preDataInitTraits<mss::proc_type::NIMBUS, HYBRID> +class preDataInitTraits<mss::proc_type::NIMBUS, pre_data_init_fields::HYBRID> { public: using attr_type = fapi2::ATTR_EFF_HYBRID_Type; @@ -173,7 +173,7 @@ class preDataInitTraits<mss::proc_type::NIMBUS, HYBRID> /// @note NIMBUS, HYBRID_MEDIA specialization /// template<> -class preDataInitTraits<mss::proc_type::NIMBUS, HYBRID_MEDIA> +class preDataInitTraits<mss::proc_type::NIMBUS, pre_data_init_fields::HYBRID_MEDIA> { public: using attr_type = fapi2::ATTR_EFF_HYBRID_MEMORY_TYPE_Type; @@ -214,7 +214,7 @@ class preDataInitTraits<mss::proc_type::NIMBUS, HYBRID_MEDIA> /// @note NIMBUS, MRANKS specialization /// template<> -class preDataInitTraits<mss::proc_type::NIMBUS, MRANKS> +class preDataInitTraits<mss::proc_type::NIMBUS, pre_data_init_fields::MRANKS> { public: using attr_type = fapi2::ATTR_EFF_NUM_MASTER_RANKS_PER_DIMM_Type; @@ -255,7 +255,7 @@ class preDataInitTraits<mss::proc_type::NIMBUS, MRANKS> /// @note NIMBUS, DIMM_RANKS_CNFG specialization /// template<> -struct preDataInitTraits<mss::proc_type::NIMBUS, DIMM_RANKS_CNFG> +struct preDataInitTraits<mss::proc_type::NIMBUS, pre_data_init_fields::DIMM_RANKS_CNFG> { using attr_type = fapi2::ATTR_EFF_DIMM_RANKS_CONFIGED_Type; static const fapi2::TargetType TARGET_TYPE = fapi2::ATTR_EFF_NUM_MASTER_RANKS_PER_DIMM_TargetType; @@ -292,7 +292,7 @@ struct preDataInitTraits<mss::proc_type::NIMBUS, DIMM_RANKS_CNFG> /// @note AXONE, DIMM_TYPE_METADATA specialization /// template<> -struct attrEngineTraits<generic_metadata_fields, DIMM_TYPE_METADATA> +struct attrEngineTraits<proc_type::NIMBUS, generic_metadata_fields, generic_metadata_fields::DIMM_TYPE_METADATA> { using attr_type = fapi2::ATTR_MEM_DIMM_TYPE_METADATA_Type; using attr_integral_type = std::remove_all_extents<attr_type>::type; @@ -373,7 +373,7 @@ class dimmPosTraits<mss::mc_type::NIMBUS> /// @note generic_metadata_fields, DRAM_GEN_METADATA specialization /// template<> -struct attrEngineTraits<generic_metadata_fields, DRAM_GEN_METADATA> +struct attrEngineTraits<proc_type::NIMBUS, generic_metadata_fields, generic_metadata_fields::DRAM_GEN_METADATA> { using attr_type = fapi2::ATTR_MEM_DRAM_GEN_METADATA_Type; using attr_integral_type = std::remove_all_extents<attr_type>::type; @@ -423,7 +423,7 @@ struct attrEngineTraits<generic_metadata_fields, DRAM_GEN_METADATA> /// @note generic_metadata_fields, DIMM_POS_METADATA specialization /// template<> -struct attrEngineTraits<generic_metadata_fields, DIMM_POS_METADATA> +struct attrEngineTraits<proc_type::NIMBUS, generic_metadata_fields, generic_metadata_fields::DIMM_POS_METADATA> { using attr_type = fapi2::ATTR_MEM_DIMM_POS_METADATA_Type; using attr_integral_type = std::remove_all_extents<attr_type>::type; @@ -468,17 +468,6 @@ struct attrEngineTraits<generic_metadata_fields, DIMM_POS_METADATA> } }; -/// -/// @brief Value traits for attr_eff_engine_fields -/// @class attrEngineTraits -/// @note attr_eff_engine_fields -/// -template < > -struct attrEnumTraits<generic_metadata_fields> -{ - static constexpr size_t DISPATCHER = ATTR_METADATA_DISPATCHER; -}; - }// mss #endif |