-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of fatal error handling #85
base: Upstream
Are you sure you want to change the base?
Conversation
Add support to handle fatal errors for 1P/2P platforms. The application harvests MCA dump and debug log ID dump along with the processor informations (CPUID, PPIN, Microcode , APIC ID etc) and creates a CPER record. The application also registers com.amd.RAS.Configuration interface to allow the user to set/get user configuration properties. Signed-off-by: Abinaya Dhandapani <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add clang file.
Review still in progress.
@@ -0,0 +1,13 @@ | |||
Full Description: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add detailed license description , similar to openbmc repos, https://github.com/openbmc/bmcweb/blob/master/LICENSE
|
||
reviewers: | ||
|
||
matches: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
matchers:
@@ -0,0 +1,5 @@ | |||
#AMD BMC RAS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provide additiona info , like build , services , and link to design document. etc.
} | ||
}, | ||
{ | ||
"Reset Signal": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to ResetSignal ?
{ | ||
"Configuration": [ | ||
{ | ||
"apmlRetries": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be consistent in naming convention. change to ApmlRetries
#include "esmi_rmi.h" | ||
} | ||
|
||
class InterfaceManager : public RasConfiguration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to follow openbmc class definition:
Refer https://github.com/openbmc/bios-settings-mgr/blob/master/include/manager.hpp#L41
/** | ||
* @brief Harvests information related to a fatal error. | ||
* | ||
* @param info The error code or information related to the fatal error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File scope: follow this format. some places , missing this. revisit all definitions. in the file.
@param[in] info -
* | ||
* @param info The error code or information related to the fatal error. | ||
*/ | ||
void harvestFatalError(uint8_t); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File scope:
uint8_t info
@@ -0,0 +1,281 @@ | |||
#pragma once |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
try | ||
{ | ||
std::ifstream jsonFile(CONFIG_FILE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refer this code for exception handling in catch. https://grok.openbmc.org/xref/openbmc/phosphor-power/pmbus.cpp?r=48781aef#91
Add support to handle fatal errors for 1P/2P platforms. The application harvests MCA dump and debug log ID dump along with the processor informations (CPUID, PPIN, Microcode , APIC ID etc) and creates a CPER record. The application also registers com.amd.RAS.Configuration interface to allow the user to set/get user configuration properties.