Skip to content

Commit c04eaa1

Browse files
steffenchrisdcrowell77
authored andcommitted
I/O Xbus Read / Restore eRepair L1 Procedures
Change-Id: Iad4c2a7e4bb4de2f10ad0b721166d6c6f841b490 Original-Change-Id: I10eaf6d89676106ea29d37406cec16724466eed3 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21543 Tested-by: Jenkins Server Reviewed-by: Sumit Kumar <sumit_kumar@in.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Gary A. Peterson <garyp@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38891 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
1 parent feb5e5e commit c04eaa1

File tree

3 files changed

+167
-0
lines changed

3 files changed

+167
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/* IBM_PROLOG_BEGIN_TAG */
2+
/* This is an automatically generated prolog. */
3+
/* */
4+
/* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_xbus_read_erepair.C $ */
5+
/* */
6+
/* OpenPOWER HostBoot Project */
7+
/* */
8+
/* Contributors Listed Below - COPYRIGHT 2015,2017 */
9+
/* [+] International Business Machines Corp. */
10+
/* */
11+
/* */
12+
/* Licensed under the Apache License, Version 2.0 (the "License"); */
13+
/* you may not use this file except in compliance with the License. */
14+
/* You may obtain a copy of the License at */
15+
/* */
16+
/* http://www.apache.org/licenses/LICENSE-2.0 */
17+
/* */
18+
/* Unless required by applicable law or agreed to in writing, software */
19+
/* distributed under the License is distributed on an "AS IS" BASIS, */
20+
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
21+
/* implied. See the License for the specific language governing */
22+
/* permissions and limitations under the License. */
23+
/* */
24+
/* IBM_PROLOG_END_TAG */
25+
///
26+
/// @file p9_io_xbus_read_erepair.C
27+
/// @brief Read eRepair.
28+
///----------------------------------------------------------------------------
29+
/// *HWP HWP Owner : Chris Steffen <cwsteffen@us.ibm.com>
30+
/// *HWP HWP Backup Owner : Gary Peterson <garyp@us.ibm.com>
31+
/// *HWP FW Owner : Jamie Knight <rjknight@us.ibm.com>
32+
/// *HWP Team : IO
33+
/// *HWP Level : 1
34+
/// *HWP Consumed by : FSP:HB
35+
///----------------------------------------------------------------------------
36+
///
37+
/// @verbatim
38+
/// High-level procedure flow:
39+
///
40+
/// A HWP that runs Read eRepair. This procedure reads the current bad
41+
/// lanes and passes by reference the lane numbers in a vector.
42+
///
43+
/// Procedure Prereq:
44+
/// - System clocks are running.
45+
///
46+
/// @endverbatim
47+
///----------------------------------------------------------------------------
48+
49+
// ----------------------------------------------------------------------------
50+
// Includes
51+
// ----------------------------------------------------------------------------
52+
#include "p9_io_xbus_read_erepair.H"
53+
54+
// ----------------------------------------------------------------------------
55+
// Procedure Function
56+
// ----------------------------------------------------------------------------
57+
58+
59+
/**
60+
* @brief A HWP that runs Read eRepair. This procedure reads the current bad
61+
* lanes and passes by reference the lane numbers in a vector
62+
* @param[in] i_target Reference to Target
63+
* @param[out] o_bad_lanes Vector of bad lanes
64+
* @retval ReturnCode
65+
*/
66+
fapi2::ReturnCode
67+
p9_io_xbus_read_erepair(const fapi2::Target < fapi2::TARGET_TYPE_XBUS >& i_target,
68+
std::vector< uint8_t >& o_bad_lanes)
69+
{
70+
FAPI_IMP("Entering...");
71+
fapi2::ReturnCode rc = 0;
72+
#if 0
73+
74+
fapi_try_exit:
75+
#endif
76+
FAPI_IMP("Exiting...");
77+
return fapi2::FAPI2_RC_SUCCESS;
78+
}
79+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/* IBM_PROLOG_BEGIN_TAG */
2+
/* This is an automatically generated prolog. */
3+
/* */
4+
/* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_xbus_read_erepair.H $ */
5+
/* */
6+
/* OpenPOWER HostBoot Project */
7+
/* */
8+
/* Contributors Listed Below - COPYRIGHT 2015,2017 */
9+
/* [+] International Business Machines Corp. */
10+
/* */
11+
/* */
12+
/* Licensed under the Apache License, Version 2.0 (the "License"); */
13+
/* you may not use this file except in compliance with the License. */
14+
/* You may obtain a copy of the License at */
15+
/* */
16+
/* http://www.apache.org/licenses/LICENSE-2.0 */
17+
/* */
18+
/* Unless required by applicable law or agreed to in writing, software */
19+
/* distributed under the License is distributed on an "AS IS" BASIS, */
20+
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
21+
/* implied. See the License for the specific language governing */
22+
/* permissions and limitations under the License. */
23+
/* */
24+
/* IBM_PROLOG_END_TAG */
25+
///----------------------------------------------------------------------------
26+
/// *HWP HWP Owner : Chris Steffen <cwsteffen@us.ibm.com>
27+
/// *HWP HWP Backup Owner : Gary Peterson <garyp@us.ibm.com>
28+
/// *HWP FW Owner : Jamie Knight <rjknight@us.ibm.com>
29+
/// *HWP Team : IO
30+
/// *HWP Level : 1
31+
/// *HWP Consumed by : FSP:HB
32+
///----------------------------------------------------------------------------
33+
34+
#ifndef _P9_IO_XBUS_READ_EREPAIR_H_
35+
#define _P9_IO_XBUS_READ_EREPAIR_H_
36+
37+
// ----------------------------------------------------------------------------
38+
// Includes
39+
// ----------------------------------------------------------------------------
40+
#include <fapi2.H>
41+
42+
// function pointer typedef definition for HWP call support
43+
typedef fapi2::ReturnCode (*p9_io_xbus_read_erepair_FP_t)
44+
(const fapi2::Target < fapi2::TARGET_TYPE_XBUS >&, std::vector< uint8_t >&);
45+
46+
47+
extern "C"
48+
{
49+
/**
50+
* @brief A HWP that runs Read eRepair. This procedure reads the current bad
51+
* lanes and passes by reference the lane numbers in a vector
52+
* @param[in] i_target Reference to Target
53+
* @param[out] o_bad_lanes Vector of bad lanes
54+
* @retval ReturnCode
55+
*/
56+
fapi2::ReturnCode
57+
p9_io_xbus_read_erepair(const fapi2::Target< fapi2::TARGET_TYPE_XBUS >& i_target,
58+
std::vector< uint8_t >& o_bad_lanes);
59+
60+
} // extern "C"
61+
62+
#endif // _P9_IO_XBUS_READ_EREPAIR_H_
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# IBM_PROLOG_BEGIN_TAG
2+
# This is an automatically generated prolog.
3+
#
4+
# $Source: src/import/chips/p9/procedures/hwp/io/p9_io_xbus_read_erepair.mk $
5+
#
6+
# OpenPOWER HostBoot Project
7+
#
8+
# Contributors Listed Below - COPYRIGHT 2015,2017
9+
# [+] International Business Machines Corp.
10+
#
11+
#
12+
# Licensed under the Apache License, Version 2.0 (the "License");
13+
# you may not use this file except in compliance with the License.
14+
# You may obtain a copy of the License at
15+
#
16+
# http://www.apache.org/licenses/LICENSE-2.0
17+
#
18+
# Unless required by applicable law or agreed to in writing, software
19+
# distributed under the License is distributed on an "AS IS" BASIS,
20+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
21+
# implied. See the License for the specific language governing
22+
# permissions and limitations under the License.
23+
#
24+
# IBM_PROLOG_END_TAG
25+
PROCEDURE=p9_io_xbus_read_erepair
26+
$(call BUILD_PROCEDURE)

0 commit comments

Comments
 (0)