summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-python/recipes-devtools/python/python3-rapidjson
diff options
context:
space:
mode:
authorYikai Tsai <yikai.tsai.wiwynn@gmail.com>2024-07-23 10:20:51 +0300
committerPatrick Williams <patrick@stwcx.xyz>2024-07-26 15:57:26 +0300
commit817a2d7f2b8b0fb678e72d7f0dd953d8cfd41b26 (patch)
tree5f7d222ef10be83abf4fcdd43ec2e17d536fa7f0 /meta-openembedded/meta-python/recipes-devtools/python/python3-rapidjson
parentab989dc6b5d07532b4ce3f8edee45074236254c2 (diff)
downloadopenbmc-817a2d7f2b8b0fb678e72d7f0dd953d8cfd41b26.tar.xz
meta-facebook: yosemite4: Power fault event
Summary: The system shall register an event in the case of BIC and CPU power fault. BMC is triggered by INT_SMB_BMC_SLOT1_4_N or INT_SMB_BMC_SLOT5_8_N, checking which SLOT got power fault via reading the MUX (i2c-bus 8, 0x70 for SLOT1-4, and i2c-bus 9, 0x71 for SLOT1-4). Then, BMC reads CPLD IOE for each failed SLOT to check affected power rails. For BIC power fault, check address 0x24, port 1: bit [1] PWRGD_P1V2_STBY_FAULT [0] PWRGD_P1V8_STBY_FAULT For CPU power fault, check address 0x24, port 2: bit [4] PWRGD_PVDD11_S3_R_FAULT [3] PWRGD_PVDDIO_FAULT [2] PWRGD_PVDDCR_CPU1_FAULT [1] PWRGD_PVDDCR_SOC_FAULT [0] PWRGD_PVDDCR_CPU0_FAULT Test Plan: Trigger power fault by setting CPLD (0x0F) on server board to pull INT_SMB_BMC_SLOT1_4_N or INT_SMB_BMC_SLOT5_8_N low. Testing: Take SLOT2 for example. 1. Check gpio status root@bmc:~# cat /sys/kernel/debug/gpio | grep -i 1_4 gpio-612 (INT_SMB_BMC_SLOT1_4_|gpio_monitor ) in hi IRQ 2. Check (1 to 4)MUX status root@bmc:~# i2ctransfer -f -y 8 w1@0x70 0 r1 0x00 3. Check SLOT2 CPLD IOE status root@bmc:~# i2ctransfer -y -f 1 w1@0x24 0x01 r1 0x00 root@bmc:~# i2ctransfer -y -f 1 w1@0x24 0x02 r1 0x00 4. Trigger power fault by setting CPLD (0x0F) on server board root@bmc:~# i2ctransfer -y -f 1 w2@0xf 0x3f 0x1 5. Check event log root@bmc:~# mfg-tool log-display ... }, "2": { "additional_data": [ "FAULT=PWRGD_P1V8_STBY_FAULT" ], "event_id": "", "message": "SLOT2 AC Power Fault", "resolution": "", "resolved": false, "severity": "xyz.openbmc_project.Logging.Entry.Level.Error", "timestamp": "2024-07-18T08:37:13.179000000Z", "updated_timestamp": "2024-07-18T08:37:13.179000000Z" }, "3": { "additional_data": [ "FAULT=PWRGD_PVDDCR_CPU0_FAULT" ], "event_id": "", "message": "SLOT2 DC Power Fault", "resolution": "", "resolved": false, "severity": "xyz.openbmc_project.Logging.Entry.Level.Error", "timestamp": "2024-07-18T08:37:13.231000000Z", "updated_timestamp": "2024-07-18T08:37:13.231000000Z" } 6. Check gpio status root@bmc:~# cat /sys/kernel/debug/gpio | grep -i 1_4 gpio-612 (INT_SMB_BMC_SLOT1_4_|gpio_monitor ) in lo IRQ 7. Check (1 to 4)MUX status root@bmc:~# i2ctransfer -f -y 8 w1@0x70 0 r1 0x20 8. Check SLOT2 CPLD IOE status root@bmc:~# i2ctransfer -y -f 1 w1@0x24 0x01 r1 0x01 root@bmc:~# i2ctransfer -y -f 1 w1@0x24 0x02 r1 0x01 Change-Id: I67b93e9a55c949af54aee4ca90dc998448bdfdcc Signed-off-by: Yikai Tsai <yikai.tsai.wiwynn@gmail.com>
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-rapidjson')
0 files changed, 0 insertions, 0 deletions