Add in a way to check for any fault found

Adding in a variable to indicate that any type of fault has been found.
A number of the faults that can occur during the power on time frame
will eventually result in the power supply turning off. We do not want
to log multiple faults for something like a fan fault resulting in an
overtemperature fault that then results into the power supply turning
off, generating three error logs that call out the same supply that has
failed due to a bad fan.

The input/undervoltage fault is treated a bit uniquely, if that fault
clears (supply plugged in, different power source, etc.) it will also
clear the indicator that any fault has been found. All other faults will
require a power supply replace or power cycle in order to be cleared.

Resolves: openbmc/openbmc#2516

Change-Id: I32c3f9c4031de5d603aa96e184679c3d7d87a3f1
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
2 files changed
tree: a5f4876d7cf7bd49743289f12687d0c204a93210
  1. org/
  2. power-sequencer/
  3. power-supply/
  4. test/
  5. .gitignore
  6. argument.hpp
  7. bootstrap.sh
  8. configure.ac
  9. device.hpp
  10. device_monitor.hpp
  11. elog-errors.hpp
  12. event.hpp
  13. file.hpp
  14. LICENSE
  15. Makefile.am
  16. names_values.hpp
  17. pmbus.cpp
  18. pmbus.hpp
  19. README.md
  20. timer.cpp
  21. timer.hpp
  22. utility.cpp
  23. utility.hpp
README.md

Code for detecting and analyzing power faults on Witherspoon.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.