Skip to content

Commit 1a6584d

Browse files
Abhishek Agarwaldcrowell77
authored andcommitted
getecid update for DD fix level
Change-Id: I3361fb49591e733b765f92b357abcb9247ae9530 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33097 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Soma Bhanutej <soma.bhanu@in.ibm.com> Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com> Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33101 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
1 parent e1d67d5 commit 1a6584d

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/import/chips/p9/procedures/hwp/perv/p9_getecid.C

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,8 @@
3636
//------------------------------------------------------------------------------
3737

3838

39-
//## auto_generated
4039
#include "p9_getecid.H"
41-
//## auto_generated
42-
#include "p9_const_common.H"
4340

44-
#include <p9_perv_scom_addresses.H>
45-
#include <p9_perv_scom_addresses_fld.H>
4641
#include <p9_misc_scom_addresses.H>
4742
#include <p9_misc_scom_addresses_fld.H>
4843
#include <p9_const_common.H>
@@ -54,22 +49,30 @@ fapi2::ReturnCode p9_getecid(const
5449
uint64_t attr_data[2];
5550
fapi2::buffer<uint64_t> l_ecid_part0_data64 = 0;
5651
fapi2::buffer<uint64_t> l_ecid_part1_data64 = 0;
52+
fapi2::buffer<uint64_t> l_ecid_part2_data64 = 0;
53+
fapi2::variable_buffer l_fuseString(fuseString_len);
5754
FAPI_INF("Entering ...");
5855

5956

6057
FAPI_DBG("extract and manipulate ECID data");
6158
FAPI_TRY(fapi2::getScom(i_target_chip, PU_OTPROM0_ECID_PART0_REGISTER, l_ecid_part0_data64));
6259
FAPI_TRY(fapi2::getScom(i_target_chip, PU_OTPROM0_ECID_PART1_REGISTER, l_ecid_part1_data64));
60+
FAPI_TRY(fapi2::getScom(i_target_chip, PU_OTPROM0_ECID_PART2_REGISTER, l_ecid_part2_data64));
6361

6462
l_ecid_part0_data64.reverse();
6563
l_ecid_part1_data64.reverse();
64+
l_ecid_part2_data64.reverse();
6665

6766
attr_data[0] = l_ecid_part0_data64();
6867
attr_data[1] = l_ecid_part1_data64();
6968

70-
FAPI_TRY(o_fuseString.insert(l_ecid_part0_data64(), 0, 64));
69+
FAPI_TRY(l_fuseString.insert(l_ecid_part0_data64(), 0, 64));
7170

72-
FAPI_TRY(o_fuseString.insert(l_ecid_part1_data64(), 64, 48));
71+
FAPI_TRY(l_fuseString.insert(l_ecid_part1_data64(), 64, 64));
72+
73+
FAPI_TRY(l_fuseString.insert(l_ecid_part2_data64(), 128, 48));
74+
75+
o_fuseString = l_fuseString;
7376

7477
FAPI_DBG("push fuse string into attribute");
7578

src/import/chips/p9/procedures/hwp/perv/p9_getecid.H

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242

4343
#include <fapi2.H>
4444

45+
enum P9_GETECID_Private_Constants
46+
{
47+
fuseString_len = 176 // fuse string length
48+
};
4549

4650
typedef fapi2::ReturnCode (*p9_getecid_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&,
4751
fapi2::variable_buffer& fuseString);

0 commit comments

Comments
 (0)