Skip to content

Commit

Permalink
Add MDS attribute & draminit support
Browse files Browse the repository at this point in the history
Change-Id: I0496a52f5c7dd72779ed097c26fc8b305a9e00b0
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/84431
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: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Reviewed-by: Jennifer A Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/84454
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
  • Loading branch information
markypizz authored and dcrowell77 committed Oct 8, 2019
1 parent 104c2dc commit 822fea8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
Expand Up @@ -124,7 +124,9 @@ typedef struct __attribute__((packed)) user_input_msdg
// Choose the Dimm type from one of below:
// 0 = UDIMM
// 1 = RDIMM
// 2 = LRDIMM
// 2 = LRDIMM (invalid for explorer)
// 3 = MDS-LRDIMM
// 4 = MDS
uint16_t DimmType;

// Indicates presence of DRAM at each chip select for PHY. Each
Expand Down
Expand Up @@ -58,10 +58,11 @@ namespace exp
///
enum msdg_dimm_types
{
MSDG_UDIMM = 0x0000,
MSDG_RDIMM = 0x0001,
MSDG_LRDIMM = 0x0002,
MSDG_DDIMM = 0x0003,
MSDG_UDIMM = 0x0000,
MSDG_RDIMM = 0x0001,
MSDG_LRDIMM = 0x0002,
MSDG_MDS_LRDIMM = 0x0003,
MSDG_MDS = 0x0004
};

///
Expand Down Expand Up @@ -441,6 +442,14 @@ class phy_params
io_phy_params.DimmType = MSDG_LRDIMM;
break;

case fapi2::ENUM_ATTR_MEM_EFF_DIMM_TYPE_MDS_LRDIMM:
io_phy_params.DimmType = MSDG_MDS_LRDIMM;
break;

case fapi2::ENUM_ATTR_MEM_EFF_DIMM_TYPE_MDS:
io_phy_params.DimmType = MSDG_MDS;
break;

default:
const auto& l_ocmb = mss::find_target<fapi2::TARGET_TYPE_OCMB_CHIP>(iv_target);
FAPI_ASSERT(false,
Expand Down
Expand Up @@ -64,7 +64,7 @@
</description>
<initToZero></initToZero>
<valueType>uint8</valueType>
<enum> EMPTY = 0, RDIMM = 1, UDIMM = 2, LRDIMM = 3, DDIMM = 4</enum>
<enum> EMPTY = 0, RDIMM = 1, UDIMM = 2, LRDIMM = 3, DDIMM = 4, MDS_LRDIMM = 5, MDS = 6</enum>
<writeable/>
<array>2</array>
<mssAccessorName>dimm_type</mssAccessorName>
Expand Down

0 comments on commit 822fea8

Please sign in to comment.