Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PRD: Initial Axone Channel Fail support
Change-Id: I1a86cd97e2188409a1fbcc2fd8981ad5e162214f RTC: 212714 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/83667 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Paul Greenwood <paul.greenwood@ibm.com> Reviewed-by: Zane C Shelley <zshelle@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/84365 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>
- Loading branch information
Showing
10 changed files
with
813 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# IBM_PROLOG_BEGIN_TAG | ||
# This is an automatically generated prolog. | ||
# | ||
# $Source: src/usr/diag/prdf/common/plat/axone/axone_mcc_regs.rule $ | ||
# | ||
# OpenPOWER HostBoot Project | ||
# | ||
# Contributors Listed Below - COPYRIGHT 2019 | ||
# [+] 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 | ||
|
||
|
||
############################################################################### | ||
# Additional registers for mcc, not defined in XML | ||
############################################################################### | ||
|
||
########################################################################### | ||
# P9 Axone target Channel Fail Config registers | ||
########################################################################### | ||
|
||
register DSTLCFG2 | ||
{ | ||
name "P9 Axone DSTL Error Injection Register"; | ||
scomaddr 0x0701090E; | ||
capture group default; | ||
}; | ||
|
||
register USTLFAILMASK | ||
{ | ||
name "P9 Axone USTL Fail Response Channel Fail Mask"; | ||
scomaddr 0x07010A13; | ||
capture group default; | ||
}; | ||
|
||
########################################################################### | ||
# P9 Axone target DSTLFIR | ||
########################################################################### | ||
|
||
register DSTLFIR_AND | ||
{ | ||
name "P9 MCC target DSTLFIR atomic AND"; | ||
scomaddr 0x07010901; | ||
capture group never; | ||
access write_only; | ||
}; | ||
|
||
register DSTLFIR_MASK_OR | ||
{ | ||
name "P9 MCC target DSTLFIR MASK atomic OR"; | ||
scomaddr 0x07010905; | ||
capture group never; | ||
access write_only; | ||
}; | ||
|
||
########################################################################### | ||
# P9 Axone target USTLFIR | ||
########################################################################### | ||
|
||
register USTLFIR_MASK_OR | ||
{ | ||
name "P9 MCC target USTLFIR MASK atomic OR"; | ||
scomaddr 0x07010A05; | ||
capture group never; | ||
access write_only; | ||
}; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/* IBM_PROLOG_BEGIN_TAG */ | ||
/* This is an automatically generated prolog. */ | ||
/* */ | ||
/* $Source: src/usr/diag/prdf/common/plat/axone/prdfMccPlugins.C $ */ | ||
/* */ | ||
/* OpenPOWER HostBoot Project */ | ||
/* */ | ||
/* Contributors Listed Below - COPYRIGHT 2019 */ | ||
/* [+] 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 */ | ||
|
||
// Framework includes | ||
#include <iipServiceDataCollector.h> | ||
#include <prdfExtensibleChip.H> | ||
#include <prdfPluginMap.H> | ||
|
||
// Platform includes | ||
#include <prdfMemUtils.H> | ||
#include <prdfPlatServices.H> | ||
|
||
using namespace TARGETING; | ||
|
||
namespace PRDF | ||
{ | ||
|
||
using namespace PlatServices; | ||
|
||
namespace axone_mcc | ||
{ | ||
|
||
//############################################################################## | ||
// | ||
// Special plugins | ||
// | ||
//############################################################################## | ||
|
||
/** | ||
* @brief Analysis code that is called before the main analyze() function. | ||
* @param i_chip A MCC chip. | ||
* @param io_sc The step code data struct. | ||
* @param o_analyzed True if analysis is done on this chip, false otherwise. | ||
* @return Non-SUCCESS if an internal function fails, SUCCESS otherwise. | ||
*/ | ||
int32_t PreAnalysis( ExtensibleChip * i_chip, STEP_CODE_DATA_STRUCT & io_sc, | ||
bool & o_analyzed ) | ||
{ | ||
// Check for a channel failure before analyzing this chip. | ||
o_analyzed = MemUtils::analyzeChnlFail<TYPE_MCC>( i_chip, io_sc ); | ||
|
||
return SUCCESS; | ||
} | ||
PRDF_PLUGIN_DEFINE( axone_mcc, PreAnalysis ); | ||
|
||
/** | ||
* @brief Plugin function called after analysis is complete but before PRD | ||
* exits. | ||
* @param i_chip A MCC chip. | ||
* @param io_sc The step code data struct. | ||
* @note This is especially useful for any analysis that still needs to be | ||
* done after the framework clears the FIR bits that were at attention. | ||
* @return SUCCESS. | ||
*/ | ||
int32_t PostAnalysis( ExtensibleChip * i_chip, STEP_CODE_DATA_STRUCT & io_sc ) | ||
{ | ||
// If there was a channel failure some cleanup is required to ensure | ||
// there are no more attentions from this channel. | ||
MemUtils::cleanupChnlFail<TYPE_MCC>( i_chip, io_sc ); | ||
|
||
return SUCCESS; | ||
} | ||
PRDF_PLUGIN_DEFINE( axone_mcc, PostAnalysis ); | ||
|
||
} // end namespace axone_mcc | ||
|
||
} // end namespace PRDF | ||
|
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
Oops, something went wrong.