diff options
author | Ben Gass <bgass@us.ibm.com> | 2017-03-22 15:57:25 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-04-07 14:20:39 -0400 |
commit | d65fbf80c4dc69bf2af026984c7eee8feadfcc17 (patch) | |
tree | c39eec1cf069a974ee82d007ac10beaf9d67129f /src | |
parent | 67fc1db3a20f0994b7e74bff665b9601ed140596 (diff) | |
download | talos-hostboot-d65fbf80c4dc69bf2af026984c7eee8feadfcc17.tar.gz talos-hostboot-d65fbf80c4dc69bf2af026984c7eee8feadfcc17.zip |
Build p9n 10 and 20 by default.
Enabling 20 caused generated initfile procedures to
change.
Chip target needed to be added to p9.fbc.ioo_dl.scom.initfile
Change-Id: Id24aa67f8d2c3f07ef85ed3bf8a555c85b4a0d72
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38324
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: CHRISTINA L. GRAVES <clgraves@us.ibm.com>
Reviewed-by: Richard J. Knight <rjknight@us.ibm.com>
Reviewed-by: Benjamin Gass <bgass@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38327
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
16 files changed, 3510 insertions, 1269 deletions
diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_cxa_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_cxa_scom.C index 91da27a1d..aaac66374 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_cxa_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_cxa_scom.C @@ -57,13 +57,29 @@ fapi2::ReturnCode p9_cxa_scom(const fapi2::Target<fapi2::TARGET_TYPE_CAPP>& TGT0 { FAPI_TRY(fapi2::getScom( TGT0, 0x2010806ull, l_scom_buffer )); - l_scom_buffer.insert<0, 52, 12, uint64_t>(literal_0x0000000000000 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<0, 52, 12, uint64_t>(literal_0x0000000000000 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<0, 53, 11, uint64_t>(literal_0x0000000000000 ); + } + FAPI_TRY(fapi2::putScom(TGT0, 0x2010806ull, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x2010807ull, l_scom_buffer )); - l_scom_buffer.insert<0, 52, 12, uint64_t>(literal_0x2080000020080 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<0, 52, 12, uint64_t>(literal_0x2080000020080 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<0, 53, 11, uint64_t>(literal_0x2080000020080 ); + } + FAPI_TRY(fapi2::putScom(TGT0, 0x2010807ull, l_scom_buffer)); } { @@ -92,11 +108,14 @@ fapi2::ReturnCode p9_cxa_scom(const fapi2::Target<fapi2::TARGET_TYPE_CAPP>& TGT0 FAPI_TRY(fapi2::putScom(TGT0, 0x2010819ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x201081bull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x201081bull, l_scom_buffer )); - l_scom_buffer.insert<45, 3, 61, uint64_t>(literal_0b111 ); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0010 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x201081bull, l_scom_buffer)); + l_scom_buffer.insert<45, 3, 61, uint64_t>(literal_0b111 ); + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0010 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x201081bull, l_scom_buffer)); + } } { FAPI_TRY(fapi2::getScom( TGT0, 0x201081cull, l_scom_buffer )); diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_ddrphy_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_ddrphy_scom.C index 41dd8567d..0a8b0e8cd 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_ddrphy_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_ddrphy_scom.C @@ -56,14 +56,17 @@ fapi2::ReturnCode p9_ddrphy_scom(const fapi2::Target<fapi2::TARGET_TYPE_MCA>& TG FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_EC, TGT1, l_chip_ec)); fapi2::buffer<uint64_t> l_scom_buffer; { - FAPI_TRY(fapi2::getScom( TGT0, 0x800000030701103full, l_scom_buffer )); - - if (( true )) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<48, 16, 48, uint64_t>(literal_0x0120 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x800000030701103full, l_scom_buffer )); + + if (( true )) + { + l_scom_buffer.insert<48, 16, 48, uint64_t>(literal_0x0120 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x800000030701103full, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x800000030701103full, l_scom_buffer)); + } } { FAPI_TRY(fapi2::getScom( TGT0, 0x800000240701103full, l_scom_buffer )); @@ -306,14 +309,17 @@ fapi2::ReturnCode p9_ddrphy_scom(const fapi2::Target<fapi2::TARGET_TYPE_MCA>& TG FAPI_TRY(fapi2::putScom(TGT0, 0x800000ad0701103full, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x800004030701103full, l_scom_buffer )); - - if (( true )) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<48, 16, 48, uint64_t>(literal_0x0120 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x800004030701103full, l_scom_buffer )); + + if (( true )) + { + l_scom_buffer.insert<48, 16, 48, uint64_t>(literal_0x0120 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x800004030701103full, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x800004030701103full, l_scom_buffer)); + } } { FAPI_TRY(fapi2::getScom( TGT0, 0x800004240701103full, l_scom_buffer )); @@ -556,14 +562,17 @@ fapi2::ReturnCode p9_ddrphy_scom(const fapi2::Target<fapi2::TARGET_TYPE_MCA>& TG FAPI_TRY(fapi2::putScom(TGT0, 0x800004ad0701103full, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x800008030701103full, l_scom_buffer )); - - if (( true )) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<48, 16, 48, uint64_t>(literal_0x0120 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x800008030701103full, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x800008030701103full, l_scom_buffer)); + if (( true )) + { + l_scom_buffer.insert<48, 16, 48, uint64_t>(literal_0x0120 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x800008030701103full, l_scom_buffer)); + } } { FAPI_TRY(fapi2::getScom( TGT0, 0x800008240701103full, l_scom_buffer )); @@ -806,14 +815,17 @@ fapi2::ReturnCode p9_ddrphy_scom(const fapi2::Target<fapi2::TARGET_TYPE_MCA>& TG FAPI_TRY(fapi2::putScom(TGT0, 0x800008ad0701103full, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x80000c030701103full, l_scom_buffer )); - - if (( true )) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<48, 16, 48, uint64_t>(literal_0x0120 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x80000c030701103full, l_scom_buffer )); + + if (( true )) + { + l_scom_buffer.insert<48, 16, 48, uint64_t>(literal_0x0120 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x80000c030701103full, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x80000c030701103full, l_scom_buffer)); + } } { FAPI_TRY(fapi2::getScom( TGT0, 0x80000c240701103full, l_scom_buffer )); @@ -1056,14 +1068,17 @@ fapi2::ReturnCode p9_ddrphy_scom(const fapi2::Target<fapi2::TARGET_TYPE_MCA>& TG FAPI_TRY(fapi2::putScom(TGT0, 0x80000cad0701103full, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x800010030701103full, l_scom_buffer )); - - if (( true )) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<48, 16, 48, uint64_t>(literal_0x0120 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x800010030701103full, l_scom_buffer )); + + if (( true )) + { + l_scom_buffer.insert<48, 16, 48, uint64_t>(literal_0x0120 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x800010030701103full, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x800010030701103full, l_scom_buffer)); + } } { FAPI_TRY(fapi2::getScom( TGT0, 0x800010240701103full, l_scom_buffer )); diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_cd_hp_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_cd_hp_scom.C index 9363dd8e1..0e436a4cb 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_cd_hp_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_cd_hp_scom.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016 */ +/* Contributors Listed Below - COPYRIGHT 2016,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -118,185 +118,188 @@ fapi2::ReturnCode p9_fbc_cd_hp_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_ FAPI_TRY(fapi2::putScom(TGT0, 0x90000e4305011c11ull, l_scom_buffer)); } { - l_scom_buffer.flush<0> (); - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<26, 2, 62, uint64_t>(literal_0b00 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<28, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<29, 2, 62, uint64_t>(literal_0b00 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<31, 2, 62, uint64_t>(literal_0b00 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<33, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<34, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_SAFE_MODE == literal_1)) - { - l_scom_buffer.insert<35, 1, 63, uint64_t>(literal_0b0 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<35, 1, 63, uint64_t>(literal_0b1 ); - } - - if ((l_def_SAFE_MODE == literal_1)) - { - l_scom_buffer.insert<36, 2, 62, uint64_t>(literal_0b00 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<36, 2, 62, uint64_t>(literal_0b01 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_SAFE_MODE == literal_1)) - { - l_scom_buffer.insert<39, 2, 62, uint64_t>(literal_0b00 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<39, 2, 62, uint64_t>(literal_0b10 ); - } - - if ((l_def_SAFE_MODE == literal_1)) - { - l_scom_buffer.insert<41, 2, 62, uint64_t>(literal_0b00 ); - } - else if ((l_def_CORE_FLOOR_RATIO_2_8 == literal_1)) - { - l_scom_buffer.insert<41, 2, 62, uint64_t>(literal_0b11 ); - } - else if ((l_def_CORE_FLOOR_RATIO_4_8 == literal_1)) - { - l_scom_buffer.insert<41, 2, 62, uint64_t>(literal_0b10 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<41, 2, 62, uint64_t>(literal_0b01 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<43, 1, 63, uint64_t>(literal_0b0 ); - } - - if (((l_def_SAFE_MODE == literal_1) || (l_def_CORE_FLOOR_RATIO_2_8 == literal_1))) - { - l_scom_buffer.insert<44, 2, 62, uint64_t>(literal_0b00 ); - } - else if ((l_def_CORE_FLOOR_RATIO_4_8 == literal_1)) - { - l_scom_buffer.insert<44, 2, 62, uint64_t>(literal_0b11 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<44, 2, 62, uint64_t>(literal_0b10 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<46, 2, 62, uint64_t>(literal_0b00 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<48, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_SAFE_MODE == literal_1)) - { - l_scom_buffer.insert<49, 1, 63, uint64_t>(literal_0b0 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<49, 1, 63, uint64_t>(literal_0b1 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<50, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_SAFE_MODE == literal_1)) - { - l_scom_buffer.insert<51, 2, 62, uint64_t>(literal_0b00 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<51, 2, 62, uint64_t>(literal_0b01 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<55, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<56, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<57, 2, 62, uint64_t>(literal_0b00 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<59, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<60, 2, 62, uint64_t>(literal_0b00 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<62, 1, 63, uint64_t>(literal_0b0 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.flush<0> (); + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<26, 2, 62, uint64_t>(literal_0b00 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<28, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<29, 2, 62, uint64_t>(literal_0b00 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<31, 2, 62, uint64_t>(literal_0b00 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<33, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<34, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_SAFE_MODE == literal_1)) + { + l_scom_buffer.insert<35, 1, 63, uint64_t>(literal_0b0 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<35, 1, 63, uint64_t>(literal_0b1 ); + } + + if ((l_def_SAFE_MODE == literal_1)) + { + l_scom_buffer.insert<36, 2, 62, uint64_t>(literal_0b00 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<36, 2, 62, uint64_t>(literal_0b01 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_SAFE_MODE == literal_1)) + { + l_scom_buffer.insert<39, 2, 62, uint64_t>(literal_0b00 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<39, 2, 62, uint64_t>(literal_0b10 ); + } + + if ((l_def_SAFE_MODE == literal_1)) + { + l_scom_buffer.insert<41, 2, 62, uint64_t>(literal_0b00 ); + } + else if ((l_def_CORE_FLOOR_RATIO_2_8 == literal_1)) + { + l_scom_buffer.insert<41, 2, 62, uint64_t>(literal_0b11 ); + } + else if ((l_def_CORE_FLOOR_RATIO_4_8 == literal_1)) + { + l_scom_buffer.insert<41, 2, 62, uint64_t>(literal_0b10 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<41, 2, 62, uint64_t>(literal_0b01 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<43, 1, 63, uint64_t>(literal_0b0 ); + } + + if (((l_def_SAFE_MODE == literal_1) || (l_def_CORE_FLOOR_RATIO_2_8 == literal_1))) + { + l_scom_buffer.insert<44, 2, 62, uint64_t>(literal_0b00 ); + } + else if ((l_def_CORE_FLOOR_RATIO_4_8 == literal_1)) + { + l_scom_buffer.insert<44, 2, 62, uint64_t>(literal_0b11 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<44, 2, 62, uint64_t>(literal_0b10 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<46, 2, 62, uint64_t>(literal_0b00 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<48, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_SAFE_MODE == literal_1)) + { + l_scom_buffer.insert<49, 1, 63, uint64_t>(literal_0b0 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<49, 1, 63, uint64_t>(literal_0b1 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<50, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_SAFE_MODE == literal_1)) + { + l_scom_buffer.insert<51, 2, 62, uint64_t>(literal_0b00 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<51, 2, 62, uint64_t>(literal_0b01 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<55, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<56, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<57, 2, 62, uint64_t>(literal_0b00 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<59, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<60, 2, 62, uint64_t>(literal_0b00 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<62, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<63, 1, 63, uint64_t>(literal_0b0 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x90000e6105011811ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x90000e6105012011ull, l_scom_buffer)); } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<63, 1, 63, uint64_t>(literal_0b0 ); - } - - FAPI_TRY(fapi2::putScom(TGT0, 0x90000e6105011811ull, l_scom_buffer)); - FAPI_TRY(fapi2::putScom(TGT0, 0x90000e6105012011ull, l_scom_buffer)); } { l_scom_buffer.flush<0> (); @@ -348,189 +351,192 @@ fapi2::ReturnCode p9_fbc_cd_hp_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_ FAPI_TRY(fapi2::putScom(TGT0, 0x90000f2005011c11ull, l_scom_buffer)); } { - l_scom_buffer.flush<0> (); - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<12, 3, 61, uint64_t>(literal_0b000 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<15, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<16, 2, 62, uint64_t>(literal_0b00 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<18, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<19, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<20, 1, 63, uint64_t>(literal_0b1 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<21, 2, 62, uint64_t>(literal_0b00 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<23, 1, 63, uint64_t>(literal_0b0 ); - } - - if (((l_def_SAFE_MODE == literal_1) || (l_def_CORE_CEILING_RATIO_8_8 == literal_1))) - { - l_scom_buffer.insert<24, 2, 62, uint64_t>(literal_0b00 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<24, 2, 62, uint64_t>(literal_0b11 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<26, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<27, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_SAFE_MODE == literal_1)) - { - l_scom_buffer.insert<28, 2, 62, uint64_t>(literal_0b00 ); - } - else if ((l_def_CORE_CEILING_RATIO_8_8 == literal_1)) - { - l_scom_buffer.insert<28, 2, 62, uint64_t>(literal_0b11 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<28, 2, 62, uint64_t>(literal_0b10 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<30, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<31, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_SAFE_MODE == literal_1)) - { - l_scom_buffer.insert<32, 2, 62, uint64_t>(literal_0b00 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<32, 2, 62, uint64_t>(literal_0b11 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<34, 3, 61, uint64_t>(literal_0b111 ); - } - - if ((l_def_SAFE_MODE == literal_1)) - { - l_scom_buffer.insert<37, 2, 62, uint64_t>(literal_0b00 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<37, 2, 62, uint64_t>(literal_0b11 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<39, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<40, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<41, 1, 63, uint64_t>(literal_0b1 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<42, 1, 63, uint64_t>(literal_0b1 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<43, 1, 63, uint64_t>(literal_0b0 ); - } - - if (((l_def_SAFE_MODE == literal_1) || (l_def_CORE_CEILING_RATIO_8_8 == literal_1))) - { - l_scom_buffer.insert<44, 2, 62, uint64_t>(literal_0b00 ); - } - else if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<44, 2, 62, uint64_t>(literal_0b11 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<46, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<47, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<48, 2, 62, uint64_t>(literal_0b00 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<50, 1, 63, uint64_t>(literal_0b0 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.flush<0> (); + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<12, 3, 61, uint64_t>(literal_0b000 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<15, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<16, 2, 62, uint64_t>(literal_0b00 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<18, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<19, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<20, 1, 63, uint64_t>(literal_0b1 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<21, 2, 62, uint64_t>(literal_0b00 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<23, 1, 63, uint64_t>(literal_0b0 ); + } + + if (((l_def_SAFE_MODE == literal_1) || (l_def_CORE_CEILING_RATIO_8_8 == literal_1))) + { + l_scom_buffer.insert<24, 2, 62, uint64_t>(literal_0b00 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<24, 2, 62, uint64_t>(literal_0b11 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<26, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<27, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_SAFE_MODE == literal_1)) + { + l_scom_buffer.insert<28, 2, 62, uint64_t>(literal_0b00 ); + } + else if ((l_def_CORE_CEILING_RATIO_8_8 == literal_1)) + { + l_scom_buffer.insert<28, 2, 62, uint64_t>(literal_0b11 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<28, 2, 62, uint64_t>(literal_0b10 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<30, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<31, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_SAFE_MODE == literal_1)) + { + l_scom_buffer.insert<32, 2, 62, uint64_t>(literal_0b00 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<32, 2, 62, uint64_t>(literal_0b11 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<34, 3, 61, uint64_t>(literal_0b111 ); + } + + if ((l_def_SAFE_MODE == literal_1)) + { + l_scom_buffer.insert<37, 2, 62, uint64_t>(literal_0b00 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<37, 2, 62, uint64_t>(literal_0b11 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<39, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<40, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<41, 1, 63, uint64_t>(literal_0b1 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<42, 1, 63, uint64_t>(literal_0b1 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<43, 1, 63, uint64_t>(literal_0b0 ); + } + + if (((l_def_SAFE_MODE == literal_1) || (l_def_CORE_CEILING_RATIO_8_8 == literal_1))) + { + l_scom_buffer.insert<44, 2, 62, uint64_t>(literal_0b00 ); + } + else if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<44, 2, 62, uint64_t>(literal_0b11 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<46, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<47, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<48, 2, 62, uint64_t>(literal_0b00 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<50, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0b0 ); + } + + if ((l_def_TRUE == literal_1)) + { + l_scom_buffer.insert<54, 10, 54, uint64_t>(literal_0x000 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x90000f4005011811ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x90000f4005012011ull, l_scom_buffer)); } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0b0 ); - } - - if ((l_def_TRUE == literal_1)) - { - l_scom_buffer.insert<54, 10, 54, uint64_t>(literal_0x000 ); - } - - FAPI_TRY(fapi2::putScom(TGT0, 0x90000f4005011811ull, l_scom_buffer)); - FAPI_TRY(fapi2::putScom(TGT0, 0x90000f4005012011ull, l_scom_buffer)); } }; diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioe_dl_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioe_dl_scom.C index 913891f86..1fb4a3144 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioe_dl_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioe_dl_scom.C @@ -65,7 +65,15 @@ fapi2::ReturnCode p9_fbc_ioe_dl_scom(const fapi2::Target<fapi2::TARGET_TYPE_XBUS { FAPI_TRY(fapi2::getScom( TGT0, 0x6011819ull, l_scom_buffer )); - l_scom_buffer.insert<8, 2, 62, uint64_t>(literal_0b11 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<8, 2, 62, uint64_t>(literal_0b11 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<8, 3, 61, uint64_t>(literal_0b11 ); + } + l_scom_buffer.insert<32, 16, 48, uint64_t>(literal_0x0000 ); l_scom_buffer.insert<48, 16, 48, uint64_t>(literal_0x0000 ); l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0x0 ); diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.C index bd493e230..c96118188 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.C @@ -30,13 +30,18 @@ using namespace fapi2; -fapi2::ReturnCode p9_fbc_ioo_dl_scom(const fapi2::Target<fapi2::TARGET_TYPE_OBUS>& TGT0) +fapi2::ReturnCode p9_fbc_ioo_dl_scom(const fapi2::Target<fapi2::TARGET_TYPE_OBUS>& TGT0, + const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& TGT1) { { + fapi2::ATTR_EC_Type l_chip_ec; + fapi2::ATTR_NAME_Type l_chip_id; + FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_NAME, TGT1, l_chip_id)); + FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_EC, TGT1, l_chip_ec)); fapi2::ATTR_OPTICS_CONFIG_MODE_Type l_TGT0_ATTR_OPTICS_CONFIG_MODE; FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_OPTICS_CONFIG_MODE, TGT0, l_TGT0_ATTR_OPTICS_CONFIG_MODE)); - uint64_t l_def_OBUS_FBC_ENABLED = (l_TGT0_ATTR_OPTICS_CONFIG_MODE == ENUM_ATTR_OPTICS_CONFIG_MODE_SMP); - uint64_t l_def_OBUS_NV_ENABLED = (l_TGT0_ATTR_OPTICS_CONFIG_MODE == ENUM_ATTR_OPTICS_CONFIG_MODE_NV); + uint64_t l_def_OBUS_FBC_ENABLED = (l_TGT0_ATTR_OPTICS_CONFIG_MODE == fapi2::ENUM_ATTR_OPTICS_CONFIG_MODE_SMP); + uint64_t l_def_OBUS_NV_ENABLED = (l_TGT0_ATTR_OPTICS_CONFIG_MODE == fapi2::ENUM_ATTR_OPTICS_CONFIG_MODE_NV); fapi2::buffer<uint64_t> l_scom_buffer; { FAPI_TRY(fapi2::getScom( TGT0, 0x901080aull, l_scom_buffer )); @@ -50,19 +55,40 @@ fapi2::ReturnCode p9_fbc_ioo_dl_scom(const fapi2::Target<fapi2::TARGET_TYPE_OBUS FAPI_TRY(fapi2::putScom(TGT0, 0x901080aull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x901080full, l_scom_buffer )); - - if (l_def_OBUS_NV_ENABLED) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - constexpr auto l_PB_IOO_LL0_CONFIG_NV0_NPU_ENABLED_ON = 0x1; - l_scom_buffer.insert<61, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_NV0_NPU_ENABLED_ON ); - constexpr auto l_PB_IOO_LL0_CONFIG_NV1_NPU_ENABLED_ON = 0x1; - l_scom_buffer.insert<62, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_NV1_NPU_ENABLED_ON ); - constexpr auto l_PB_IOO_LL0_CONFIG_NV2_NPU_ENABLED_ON = 0x1; - l_scom_buffer.insert<63, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_NV2_NPU_ENABLED_ON ); + FAPI_TRY(fapi2::getScom( TGT0, 0x901080cull, l_scom_buffer )); + + if (l_def_OBUS_NV_ENABLED) + { + constexpr auto l_PB_IOO_LL0_CONFIG_NV0_NPU_ENABLED_ON = 0x1; + l_scom_buffer.insert<61, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_NV0_NPU_ENABLED_ON ); + constexpr auto l_PB_IOO_LL0_CONFIG_NV1_NPU_ENABLED_ON = 0x1; + l_scom_buffer.insert<62, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_NV1_NPU_ENABLED_ON ); + constexpr auto l_PB_IOO_LL0_CONFIG_NV2_NPU_ENABLED_ON = 0x1; + l_scom_buffer.insert<63, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_NV2_NPU_ENABLED_ON ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x901080cull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x901080full, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x901080full, l_scom_buffer)); + if (l_def_OBUS_NV_ENABLED) + { + constexpr auto l_PB_IOO_LL0_CONFIG_NV0_NPU_ENABLED_ON = 0x1; + l_scom_buffer.insert<61, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_NV0_NPU_ENABLED_ON ); + constexpr auto l_PB_IOO_LL0_CONFIG_NV1_NPU_ENABLED_ON = 0x1; + l_scom_buffer.insert<62, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_NV1_NPU_ENABLED_ON ); + constexpr auto l_PB_IOO_LL0_CONFIG_NV2_NPU_ENABLED_ON = 0x1; + l_scom_buffer.insert<63, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_NV2_NPU_ENABLED_ON ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x901080full, l_scom_buffer)); + } } }; diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.H b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.H index 32b900e06..f08664303 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.H +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016 */ +/* Contributors Listed Below - COPYRIGHT 2016,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -31,12 +31,14 @@ #include <fapi2.H> -typedef fapi2::ReturnCode (*p9_fbc_ioo_dl_scom_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_OBUS>&); +typedef fapi2::ReturnCode (*p9_fbc_ioo_dl_scom_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_OBUS>&, + const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&); extern "C" { - fapi2::ReturnCode p9_fbc_ioo_dl_scom(const fapi2::Target<fapi2::TARGET_TYPE_OBUS>& TGT0); + fapi2::ReturnCode p9_fbc_ioo_dl_scom(const fapi2::Target<fapi2::TARGET_TYPE_OBUS>& TGT0, + const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& TGT1); } diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_int_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_int_scom.C index 220e2541f..bb7fc302c 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_int_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_int_scom.C @@ -119,11 +119,14 @@ fapi2::ReturnCode p9_int_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& FAPI_TRY(fapi2::putScom(TGT0, 0x5013124ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5013126ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5013126ull, l_scom_buffer )); - constexpr auto l_INT_INT_PC_INT_PC_AIB_TX_ORDER_RELAXED_WR_ORDERING_OFF = 0x0; - l_scom_buffer.insert<14, 1, 63, uint64_t>(l_INT_INT_PC_INT_PC_AIB_TX_ORDER_RELAXED_WR_ORDERING_OFF ); - FAPI_TRY(fapi2::putScom(TGT0, 0x5013126ull, l_scom_buffer)); + constexpr auto l_INT_INT_PC_INT_PC_AIB_TX_ORDER_RELAXED_WR_ORDERING_OFF = 0x0; + l_scom_buffer.insert<14, 1, 63, uint64_t>(l_INT_INT_PC_INT_PC_AIB_TX_ORDER_RELAXED_WR_ORDERING_OFF ); + FAPI_TRY(fapi2::putScom(TGT0, 0x5013126ull, l_scom_buffer)); + } } { FAPI_TRY(fapi2::getScom( TGT0, 0x5013140ull, l_scom_buffer )); @@ -164,8 +167,12 @@ fapi2::ReturnCode p9_int_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& { FAPI_TRY(fapi2::getScom( TGT0, 0x501322dull, l_scom_buffer )); - constexpr auto l_INT_INT_VC_INT_VC_AIB_TX_ORDERING_TAG_2_RELAXED_WR_ORDERING_DMA_OFF = 0x0; - l_scom_buffer.insert<22, 1, 63, uint64_t>(l_INT_INT_VC_INT_VC_AIB_TX_ORDERING_TAG_2_RELAXED_WR_ORDERING_DMA_OFF ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + constexpr auto l_INT_INT_VC_INT_VC_AIB_TX_ORDERING_TAG_2_RELAXED_WR_ORDERING_DMA_OFF = 0x0; + l_scom_buffer.insert<22, 1, 63, uint64_t>(l_INT_INT_VC_INT_VC_AIB_TX_ORDERING_TAG_2_RELAXED_WR_ORDERING_DMA_OFF ); + } + FAPI_TRY(fapi2::putScom(TGT0, 0x501322dull, l_scom_buffer)); } { diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_mc_scan.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_mc_scan.C index 6ff74bf86..8a8984c3c 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_mc_scan.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_mc_scan.C @@ -41,38 +41,71 @@ fapi2::ReturnCode p9_mc_scan(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& fapi2::ATTR_NAME_Type l_chip_id; FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_NAME, TGT0, l_chip_id)); FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_EC, TGT0, l_chip_ec)); - fapi2::variable_buffer l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); - l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT0.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", - l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); - fapi2::variable_buffer l_MC01_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); - l_MC01_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT1.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", - l_MC01_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); - fapi2::variable_buffer l_MC01_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); - l_MC01_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT2.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", - l_MC01_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); - fapi2::variable_buffer l_MC01_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); - l_MC01_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT3.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", - l_MC01_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); - fapi2::variable_buffer l_MC23_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); - l_MC23_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT0.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", - l_MC23_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); - fapi2::variable_buffer l_MC23_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); - l_MC23_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT1.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", - l_MC23_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); - fapi2::variable_buffer l_MC23_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); - l_MC23_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT2.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", - l_MC23_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); - fapi2::variable_buffer l_MC23_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); - l_MC23_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT3.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", - l_MC23_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); + l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT0.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", + l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC01_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); + l_MC01_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT1.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", + l_MC01_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC01_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); + l_MC01_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT2.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", + l_MC01_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC01_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); + l_MC01_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT3.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", + l_MC01_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC23_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); + l_MC23_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT0.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", + l_MC23_PORT0_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC23_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); + l_MC23_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT1.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", + l_MC23_PORT1_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC23_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); + l_MC23_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT2.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", + l_MC23_PORT2_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC23_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT(6); + l_MC23_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT.insertFromRight<uint64_t>(literal_0b111111, 0, 6); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT3.ATCL.CL.CLSCOM.MCPERF0_PREFETCH_LIMIT", + l_MC23_PORT3_ATCL_CL_CLSCOM_MCPERF0_PREFETCH_LIMIT)); + } + fapi2::variable_buffer l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF0_WR_RSVD_LOWER_OR_STATIC_LIMIT(6); l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF0_WR_RSVD_LOWER_OR_STATIC_LIMIT.insertFromRight<uint64_t>(literal_8, 0, 6); FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT0.ATCL.CL.CLSCOM.MCPERF0_WR_RSVD_LOWER_OR_STATIC_LIMIT", @@ -105,99 +138,146 @@ fapi2::ReturnCode p9_mc_scan(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& l_MC23_PORT3_ATCL_CL_CLSCOM_MCPERF0_WR_RSVD_LOWER_OR_STATIC_LIMIT.insertFromRight<uint64_t>(literal_8, 0, 6); FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT3.ATCL.CL.CLSCOM.MCPERF0_WR_RSVD_LOWER_OR_STATIC_LIMIT", l_MC23_PORT3_ATCL_CL_CLSCOM_MCPERF0_WR_RSVD_LOWER_OR_STATIC_LIMIT)); - fapi2::variable_buffer l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); - l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT0.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT0.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT0.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT0.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - fapi2::variable_buffer l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); - l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT1.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT1.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT1.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT1.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - fapi2::variable_buffer l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); - l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT2.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT2.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT2.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT2.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - fapi2::variable_buffer l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); - l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT3.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT3.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT3.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT3.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - fapi2::variable_buffer l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); - l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT0.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT0.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT0.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT0.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - fapi2::variable_buffer l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); - l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT1.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT1.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT1.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT1.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - fapi2::variable_buffer l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); - l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT2.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT2.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT2.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT2.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - fapi2::variable_buffer l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); - l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT3.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT3.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT3.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT3.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", - l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); - fapi2::variable_buffer l_MC01_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE(1); - l_MC01_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PBI01.LCBCNTL_BLK1.CLOCKGATE_DISABLE", l_MC01_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE)); - fapi2::variable_buffer l_MC01_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE(1); - l_MC01_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PBI23.LCBCNTL_BLK1.CLOCKGATE_DISABLE", l_MC01_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE)); - fapi2::variable_buffer l_MC23_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE(1); - l_MC23_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PBI01.LCBCNTL_BLK1.CLOCKGATE_DISABLE", l_MC23_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE)); - fapi2::variable_buffer l_MC23_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE(1); - l_MC23_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_1, 0, 1); - FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PBI23.LCBCNTL_BLK1.CLOCKGATE_DISABLE", l_MC23_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE)); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); + l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT0.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT0.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT0.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT0.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); + l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT1.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT1.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT1.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT1.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); + l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT2.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT2.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT2.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT2.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); + l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT3.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT3.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT3.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PORT3.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC01_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); + l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT0.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT0.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT0.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT0.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT0_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); + l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT1.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT1.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT1.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT1.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT1_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); + l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT2.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT2.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT2.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT2.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT2_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE(1); + l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_0b1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT3.READ.RDATA_ARY0.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT3.READ.RDATA_ARY1.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT3.READ.RDATA_ARY2.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PORT3.READ.RDATA_ARY3.SFT_MAC.SFT.LCBCNTL_BLK_RF.CLOCKGATE_DISABLE", + l_MC23_PORT3_READ_RDATA_ARY0_SFT_MAC_SFT_LCBCNTL_BLK_RF_CLOCKGATE_DISABLE)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC01_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE(1); + l_MC01_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PBI01.LCBCNTL_BLK1.CLOCKGATE_DISABLE", l_MC01_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC01_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE(1); + l_MC01_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC01.PBI23.LCBCNTL_BLK1.CLOCKGATE_DISABLE", l_MC01_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC23_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE(1); + l_MC23_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PBI01.LCBCNTL_BLK1.CLOCKGATE_DISABLE", l_MC23_PBI01_LCBCNTL_BLK1_CLOCKGATE_DISABLE)); + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + fapi2::variable_buffer l_MC23_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE(1); + l_MC23_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE.insertFromRight<uint64_t>(literal_1, 0, 1); + FAPI_TRY(fapi2::putSpy(TGT0, "MC23.PBI23.LCBCNTL_BLK1.CLOCKGATE_DISABLE", l_MC23_PBI23_LCBCNTL_BLK1_CLOCKGATE_DISABLE)); + } }; fapi_try_exit: return fapi2::current_err; diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_mca_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_mca_scom.C index 076695c52..f4b43ff9c 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_mca_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_mca_scom.C @@ -711,10 +711,13 @@ fapi2::ReturnCode p9_mca_scom(const fapi2::Target<fapi2::TARGET_TYPE_MCA>& TGT0, FAPI_TRY(fapi2::putScom(TGT0, 0x7010935ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x7010a0aull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x7010a0aull, l_scom_buffer )); - l_scom_buffer.insert<26, 1, 63, uint64_t>(literal_0b0 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x7010a0aull, l_scom_buffer)); + l_scom_buffer.insert<26, 1, 63, uint64_t>(literal_0b0 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x7010a0aull, l_scom_buffer)); + } } }; diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_mcs_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_mcs_scom.C index 2bcf13e85..baaff4700 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_mcs_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_mcs_scom.C @@ -50,8 +50,13 @@ fapi2::ReturnCode p9_mcs_scom(const fapi2::Target<fapi2::TARGET_TYPE_MCS>& TGT0, l_scom_buffer.insert<46, 4, 60, uint64_t>(literal_0b0111 ); l_scom_buffer.insert<62, 1, 63, uint64_t>(literal_0 ); - constexpr auto l_MC01_PBI01_SCOMFIR_MCPERF1_ENABLE_PF_DROP_CMDLIST_ON = 0x1; - l_scom_buffer.insert<61, 1, 63, uint64_t>(l_MC01_PBI01_SCOMFIR_MCPERF1_ENABLE_PF_DROP_CMDLIST_ON ); + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + constexpr auto l_MC01_PBI01_SCOMFIR_MCPERF1_ENABLE_PF_DROP_CMDLIST_ON = 0x1; + l_scom_buffer.insert<61, 1, 63, uint64_t>(l_MC01_PBI01_SCOMFIR_MCPERF1_ENABLE_PF_DROP_CMDLIST_ON ); + } + l_scom_buffer.insert<32, 7, 57, uint64_t>(literal_8 ); FAPI_TRY(fapi2::putScom(TGT0, 0x5010810ull, l_scom_buffer)); } 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 68a148a6d..634c0fc6b 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 @@ -108,10 +108,21 @@ fapi2::ReturnCode p9_mmu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& { FAPI_TRY(fapi2::getScom( TGT0, 0x5012c52ull, l_scom_buffer )); - constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70; - l_scom_buffer.insert<20, 1, 57, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); - l_scom_buffer.insert<24, 1, 62, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); - l_scom_buffer.insert<26, 1, 63, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70; + l_scom_buffer.insert<20, 1, 57, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + l_scom_buffer.insert<24, 1, 62, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + l_scom_buffer.insert<26, 1, 63, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0xe00; + l_scom_buffer.insert<20, 1, 52, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + l_scom_buffer.insert<24, 1, 57, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + l_scom_buffer.insert<26, 1, 58, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + } + l_scom_buffer.insert<30, 1, 59, uint64_t>(literal_0b11111 ); l_scom_buffer.insert<60, 4, 60, uint64_t>(literal_0b11111 ); l_scom_buffer.insert<0, 12, 52, uint64_t>(literal_0x00E ); @@ -120,23 +131,52 @@ fapi2::ReturnCode p9_mmu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& { FAPI_TRY(fapi2::getScom( TGT0, 0x5012c53ull, l_scom_buffer )); - constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70; - l_scom_buffer.insert<2, 2, 60, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70; + l_scom_buffer.insert<2, 2, 60, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0xe00; + l_scom_buffer.insert<2, 2, 55, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + } + l_scom_buffer.insert<32, 16, 48, uint64_t>(literal_0x0258 ); FAPI_TRY(fapi2::putScom(TGT0, 0x5012c53ull, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x5012c54ull, l_scom_buffer )); - constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70; - l_scom_buffer.insert<16, 1, 58, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70; + l_scom_buffer.insert<16, 1, 58, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0xe00; + l_scom_buffer.insert<16, 1, 53, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + l_scom_buffer.insert<58, 2, 59, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + } + FAPI_TRY(fapi2::putScom(TGT0, 0x5012c54ull, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x5012c55ull, l_scom_buffer )); - constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70; - l_scom_buffer.insert<16, 1, 59, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0x70; + l_scom_buffer.insert<16, 1, 59, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + constexpr auto l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV = 0xe00; + l_scom_buffer.insert<16, 1, 54, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + l_scom_buffer.insert<58, 2, 61, uint64_t>(l_NMMU_MM_PIPE_THREAD_MODE_SINGLE_THREAD_MODE_ST_INV ); + } + constexpr auto l_NMMU_MM_CFG_NMMU_CTL_TLB_HASH_PID_DIS_ON = 0x1; l_scom_buffer.insert<21, 1, 63, uint64_t>(l_NMMU_MM_CFG_NMMU_CTL_TLB_HASH_PID_DIS_ON ); constexpr auto l_NMMU_MM_CFG_NMMU_CTL_TLB_ISS543B_FIX_EN_ON = 0x1; diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_npu_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_npu_scom.C index 70b0378e8..fcc5c91e4 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_npu_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_npu_scom.C @@ -91,9 +91,20 @@ fapi2::ReturnCode p9_npu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } } if ((l_def_NVLINK_ACTIVE == literal_1)) @@ -160,159 +171,279 @@ fapi2::ReturnCode p9_npu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& FAPI_TRY(fapi2::putScom(TGT0, 0x501101bull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011020ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011020ull, l_scom_buffer )); - l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011020ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011020ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011022ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011022ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011022ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011022ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011028ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011028ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011028ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011028ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501103bull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011030ull, l_scom_buffer )); - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x501103bull, l_scom_buffer)); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011030ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011040ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011032ull, l_scom_buffer )); - l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011040ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011032ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011042ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011038ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011038ull, l_scom_buffer)); } - - if ((l_def_NVLINK_ACTIVE == literal_1)) + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x501103bull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501103bull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011040ull, l_scom_buffer )); + + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011042ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011040ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011048ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011042ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011042ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011048ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011048ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501104bull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x5011048ull, l_scom_buffer)); + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501104bull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501105bull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501105bull, l_scom_buffer )); - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x501105bull, l_scom_buffer)); + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501105bull, l_scom_buffer)); + } } { FAPI_TRY(fapi2::getScom( TGT0, 0x5011060ull, l_scom_buffer )); l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } } if ((l_def_NVLINK_ACTIVE == literal_1)) @@ -379,429 +510,669 @@ fapi2::ReturnCode p9_npu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& FAPI_TRY(fapi2::putScom(TGT0, 0x501107bull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011080ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011080ull, l_scom_buffer )); - l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<16, 6, 58, uint64_t>(literal_0x04 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<22, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<34, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 4, 60, uint64_t>(literal_0x4 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<44, 4, 60, uint64_t>(literal_0x4 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011080ull, l_scom_buffer)); } + } + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011090ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<22, 6, 58, uint64_t>(literal_0x0C ); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<28, 6, 58, uint64_t>(literal_0x04 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<1, 3, 61, uint64_t>(literal_0x4 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<34, 6, 58, uint64_t>(literal_0x0C ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 10, 54, uint64_t>(literal_0x100 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<40, 4, 60, uint64_t>(literal_0x4 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<14, 10, 54, uint64_t>(literal_0x200 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<44, 4, 60, uint64_t>(literal_0x4 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<24, 10, 54, uint64_t>(literal_0x300 ); + } } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011080ull, l_scom_buffer)); - } - { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011090ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<1, 3, 61, uint64_t>(literal_0x4 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<4, 10, 54, uint64_t>(literal_0x100 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<14, 10, 54, uint64_t>(literal_0x200 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<24, 10, 54, uint64_t>(literal_0x300 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } } FAPI_TRY(fapi2::putScom(TGT0, 0x5011090ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011100ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011092ull, l_scom_buffer )); - l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011100ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011092ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011102ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011098ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011098ull, l_scom_buffer)); } - - if ((l_def_NVLINK_ACTIVE == literal_1)) + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x50110abull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x50110abull, l_scom_buffer)); } - - FAPI_TRY(fapi2::putScom(TGT0, 0x5011102ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011108ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x50110c0ull, l_scom_buffer )); + + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<22, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<34, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 4, 60, uint64_t>(literal_0x4 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<44, 4, 60, uint64_t>(literal_0x4 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011108ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x50110c0ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501111bull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x50110d0ull, l_scom_buffer )); - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x501111bull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<1, 3, 61, uint64_t>(literal_0x4 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 10, 54, uint64_t>(literal_0x100 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<14, 10, 54, uint64_t>(literal_0x200 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<24, 10, 54, uint64_t>(literal_0x300 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x50110d0ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011120ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011100ull, l_scom_buffer )); - l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011120ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011100ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011122ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011102ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011122ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011102ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011128ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011108ull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x5011128ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011108ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501113bull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501111bull, l_scom_buffer )); - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x501113bull, l_scom_buffer)); + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501111bull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011140ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011120ull, l_scom_buffer )); - l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011140ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011120ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011142ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011122ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011142ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011122ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011148ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011128ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011148ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011128ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501115bull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501113bull, l_scom_buffer )); - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x501115bull, l_scom_buffer)); + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501113bull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011160ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011140ull, l_scom_buffer )); - l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011160ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011140ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011162ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011142ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011162ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011142ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011168ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011148ull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x5011168ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011148ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501117bull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501115bull, l_scom_buffer )); - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x501117bull, l_scom_buffer)); + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501115bull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011180ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011160ull, l_scom_buffer )); - l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<16, 6, 58, uint64_t>(literal_0x04 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<22, 6, 58, uint64_t>(literal_0x0C ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<28, 6, 58, uint64_t>(literal_0x04 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<34, 6, 58, uint64_t>(literal_0x0C ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<40, 4, 60, uint64_t>(literal_0x4 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011160ull, l_scom_buffer)); } - - if ((l_def_NVLINK_ACTIVE == literal_1)) + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<44, 4, 60, uint64_t>(literal_0x4 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011162ull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x5011180ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011162ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011190ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<1, 3, 61, uint64_t>(literal_0x4 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011168ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<4, 10, 54, uint64_t>(literal_0x100 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<14, 10, 54, uint64_t>(literal_0x200 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011168ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501117bull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501117bull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<24, 10, 54, uint64_t>(literal_0x300 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011180ull, l_scom_buffer )); + + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<22, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<34, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 4, 60, uint64_t>(literal_0x4 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<44, 4, 60, uint64_t>(literal_0x4 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011180ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011190ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<1, 3, 61, uint64_t>(literal_0x4 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011190ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 10, 54, uint64_t>(literal_0x100 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<14, 10, 54, uint64_t>(literal_0x200 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<24, 10, 54, uint64_t>(literal_0x300 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011190ull, l_scom_buffer)); + } } { FAPI_TRY(fapi2::getScom( TGT0, 0x5011200ull, l_scom_buffer )); l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } } if ((l_def_NVLINK_ACTIVE == literal_1)) @@ -852,29 +1223,32 @@ fapi2::ReturnCode p9_npu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& FAPI_TRY(fapi2::putScom(TGT0, 0x5011202ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011206ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011206ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011206ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011206ull, l_scom_buffer)); + } } { FAPI_TRY(fapi2::getScom( TGT0, 0x5011208ull, l_scom_buffer )); @@ -893,111 +1267,335 @@ fapi2::ReturnCode p9_npu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& FAPI_TRY(fapi2::putScom(TGT0, 0x501121bull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011220ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011220ull, l_scom_buffer )); - l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011220ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011220ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011222ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011222ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011222ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011222ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011226ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011226ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011226ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011228ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011228ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011230ull, l_scom_buffer )); + + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011230ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011232ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011232ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011238ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011238ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501123bull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501123bull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011240ull, l_scom_buffer )); + + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011240ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011242ull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x5011226ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011242ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011228ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011246ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011246ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011248ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011248ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501124bull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x5011228ull, l_scom_buffer)); + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501124bull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501123bull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501125bull, l_scom_buffer )); - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x501123bull, l_scom_buffer)); + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501125bull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011240ull, l_scom_buffer )); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011260ull, l_scom_buffer )); l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + } + + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } } if ((l_def_NVLINK_ACTIVE == literal_1)) @@ -1015,10 +1613,10 @@ fapi2::ReturnCode p9_npu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011240ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011260ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011242ull, l_scom_buffer )); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011262ull, l_scom_buffer )); if ((l_def_NVLINK_ACTIVE == literal_1)) { @@ -1045,361 +1643,1196 @@ fapi2::ReturnCode p9_npu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011242ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011262ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011246ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011266ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011246ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011266ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011248ull, l_scom_buffer )); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011268ull, l_scom_buffer )); if ((l_def_NVLINK_ACTIVE == literal_1)) { l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011248ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011268ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501125bull, l_scom_buffer )); + FAPI_TRY(fapi2::getScom( TGT0, 0x501127bull, l_scom_buffer )); l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x501125bull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x501127bull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011260ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011280ull, l_scom_buffer )); - l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<22, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<34, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 4, 60, uint64_t>(literal_0x4 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<44, 4, 60, uint64_t>(literal_0x4 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011280ull, l_scom_buffer)); } + } + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011290ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<1, 3, 61, uint64_t>(literal_0x4 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 10, 54, uint64_t>(literal_0x100 ); + } } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011260ull, l_scom_buffer)); - } - { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011262ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<14, 10, 54, uint64_t>(literal_0x200 ); + } + } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<24, 10, 54, uint64_t>(literal_0x300 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011262ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011290ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011266ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011292ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011292ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011298ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011298ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x50112abull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x50112abull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x50112c0ull, l_scom_buffer )); + + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<22, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<34, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 4, 60, uint64_t>(literal_0x4 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<44, 4, 60, uint64_t>(literal_0x4 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x50112c0ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x50112d0ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<1, 3, 61, uint64_t>(literal_0x4 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 10, 54, uint64_t>(literal_0x100 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<14, 10, 54, uint64_t>(literal_0x200 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<24, 10, 54, uint64_t>(literal_0x300 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x50112d0ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011345ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<56, 4, 60, uint64_t>(literal_0x8 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<60, 4, 60, uint64_t>(literal_0x8 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011345ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011382ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 12, 52, uint64_t>(literal_0xFFF ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<12, 4, 60, uint64_t>(literal_0x4 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 4, 60, uint64_t>(literal_0x8 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011382ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011383ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 3, 0, uint64_t>(literal_0xE000000000000000 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011383ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011389ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x0000740000000000 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011266ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011389ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011268ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501138aull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x7F60B04500AC0000 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x501138aull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x501138bull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xAAA70A55F0000000 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x501138bull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501138dull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x5011268ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x5550740000000000 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x501138dull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501127bull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011400ull, l_scom_buffer )); - l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x501127bull, l_scom_buffer)); + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011400ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011280ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011402ull, l_scom_buffer )); - l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011402ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<16, 6, 58, uint64_t>(literal_0x04 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011403ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x009B08180F03FFFF ); + } + else if ((l_def_NVLINK_ACTIVE == literal_0)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFFFFFFFFFFFFF ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011403ull, l_scom_buffer)); } + } + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011406ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<22, 6, 58, uint64_t>(literal_0x0C ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x7FE0B04500AC0000 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<28, 6, 58, uint64_t>(literal_0x04 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<34, 6, 58, uint64_t>(literal_0x0C ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<40, 4, 60, uint64_t>(literal_0x4 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); + } } - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<44, 4, 60, uint64_t>(literal_0x4 ); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); + } } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011280ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011406ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011290ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<1, 3, 61, uint64_t>(literal_0x4 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011407ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<4, 10, 54, uint64_t>(literal_0x100 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFF85F0FFFFFFF ); + } - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<14, 10, 54, uint64_t>(literal_0x200 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011407ull, l_scom_buffer)); } - - if ((l_def_NVLINK_ACTIVE == literal_1)) + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<24, 10, 54, uint64_t>(literal_0x300 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011408ull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x5011290ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011408ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011345ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<56, 4, 60, uint64_t>(literal_0x8 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x501141bull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<60, 4, 60, uint64_t>(literal_0x8 ); + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501141bull, l_scom_buffer)); } - - FAPI_TRY(fapi2::putScom(TGT0, 0x5011345ull, l_scom_buffer)); } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011382ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 12, 52, uint64_t>(literal_0xFFF ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011430ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<12, 4, 60, uint64_t>(literal_0x4 ); - } + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); - if ((l_def_NVLINK_ACTIVE == literal_1)) - { - l_scom_buffer.insert<16, 4, 60, uint64_t>(literal_0x8 ); - } + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011382ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011430ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011383ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 3, 0, uint64_t>(literal_0xE000000000000000 ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5011432ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011383ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011432ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011389ull, l_scom_buffer )); - - if ((l_def_NVLINK_ACTIVE == literal_1)) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x0000740000000000 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011436ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011436ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011438ull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x5011389ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011438ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501138aull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011443ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x5558F40007FFFFFF ); + } + else if ((l_def_NVLINK_ACTIVE == literal_0)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFFFFFFFFFFFFF ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011443ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x7F60B04500AC0000 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011446ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xAAA70A55F0000000 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011446ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011447ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFFFFFFFFFFFFF ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x501138aull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011447ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501138bull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501144bull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501144bull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xAAA70A55F0000000 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011460ull, l_scom_buffer )); + + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011460ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011462ull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x501138bull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011462ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x501138dull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011466ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011466ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x5550740000000000 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011468ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011468ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501147bull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x501138dull, l_scom_buffer)); + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x501147bull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011403ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011490ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<38, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<53, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<54, 1, 63, uint64_t>(literal_0x1 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011490ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x009B08180F03FFFF ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011492ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T0 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<52, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_READ_CYCLES_T2 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 12, 52, uint64_t>(l_TGT1_ATTR_PROC_EPS_WRITE_CYCLES_T2 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011492ull, l_scom_buffer)); } - else if ((l_def_NVLINK_ACTIVE == literal_0)) + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFFFFFFFFFFFFF ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011496ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_0x1 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<10, 21, 43, uint64_t>(literal_0x181000 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<3, 4, 60, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_GROUP_ID ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<7, 3, 61, uint64_t>(l_TGT0_ATTR_PROC_FABRIC_CHIP_ID ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011496ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011498ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<51, 1, 63, uint64_t>(literal_0b1 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011403ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011498ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011406ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x50114abull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + l_scom_buffer.insert<0, 1, 63, uint64_t>(literal_1 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x50114abull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x7FE0B04500AC0000 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x50114c0ull, l_scom_buffer )); + + l_scom_buffer.insert<4, 1, 63, uint64_t>(literal_0b0 ); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<22, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<28, 6, 58, uint64_t>(literal_0x04 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<34, 6, 58, uint64_t>(literal_0x0C ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<40, 4, 60, uint64_t>(literal_0x4 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<44, 4, 60, uint64_t>(literal_0x4 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x50114c0ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x50114d0ull, l_scom_buffer )); - FAPI_TRY(fapi2::putScom(TGT0, 0x5011406ull, l_scom_buffer)); + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<1, 3, 61, uint64_t>(literal_0x4 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<4, 10, 54, uint64_t>(literal_0x100 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<14, 10, 54, uint64_t>(literal_0x200 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<24, 10, 54, uint64_t>(literal_0x300 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x50114d0ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011407ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011645ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<56, 4, 60, uint64_t>(literal_0x8 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<60, 4, 60, uint64_t>(literal_0x8 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011645ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFF85F0FFFFFFF ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5011682ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 12, 52, uint64_t>(literal_0xFFF ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<12, 4, 60, uint64_t>(literal_0x4 ); + } + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<16, 4, 60, uint64_t>(literal_0x8 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011682ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011683ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 7, 0, uint64_t>(literal_0xE000000000000000 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011407ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5011683ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011443ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5011689ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x0000740000000000 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5011689ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x5558F40007FFFFFF ); + FAPI_TRY(fapi2::getScom( TGT0, 0x501168aull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x7F60B04500AC0000 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x501168aull, l_scom_buffer)); } - else if ((l_def_NVLINK_ACTIVE == literal_0)) + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFFFFFFFFFFFFF ); + FAPI_TRY(fapi2::getScom( TGT0, 0x501168bull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xAAA70A55F0000000 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x501168bull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501168dull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x5550740000000000 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011443ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x501168dull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011446ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5013c03ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x009B08180F03FFFF ); + } + else if ((l_def_NVLINK_ACTIVE == literal_0)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFFFFFFFFFFFFF ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5013c03ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xAAA70A55F0000000 ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5013c06ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x7FE0B04500AC0000 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5013c06ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5013c07ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFF85F0FFFFFFF ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011446ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5013c07ull, l_scom_buffer)); + } } { - FAPI_TRY(fapi2::getScom( TGT0, 0x5011447ull, l_scom_buffer )); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5013c43ull, l_scom_buffer )); - if ((l_def_NVLINK_ACTIVE == literal_1)) + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0x5558F40007FFFFFF ); + } + else if ((l_def_NVLINK_ACTIVE == literal_0)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFFFFFFFFFFFFF ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5013c43ull, l_scom_buffer)); + } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) { - l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFFFFFFFFFFFFF ); + FAPI_TRY(fapi2::getScom( TGT0, 0x5013c46ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xAAA70A55F0000000 ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5013c46ull, l_scom_buffer)); } + } + { + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + FAPI_TRY(fapi2::getScom( TGT0, 0x5013c47ull, l_scom_buffer )); + + if ((l_def_NVLINK_ACTIVE == literal_1)) + { + l_scom_buffer.insert<0, 64, 0, uint64_t>(literal_0xFFFFFFFFFFFFFFFF ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5011447ull, l_scom_buffer)); + FAPI_TRY(fapi2::putScom(TGT0, 0x5013c47ull, l_scom_buffer)); + } } }; diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_obus_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_obus_scom.C index 5635f77ca..2ddf1f700 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_obus_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_obus_scom.C @@ -1145,168 +1145,360 @@ fapi2::ReturnCode p9_obus_scom(const fapi2::Target<fapi2::TARGET_TYPE_OBUS>& TGT { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300009010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300009010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300109010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300109010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300209010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300209010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300309010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300309010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300409010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300409010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300509010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300509010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300609010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300609010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300709010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300709010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300809010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300809010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300909010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300909010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300a09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300a09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300b09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300b09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300c09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300c09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300d09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300d09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300e09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300e09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000300f09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000300f09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000301009010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000301009010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000301109010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000301109010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000301209010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000301209010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000301309010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000301309010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000301409010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000301409010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000301509010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000301509010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000301609010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000301609010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000301709010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<53, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000301709010c3full, l_scom_buffer)); } @@ -1505,168 +1697,360 @@ fapi2::ReturnCode p9_obus_scom(const fapi2::Target<fapi2::TARGET_TYPE_OBUS>& TGT { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00009010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00009010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00109010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00109010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00209010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00209010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00309010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00309010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00409010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00409010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00509010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00509010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00609010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00609010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00709010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00709010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00809010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00809010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00909010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00909010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00a09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00a09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00b09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00b09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00c09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00c09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00d09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00d09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00e09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00e09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a00f09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a00f09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a01009010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a01009010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a01109010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a01109010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a01209010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a01209010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a01309010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a01309010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a01409010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a01409010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a01509010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a01509010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a01609010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a01609010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000a01709010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000a01709010c3full, l_scom_buffer)); } @@ -1865,168 +2249,360 @@ fapi2::ReturnCode p9_obus_scom(const fapi2::Target<fapi2::TARGET_TYPE_OBUS>& TGT { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80009010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80009010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80109010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80109010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80209010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80209010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80309010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80309010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80409010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80409010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80509010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80509010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80609010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80609010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80709010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80709010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80809010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80809010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80909010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80909010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80a09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80a09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80b09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80b09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80c09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80c09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80d09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80d09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80e09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80e09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c80f09010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c80f09010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c81009010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c81009010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c81109010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c81109010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c81209010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c81209010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c81309010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c81309010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c81409010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c81409010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c81509010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c81509010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c81609010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c81609010c3full, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x8000c81709010c3full, l_scom_buffer )); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0011 ); + } + else if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) ) + { + l_scom_buffer.insert<48, 5, 59, uint64_t>(literal_0b0011 ); + } + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b1010 ); FAPI_TRY(fapi2::putScom(TGT0, 0x8000c81709010c3full, l_scom_buffer)); } diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_chiplet_scominit.C b/src/import/chips/p9/procedures/hwp/nest/p9_chiplet_scominit.C index 9c3de78ad..a25974acc 100644 --- a/src/import/chips/p9/procedures/hwp/nest/p9_chiplet_scominit.C +++ b/src/import/chips/p9/procedures/hwp/nest/p9_chiplet_scominit.C @@ -79,6 +79,7 @@ const uint64_t FBC_IOO_DL_FIR_MASK = 0xFCFC3FFFFCFF000CULL; // link 0,1 internal errors are a simulation artifact in dd1 so they need to be masked const uint64_t FBC_IOO_DL_FIR_MASK_SIM_DD1 = 0xFCFC3FFFFCFF000FULL; +const uint64_t OBUS_3_LL3_FIR_MASK_SIM_DD1 = 0x300000000000000FULL; static const uint8_t NV0_POS = 0x0; static const uint8_t NV1_POS = 0x1; @@ -318,15 +319,6 @@ fapi2::ReturnCode p9_chiplet_scominit(const fapi2::Target<fapi2::TARGET_TYPE_PRO l_iter++) { fapi2::toString(*l_iter, l_chipletTargetStr, sizeof(l_chipletTargetStr)); - FAPI_DBG("Invoking p9.fbc.ioo_dl.scom.initfile on target %s...", l_chipletTargetStr); - FAPI_EXEC_HWP(l_rc, p9_fbc_ioo_dl_scom, *l_iter); - - if (l_rc) - { - FAPI_ERR("Error from p9_fbc_ioo_dl_scom"); - fapi2::current_err = l_rc; - goto fapi_try_exit; - } // configure action registers & unmask FAPI_TRY(fapi2::putScom(*l_iter, OBUS_LL0_PB_IOOL_FIR_ACTION0_REG, FBC_IOO_DL_FIR_ACTION0), @@ -344,6 +336,17 @@ fapi2::ReturnCode p9_chiplet_scominit(const fapi2::Target<fapi2::TARGET_TYPE_PRO FAPI_TRY(fapi2::putScom(*l_iter, OBUS_LL0_LL0_LL0_PB_IOOL_FIR_MASK_REG, FBC_IOO_DL_FIR_MASK), "Error from putScom (OBUS_LL0_LL0_LL0_PB_IOOL_FIR_MASK_REG)"); } + + FAPI_DBG("Invoking p9.fbc.ioo_dl.scom.initfile on target %s...", l_chipletTargetStr); + FAPI_EXEC_HWP(l_rc, p9_fbc_ioo_dl_scom, *l_iter, i_target); + + if (l_rc) + { + FAPI_ERR("Error from p9_fbc_ioo_dl_scom"); + fapi2::current_err = l_rc; + goto fapi_try_exit; + } + } // Invoke NX SCOM initfile diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_npu_scominit.C b/src/import/chips/p9/procedures/hwp/nest/p9_npu_scominit.C index faa1ce532..4a3159e1e 100644 --- a/src/import/chips/p9/procedures/hwp/nest/p9_npu_scominit.C +++ b/src/import/chips/p9/procedures/hwp/nest/p9_npu_scominit.C @@ -41,6 +41,10 @@ #include <p9_misc_scom_addresses.H> #include <p9_misc_scom_addresses_fld.H> +//------------------------------------------------------------------------------ +// Constant definitions +//------------------------------------------------------------------------------ +const uint64_t NOTP9NDD1_NPU_SM2_XTS_ATRMISS = 0x501164AULL; /// /// p9_npu_scominit HWP entry point (Defined in .H file) @@ -52,6 +56,10 @@ fapi2::ReturnCode p9_npu_scominit(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CH const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM> FAPI_SYSTEM; auto l_nv_targets = i_target.getChildren<fapi2::TARGET_TYPE_NV>(); fapi2::buffer<uint64_t> l_atrmiss = 0; + uint8_t l_dd1 = 0; + + // Get attribute to check if it is dd1 or dd2 + FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_CHIP_EC_FEATURE_P9N_DD1_SPY_NAMES, i_target, l_dd1)); FAPI_DBG("Entering ..."); @@ -69,8 +77,18 @@ fapi2::ReturnCode p9_npu_scominit(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CH l_atrmiss.setBit<PU_NPU_SM2_XTS_ATRMISS_FLAG_MAP>() .setBit<PU_NPU_SM2_XTS_ATRMISS_ENA>(); - FAPI_TRY(fapi2::putScomUnderMask(i_target, PU_NPU_SM2_XTS_ATRMISS, l_atrmiss, l_atrmiss), - "Error from putScomUnderMask (PU_NPU_SM2_XTS_ATRMISS)"); + + if (l_dd1) + { + FAPI_TRY(fapi2::putScomUnderMask(i_target, PU_NPU_SM2_XTS_ATRMISS, l_atrmiss, l_atrmiss), + "Error from putScomUnderMask (PU_NPU_SM2_XTS_ATRMISS)"); + } + else + { + FAPI_TRY(fapi2::putScomUnderMask(i_target, NOTP9NDD1_NPU_SM2_XTS_ATRMISS, l_atrmiss, l_atrmiss), + "Error from putScomUnderMask (PU_NPU_SM2_XTS_ATRMISS)"); + } + FAPI_DBG("Invoking p9_nv_ref_clk_enable..."); FAPI_EXEC_HWP(l_rc, p9_nv_ref_clk_enable, i_target); diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_sys_chiplet_scominit.C b/src/import/chips/p9/procedures/hwp/nest/p9_sys_chiplet_scominit.C index 0489816d2..27b1eb0e3 100644 --- a/src/import/chips/p9/procedures/hwp/nest/p9_sys_chiplet_scominit.C +++ b/src/import/chips/p9/procedures/hwp/nest/p9_sys_chiplet_scominit.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016 */ +/* Contributors Listed Below - COPYRIGHT 2016,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -72,7 +72,7 @@ fapi2::ReturnCode p9_sys_chiplet_scominit(const fapi2::Target<fapi2::TARGET_TYPE l_iter++) { FAPI_DBG("Invoking p9.fbc.ioo_dl.scom.initfile..."); - FAPI_EXEC_HWP(l_rc, p9_fbc_ioo_dl_scom, *l_iter); + FAPI_EXEC_HWP(l_rc, p9_fbc_ioo_dl_scom, *l_iter, i_target); if (l_rc) { |