-
Notifications
You must be signed in to change notification settings - Fork 53
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
Artemis: cb: Support to record sensor alert event #1281
Closed
MarshallZhan-wiwynn
wants to merge
1
commit into
facebook:main
from
Wiwynn:Lora/Artemis/ACB-Support_to_record_VR_alert_event
Closed
Artemis: cb: Support to record sensor alert event #1281
MarshallZhan-wiwynn
wants to merge
1
commit into
facebook:main
from
Wiwynn:Lora/Artemis/ACB-Support_to_record_VR_alert_event
Conversation
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
Description: - Support to record VR/power brick/power monitor sensor alert event. Motivation: - Support to record VR/power brick/power monitor sensor alert event. Note: - JIRA link: https://metainfra.atlassian.net/browse/T17GTART-73 Test Plan: - Build code: Pass - Record VR alert event: Pass - Record P1V25 alert event: Pass - Record P12V ACCL2/3 alert event: Pass - AC cycle/DC cycle/Reset would not trigger event: Pass Log: [ BIC console ] // VR alert event uart:~$ gpio get GPIO0_E_H 8 Reading GPIO0_E_H pin 8 Value 1 uart:~$ gpio conf GPIO0_E_H 8 out Configuring GPIO0_E_H pin 8 uart:~$ gpio get GPIO0_E_H 8 Reading GPIO0_E_H pin 8 Value 0 uart:~$ gpio conf GPIO0_E_H 8 in Configuring GPIO0_E_H pin 8 uart:~$ gpio get GPIO0_E_H 8 Reading GPIO0_E_H pin 8 Value 1 // P1V25 alert event uart:~$ gpio get GPIO0_A_D 3 Reading GPIO0_A_D pin 3 Value 1 uart:~$ gpio conf GPIO0_A_D 3 out Configuring GPIO0_A_D pin 3 uart:~$ gpio get GPIO0_A_D 3 Reading GPIO0_A_D pin 3 Value 0 uart:~$ gpio conf GPIO0_A_D 3 in Configuring GPIO0_A_D pin 3 uart:~$ gpio get GPIO0_A_D 3 Reading GPIO0_A_D pin 3 Value 1 // P12V ACCL2/3 alert event uart:~$ gpio get GPIO0_A_D 5 Reading GPIO0_A_D pin 5 Value 1 uart:~$ gpio conf GPIO0_A_D 5 out Configuring GPIO0_A_D pin 5 uart:~$ gpio get GPIO0_A_D 5 Reading GPIO0_A_D pin 5 Value 0 uart:~$ gpio conf GPIO0_A_D 5 in Configuring GPIO0_A_D pin 5 uart:~$ gpio get GPIO0_A_D 5 Reading GPIO0_A_D pin 5 Value 1 uart:~$ uart:~$ gpio get GPIO0_A_D 6 Reading GPIO0_A_D pin 6 Value 1 uart:~$ gpio conf GPIO0_A_D 6 out Configuring GPIO0_A_D pin 6 uart:~$ gpio get GPIO0_A_D 6 Reading GPIO0_A_D pin 6 Value 0 uart:~$ gpio conf GPIO0_A_D 6 in Configuring GPIO0_A_D pin 6 uart:~$ gpio get GPIO0_A_D 6 Reading GPIO0_A_D pin 6 Value 1 [ BMC console ] root@bmc-oob:~# log-util all --print 2018 Mar 09 04:41:51 log-util: User cleared all logs 4 nic0 2018-03-09 04:42:27 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:42:27, Sensor: BIC SENSOR STATUS (0x10), Event Data: (01FFFF) P0V8 VR Alert status(0x01FFFF) Assertion 4 nic0 2018-03-09 04:42:33 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:42:33, Sensor: BIC SENSOR STATUS (0x10), Event Data: (01FFFF) P0V8 VR Alert status(0x01FFFF) Deassertion 4 nic0 2018-03-09 04:43:58 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:43:58, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0300FF) P1V25 Monitor Alert (Device: SQ52205) status(0x0300FF) Assertion 4 nic0 2018-03-09 04:44:05 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:05, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0300FF) P1V25 Monitor Alert (Device: SQ52205) status(0x0300FF) Deassertion 4 nic0 2018-03-09 04:44:22 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:22, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0500FF) P12V ACCL2 Monitor Alert (Device: INA233) status(0x0500FF) Assertion 4 nic0 2018-03-09 04:44:26 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:26, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0500FF) P12V ACCL2 Monitor Alert (Device: INA233) status(0x0500FF) Deassertion 4 nic0 2018-03-09 04:44:36 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:36, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0600FF) P12V ACCL3 Monitor Alert (Device: INA233) status(0x0600FF) Assertion 4 nic0 2018-03-09 04:44:42 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:42, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0600FF) P12V ACCL3 Monitor Alert (Device: INA233) status(0x0600FF) Deassertion
facebook-github-bot
added
the
CLA Signed
This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
label
Aug 14, 2023
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request has been merged in 33e32ab. |
SeanChuangWiwynn
pushed a commit
to Wiwynn/OpenBIC
that referenced
this pull request
Aug 18, 2023
Summary: # Description - Support to record VR/power brick/power monitor sensor alert event. # Motivation - Support to record VR/power brick/power monitor sensor alert event. # Note - JIRA link: https://metainfra.atlassian.net/browse/T17GTART-73 Pull Request resolved: facebook#1281 Test Plan: - Build code: Pass - Record VR alert event: Pass - Record P1V25 alert event: Pass - Record P12V ACCL2/3 alert event: Pass - AC cycle/DC cycle/Reset would not trigger event: Pass # Log [ BIC console ] // VR alert event uart:~$ gpio get GPIO0_E_H 8 Reading GPIO0_E_H pin 8 Value 1 uart:~$ gpio conf GPIO0_E_H 8 out Configuring GPIO0_E_H pin 8 uart:~$ gpio get GPIO0_E_H 8 Reading GPIO0_E_H pin 8 Value 0 uart:~$ gpio conf GPIO0_E_H 8 in Configuring GPIO0_E_H pin 8 uart:~$ gpio get GPIO0_E_H 8 Reading GPIO0_E_H pin 8 Value 1 // P1V25 alert event uart:~$ gpio get GPIO0_A_D 3 Reading GPIO0_A_D pin 3 Value 1 uart:~$ gpio conf GPIO0_A_D 3 out Configuring GPIO0_A_D pin 3 uart:~$ gpio get GPIO0_A_D 3 Reading GPIO0_A_D pin 3 Value 0 uart:~$ gpio conf GPIO0_A_D 3 in Configuring GPIO0_A_D pin 3 uart:~$ gpio get GPIO0_A_D 3 Reading GPIO0_A_D pin 3 Value 1 // P12V ACCL2/3 alert event uart:~$ gpio get GPIO0_A_D 5 Reading GPIO0_A_D pin 5 Value 1 uart:~$ gpio conf GPIO0_A_D 5 out Configuring GPIO0_A_D pin 5 uart:~$ gpio get GPIO0_A_D 5 Reading GPIO0_A_D pin 5 Value 0 uart:~$ gpio conf GPIO0_A_D 5 in Configuring GPIO0_A_D pin 5 uart:~$ gpio get GPIO0_A_D 5 Reading GPIO0_A_D pin 5 Value 1 uart:~$ uart:~$ gpio get GPIO0_A_D 6 Reading GPIO0_A_D pin 6 Value 1 uart:~$ gpio conf GPIO0_A_D 6 out Configuring GPIO0_A_D pin 6 uart:~$ gpio get GPIO0_A_D 6 Reading GPIO0_A_D pin 6 Value 0 uart:~$ gpio conf GPIO0_A_D 6 in Configuring GPIO0_A_D pin 6 uart:~$ gpio get GPIO0_A_D 6 Reading GPIO0_A_D pin 6 Value 1 [ BMC console ] root@bmc-oob:~# log-util all --print 2018 Mar 09 04:41:51 log-util: User cleared all logs 4 nic0 2018-03-09 04:42:27 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:42:27, Sensor: BIC SENSOR STATUS (0x10), Event Data: (01FFFF) P0V8 VR Alert status(0x01FFFF) Assertion 4 nic0 2018-03-09 04:42:33 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:42:33, Sensor: BIC SENSOR STATUS (0x10), Event Data: (01FFFF) P0V8 VR Alert status(0x01FFFF) Deassertion 4 nic0 2018-03-09 04:43:58 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:43:58, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0300FF) P1V25 Monitor Alert (Device: SQ52205) status(0x0300FF) Assertion 4 nic0 2018-03-09 04:44:05 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:05, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0300FF) P1V25 Monitor Alert (Device: SQ52205) status(0x0300FF) Deassertion 4 nic0 2018-03-09 04:44:22 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:22, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0500FF) P12V ACCL2 Monitor Alert (Device: INA233) status(0x0500FF) Assertion 4 nic0 2018-03-09 04:44:26 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:26, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0500FF) P12V ACCL2 Monitor Alert (Device: INA233) status(0x0500FF) Deassertion 4 nic0 2018-03-09 04:44:36 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:36, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0600FF) P12V ACCL3 Monitor Alert (Device: INA233) status(0x0600FF) Assertion 4 nic0 2018-03-09 04:44:42 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:42, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0600FF) P12V ACCL3 Monitor Alert (Device: INA233) status(0x0600FF) Deassertion Reviewed By: williamspatrick Differential Revision: D48305693 fbshipit-source-id: 3375d5fa81948e36d5347fe8d8a2b75d62228b68
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CLA Signed
This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Motivation
Note
Test Plan
Log
[ BIC console ]
// VR alert event
uart:
$ gpio get GPIO0_E_H 8$ gpio conf GPIO0_E_H 8 outReading GPIO0_E_H pin 8
Value 1
uart:
Configuring GPIO0_E_H pin 8
uart:
$ gpio get GPIO0_E_H 8$ gpio conf GPIO0_E_H 8 inReading GPIO0_E_H pin 8
Value 0
uart:
Configuring GPIO0_E_H pin 8
uart:~$ gpio get GPIO0_E_H 8
Reading GPIO0_E_H pin 8
Value 1
// P1V25 alert event
uart:
$ gpio get GPIO0_A_D 3$ gpio conf GPIO0_A_D 3 outReading GPIO0_A_D pin 3
Value 1
uart:
Configuring GPIO0_A_D pin 3
uart:
$ gpio get GPIO0_A_D 3$ gpio conf GPIO0_A_D 3 inReading GPIO0_A_D pin 3
Value 0
uart:
Configuring GPIO0_A_D pin 3
uart:~$ gpio get GPIO0_A_D 3
Reading GPIO0_A_D pin 3
Value 1
// P12V ACCL2/3 alert event
uart:
$ gpio get GPIO0_A_D 5$ gpio conf GPIO0_A_D 5 outReading GPIO0_A_D pin 5
Value 1
uart:
Configuring GPIO0_A_D pin 5
uart:
$ gpio get GPIO0_A_D 5$ gpio conf GPIO0_A_D 5 inReading GPIO0_A_D pin 5
Value 0
uart:
Configuring GPIO0_A_D pin 5
uart:
$ gpio get GPIO0_A_D 5$Reading GPIO0_A_D pin 5
Value 1
uart:
uart:
$ gpio get GPIO0_A_D 6$ gpio conf GPIO0_A_D 6 outReading GPIO0_A_D pin 6
Value 1
uart:
Configuring GPIO0_A_D pin 6
uart:
$ gpio get GPIO0_A_D 6$ gpio conf GPIO0_A_D 6 inReading GPIO0_A_D pin 6
Value 0
uart:
Configuring GPIO0_A_D pin 6
uart:~$ gpio get GPIO0_A_D 6
Reading GPIO0_A_D pin 6
Value 1
[ BMC console ]
root@bmc-oob:~# log-util all --print
2018 Mar 09 04:41:51 log-util: User cleared all logs
4 nic0 2018-03-09 04:42:27 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:42:27, Sensor: BIC SENSOR STATUS (0x10), Event Data: (01FFFF) P0V8 VR Alert status(0x01FFFF) Assertion
4 nic0 2018-03-09 04:42:33 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:42:33, Sensor: BIC SENSOR STATUS (0x10), Event Data: (01FFFF) P0V8 VR Alert status(0x01FFFF) Deassertion
4 nic0 2018-03-09 04:43:58 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:43:58, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0300FF) P1V25 Monitor Alert (Device: SQ52205) status(0x0300FF) Assertion
4 nic0 2018-03-09 04:44:05 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:05, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0300FF) P1V25 Monitor Alert (Device: SQ52205) status(0x0300FF) Deassertion
4 nic0 2018-03-09 04:44:22 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:22, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0500FF) P12V ACCL2 Monitor Alert (Device: INA233) status(0x0500FF) Assertion
4 nic0 2018-03-09 04:44:26 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:26, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0500FF) P12V ACCL2 Monitor Alert (Device: INA233) status(0x0500FF) Deassertion
4 nic0 2018-03-09 04:44:36 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:36, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0600FF) P12V ACCL3 Monitor Alert (Device: INA233) status(0x0600FF) Assertion
4 nic0 2018-03-09 04:44:42 ipmid SEL Entry: FRU: 4, Record: Standard (0x02), Time: 2018-03-09 04:44:42, Sensor: BIC SENSOR STATUS (0x10), Event Data: (0600FF) P12V ACCL3 Monitor Alert (Device: INA233) status(0x0600FF) Deassertion