/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | src_callout_test.cpp | 16 #include "extensions/openpower-pels/callout.hpp" 24 // Unflatten the callout section with all three substructures 46 Callout callout{stream}; in TEST() local 48 EXPECT_EQ(callout.flattenedSize(), data.size()); in TEST() 49 EXPECT_EQ(callout.priority(), 'H'); in TEST() 50 EXPECT_EQ(callout.locationCode(), "U12-P1"); in TEST() 53 EXPECT_TRUE(callout.fruIdentity()); in TEST() 54 EXPECT_EQ(callout.fruIdentity()->getSN(), "123456789ABC"); in TEST() 56 EXPECT_TRUE(callout.pceIdentity()); in TEST() 57 EXPECT_EQ(callout.pceIdentity()->enclosureName(), "PCENAME12"); in TEST() [all …]
|
H A D | src_callouts_test.cpp | 32 auto callout = srcDataFactory(TestSRCType::calloutStructureA); in TEST() local 33 data.insert(data.end(), callout.begin(), callout.end()); in TEST() 35 callout = srcDataFactory(TestSRCType::calloutStructureB); in TEST() 36 data.insert(data.end(), callout.begin(), callout.end()); in TEST() 51 // spot check that each callout has the right substructures in TEST() 70 // Start out with a valid 2 callout object, then truncate it. in TEST() 75 auto callout = srcDataFactory(TestSRCType::calloutStructureA); in TEST() local 76 data.insert(data.end(), callout.begin(), callout.end()); in TEST() 78 callout = srcDataFactory(TestSRCType::calloutStructureB); in TEST() 79 data.insert(data.end(), callout.begin(), callout.end()); in TEST() [all …]
|
H A D | service_indicators_test.cpp | 23 using CalloutVector = std::vector<std::unique_ptr<src::Callout>>; 73 auto callout = std::make_unique<src::Callout>( in TEST() local 78 callouts.push_back(std::move(callout)); in TEST() 93 // Regular hardware callout in TEST() 97 std::make_unique<src::Callout>(CalloutPriority::high, "U27-P1", in TEST() 104 // Symbolic FRU with trusted loc code callout in TEST() 107 callouts.push_back(std::make_unique<src::Callout>( in TEST() 114 // Symbolic FRU without trusted loc code callout in TEST() 117 callouts.push_back(std::make_unique<src::Callout>( in TEST() 124 // Procedure callout in TEST() [all …]
|
/openbmc/openpower-hw-diags/analyzer/ |
H A D | service_data.cpp | 9 callout::Priority i_priority, bool i_guard) in calloutTarget() 11 // Add the target to the callout list. in calloutTarget() 14 // Add the callout FFDC. in calloutTarget() 16 ffdc["Callout Type"] = "Hardware Callout"; in calloutTarget() 18 ffdc["Priority"] = callout::getStringFFDC(i_priority); in calloutTarget() 27 const callout::BusType& i_busType, in calloutConnected() 28 callout::Priority i_priority, bool i_guard) in calloutConnected() 33 // Callout the TX endpoint. in calloutConnected() 36 // Add the callout FFDC. in calloutConnected() 38 ffdc["Callout Type"] = "Connected Callout"; in calloutConnected() [all …]
|
H A D | service_data.hpp | 4 #include <analyzer/callout.hpp> 57 * callout list (unit paths, bus types, etc.). */ 80 callout::GuardType queryGuardPolicy() const in queryGuardPolicy() 84 return callout::GuardType::UNRECOVERABLE; in queryGuardPolicy() 88 return callout::GuardType::PREDICTIVE; in queryGuardPolicy() 91 return callout::GuardType::NONE; in queryGuardPolicy() 95 * @brief Add callout for a pdbg_target. 96 * @param i_target The chip or unit target to add to the callout list. 97 * @param i_priority The callout priority. 100 void calloutTarget(pdbg_target* i_target, callout::Priority i_priority, [all …]
|
H A D | resolution.hpp | 27 /** @brief Resolves a hardware callout service event. */ 35 * @param i_priority The callout priority. 39 callout::Priority i_priority, bool i_guard) : in HardwareCalloutResolution() 48 /** The callout priority. */ 49 const callout::Priority iv_priority; 58 /** @brief Resolution to callout a connected chip/target. */ 68 * @param i_priority The callout priority. 69 * @param i_guard The guard type for this callout. 71 ConnectedCalloutResolution(const callout::BusType& i_busType, in ConnectedCalloutResolution() 73 callout::Priority i_priority, bool i_guard) : in ConnectedCalloutResolution() [all …]
|
/openbmc/openpower-hw-diags/test/ |
H A D | test-resolution.cpp | 30 proc_str, callout::Priority::HIGH, false); in TEST() 33 omi_str, callout::Priority::MED_A, true); in TEST() 36 core_str, callout::Priority::MED, true); in TEST() 39 callout::Procedure::NEXTLVL, callout::Priority::LOW); in TEST() 42 callout::ClockType::OSC_REF_CLOCK_1, callout::Priority::LOW, false); in TEST() 69 std::pair<callout::SrcSubsystem, callout::Priority> subsys = { in TEST() 70 callout::SrcSubsystem::PROCESSOR_FRU, callout::Priority::HIGH}; in TEST() 73 subsys = {callout::SrcSubsystem::PROCESSOR_FRU, callout::Priority::HIGH}; in TEST() 148 omi_str, callout::Priority::MED_A, true); in TEST() 158 std::pair<callout::SrcSubsystem, callout::Priority> subsys = { in TEST() [all …]
|
H A D | test-pll-unlock.cpp | 44 // Callout list in TEST() 62 // Callout FFDC in TEST() 66 "Callout Type": "Clock Callout", in TEST() 71 "Callout Type": "Hardware Callout", in TEST() 111 // Callout list in TEST() 135 // Callout FFDC in TEST() 139 "Callout Type": "Clock Callout", in TEST() 144 "Callout Type": "Hardware Callout", in TEST() 150 "Callout Type": "Hardware Callout", in TEST() 180 // Callout list in TEST() [all …]
|
H A D | test-chnl-timeout.cpp | 37 // Callout list in TEST() 63 // Callout FFDC in TEST() 68 "Callout Type": "Bus Callout", in TEST() 75 "Callout Type": "Hardware Callout", in TEST() 105 // Callout list in TEST() 131 // Callout FFDC in TEST() 136 "Callout Type": "Bus Callout", in TEST() 143 "Callout Type": "Hardware Callout", in TEST() 174 // Callout list in TEST() 200 // Callout FFDC in TEST() [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Common/Callout/ |
H A D | README.md | 5 A callout is typically an indication of a faulty hardware component in a system. 6 In OpenBMC, a callout is defined as any other error, via a YAML file. An example 7 would be `xyz.openbmc_project.Error.Callout.IIC`, to indicate an IIC callout. 11 the OpenBMC error handling component to map such a callout to actual field 16 An OpenBMC error has associated metadata, the same is true for a callout. Such 17 metadata would be defined in the callout YAML interface. Here is an example (for 18 xyz.openbmc_project.Error.Callout.IIC) : 29 An application wanting to add an IIC callout will have to provide values for the 31 figure out that this is in fact an IIC callout. 33 A callout is typically associated with an error log. For eg, [all …]
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | callout.hpp | 19 * @class Callout 21 * Represents a single FRU callout in the SRC's FRU callout 26 * The callout priority and location code are in this structure. 29 * in a single callout: 37 class Callout class 41 * @brief Which callout substructures are included. 53 Callout() = delete; 54 ~Callout() = default; 55 Callout(const Callout&) = delete; 56 Callout& operator=(const Callout&) = delete; [all …]
|
H A D | callouts.cpp | 38 _callouts.emplace_back(new Callout(pel)); in Callouts() 47 for (auto& callout : _callouts) in flatten() local 49 callout->flatten(pel); in flatten() 53 void Callouts::addCallout(std::unique_ptr<Callout> callout) in addCallout() argument 57 // Check if there is already a callout for this FRU in addCallout() 58 auto it = std::ranges::find_if(_callouts, [&callout](const auto& c) { in addCallout() 59 return *callout == *c; in addCallout() 62 // If the callout already exists, but the new one has a higher in addCallout() 63 // priority, change the existing callout's priority to this in addCallout() 67 if (*callout > **it) in addCallout() [all …]
|
H A D | callout.cpp | 16 #include "callout.hpp" 31 Callout::Callout(Stream& pel) in Callout() function in openpower::pels::src::Callout 73 lg2::error("Invalid Callout subsection type {CALLOUT_TYPE}", in Callout() 75 throw std::runtime_error("Invalid Callout subsection type"); in Callout() 81 Callout::Callout(CalloutPriority priority, const std::string& locationCode, in Callout() function in openpower::pels::src::Callout 84 Callout(priority, locationCode, partNumber, ccin, serialNumber, in Callout() 88 Callout::Callout(CalloutPriority priority, const std::string& locationCode, in Callout() function in openpower::pels::src::Callout 111 Callout::Callout(CalloutPriority priority, const std::string& procedure, in Callout() function in openpower::pels::src::Callout 125 Callout::Callout(CalloutPriority priority, const std::string& symbolicFRU, in Callout() function in openpower::pels::src::Callout 141 void Callout::setLocationCode(const std::string& locationCode) in setLocationCode() [all …]
|
H A D | device_callouts.cpp | 58 lg2::info("Found device callout debug file"); in getJSONFilename() 75 "No JSON dev path callout file for this system"); in getJSONFilename() 82 * @brief Reads the callout JSON into an object based on the 202 * @brief Pull the callouts out of the JSON callout array passed in 204 * Create a vector of Callout objects based on the JSON. 206 * This will also fill in the 'debug' member on the first callout 213 * @param[in] debug - The debug message to add to the first callout 215 * @return std::vector<Callout> - The Callout objects 217 std::vector<Callout> extractCallouts(const nlohmann::json& calloutJSON, in extractCallouts() 220 std::vector<Callout> callouts; in extractCallouts() [all …]
|
H A D | service_indicators.cpp | 101 const std::vector<std::unique_ptr<src::Callout>>& callouts) const in getLocationCodes() 109 // * a single medium priority callout in getLocationCodes() 115 for (const auto& callout : callouts) in getLocationCodes() local 121 firstCalloutPriority = callout->priority(); in getLocationCodes() 123 // If the first callout is High, Medium, or Medium in getLocationCodes() 124 // group A, and is a hardware callout, then we in getLocationCodes() 127 isHardwareCallout(*callout)) in getLocationCodes() 129 locCodes.push_back(callout->locationCode()); in getLocationCodes() 136 // By definition a medium priority callout can't be part in getLocationCodes() 147 // priority as the first callout. in getLocationCodes() [all …]
|
/openbmc/ibm-logging/ |
H A D | callout.cpp | 17 #include "callout.hpp" 30 CEREAL_CLASS_VERSION(ibm::logging::Callout, CALLOUT_CLASS_VERSION); 43 * @param[in] callout - the object to save 47 void save(Archive& archive, const Callout& callout, const std::uint32_t version) in save() argument 49 archive(callout.id(), callout.ts(), callout.path(), callout.buildDate(), in save() 50 callout.manufacturer(), callout.model(), callout.partNumber(), in save() 51 callout.serialNumber()); in save() 58 * @param[in] callout - the callout object to restore 62 void load(Archive& archive, Callout& callout, const std::uint32_t version) in load() argument 75 callout.id(id); in load() [all …]
|
H A D | callout.hpp | 17 * @class Callout 19 * This class provides information about a callout by utilizing the 25 class Callout : public CalloutObject class 28 Callout() = delete; 29 Callout(const Callout&) = delete; 30 Callout& operator=(const Callout&) = delete; 31 Callout(Callout&&) = default; 32 Callout& operator=(Callout&&) = default; 33 ~Callout() = default; 42 * @param[in] inventoryPath - inventory path of the callout [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/power/power-sequencer/swift/ |
H A D | ucd90160.yaml | 63 callout: /system/chassis/motherboard/gv100card0 66 callout: /system/chassis/motherboard/gv100card1 69 callout: /system/chassis/motherboard/gv100card2 72 callout: /system/chassis/motherboard/gv100card3 83 callout: /system/chassis/motherboard/gv100card0 86 callout: /system/chassis/motherboard/gv100card1 89 callout: /system/chassis/motherboard/gv100card2 92 callout: /system/chassis/motherboard/gv100card3 103 callout: /system/chassis/motherboard/dimm4 106 callout: /system/chassis/motherboard/dimm3 [all …]
|
/openbmc/openpower-host-ipmi-oem/ |
H A D | elog-errors.hpp | 13 namespace sdbusplus::error::org::open_power::common::callout namespace 16 } // namespace sdbusplus::error::org::open_power::common::callout 29 namespace sdbusplus::error::xyz::openbmc_project::common::callout namespace 32 } // namespace sdbusplus::error::xyz::openbmc_project::common::callout 33 namespace sdbusplus::error::xyz::openbmc_project::common::callout namespace 36 } // namespace sdbusplus::error::xyz::openbmc_project::common::callout 37 namespace sdbusplus::error::xyz::openbmc_project::common::callout namespace 40 } // namespace sdbusplus::error::xyz::openbmc_project::common::callout 41 namespace sdbusplus::error::xyz::openbmc_project::common::callout namespace 44 } // namespace sdbusplus::error::xyz::openbmc_project::common::callout [all …]
|
/openbmc/openpower-hw-diags/analyzer/plugins/ |
H A D | p10-plugins.cpp | 14 * @brief Adds all clocks/chips reporting PLL unlock attentions to the callout 20 * callout priority is medium. 43 // The clock callout priority is dependent on the number of chips with PLL in pll_unlock() 46 (1 < pllList.size()) ? callout::Priority::HIGH : callout::Priority::MED; in pll_unlock() 48 // Callout the clock. in pll_unlock() 49 auto clockCallout = (0 == i_instance) ? callout::ClockType::OSC_REF_CLOCK_0 in pll_unlock() 50 : callout::ClockType::OSC_REF_CLOCK_1; in pll_unlock() 53 // Callout the processors connected to this clock that are reporting PLL in pll_unlock() 54 // unlock attentions. Always a medium callout and no guarding. in pll_unlock() 58 callout::Priority::MED, false); in pll_unlock() [all …]
|
/openbmc/ibm-logging/test/ |
H A D | test_callout.cpp | 16 #include "callout.hpp" 49 std::string objectPath{"/callout/path/0"}; in TEST_F() 60 auto callout = std::make_unique<Callout>(bus, objectPath, calloutPath, in TEST_F() local 62 callout->serialize(persistDir); in TEST_F() 69 auto callout = std::make_unique<Callout>(bus, objectPath, id, ts); in TEST_F() local 71 ASSERT_EQ(callout->deserialize(persistDir), true); in TEST_F() 73 ASSERT_EQ(callout->id(), id); in TEST_F() 74 ASSERT_EQ(callout->ts(), ts); in TEST_F() 75 ASSERT_EQ(callout->path(), calloutPath); in TEST_F() 76 ASSERT_EQ(callout->buildDate(), in TEST_F() [all …]
|
/openbmc/phosphor-mrw-tools/ |
H A D | gen_path_callouts.pl | 3 # This script is used for generating callout lists from the MRW for devices 7 # file organized into sections for each callout type, with keys based on the 49 # Callout object 53 package Callout; package 93 our @ISA = qw(Callout); 118 our @ISA = qw(Callout); 136 our @ISA = qw(Callout); 157 our @ISA = qw(Callout); 190 our @ISA = qw(Callout); 429 my %callout; [all …]
|
/openbmc/openpower-vpd-parser/vpd-manager/include/ |
H A D | event_logger.hpp | 55 * @brief An API to create a PEL with inventory path callout. 58 * path callout. 60 * Note: If inventory path callout info is not provided, it will create a 61 * PEL without any callout. Currently only one callout is handled in this 64 * @todo: Symbolic FRU and procedure callout needs to be handled in this 69 * @param[in] i_callouts - Callout information, list of tuple having 77 * @param[in] i_symFru - Symblolic FRU callout data [optional]. 78 * @param[in] i_procedure - Procedure callout data [optional]. 94 * @brief An API to create a PEL with device path callout. 98 * @param[in] i_callouts - Callout information, list of tuple having device [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/power/power-sequencer/witherspoon/ |
H A D | ucd90160.yaml | 62 callout: /system/chassis/motherboard/gv100card0 65 callout: /system/chassis/motherboard/gv100card1 68 callout: /system/chassis/motherboard/gv100card2 71 callout: /system/chassis/motherboard/gv100card3 74 callout: /system/chassis/motherboard/gv100card4 77 callout: /system/chassis/motherboard/gv100card5 88 callout: /system/chassis/motherboard/gv100card0 91 callout: /system/chassis/motherboard/gv100card1 94 callout: /system/chassis/motherboard/gv100card2 97 callout: /system/chassis/motherboard/gv100card3 [all …]
|
/openbmc/phosphor-power/power-sequencer/example/ |
H A D | ucd90160.yaml | 62 callout: /system/chassis/motherboard/gv100card0 65 callout: /system/chassis/motherboard/gv100card1 68 callout: /system/chassis/motherboard/gv100card2 71 callout: /system/chassis/motherboard/gv100card3 74 callout: /system/chassis/motherboard/gv100card4 77 callout: /system/chassis/motherboard/gv100card5 88 callout: /system/chassis/motherboard/gv100card0 91 callout: /system/chassis/motherboard/gv100card1 94 callout: /system/chassis/motherboard/gv100card2 97 callout: /system/chassis/motherboard/gv100card3 [all …]
|