Skip to content

Commit

Permalink
p9.npu.scom.initfile -- limit DCP0 credits for HW437173
Browse files Browse the repository at this point in the history
Change-Id: Id1dca730debe012d706fb9eb2fa236c7fb92fab8
CQ: HW437173
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53649
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: RYAN BLACK <rblack@us.ibm.com>
Reviewed-by: Jenny Huynh <jhuynh@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53672
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
jjmcgill authored and dcrowell77 committed Feb 18, 2018
1 parent 43736ac commit f28cb33
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 3 deletions.
58 changes: 55 additions & 3 deletions src/import/chips/p9/procedures/hwp/initfiles/p9_npu_scom.C
Expand Up @@ -50,6 +50,7 @@ constexpr uint64_t literal_0x100 = 0x100;
constexpr uint64_t literal_0x200 = 0x200;
constexpr uint64_t literal_0x300 = 0x300;
constexpr uint64_t literal_0x8 = 0x8;
constexpr uint64_t literal_0x7E = 0x7E;
constexpr uint64_t literal_0xFFF = 0xFFF;
constexpr uint64_t literal_0xE000000000000000 = 0xE000000000000000;
constexpr uint64_t literal_0x0000000000000000 = 0x0000000000000000;
Expand Down Expand Up @@ -3382,6 +3383,20 @@ fapi2::ReturnCode p9_npu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&
FAPI_TRY(fapi2::putScom(TGT0, 0x5011345ull, l_scom_buffer));
}
}
{
if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5)
&& (l_chip_ec == 0x22)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) )
{
FAPI_TRY(fapi2::getScom( TGT0, 0x501135aull, l_scom_buffer ));

if ((l_def_NVLINK_ACTIVE == literal_1))
{
l_scom_buffer.insert<32, 8, 56, uint64_t>(literal_0x7E );
}

FAPI_TRY(fapi2::putScom(TGT0, 0x501135aull, l_scom_buffer));
}
}
{
if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) )
{
Expand Down Expand Up @@ -3436,17 +3451,26 @@ fapi2::ReturnCode p9_npu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&
}
}
{
FAPI_TRY(fapi2::getScom( TGT0, 0x501138aull, 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))
{
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 == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5)
&& (l_chip_ec == 0x22)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) )
{
if ((l_def_NVLINK_ACTIVE == literal_1))
{
l_scom_buffer.insert<32, 8, 56, uint64_t>(literal_0x7E );
}
}

FAPI_TRY(fapi2::putScom(TGT0, 0x501138aull, l_scom_buffer));
}
{
if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) )
Expand Down Expand Up @@ -4349,6 +4373,34 @@ fapi2::ReturnCode p9_npu_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&
FAPI_TRY(fapi2::putScom(TGT0, 0x50114d0ull, l_scom_buffer));
}
}
{
if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5)
&& (l_chip_ec == 0x22)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) )
{
FAPI_TRY(fapi2::getScom( TGT0, 0x501155aull, l_scom_buffer ));

if ((l_def_NVLINK_ACTIVE == literal_1))
{
l_scom_buffer.insert<32, 8, 56, uint64_t>(literal_0x7E );
}

FAPI_TRY(fapi2::putScom(TGT0, 0x501155aull, l_scom_buffer));
}
}
{
if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5)
&& (l_chip_ec == 0x22)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) )
{
FAPI_TRY(fapi2::getScom( TGT0, 0x501158aull, l_scom_buffer ));

if ((l_def_NVLINK_ACTIVE == literal_1))
{
l_scom_buffer.insert<32, 8, 56, uint64_t>(literal_0x7E );
}

FAPI_TRY(fapi2::putScom(TGT0, 0x501158aull, l_scom_buffer));
}
}
{
if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5)
&& (l_chip_ec == 0x22)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) )
Expand Down
Expand Up @@ -6422,6 +6422,24 @@
</chip>
</chipEcFeature>
</attribute>
<!-- ******************************************************************** -->
<attribute>
<id>ATTR_CHIP_EC_FEATURE_HW437173</id>
<targetType>TARGET_TYPE_PROC_CHIP</targetType>
<description>
Limit NPU DCP0 credits advertised to an OpenCAPI AFU to 126.
</description>
<chipEcFeature>
<falseIfMatch/>
<chip>
<name>ENUM_ATTR_NAME_NIMBUS</name>
<ec>
<value>0x20</value>
<test>LESS_THAN</test>
</ec>
</chip>
</chipEcFeature>
</attribute>
<!-- ******************************************************************** -->
<attribute>
<id>ATTR_CHIP_EC_FEATURE_HW419021</id>>
Expand Down

0 comments on commit f28cb33

Please sign in to comment.