/openbmc/phosphor-fan-presence/presence/ |
H A D | json_parser.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 26 #include <phosphor-logging/log.hpp> 29 #include <xyz/openbmc_project/Logging/Entry/server.hpp> 48 {"tach", method::getTach}, {"gpio", method::getGpio}}; 69 p->monitor(); in start() 93 p->monitor(); in sighupHandler() 100 entry("LOAD_ERROR=%s", re.what())); in sighupHandler() 118 entry("REQUIRED_PROPERTIES=%s", in process() 126 for (auto& method : member["methods"].items()) in process() local 128 if (!method.value().contains("type")) in process() [all …]
|
/openbmc/phosphor-fan-presence/control/json/ |
H A D | profile.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 #include <phosphor-logging/log.hpp> 33 // String key must be in all lowercase for method lookup 44 if (!jsonObj.contains("method") || !jsonObj["method"].contains("name")) in setActive() 46 // Log error on missing profile method in setActive() 47 log<level::ERR>("Missing required profile method", in setActive() 48 entry("JSON=%s", jsonObj.dump().c_str())); in setActive() 49 throw std::runtime_error("Missing required profile method"); in setActive() 51 // The method to use in determining if the profile is active in setActive() 52 auto method = jsonObj["method"]["name"].get<std::string>(); in setActive() local [all …]
|
/openbmc/qemu/hw/pci-host/ |
H A D | gpex-acpi.c | 2 #include "hw/acpi/aml-build.h" 3 #include "hw/pci-host/gpex.h" 13 Aml *method, *crs; in acpi_dsdt_add_pci_route_table() local 47 method = aml_method("_SRS", 1, AML_NOTSERIALIZED); in acpi_dsdt_add_pci_route_table() 48 aml_append(dev_gsi, method); in acpi_dsdt_add_pci_route_table() 55 Aml *method, *UUID, *ifctx, *ifctx1, *elsectx, *buf; in acpi_dsdt_add_pci_osc() local 57 /* Declare an _OSC (OS Control Handoff) method */ in acpi_dsdt_add_pci_osc() 60 method = aml_method("_OSC", 4, AML_NOTSERIALIZED); in acpi_dsdt_add_pci_osc() 61 aml_append(method, in acpi_dsdt_add_pci_osc() 66 * The _OSC interface for a PCI/PCI-X/PCI Express hierarchy is in acpi_dsdt_add_pci_osc() [all …]
|
/openbmc/phosphor-objmgr/fail-monitor/ |
H A D | monitor.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 18 #include <phosphor-logging/log.hpp> 51 auto method = bus.new_method_call(systemdService, path.c_str(), in inFailedState() local 54 method.append(systemdUnitInterface, "ActiveState"); in inFailedState() 56 auto reply = bus.call(method); in inFailedState() 60 entry("UNIT=%s", source.c_str())); in inFailedState() 61 // TODO openbmc/openbmc#851 - Once available, throw returned error in inFailedState() 75 auto method = bus.new_method_call(systemdService, systemdObjPath, in getSourceUnitPath() local 77 method.append(source); in getSourceUnitPath() 78 auto reply = bus.call(method); in getSourceUnitPath() [all …]
|
/openbmc/openpower-pnor-code-mgmt/ |
H A D | utils.cpp | 5 #include <phosphor-logging/elog-errors.hpp> 6 #include <phosphor-logging/elog.hpp> 7 #include <phosphor-logging/log.hpp> 72 log<level::ERR>("Mapper call failed", entry("METHOD=%d", "GetObject"), in getService() 73 entry("PATH=%s", path.c_str()), in getService() 74 entry("INTERFACE=%s", intf.c_str())); in getService() 82 auto method = bus.new_method_call(service.c_str(), HIOMAPD_PATH, in hiomapdSuspend() local 87 bus.call_noreply(method); in hiomapdSuspend() 92 entry("ERROR=%s", e.what())); in hiomapdSuspend() 99 auto method = bus.new_method_call(service.c_str(), HIOMAPD_PATH, in hiomapdResume() local [all …]
|
H A D | activation.cpp | 7 #include <phosphor-logging/elog-errors.hpp> 8 #include <phosphor-logging/elog.hpp> 9 #include <phosphor-logging/log.hpp> 44 auto method = this->bus.new_method_call(SYSTEMD_SERVICE, SYSTEMD_OBJ_PATH, in subscribeToSystemdSignals() local 48 this->bus.call_noreply(method); in subscribeToSystemdSignals() 55 // If an Activation attempt fails, the Unsubscribe method is not in subscribeToSystemdSignals() 57 // Activation is re-attempted. in subscribeToSystemdSignals() 62 entry("ERROR=%s", e.what())); in subscribeToSystemdSignals() 70 auto method = this->bus.new_method_call(SYSTEMD_SERVICE, SYSTEMD_OBJ_PATH, in unsubscribeFromSystemdSignals() local 72 this->bus.call_noreply(method); in unsubscribeFromSystemdSignals() [all …]
|
H A D | msl_verify.cpp | 5 #include <phosphor-logging/log.hpp> 27 return -1; in compare() 36 return -1; in compare() 45 return -1; in compare() 60 // Match for vX.Y.Z or v-X.Y.Z in parse() 61 std::regex regex{"v-?([0-9]+)\\.([0-9]+)\\.([0-9]+)", std::regex::extended}; in parse() 65 // Match for vX.Y or v-X.Y in parse() 66 std::regex regexShort{"v-?([0-9]+)\\.([0-9]+)", std::regex::extended}; in parse() 70 entry("VERSION=%s", versionStr.c_str())); in parse() 86 auto method = bus.new_method_call(BUSNAME_UPDATER, SOFTWARE_OBJPATH, in getFunctionalVersion() local [all …]
|
/openbmc/pldm/oem/ibm/libpldmresponder/ |
H A D | file_io_type_pel.cpp | 8 #include <systemd/sd-bus.h> 12 #include <phosphor-logging/lg2.hpp> 14 #include <xyz/openbmc_project/Logging/Entry/server.hpp> 34 * @brief Finds the Entry::Level value for the severity of the PEL 40 * @param[in] pelFileName - The file containing the PEL 42 * @return Entry::Level - The severity value for the Entry 44 Entry::Level getEntryLevelFromPEL(const std::string& pelFileName) in getEntryLevelFromPEL() 46 const std::map<uint8_t, Entry::Level> severityMap{ in getEntryLevelFromPEL() 47 {0x00, Entry::Level::Informational}, // Informational event in getEntryLevelFromPEL() 48 {0x10, Entry::Level::Warning}, // Recoverable error in getEntryLevelFromPEL() [all …]
|
/openbmc/google-ipmi-sys/ |
H A D | handler.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 27 #include <mtd/mtd-abi.h> 28 #include <mtd/mtd-user.h> 33 #include <phosphor-logging/elog-errors.hpp> 34 #include <phosphor-logging/log.hpp> 82 if (fs->exists(bmDriveCleaningDoneAckFlagPath, ec)) in isBmcInBareMetalMode() 91 if (fs->exists(bmDriveCleaningDoneFlagPath, ec)) in isBmcInBareMetalMode() 93 fs->rename(bmDriveCleaningDoneFlagPath, bmDriveCleaningDoneAckFlagPath, in isBmcInBareMetalMode() 102 if (fs->exists(BM_SIGNAL_PATH, ec)) in isBmcInBareMetalMode() 104 if (!fs->exists(bmDriveCleaningFlagPath, ec)) in isBmcInBareMetalMode() [all …]
|
/openbmc/ibm-logging/ |
H A D | dbus.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 18 #include <phosphor-logging/log.hpp> 38 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getManagedObjects() local 42 auto reply = bus.call(method); in getManagedObjects() 56 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getAllProperties() local 58 method.append(interface); in getAllProperties() 59 auto reply = bus.call(method); in getAllProperties() 71 auto method = bus.new_method_call(MAPPER_BUSNAME, MAPPER_PATH, MAPPER_IFACE, in getSubtree() local 73 method.append(root); in getSubtree() 74 method.append(depth); in getSubtree() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/cpu/ |
H A D | idle-states.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/cpu/idle-states.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> 11 - Anup Patel <anup@brainfault.org> 15 1 - Introduction 18 ARM and RISC-V systems contain HW capable of managing power consumption 19 dynamically, where cores can be put in different low-power states (ranging 22 run-time, can be specified through device tree bindings representing the [all …]
|
/openbmc/sdbusplus/include/sdbusplus/ |
H A D | vtable.hpp | 3 #include <systemd/sd-bus.h> 13 /** Create a SD_BUS_VTABLE_START entry. */ 16 /** Create a SD_BUS_VTABLE_END entry. */ 19 /** Create a SD_BUS_VTABLE_METHOD entry. 21 * @param[in] member - Name of method. 22 * @param[in] signature - Signature of method. 23 * @param[in] result - Signature of result. 24 * @param[in] handler - Functor to call on method invocation. 25 * @param[in] flags - optional sdbusplus::vtable::method_ value. 27 constexpr vtable_t method(const char* member, const char* signature, [all …]
|
/openbmc/qemu/hw/i386/ |
H A D | acpi-build.c | 3 * Copyright (C) 2008-2010 Kevin O'Connor <kevin@koconnor.net> 26 #include "acpi-build.h" 27 #include "acpi-common.h" 29 #include "qemu/error-report.h" 35 #include "hw/acpi/acpi-defs.h" 39 #include "hw/acpi/bios-linker-loader.h" 51 #include "hw/mem/memory-device.h" 55 #include "hw/hyperv/vmbus-bridge.h" 63 #include "hw/pci-host/i440fx.h" 64 #include "hw/pci-host/q35.h" [all …]
|
/openbmc/linux/fs/smb/server/mgmt/ |
H A D | user_session.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 27 unsigned int method; member 35 xa_for_each(&sess->ksmbd_chann_list, index, chann) { in free_channel_list() 36 xa_erase(&sess->ksmbd_chann_list, index); in free_channel_list() 40 xa_destroy(&sess->ksmbd_chann_list); in free_channel_list() 44 struct ksmbd_session_rpc *entry) in __session_rpc_close() argument 48 resp = ksmbd_rpc_close(sess, entry->id); in __session_rpc_close() 50 pr_err("Unable to close RPC pipe %d\n", entry->id); in __session_rpc_close() 53 ksmbd_rpc_id_free(entry->id); in __session_rpc_close() 54 kfree(entry); in __session_rpc_close() [all …]
|
/openbmc/openpower-host-ipmi-oem/ |
H A D | oemhandler.cpp | 5 #include "elog-errors.hpp" 11 #include <systemd/sd-bus.h> 13 #include <host-interface.hpp> 14 #include <ipmid-host/cmd.hpp> 32 const std::map<uint8_t, Entry::Level> severityMap{ 33 {0x10, Entry::Level::Warning}, // Recoverable error 34 {0x20, Entry::Level::Warning}, // Predictive error 35 {0x40, Entry::Level::Error}, // Unrecoverable error 36 {0x50, Entry::Level::Error}, // Critical error 37 {0x60, Entry::Level::Error}, // Error from a diagnostic test [all …]
|
/openbmc/linux/Documentation/powerpc/ |
H A D | booting.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 ------------------ 8 was decided to enforce some strict rules regarding the kernel entry and 9 bootloader <-> kernel interfaces, in order to avoid the degeneration that had 10 become the ppc32 kernel entry point and the way a new platform should be added 14 merged architecture for ppc32 and ppc64, new 32-bit platforms and 32-bit 19 of a device-tree whose format is defined after Open Firmware specification. 21 doesn't require the device-tree to represent every device in the system and only 34 Entry point 37 There is one single entry point to the kernel, at the start [all …]
|
/openbmc/intel-ipmi-oem/src/ |
H A D | smbiosmdrv2handler.cpp | 8 // http://www.apache.org/licenses/LICENSE-2.0 28 #include <phosphor-logging/log.hpp> 47 int agentIndex = -1; in agentLookup() 67 sdbusplus::message_t method = in sdplusMdrv2GetProperty() local 68 bus->new_method_call(service.c_str(), mdrv2Path, dbusProperties, "Get"); in sdplusMdrv2GetProperty() 69 method.append(mdrv2Interface, name); in sdplusMdrv2GetProperty() 71 sdbusplus::message_t reply = bus->call(method); in sdplusMdrv2GetProperty() 75 sdbusplus::message_t reply = bus->call(method); in sdplusMdrv2GetProperty() 82 phosphor::logging::entry("ERROR=%s", e.what())); in sdplusMdrv2GetProperty() 83 return -1; in sdplusMdrv2GetProperty() [all …]
|
/openbmc/linux/drivers/platform/x86/dell/ |
H A D | dell-wmi-ddv.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 36 #define DRIVER_NAME "dell-wmi-ddv" 40 #define DELL_DDV_GUID "8A42EA14-4F2A-FD45-6422-0087F7A7E608" 132 static int dell_wmi_ddv_query_type(struct wmi_device *wdev, enum dell_ddv_method method, u32 arg, in dell_wmi_ddv_query_type() argument 143 ret = wmidev_evaluate_method(wdev, 0x0, method, &in, &out); in dell_wmi_ddv_query_type() 145 return -EIO; in dell_wmi_ddv_query_type() 149 return -ENODATA; in dell_wmi_ddv_query_type() 151 if (obj->type != type) { in dell_wmi_ddv_query_type() 153 return -ENOMSG; in dell_wmi_ddv_query_type() 161 static int dell_wmi_ddv_query_integer(struct wmi_device *wdev, enum dell_ddv_method method, in dell_wmi_ddv_query_integer() argument [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | fsl-imx8-ca53.dtsi | 17 #address-cells = <2>; 18 #size-cells = <0>; 20 idle-states { 21 entry-method = "psci"; 23 CPU_SLEEP: cpu-sleep { 24 compatible = "arm,idle-state"; 25 local-timer-stop; 26 arm,psci-suspend-param = <0x0000000>; 27 entry-latency-us = <700>; 28 exit-latency-us = <250>; [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/HardwareIsolation/ |
H A D | Create.interface.yaml | 2 This interface contains create method, which can be implemented to create an 3 xyz.openbmc_project.HardwareIsolation.Entry object which will use to provide 7 - name: Create 9 Create an xyz.openbmc_project.HardwareIsolation.Entry object if any of 14 - name: IsolateHardware 18 - name: Severity 19 type: enum[xyz.openbmc_project.HardwareIsolation.Entry.Type] 23 - name: Path 26 The path of created xyz.openbmc_project.HardwareIsolation.Entry 29 - xyz.openbmc_project.Common.Error.InvalidArgument [all …]
|
/openbmc/phosphor-fan-presence/monitor/ |
H A D | json_parser.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 27 #include <phosphor-logging/log.hpp> 45 // Get a constructed trust group class for a non-zero speed group 76 entry("REQUIRED_PARAMETERS=%s", "{class, group}")); in getTrustGrps() 90 entry("CLASS=%s", tgClass.c_str())); in getTrustGrps() 110 grpFuncs.emplace_back(handler->second(group)); in getTrustGrps() 116 entry("CLASS=%s", tgClass.c_str())); in getTrustGrps() 137 entry("REQUIRED_PARAMETERS=%s", "{name, has_target}")); in getSensorDefs() 207 entry("REQUIRED_PARAMETERS=%s", in getFanDefs() 212 // Valid deviation range is 0 - 100% in getFanDefs() [all …]
|
/openbmc/linux/Documentation/locking/ |
H A D | ww-mutex-design.rst | 2 Wound/Wait Deadlock-Proof Mutex Design 5 Please read mutex-design.rst first, as it applies to wait/wound mutexes too. 7 Motivation for WW-Mutexes 8 ------------------------- 37 and the deadlock handling approach is called Wait-Die. The name is based on 41 and dies. Hence Wait-Die. 42 There is also another algorithm called Wound-Wait: 46 transaction. Hence Wound-Wait. 48 However, the Wound-Wait algorithm is typically stated to generate fewer backoffs 49 compared to Wait-Die, but is, on the other hand, associated with more work than [all …]
|
/openbmc/phosphor-watchdog/src/ |
H A D | watchdog.cpp | 3 #include <phosphor-logging/elog.hpp> 4 #include <phosphor-logging/log.hpp> 50 else if (!this->enabled()) in enabled() 52 auto interval_ms = this->interval(); in enabled() 55 entry("INTERVAL=%llu", interval_ms)); in enabled() 83 if (this->enabled()) in timeRemaining() 92 value = fallback->interval; in timeRemaining() 112 if (!this->enabled()) in timeOutHandler() 114 action = fallback->action; in timeOutHandler() 123 entry("ACTION=%s", convertForMessage(action).c_str()), in timeOutHandler() [all …]
|
/openbmc/openbmc/meta-yadro/recipes-phosphor/ipmi/phosphor-ipmi-host/ |
H A D | 0002-Add-support-for-boot-initiator-mailbox.patch | 15 It is expected that a machine-specific override for 16 phosphor-settingsd sets the supported state and 21 Change-Id: Iccbf74c0775f20c70e8deaa7b0a8bd995ebbffea 22 Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com> 23 Signed-off-by: Ivan Mikhaylov <i.mikhaylov@yadro.com> 25 --- 26 chassishandler.cpp | 329 ++++++++++++++++++++++++++++++++++++++++++++- 28 2 files changed, 326 insertions(+), 4 deletions(-) 30 diff --git a/chassishandler.cpp b/chassishandler.cpp 32 --- a/chassishandler.cpp [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/arm/ |
H A D | psci.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> 15 processors") can be used by Linux to initiate various CPU-centric power 25 r0 => 32-bit Function ID / return value 26 {r1 - r3} => Parameters 40 - description: 44 - description: 52 - const: arm,psci-0.2 [all …]
|