update host bios to indicate mpreboot

A new IBM-specific BIOS was introduced via the following commit:
https://gerrit.openbmc-project.xyz/c/openbmc/pldm/+/52268

This new BIOS value tracks when a memory preserving reboot starts until
the time that the generated dump is offloaded from the system.

Utilizing the openpower-proc-control repository for this function,
since this is where mpreboot is controlled and is specific to systems
with this feature.

PHYP is responsible for setting the BIOS to disabled once the offload
has completed. The requirement on the BMC is to just ensure it gets
reset on any power off or system AC loss.

Tested:
Updated op-proc-control recipes to put this new service in the
multi-user.target and obmc-host-stop@0.target.
- Caused mpreboot, verified it was set to enabled
- Rebooted BMC in above condition, verified it was still enabled
- Powered off system, verified it was reset to disabled
- Set to enabled at BMC Ready, rebooted BMC and verified it was reset to
  disabled

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Iba8d867c0c8b82f1c9845f4ae77738af759717a8
3 files changed
tree: 0eb7b5a9f2df95982ab079790aecffb898caaca4
  1. extensions/
  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. OWNERS
  22. p10_cfam.hpp
  23. p9_cfam.hpp
  24. proc_control.cpp
  25. README.md
  26. registration.hpp
  27. targeting.cpp
  28. targeting.hpp
  29. temporary_file.cpp
  30. temporary_file.hpp
  31. util.cpp
  32. util.hpp
README.md

Contains procedures that interact with the OpenPower nest chipset.

To Build

To build this package, do the following steps:

    1. meson builddir
    2. ninja -C builddir

To build with phal feature:
    1. meson builddir -Dphal=enabled -Dopenfsi=enabled
    2. ninja -C builddir

To clean the repository run `ninja -C builddir/ clean`.