prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.
Change-Id: Ic70a9bbc0d86851d5c9885e9be891545b27628b4
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/README.md b/README.md
index 1299878..24f576e 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
Code for detecting and analyzing power faults on Witherspoon.
## To Build
+
```
To build this package, do the following steps:
diff --git a/org/open_power/Witherspoon/Fault.errors.yaml b/org/open_power/Witherspoon/Fault.errors.yaml
index 668568d..c4df169 100644
--- a/org/open_power/Witherspoon/Fault.errors.yaml
+++ b/org/open_power/Witherspoon/Fault.errors.yaml
@@ -1,7 +1,7 @@
- name: PowerSupplyInputFault
- description: The power supply has indicated an input or under voltage
- condition. Check the power supply cabling and/or input power
- source.
+ description:
+ The power supply has indicated an input or under voltage condition. Check
+ the power supply cabling and/or input power source.
- name: PowerSupplyShouldBeOn
description: The power supply indicated that it is not on when it should be.
diff --git a/org/open_power/Witherspoon/Fault.metadata.yaml b/org/open_power/Witherspoon/Fault.metadata.yaml
index c8bfab8..357f261 100644
--- a/org/open_power/Witherspoon/Fault.metadata.yaml
+++ b/org/open_power/Witherspoon/Fault.metadata.yaml
@@ -1,50 +1,50 @@
- name: PowerSupplyInputFault
level: ERR
meta:
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "RAW_STATUS=%s"
+ type: string
inherits:
- - xyz.openbmc_project.Common.Callout.Inventory
+ - xyz.openbmc_project.Common.Callout.Inventory
- name: PowerSupplyShouldBeOn
level: ERR
meta:
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "RAW_STATUS=%s"
+ type: string
inherits:
- - xyz.openbmc_project.Common.Callout.Inventory
+ - xyz.openbmc_project.Common.Callout.Inventory
- name: PowerSupplyOutputOvercurrent
level: ERR
meta:
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "RAW_STATUS=%s"
+ type: string
inherits:
- - xyz.openbmc_project.Common.Callout.Inventory
+ - xyz.openbmc_project.Common.Callout.Inventory
- name: PowerSupplyOutputOvervoltage
level: ERR
meta:
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "RAW_STATUS=%s"
+ type: string
inherits:
- - xyz.openbmc_project.Common.Callout.Inventory
+ - xyz.openbmc_project.Common.Callout.Inventory
- name: PowerSupplyFanFault
level: ERR
meta:
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "RAW_STATUS=%s"
+ type: string
inherits:
- - xyz.openbmc_project.Common.Callout.Inventory
+ - xyz.openbmc_project.Common.Callout.Inventory
- name: PowerSupplyTemperatureFault
level: ERR
meta:
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "RAW_STATUS=%s"
+ type: string
inherits:
- - xyz.openbmc_project.Common.Callout.Inventory
+ - xyz.openbmc_project.Common.Callout.Inventory
- name: Shutdown
level: ERR
@@ -55,49 +55,49 @@
- name: PowerSequencerVoltageFault
level: ERR
meta:
- - str: "RAIL=%d"
- type: uint16
- - str: "RAIL_NAME=%s"
- type: string
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "RAIL=%d"
+ type: uint16
+ - str: "RAIL_NAME=%s"
+ type: string
+ - str: "RAW_STATUS=%s"
+ type: string
- name: PowerSequencerPGOODFault
level: ERR
meta:
- - str: "INPUT_NUM=%d"
- type: uint16
- - str: "INPUT_NAME=%s"
- type: string
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "INPUT_NUM=%d"
+ type: uint16
+ - str: "INPUT_NAME=%s"
+ type: string
+ - str: "RAW_STATUS=%s"
+ type: string
- name: PowerSequencerFault
level: ERR
meta:
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "RAW_STATUS=%s"
+ type: string
- name: GPUPowerFault
level: ERR
meta:
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "RAW_STATUS=%s"
+ type: string
inherits:
- - xyz.openbmc_project.Common.Callout.Inventory
+ - xyz.openbmc_project.Common.Callout.Inventory
- name: GPUOverTemp
level: ERR
meta:
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "RAW_STATUS=%s"
+ type: string
inherits:
- - xyz.openbmc_project.Common.Callout.Inventory
+ - xyz.openbmc_project.Common.Callout.Inventory
- name: MemoryPowerFault
level: ERR
meta:
- - str: "RAW_STATUS=%s"
- type: string
+ - str: "RAW_STATUS=%s"
+ type: string
inherits:
- - xyz.openbmc_project.Common.Callout.Inventory
+ - xyz.openbmc_project.Common.Callout.Inventory
diff --git a/power-sequencer/example/ucd90160.yaml b/power-sequencer/example/ucd90160.yaml
index bc5846c..ee438d5 100644
--- a/power-sequencer/example/ucd90160.yaml
+++ b/power-sequencer/example/ucd90160.yaml
@@ -1,7 +1,7 @@
- Device:
index: 0
# Linux sysfs path for this power sequencer (0xC8 8-bit address)
- path: /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-11/11-0064
+ path: /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-11/11-0064
RailNames:
- "5.0VCS"
- "12.0V"
@@ -20,84 +20,84 @@
- "VCS-A"
- "VCS-B"
GPIConfigs:
- - name: PGOOD_5P0V
- gpi: 1
- pinID: 8
- poll: false
- analysis: none
- - name: MEM_GOOD0
- gpi: 2
- pinID: 9
- poll: false
- analysis: none
- - name: MEM_GOOD1
- gpi: 3
- pinID: 10
- poll: false
- analysis: none
- - name: GPU_PGOOD
- gpi: 4
- pinID: 14
- poll: false
- analysis: gpuPGOOD
- - name: GPU_TH_OVERT
- gpi: 5
- pinID: 17
- poll: true
- analysis: gpuOverTemp
- - name: SOFTWARE_PGOOD
- gpi: 6
- pinID: 11
- poll: true
- analysis: none
+ - name: PGOOD_5P0V
+ gpi: 1
+ pinID: 8
+ poll: false
+ analysis: none
+ - name: MEM_GOOD0
+ gpi: 2
+ pinID: 9
+ poll: false
+ analysis: none
+ - name: MEM_GOOD1
+ gpi: 3
+ pinID: 10
+ poll: false
+ analysis: none
+ - name: GPU_PGOOD
+ gpi: 4
+ pinID: 14
+ poll: false
+ analysis: gpuPGOOD
+ - name: GPU_TH_OVERT
+ gpi: 5
+ pinID: 17
+ poll: true
+ analysis: gpuOverTemp
+ - name: SOFTWARE_PGOOD
+ gpi: 6
+ pinID: 11
+ poll: true
+ analysis: none
GPIOAnalysis:
- - type: gpuPGOOD
- path: /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-11/11-0060
- gpio_value: low
- error_function: gpuPGOODError
- option_flags: none
+ - type: gpuPGOOD
+ path: /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-11/11-0060
+ gpio_value: low
+ error_function: gpuPGOODError
+ option_flags: none
GPIODefinitions:
- GPIODefinition: GPU Card 0
- gpio: 8
- callout: /system/chassis/motherboard/gv100card0
+ gpio: 8
+ callout: /system/chassis/motherboard/gv100card0
- GPIODefinition: GPU Card 1
- gpio: 9
- callout: /system/chassis/motherboard/gv100card1
+ gpio: 9
+ callout: /system/chassis/motherboard/gv100card1
- GPIODefinition: GPU Card 2
- gpio: 10
- callout: /system/chassis/motherboard/gv100card2
+ gpio: 10
+ callout: /system/chassis/motherboard/gv100card2
- GPIODefinition: GPU Card 3
- gpio: 11
- callout: /system/chassis/motherboard/gv100card3
+ gpio: 11
+ callout: /system/chassis/motherboard/gv100card3
- GPIODefinition: GPU Card 4
- gpio: 12
- callout: /system/chassis/motherboard/gv100card4
+ gpio: 12
+ callout: /system/chassis/motherboard/gv100card4
- GPIODefinition: GPU Card 5
- gpio: 13
- callout: /system/chassis/motherboard/gv100card5
- - type: gpuOverTemp # Extra analysis function to call for this type
+ gpio: 13
+ callout: /system/chassis/motherboard/gv100card5
+ - type: gpuOverTemp # Extra analysis function to call for this type
# The PCA9xxx chip device path and address (0xC0 8-bit = 0x60 7-bit)
- path: /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-11/11-0060
- gpio_value: low # What GPIO value indicates a fault/problem?
- error_function: gpuOverTempError
- option_flags: shutdownOnFault
+ path: /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-11/11-0060
+ gpio_value: low # What GPIO value indicates a fault/problem?
+ error_function: gpuOverTempError
+ option_flags: shutdownOnFault
GPIODefinitions:
- GPIODefinition: GPU Card 0 Overtemperature
- gpio: 2 # GPIO pin/register to check for fault
+ gpio: 2 # GPIO pin/register to check for fault
# Call out path for fault
- callout: /system/chassis/motherboard/gv100card0
+ callout: /system/chassis/motherboard/gv100card0
- GPIODefinition: GPU Card 1 Overtemperature
- gpio: 3
- callout: /system/chassis/motherboard/gv100card1
+ gpio: 3
+ callout: /system/chassis/motherboard/gv100card1
- GPIODefinition: GPU Card 2 Overtemperature
- gpio: 4
- callout: /system/chassis/motherboard/gv100card2
+ gpio: 4
+ callout: /system/chassis/motherboard/gv100card2
- GPIODefinition: GPU Card 3 Overtemperature
- gpio: 5
- callout: /system/chassis/motherboard/gv100card3
+ gpio: 5
+ callout: /system/chassis/motherboard/gv100card3
- GPIODefinition: GPU Card 4 Overtemperature
- gpio: 6
- callout: /system/chassis/motherboard/gv100card4
+ gpio: 6
+ callout: /system/chassis/motherboard/gv100card4
- GPIODefinition: GPU Card 5 Overtemperature
- gpio: 7
- callout: /system/chassis/motherboard/gv100card5
+ gpio: 7
+ callout: /system/chassis/motherboard/gv100card5