Skip to content
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

Open
wants to merge 1 commit into
base: Upstream
Choose a base branch
from

Conversation

abinayaddhandapani
Copy link
Collaborator

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.

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]>
Copy link

@ojayanth ojayanth left a 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:

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:

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

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": {

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": {

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* @brief Harvests information related to a fatal error.
*
* @param info The error code or information related to the fatal error.

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);

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

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);

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants