-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I3f55896a48347fff7152c3a2a68cf8fab4fa0689 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64813 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64967 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
- Loading branch information
Showing
16 changed files
with
474 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
207 changes: 207 additions & 0 deletions
207
src/import/chips/p9/procedures/hwp/memory/lib/phy/mss_lrdimm_training.C
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,207 @@ | ||
/* IBM_PROLOG_BEGIN_TAG */ | ||
/* This is an automatically generated prolog. */ | ||
/* */ | ||
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/phy/mss_lrdimm_training.C $ */ | ||
/* */ | ||
/* OpenPOWER HostBoot Project */ | ||
/* */ | ||
/* Contributors Listed Below - COPYRIGHT 2018 */ | ||
/* [+] 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 lib/phy/mss_lrdimm_training.C | ||
/// @brief LRDIMM training implementation | ||
/// Training is very device specific, so there is no attempt to generalize | ||
/// this code in any way. | ||
/// | ||
// *HWP HWP Owner: Stephen Glancy <sglancy@us.ibm.com> | ||
// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> | ||
// *HWP Team: Memory | ||
// *HWP Level: 2 | ||
// *HWP Consumed by: FSP:HB | ||
|
||
#include <lib/phy/mss_lrdimm_training.H> | ||
|
||
namespace mss | ||
{ | ||
|
||
namespace training | ||
{ | ||
|
||
namespace lrdimm | ||
{ | ||
|
||
/// | ||
/// @brief Sets up and runs the calibration step | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @param[in] i_rp - the rank pair | ||
/// @param[in] i_abort_on_error - whether or not we are aborting on cal error | ||
/// @return fapi2::ReturnCode fapi2::FAPI2_RC_SUCCESS iff ok | ||
/// | ||
fapi2::ReturnCode mrep::run( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target, | ||
const uint64_t i_rp, | ||
const uint8_t i_abort_on_error ) const | ||
{ | ||
return fapi2::FAPI2_RC_SUCCESS; | ||
} | ||
|
||
/// | ||
/// @brief Executes a cal step with workarounds | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @param[in] i_rp - the rank pair | ||
/// @param[in] i_abort_on_error - whether or not we are aborting on cal error | ||
/// @return fapi2::ReturnCode fapi2::FAPI2_RC_SUCCESS iff ok | ||
/// | ||
fapi2::ReturnCode mrep::execute( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target, | ||
const uint64_t i_rp, | ||
const uint8_t i_abort_on_error ) const | ||
{ | ||
return fapi2::FAPI2_RC_SUCCESS; | ||
} | ||
|
||
/// | ||
/// @brief Calculates the number of cycles a given calibration step will take | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @return l_cycles - the number of cycles a given calibration step wil take | ||
/// | ||
uint64_t mrep::calculate_cycles( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target ) const | ||
{ | ||
return 0; | ||
} | ||
|
||
/// | ||
/// @brief Sets up and runs the calibration step | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @param[in] i_rp - the rank pair | ||
/// @param[in] i_abort_on_error - whether or not we are aborting on cal error | ||
/// @return fapi2::ReturnCode fapi2::FAPI2_RC_SUCCESS iff ok | ||
/// | ||
fapi2::ReturnCode dwl::run( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target, | ||
const uint64_t i_rp, | ||
const uint8_t i_abort_on_error ) const | ||
{ | ||
return fapi2::FAPI2_RC_SUCCESS; | ||
} | ||
|
||
/// | ||
/// @brief Executes a cal step with workarounds | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @param[in] i_rp - the rank pair | ||
/// @param[in] i_abort_on_error - whether or not we are aborting on cal error | ||
/// @return fapi2::ReturnCode fapi2::FAPI2_RC_SUCCESS iff ok | ||
/// | ||
fapi2::ReturnCode dwl::execute( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target, | ||
const uint64_t i_rp, | ||
const uint8_t i_abort_on_error ) const | ||
{ | ||
return fapi2::FAPI2_RC_SUCCESS; | ||
} | ||
|
||
/// | ||
/// @brief Calculates the number of cycles a given calibration step will take | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @return l_cycles - the number of cycles a given calibration step wil take | ||
/// | ||
uint64_t dwl::calculate_cycles( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target ) const | ||
{ | ||
return 0; | ||
} | ||
|
||
/// | ||
/// @brief Sets up and runs the calibration step | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @param[in] i_rp - the rank pair | ||
/// @param[in] i_abort_on_error - whether or not we are aborting on cal error | ||
/// @return fapi2::ReturnCode fapi2::FAPI2_RC_SUCCESS iff ok | ||
/// | ||
fapi2::ReturnCode mrd::run( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target, | ||
const uint64_t i_rp, | ||
const uint8_t i_abort_on_error ) const | ||
{ | ||
return fapi2::FAPI2_RC_SUCCESS; | ||
} | ||
|
||
/// | ||
/// @brief Executes a cal step with workarounds | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @param[in] i_rp - the rank pair | ||
/// @param[in] i_abort_on_error - whether or not we are aborting on cal error | ||
/// @return fapi2::ReturnCode fapi2::FAPI2_RC_SUCCESS iff ok | ||
/// | ||
fapi2::ReturnCode mrd::execute( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target, | ||
const uint64_t i_rp, | ||
const uint8_t i_abort_on_error ) const | ||
{ | ||
return fapi2::FAPI2_RC_SUCCESS; | ||
} | ||
|
||
/// | ||
/// @brief Calculates the number of cycles a given calibration step will take | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @return l_cycles - the number of cycles a given calibration step wil take | ||
/// | ||
uint64_t mrd::calculate_cycles( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target ) const | ||
{ | ||
return 0; | ||
} | ||
|
||
/// | ||
/// @brief Sets up and runs the calibration step | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @param[in] i_rp - the rank pair | ||
/// @param[in] i_abort_on_error - whether or not we are aborting on cal error | ||
/// @return fapi2::ReturnCode fapi2::FAPI2_RC_SUCCESS iff ok | ||
/// | ||
fapi2::ReturnCode mwd::run( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target, | ||
const uint64_t i_rp, | ||
const uint8_t i_abort_on_error ) const | ||
{ | ||
return fapi2::FAPI2_RC_SUCCESS; | ||
} | ||
|
||
/// | ||
/// @brief Executes a cal step with workarounds | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @param[in] i_rp - the rank pair | ||
/// @param[in] i_abort_on_error - whether or not we are aborting on cal error | ||
/// @return fapi2::ReturnCode fapi2::FAPI2_RC_SUCCESS iff ok | ||
/// | ||
fapi2::ReturnCode mwd::execute( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target, | ||
const uint64_t i_rp, | ||
const uint8_t i_abort_on_error ) const | ||
{ | ||
return fapi2::FAPI2_RC_SUCCESS; | ||
} | ||
|
||
/// | ||
/// @brief Calculates the number of cycles a given calibration step will take | ||
/// @param[in] i_target - the MCA target on which to operate | ||
/// @return l_cycles - the number of cycles a given calibration step wil take | ||
/// | ||
uint64_t mwd::calculate_cycles( const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target ) const | ||
{ | ||
return 0; | ||
} | ||
|
||
// TK:LRDIMM update all of this file to have the actual LRDIMM training steps | ||
|
||
} // ns lrdimm | ||
|
||
} // ns training | ||
|
||
} // ns mss |
Oops, something went wrong.