Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I31ea76f8cd28c77e64c9437d8e0bd9a40f09f7d4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31498 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Gary A. Peterson <garyp@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31501 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
- Loading branch information
1 parent
59f4feb
commit 7f5d96c
Showing
10 changed files
with
861 additions
and
62 deletions.
There are no files selected for viewing
584 changes: 584 additions & 0 deletions
584
src/import/chips/p9/procedures/hwp/io/p9_io_obus_dccal.C
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* IBM_PROLOG_BEGIN_TAG */ | ||
/* This is an automatically generated prolog. */ | ||
/* */ | ||
/* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_obus_dccal.H $ */ | ||
/* */ | ||
/* OpenPOWER HostBoot Project */ | ||
/* */ | ||
/* Contributors Listed Below - COPYRIGHT 2015,2017 */ | ||
/* [+] International Business Machines Corp. */ | ||
/* */ | ||
/* */ | ||
/* Licensed under the Apache License, Version 2.0 (the "License"); */ | ||
/* you may not use this file except in compliance with the License. */ | ||
/* You may obtain a copy of the License at */ | ||
/* */ | ||
/* http://www.apache.org/licenses/LICENSE-2.0 */ | ||
/* */ | ||
/* Unless required by applicable law or agreed to in writing, software */ | ||
/* distributed under the License is distributed on an "AS IS" BASIS, */ | ||
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ | ||
/* implied. See the License for the specific language governing */ | ||
/* permissions and limitations under the License. */ | ||
/* */ | ||
/* IBM_PROLOG_END_TAG */ | ||
/// | ||
/// @file p9_io_obus_dccal.H | ||
/// @brief Run Dccal on the link. | ||
///----------------------------------------------------------------------------- | ||
/// *HWP HWP Owner : Chris Steffen <cwsteffen@us.ibm.com> | ||
/// *HWP HWP Backup Owner : Gary Peterson <garyp@us.ibm.com> | ||
/// *HWP FW Owner : Jamie Knight <rjknight@us.ibm.com> | ||
/// *HWP Team : IO | ||
/// *HWP Level : 3 | ||
/// *HWP Consumed by : FSP:HB | ||
///----------------------------------------------------------------------------- | ||
|
||
#ifndef _P9_IO_OBUS_DCCAL_H | ||
#define _P9_IO_OBUS_DCCAL_H | ||
|
||
//----------------------------------------------------------------------------- | ||
// fapi2 Includes | ||
//----------------------------------------------------------------------------- | ||
#include <fapi2.H> | ||
|
||
typedef fapi2::Target<fapi2::TARGET_TYPE_OBUS> OBUS_TGT; | ||
|
||
|
||
typedef fapi2::ReturnCode (*p9_io_obus_dccal_FP_t)( const OBUS_TGT, const uint32_t ); | ||
|
||
extern "C" | ||
{ | ||
|
||
/** | ||
* @brief A I/O Obus Procedure that runs Rx Dccal and Tx Z Impedance Calibration | ||
* on every group of the Obus. | ||
* @param[in] i_tgt FAPI2 Target | ||
* @param[in] i_lane_vector Lane Vector; to train all 24 lanes(0x00FFFFFF) | ||
* @retval ReturnCode | ||
*/ | ||
fapi2::ReturnCode p9_io_obus_dccal( | ||
const OBUS_TGT i_tgt , | ||
const uint32_t i_lane_vector ); | ||
|
||
} // extern "C" | ||
|
||
#endif // _P9_IO_OBUS_DCCAL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# IBM_PROLOG_BEGIN_TAG | ||
# This is an automatically generated prolog. | ||
# | ||
# $Source: src/import/chips/p9/procedures/hwp/io/p9_io_obus_dccal.mk $ | ||
# | ||
# OpenPOWER HostBoot Project | ||
# | ||
# Contributors Listed Below - COPYRIGHT 2015,2017 | ||
# [+] International Business Machines Corp. | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
# implied. See the License for the specific language governing | ||
# permissions and limitations under the License. | ||
# | ||
# IBM_PROLOG_END_TAG | ||
PROCEDURE=p9_io_obus_dccal | ||
OBJS+=p9_io_common.o | ||
$(call BUILD_PROCEDURE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
src/import/chips/p9/procedures/xml/attribute_info/p9_io_obus_attributes.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<!-- IBM_PROLOG_BEGIN_TAG --> | ||
<!-- This is an automatically generated prolog. --> | ||
<!-- --> | ||
<!-- $Source: src/import/chips/p9/procedures/xml/attribute_info/p9_io_obus_attributes.xml $ --> | ||
<!-- --> | ||
<!-- OpenPOWER HostBoot Project --> | ||
<!-- --> | ||
<!-- Contributors Listed Below - COPYRIGHT 2015,2017 --> | ||
<!-- [+] International Business Machines Corp. --> | ||
<!-- --> | ||
<!-- --> | ||
<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> | ||
<!-- you may not use this file except in compliance with the License. --> | ||
<!-- You may obtain a copy of the License at --> | ||
<!-- --> | ||
<!-- http://www.apache.org/licenses/LICENSE-2.0 --> | ||
<!-- --> | ||
<!-- Unless required by applicable law or agreed to in writing, software --> | ||
<!-- distributed under the License is distributed on an "AS IS" BASIS, --> | ||
<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> | ||
<!-- implied. See the License for the specific language governing --> | ||
<!-- permissions and limitations under the License. --> | ||
<!-- --> | ||
<!-- IBM_PROLOG_END_TAG --> | ||
<attributes> | ||
<!-- ********************************************************************** --> | ||
<attribute> | ||
<id>ATTR_IO_OBUS_DCCAL_FLAGS</id> | ||
<targetType>TARGET_TYPE_OBUS</targetType> | ||
<description> | ||
Flags to indicate if rx / tx dccal has been run. | ||
</description> | ||
<valueType>uint8</valueType> | ||
<enum> | ||
NONE = 0x0, | ||
TX = 0x1, | ||
RX = 0x2 | ||
</enum> | ||
<writeable/> | ||
</attribute> | ||
<!-- ********************************************************************** --> | ||
<attribute> | ||
<id>ATTR_IO_O_DEBUG</id> | ||
<targetType>TARGET_TYPE_OBUS</targetType> | ||
<description> | ||
Indicate if debug data should be taken pre / post linktraining. | ||
</description> | ||
<valueType>uint8</valueType> | ||
<enum> | ||
FALSE = 0x0, | ||
TRUE = 0x1 | ||
</enum> | ||
<platInit/> | ||
</attribute> | ||
<!-- ********************************************************************** --> | ||
<attribute> | ||
<id>ATTR_IO_OBUS_TX_MARGIN_RATIO</id> | ||
<targetType>TARGET_TYPE_OBUS</targetType> | ||
<description> | ||
Value to select amount of margin to be applied. | ||
</description> | ||
<valueType>uint8</valueType> | ||
<platInit/> | ||
</attribute> | ||
<!-- ********************************************************************** --> | ||
<attribute> | ||
<id>ATTR_IO_OBUS_TX_FFE_PRECURSOR</id> | ||
<targetType>TARGET_TYPE_OBUS</targetType> | ||
<description> | ||
Value to select amount of tx ffe precusor to apply. | ||
</description> | ||
<valueType>uint8</valueType> | ||
<platInit/> | ||
</attribute> | ||
<!-- ********************************************************************** --> | ||
<attribute> | ||
<id>ATTR_IO_OBUS_TX_FFE_POSTCURSOR</id> | ||
<targetType>TARGET_TYPE_OBUS</targetType> | ||
<description> | ||
Value to select amount of tx ffe postcusor to apply. | ||
</description> | ||
<valueType>uint8</valueType> | ||
<platInit/> | ||
</attribute> | ||
<!-- ********************************************************************** --> | ||
|
||
</attributes> |
56 changes: 56 additions & 0 deletions
56
src/import/chips/p9/procedures/xml/error_info/p9_io_obus_errors.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!-- IBM_PROLOG_BEGIN_TAG --> | ||
<!-- This is an automatically generated prolog. --> | ||
<!-- --> | ||
<!-- $Source: src/import/chips/p9/procedures/xml/error_info/p9_io_obus_errors.xml $ --> | ||
<!-- --> | ||
<!-- OpenPOWER HostBoot Project --> | ||
<!-- --> | ||
<!-- Contributors Listed Below - COPYRIGHT 2015,2017 --> | ||
<!-- [+] International Business Machines Corp. --> | ||
<!-- --> | ||
<!-- --> | ||
<!-- Licensed under the Apache License, Version 2.0 (the "License"); --> | ||
<!-- you may not use this file except in compliance with the License. --> | ||
<!-- You may obtain a copy of the License at --> | ||
<!-- --> | ||
<!-- http://www.apache.org/licenses/LICENSE-2.0 --> | ||
<!-- --> | ||
<!-- Unless required by applicable law or agreed to in writing, software --> | ||
<!-- distributed under the License is distributed on an "AS IS" BASIS, --> | ||
<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> | ||
<!-- implied. See the License for the specific language governing --> | ||
<!-- permissions and limitations under the License. --> | ||
<!-- --> | ||
<!-- IBM_PROLOG_END_TAG --> | ||
<!-- File: p9_io_obus_image_build_errors.xml. --> | ||
<!-- Error definitions for p9_io_obus_image_build.C --> | ||
<hwpErrors> | ||
<!-- *********************************************************************** --> | ||
<hwpError> | ||
<rc>RC_IO_OBUS_RX_DCCAL_TIMEOUT</rc> | ||
<ffdc>LANE</ffdc> | ||
<ffdc>TARGET</ffdc> | ||
<description>I/O Obus Rx Dccal(Offset calibration) Timeout</description> | ||
<callout> | ||
<target>TARGET</target> | ||
<priority>MEDIUM</priority> | ||
</callout> | ||
<deconfigure> | ||
<target>TARGET</target> | ||
</deconfigure> | ||
<gard> | ||
<target>TARGET</target> | ||
</gard> | ||
</hwpError> | ||
<!-- *********************************************************************** --> | ||
<hwpError> | ||
<rc>RC_P9_IO_PPE_OBUS_IMG_PTR_ERROR</rc> | ||
<description>Image pointer passed in is bad.</description> | ||
<ffdc>HW_IMG_PTR</ffdc> | ||
<callout> | ||
<procedure>CODE</procedure> | ||
<priority>HIGH</priority> | ||
</callout> | ||
</hwpError> | ||
<!-- *********************************************************************** --> | ||
</hwpErrors> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.