summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/initfiles/p9_mmu_scom.C
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2016-11-29 21:45:18 -0600
committerspashabk-in <shakeebbk@in.ibm.com>2016-12-20 05:18:52 -0600
commit7f238f63fc3dd671db7a83bf1892680eb678d15b (patch)
tree5436227927a271d62eb6479fcdab9bc4dee3fc21 /src/import/chips/p9/procedures/hwp/initfiles/p9_mmu_scom.C
parent8d07cb04ffb38e68b48b3bd17bebfd27d7dc0a50 (diff)
downloadtalos-sbe-7f238f63fc3dd671db7a83bf1892680eb678d15b.tar.gz
talos-sbe-7f238f63fc3dd671db7a83bf1892680eb678d15b.zip
Update code to consolidate writes to same address in same putScom
-When refactoring the code to support iterating over EC levels the optimization implemented to consolidate writes to the same scom address was inadvertently removed, this commit restores that optimization. Change-Id: I43109b6c1e7ed2d4ed2f84f429f86cbe50553f88 RTC:164881 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33379 Dev-Ready: Joseph J. McGill <jmcgill@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: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33380 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/initfiles/p9_mmu_scom.C')
-rw-r--r--src/import/chips/p9/procedures/hwp/initfiles/p9_mmu_scom.C575
1 files changed, 185 insertions, 390 deletions
diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_mmu_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_mmu_scom.C
index 16e38f45..5d11380c 100644
--- a/src/import/chips/p9/procedures/hwp/initfiles/p9_mmu_scom.C
+++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_mmu_scom.C
@@ -29,15 +29,15 @@
using namespace fapi2;
-constexpr auto literal_0b11111 = 0b11111;
-constexpr auto literal_0x0258 = 0x0258;
-constexpr auto literal_0x00E = 0x00E;
-constexpr auto literal_0x000000000000 = 0x000000000000;
-constexpr auto literal_0x910000040B00 = 0x910000040B00;
-constexpr auto literal_0x0000FAF800FF = 0x0000FAF800FF;
+constexpr auto literal_0x04047C0000000000 = 0x04047C0000000000;
constexpr auto literal_0x0000000000000000 = 0x0000000000000000;
constexpr auto literal_0x409B000000000000 = 0x409B000000000000;
-constexpr auto literal_0x04047C0000000000 = 0x04047C0000000000;
+constexpr auto literal_0x0000FAF800FF = 0x0000FAF800FF;
+constexpr auto literal_0x000000000000 = 0x000000000000;
+constexpr auto literal_0x910000040B00 = 0x910000040B00;
+constexpr auto literal_0b11111 = 0b11111;
+constexpr auto literal_0x00E = 0x00E;
+constexpr auto literal_0x0258 = 0x0258;
fapi2::ReturnCode p9_mmu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& TGT0,
const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1)
@@ -64,461 +64,256 @@ fapi2::ReturnCode p9_mmu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&
break;
}
+ fapi2::ATTR_PROC_FABRIC_ADDR_BAR_MODE_Type l_TGT1_ATTR_PROC_FABRIC_ADDR_BAR_MODE;
+ l_rc = FAPI_ATTR_GET(fapi2::ATTR_PROC_FABRIC_ADDR_BAR_MODE, TGT1, l_TGT1_ATTR_PROC_FABRIC_ADDR_BAR_MODE);
+
+ if (l_rc)
{
- fapi2::buffer<uint64_t> l_scom_buffer;
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c52ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c52ull)");
- break;
- }
-
- {
- constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70;
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 20, 1, 57 );
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 24, 1, 62 );
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 26, 1, 63 );
- }
-
- l_rc = fapi2::putScom(TGT0, 0x5012c52ull, l_scom_buffer);
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c52ull)");
- break;
- }
- }
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c53ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c53ull)");
- break;
- }
-
- {
- constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70;
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 2, 2, 60 );
- }
-
- l_rc = fapi2::putScom(TGT0, 0x5012c53ull, l_scom_buffer);
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c53ull)");
- break;
- }
- }
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c54ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c54ull)");
- break;
- }
-
- {
- constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70;
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 16, 1, 58 );
- }
-
- l_rc = fapi2::putScom(TGT0, 0x5012c54ull, l_scom_buffer);
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c54ull)");
- break;
- }
- }
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c55ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c55ull)");
- break;
- }
-
- {
- constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70;
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 16, 1, 59 );
- }
-
- l_rc = fapi2::putScom(TGT0, 0x5012c55ull, l_scom_buffer);
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c55ull)");
- break;
- }
- }
+ FAPI_ERR("ERROR executing: FAPI_ATTR_GET (ATTR_PROC_FABRIC_ADDR_BAR_MODE)");
+ break;
}
+ fapi2::ATTR_PROC_FABRIC_PUMP_MODE_Type l_TGT1_ATTR_PROC_FABRIC_PUMP_MODE;
+ l_rc = FAPI_ATTR_GET(fapi2::ATTR_PROC_FABRIC_PUMP_MODE, TGT1, l_TGT1_ATTR_PROC_FABRIC_PUMP_MODE);
+
+ if (l_rc)
{
- fapi2::buffer<uint64_t> l_scom_buffer;
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c52ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c52ull)");
- break;
- }
-
- {
- l_scom_buffer.insert<uint64_t> (literal_0b11111, 30, 1, 59 );
- l_scom_buffer.insert<uint64_t> (literal_0b11111, 60, 4, 60 );
- }
-
- l_rc = fapi2::putScom(TGT0, 0x5012c52ull, l_scom_buffer);
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c52ull)");
- break;
- }
- }
+ FAPI_ERR("ERROR executing: FAPI_ATTR_GET (ATTR_PROC_FABRIC_PUMP_MODE)");
+ break;
}
+ fapi2::buffer<uint64_t> l_scom_buffer;
{
- fapi2::buffer<uint64_t> l_scom_buffer;
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c53ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c53ull)");
- break;
- }
+ l_rc = fapi2::getScom( TGT0, 0x5012c03ull, l_scom_buffer );
- {
- l_scom_buffer.insert<uint64_t> (literal_0x0258, 32, 16, 48 );
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: getScom (0x5012c03ull)");
+ break;
+ }
- l_rc = fapi2::putScom(TGT0, 0x5012c53ull, l_scom_buffer);
+ l_scom_buffer.insert<uint64_t> (literal_0x04047C0000000000, 0, 22, 0 );
+ l_rc = fapi2::putScom(TGT0, 0x5012c03ull, l_scom_buffer);
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c53ull)");
- break;
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: putScom (0x5012c03ull)");
+ break;
}
}
-
{
- fapi2::buffer<uint64_t> l_scom_buffer;
+ l_rc = fapi2::getScom( TGT0, 0x5012c06ull, l_scom_buffer );
+
+ if (l_rc)
{
- l_rc = fapi2::getScom( TGT0, 0x5012c55ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c55ull)");
- break;
- }
-
- {
- constexpr auto l_NMMU_MM_CFG_NMMU_CTL_TLB_HASH_PID_DIS_ON = 0x1;
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_CFG_NMMU_CTL_TLB_HASH_PID_DIS_ON, 21, 1, 63 );
- }
-
- l_rc = fapi2::putScom(TGT0, 0x5012c55ull, l_scom_buffer);
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c55ull)");
- break;
- }
+ FAPI_ERR("ERROR executing: getScom (0x5012c06ull)");
+ break;
}
- }
- {
- fapi2::buffer<uint64_t> l_scom_buffer;
+ l_scom_buffer.insert<uint64_t> (literal_0x0000000000000000, 0, 22, 0 );
+ l_rc = fapi2::putScom(TGT0, 0x5012c06ull, l_scom_buffer);
+
+ if (l_rc)
{
- l_rc = fapi2::getScom( TGT0, 0x5012c55ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c55ull)");
- break;
- }
-
- {
- constexpr auto l_NMMU_MM_CFG_NMMU_CTL_TLB_ISS543B_FIX_EN_ON = 0x1;
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_CFG_NMMU_CTL_TLB_ISS543B_FIX_EN_ON, 53, 1, 63 );
- }
-
- l_rc = fapi2::putScom(TGT0, 0x5012c55ull, l_scom_buffer);
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c55ull)");
- break;
- }
+ FAPI_ERR("ERROR executing: putScom (0x5012c06ull)");
+ break;
}
}
-
{
- fapi2::buffer<uint64_t> l_scom_buffer;
+ l_rc = fapi2::getScom( TGT0, 0x5012c07ull, l_scom_buffer );
+
+ if (l_rc)
{
- l_rc = fapi2::getScom( TGT0, 0x5012c52ull, l_scom_buffer );
+ FAPI_ERR("ERROR executing: getScom (0x5012c07ull)");
+ break;
+ }
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c52ull)");
- break;
- }
+ l_scom_buffer.insert<uint64_t> (literal_0x409B000000000000, 0, 22, 0 );
+ l_rc = fapi2::putScom(TGT0, 0x5012c07ull, l_scom_buffer);
- {
- l_scom_buffer.insert<uint64_t> (literal_0x00E, 0, 12, 52 );
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: putScom (0x5012c07ull)");
+ break;
+ }
+ }
+ {
+ l_rc = fapi2::getScom( TGT0, 0x5012c15ull, l_scom_buffer );
- l_rc = fapi2::putScom(TGT0, 0x5012c52ull, l_scom_buffer);
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: getScom (0x5012c15ull)");
+ break;
+ }
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c52ull)");
- break;
- }
+ if ((l_TGT1_ATTR_PROC_FABRIC_ADDR_BAR_MODE == fapi2::ENUM_ATTR_PROC_FABRIC_ADDR_BAR_MODE_SMALL_SYSTEM))
+ {
+ constexpr auto l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_ADDR_BAR_MODE_ON = 0x1;
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_ADDR_BAR_MODE_ON, 33, 1, 63 );
+ }
+ else if ((l_TGT1_ATTR_PROC_FABRIC_ADDR_BAR_MODE == fapi2::ENUM_ATTR_PROC_FABRIC_ADDR_BAR_MODE_LARGE_SYSTEM))
+ {
+ constexpr auto l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_ADDR_BAR_MODE_OFF = 0x0;
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_ADDR_BAR_MODE_OFF, 33, 1, 63 );
}
- }
- fapi2::ATTR_PROC_FABRIC_ADDR_BAR_MODE_Type l_TGT1_ATTR_PROC_FABRIC_ADDR_BAR_MODE;
- l_rc = FAPI_ATTR_GET(fapi2::ATTR_PROC_FABRIC_ADDR_BAR_MODE, TGT1, l_TGT1_ATTR_PROC_FABRIC_ADDR_BAR_MODE);
+ if ((l_TGT1_ATTR_PROC_FABRIC_PUMP_MODE == fapi2::ENUM_ATTR_PROC_FABRIC_PUMP_MODE_CHIP_IS_NODE))
+ {
+ constexpr auto l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_CFG_PUMP_MODE_ON = 0x1;
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_CFG_PUMP_MODE_ON, 39, 1, 63 );
+ }
+ else if ((l_TGT1_ATTR_PROC_FABRIC_PUMP_MODE == fapi2::ENUM_ATTR_PROC_FABRIC_PUMP_MODE_CHIP_IS_GROUP))
+ {
+ constexpr auto l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_CFG_PUMP_MODE_OFF = 0x0;
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_CFG_PUMP_MODE_OFF, 39, 1, 63 );
+ }
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: FAPI_ATTR_GET (ATTR_PROC_FABRIC_ADDR_BAR_MODE)");
- break;
- }
+ l_rc = fapi2::putScom(TGT0, 0x5012c15ull, l_scom_buffer);
- {
- fapi2::buffer<uint64_t> l_scom_buffer;
+ if (l_rc)
{
- l_rc = fapi2::getScom( TGT0, 0x5012c15ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c15ull)");
- break;
- }
-
- {
- if ((l_TGT1_ATTR_PROC_FABRIC_ADDR_BAR_MODE == fapi2::ENUM_ATTR_PROC_FABRIC_ADDR_BAR_MODE_SMALL_SYSTEM))
- {
- constexpr auto l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_ADDR_BAR_MODE_ON = 0x1;
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_ADDR_BAR_MODE_ON, 33, 1, 63 );
- }
- else if ((l_TGT1_ATTR_PROC_FABRIC_ADDR_BAR_MODE == fapi2::ENUM_ATTR_PROC_FABRIC_ADDR_BAR_MODE_LARGE_SYSTEM))
- {
- constexpr auto l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_ADDR_BAR_MODE_OFF = 0x0;
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_ADDR_BAR_MODE_OFF, 33, 1, 63 );
- }
- }
-
- l_rc = fapi2::putScom(TGT0, 0x5012c15ull, l_scom_buffer);
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c15ull)");
- break;
- }
+ FAPI_ERR("ERROR executing: putScom (0x5012c15ull)");
+ break;
}
}
+ {
+ l_rc = fapi2::getScom( TGT0, 0x5012c43ull, l_scom_buffer );
- fapi2::ATTR_PROC_FABRIC_PUMP_MODE_Type l_TGT1_ATTR_PROC_FABRIC_PUMP_MODE;
- l_rc = FAPI_ATTR_GET(fapi2::ATTR_PROC_FABRIC_PUMP_MODE, TGT1, l_TGT1_ATTR_PROC_FABRIC_PUMP_MODE);
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: getScom (0x5012c43ull)");
+ break;
+ }
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: FAPI_ATTR_GET (ATTR_PROC_FABRIC_PUMP_MODE)");
- break;
- }
+ l_scom_buffer.insert<uint64_t> (literal_0x0000FAF800FF, 0, 48, 16 );
+ l_rc = fapi2::putScom(TGT0, 0x5012c43ull, l_scom_buffer);
- {
- fapi2::buffer<uint64_t> l_scom_buffer;
+ if (l_rc)
{
- l_rc = fapi2::getScom( TGT0, 0x5012c15ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c15ull)");
- break;
- }
-
- {
- if ((l_TGT1_ATTR_PROC_FABRIC_PUMP_MODE == fapi2::ENUM_ATTR_PROC_FABRIC_PUMP_MODE_CHIP_IS_NODE))
- {
- constexpr auto l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_CFG_PUMP_MODE_ON = 0x1;
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_CFG_PUMP_MODE_ON, 39, 1, 63 );
- }
- else if ((l_TGT1_ATTR_PROC_FABRIC_PUMP_MODE == fapi2::ENUM_ATTR_PROC_FABRIC_PUMP_MODE_CHIP_IS_GROUP))
- {
- constexpr auto l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_CFG_PUMP_MODE_OFF = 0x0;
- l_scom_buffer.insert<uint64_t> (l_NMMU_MM_FBC_CQ_WRAP_NXCQ_SCOM_CFG_PUMP_MODE_OFF, 39, 1, 63 );
- }
- }
-
- l_rc = fapi2::putScom(TGT0, 0x5012c15ull, l_scom_buffer);
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c15ull)");
- break;
- }
+ FAPI_ERR("ERROR executing: putScom (0x5012c43ull)");
+ break;
}
}
-
{
- fapi2::buffer<uint64_t> l_scom_buffer;
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c46ull, l_scom_buffer );
+ l_rc = fapi2::getScom( TGT0, 0x5012c46ull, l_scom_buffer );
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c46ull)");
- break;
- }
-
- {
- l_scom_buffer.insert<uint64_t> (literal_0x000000000000, 0, 48, 16 );
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: getScom (0x5012c46ull)");
+ break;
+ }
- l_rc = fapi2::putScom(TGT0, 0x5012c46ull, l_scom_buffer);
+ l_scom_buffer.insert<uint64_t> (literal_0x000000000000, 0, 48, 16 );
+ l_rc = fapi2::putScom(TGT0, 0x5012c46ull, l_scom_buffer);
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c46ull)");
- break;
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: putScom (0x5012c46ull)");
+ break;
}
}
-
{
- fapi2::buffer<uint64_t> l_scom_buffer;
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c47ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c47ull)");
- break;
- }
+ l_rc = fapi2::getScom( TGT0, 0x5012c47ull, l_scom_buffer );
- {
- l_scom_buffer.insert<uint64_t> (literal_0x910000040B00, 0, 48, 16 );
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: getScom (0x5012c47ull)");
+ break;
+ }
- l_rc = fapi2::putScom(TGT0, 0x5012c47ull, l_scom_buffer);
+ l_scom_buffer.insert<uint64_t> (literal_0x910000040B00, 0, 48, 16 );
+ l_rc = fapi2::putScom(TGT0, 0x5012c47ull, l_scom_buffer);
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c47ull)");
- break;
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: putScom (0x5012c47ull)");
+ break;
}
}
-
{
- fapi2::buffer<uint64_t> l_scom_buffer;
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c43ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c43ull)");
- break;
- }
+ l_rc = fapi2::getScom( TGT0, 0x5012c52ull, l_scom_buffer );
- {
- l_scom_buffer.insert<uint64_t> (literal_0x0000FAF800FF, 0, 48, 16 );
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: getScom (0x5012c52ull)");
+ break;
+ }
- l_rc = fapi2::putScom(TGT0, 0x5012c43ull, l_scom_buffer);
+ constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70;
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 20, 1, 57 );
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 24, 1, 62 );
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 26, 1, 63 );
+ l_scom_buffer.insert<uint64_t> (literal_0b11111, 30, 1, 59 );
+ l_scom_buffer.insert<uint64_t> (literal_0b11111, 60, 4, 60 );
+ l_scom_buffer.insert<uint64_t> (literal_0x00E, 0, 12, 52 );
+ l_rc = fapi2::putScom(TGT0, 0x5012c52ull, l_scom_buffer);
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c43ull)");
- break;
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: putScom (0x5012c52ull)");
+ break;
}
}
-
{
- fapi2::buffer<uint64_t> l_scom_buffer;
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c06ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c06ull)");
- break;
- }
+ l_rc = fapi2::getScom( TGT0, 0x5012c53ull, l_scom_buffer );
- {
- l_scom_buffer.insert<uint64_t> (literal_0x0000000000000000, 0, 22, 0 );
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: getScom (0x5012c53ull)");
+ break;
+ }
- l_rc = fapi2::putScom(TGT0, 0x5012c06ull, l_scom_buffer);
+ constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70;
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 2, 2, 60 );
+ l_scom_buffer.insert<uint64_t> (literal_0x0258, 32, 16, 48 );
+ l_rc = fapi2::putScom(TGT0, 0x5012c53ull, l_scom_buffer);
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c06ull)");
- break;
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: putScom (0x5012c53ull)");
+ break;
}
}
-
{
- fapi2::buffer<uint64_t> l_scom_buffer;
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c07ull, l_scom_buffer );
+ l_rc = fapi2::getScom( TGT0, 0x5012c54ull, l_scom_buffer );
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c07ull)");
- break;
- }
-
- {
- l_scom_buffer.insert<uint64_t> (literal_0x409B000000000000, 0, 22, 0 );
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: getScom (0x5012c54ull)");
+ break;
+ }
- l_rc = fapi2::putScom(TGT0, 0x5012c07ull, l_scom_buffer);
+ constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70;
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 16, 1, 58 );
+ l_rc = fapi2::putScom(TGT0, 0x5012c54ull, l_scom_buffer);
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c07ull)");
- break;
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: putScom (0x5012c54ull)");
+ break;
}
}
-
{
- fapi2::buffer<uint64_t> l_scom_buffer;
- {
- l_rc = fapi2::getScom( TGT0, 0x5012c03ull, l_scom_buffer );
-
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: getScom (0x5012c03ull)");
- break;
- }
+ l_rc = fapi2::getScom( TGT0, 0x5012c55ull, l_scom_buffer );
- {
- l_scom_buffer.insert<uint64_t> (literal_0x04047C0000000000, 0, 22, 0 );
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: getScom (0x5012c55ull)");
+ break;
+ }
- l_rc = fapi2::putScom(TGT0, 0x5012c03ull, l_scom_buffer);
+ constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70;
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV, 16, 1, 59 );
+ constexpr auto l_NMMU_MM_CFG_NMMU_CTL_TLB_HASH_PID_DIS_ON = 0x1;
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_CFG_NMMU_CTL_TLB_HASH_PID_DIS_ON, 21, 1, 63 );
+ constexpr auto l_NMMU_MM_CFG_NMMU_CTL_TLB_ISS543B_FIX_EN_ON = 0x1;
+ l_scom_buffer.insert<uint64_t> (l_NMMU_MM_CFG_NMMU_CTL_TLB_ISS543B_FIX_EN_ON, 53, 1, 63 );
+ l_rc = fapi2::putScom(TGT0, 0x5012c55ull, l_scom_buffer);
- if (l_rc)
- {
- FAPI_ERR("ERROR executing: putScom (0x5012c03ull)");
- break;
- }
+ if (l_rc)
+ {
+ FAPI_ERR("ERROR executing: putScom (0x5012c55ull)");
+ break;
}
}
OpenPOWER on IntegriCloud