PHAL: Add callout details for platform related errors

1) At present platform errors are treated as normal ipl errors
and no callout details are added.

2) Modified to add callout info to the FFDC object when there
is error in plat code.

Tested:
"Primary SRC": {
    "Section Version":          "1",
    "Sub-section type":         "1",
    "Created by":               "0x3000",
    "SRC Version":              "0x02",
    "SRC Format":               "0x55",
    "Virtual Progress SRC":     "False",
    "I5/OS Service Event Bit":  "False",
    "Hypervisor Dump Initiated":"False",
    "Power Control Net Fault":  "False",
    "Backplane CCIN":           "2E33",
    "Deconfigured":             "True",
    "Guarded":                  "False",
    "Error Details": {
        "Message":              "Failure occured during boot process"
    },
    "Callout Section": {
        "Callout Count":        "1",
        "Callouts": [{
            "FRU Type":         "Normal Hardware FRU",
            "Priority":         "Medium Priority",
            "Location Code":    "U780C.ND0.WZS0003-P0-C14",
            "Part Number":      "F200203",
            "CCIN":             "AB41",
            "Serial Number":    "            ",
            "MRU Id":           "00010000"
        }]
    }

"User Data 2": {
    "Section Version": "1",
    "Sub-section type": "1",
    "Created by": "0x2000",
    "Data": [
        {
            "Deconfigured": true,
            "EntityPath": [
                35,
                1,
                0,
                2,
                0,
                5,
                2,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "GuardType": "",
            "Guarded": false,
            "LocationCode": "Ufcs-P0-C14",
            "MRUs": [
                {
                    "ID": 65536,
                    "Priority": "M"
                }
            ],
            "Priority": "M"
        }
    ]
}

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