PHAL: mpreboot- exit with failure if no functional processor found

On some special cases noticed DeviceTree was returning no
functional processor when queried.

As there are no functional processors present MPreboot was
not performed and no error/PEL was created to notify the user.
Rather the method was exiting with SUCCESS.

Now modified to log an error message and create a PEL if
no functional processors are found to perform MPReboot.

openpower-proc-control[3663]: Starting memory preserving reboot
openpower-proc-control[3663]: EnterMPReboot is not executed on any
processors
phosphor-log-manager[320]: Event not found in PEL message registry:
org.open_power.Processor.Error.MemoryPreservingReboot
phosphor-log-manager[320]: Created PEL 0x50014017 (BMC ID 750) with SRC BD752004

Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Change-Id: Id781fc1bc9fac869c96c29562f62260c1a7c909d
1 file changed
tree: 9affda2b1f6ffedbc6a64873e0bdea669a59e616
  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`.