-
Notifications
You must be signed in to change notification settings - Fork 83
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
rasdaemon: ipmitool SEL logging of AER CEs on OpenBMC platforms #97
Conversation
Log to OpenBMC SEL logs, all the AER correctable errors that are handled by the kernel. The IPMI command record fields used are defined in the IPMI specificaton v2.0. Non-timestamped record type is used here given that the BMC will attach one at the time of logging. Test Plan: Tested on OpenBMC platforms using EINJ. Signed-off-by: Krishna Dhulipala <[email protected]> Reviewed-by: Ril Van Riel <[email protected]>
@mchehab, Can you please help review the PR? |
Log to OpenBMC SEL logs, all the AER correctable errors that are handled by the kernel. The IPMI command record fields used are defined in the IPMI specificaton v2.0. Non-timestamped record type is used here given that the BMC will attach one at the time of logging. Test Plan: Tested on OpenBMC platforms using EINJ. Signed-off-by: Krishna Dhulipala <[email protected]> Reviewed-by: Ril Van Riel <[email protected]>
Log to OpenBMC SEL logs, all the AER correctable errors that are handled by the kernel. The IPMI command record fields used are defined in the IPMI specificaton v2.0. Non-timestamped record type is used here given that the BMC will attach one at the time of logging. Test Plan: Tested on OpenBMC platforms using EINJ. Signed-off-by: Krishna Dhulipala <[email protected]> Reviewed-by: Ril Van Riel <[email protected]>
Just a question: How do we identify if a platform is an OpenBMC one where ipmitool should/could be used to report the AER information ? |
There's no straightforward way to identify what BMC type is running underneath. Therefore added the configure option. |
If we can't automatically identify what machines should use the ipmitool calls implemented here, shouldn't we have a runtime option to enable or disable this ipmitool use in addition to the configure option (generating a different binary) ? So that an identical binary can be used on OpenBMC platforms and non OpenBMC ? |
Looked into adding a runtime option through a command line argument. The |
I would suggest to enrich the handler_ras_events() function passing more arguments information than just the "record_events" so that we could have an initialize function like ras_aer_handler_init(int force_ipmitool) that would update a static flag in the ras-aer-handler.c for example. |
Thank you for the suggestions. Added a runtime argument |
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
Sorry, I've been busy those days. There are some issues on this PR:
|
Signed-off-by: krishnanadh <[email protected]>
Log to OpenBMC SEL logs, all the AER correctable errors that are handled by the kernel. The IPMI command record fields used are defined in the IPMI specification v2.0. Non-timestamped record type is used here given that the BMC will attach one at the time of logging.
Test Plan: Tested on OpenBMC platforms using EINJ.
Signed-off-by: Krishna Dhulipala [email protected]
Reviewed-by: Ril Van Riel [email protected]