bmc-reset: add support to clear host running register

A simple procedure to ensure the CFAM register used by the host to
communicate when it is up and running, is cleared when the host is
stopped.

The host is also responsible for clearing this but given there are
scenarios where the host crashes, this is the backup plan to ensure it
is cleared.

Its a best effort because there's not much to be done if it cannot be
cleared. We want the default to lean towards not powering down the host
if there is any chance the host is running.

Tested:
- Verified master processor CFAM register was set to 0 when this
  procedure was called

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Ibc7680975a3d1e0c541af05e79a4399b9de8271e
1 file changed
tree: 7b40318612e5142c84acdca0476e09ae84a4fcee
  1. phalerror/
  2. procedures/
  3. service_files/
  4. test/
  5. .clang-format
  6. .gitignore
  7. .shellcheck
  8. cfam_access.cpp
  9. cfam_access.hpp
  10. ext_interface.cpp
  11. ext_interface.hpp
  12. filedescriptor.cpp
  13. filedescriptor.hpp
  14. LICENSE
  15. MAINTAINERS
  16. meson.build
  17. meson_options.txt
  18. nmi_interface.cpp
  19. nmi_interface.hpp
  20. nmi_main.cpp
  21. p10_cfam.hpp
  22. p9_cfam.hpp
  23. proc_control.cpp
  24. README.md
  25. registration.hpp
  26. targeting.cpp
  27. targeting.hpp
  28. util.cpp
  29. util.hpp
README.md

Contains procedures that interact with the OpenPower nest chipset.

To Build

To build this package, do the following steps:

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

To build with phal feature:
    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS} --enable-phal --enable-openfsi
    3. make

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