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

Artemis: cb: Support to record sensor alert event #1281

Conversation

MarshallZhan-wiwynn
Copy link
Collaborator

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

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

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

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants