/openbmc/phosphor-fan-presence/presence/ |
H A D | json_parser.hpp | 21 namespace presence namespace 28 constexpr auto confAppName = "presence"; 36 // Presence method handler function 39 // Presence redundancy policy handler function 61 * @brief Get the json config based fan presence policies 63 * @return - The fan presence policies 78 * @brief Parses and populates the fan presence policies from 79 * the json file and then starts the actual presence 85 /* Fan presence policies */ 91 /* List of Fan objects to have presence policies */ [all …]
|
H A D | json_parser.cpp | 39 namespace presence namespace 117 log<level::ERR>("Missing required fan presence properties", in process() 121 "Missing required fan presence properties"); in process() 124 // Loop thru the configured methods of presence detection in process() 131 "Missing required fan presence method type", in process() 135 "Missing required fan presence method type"); in process() 137 // The method type of fan presence detection in process() 154 "Invalid fan presence method type", in process() 158 throw std::runtime_error("Invalid fan presence method type"); in process() 198 // Add fan presence policy in process() [all …]
|
/openbmc/phosphor-fan-presence/docs/presence/ |
H A D | README.md | 1 # Fan Presence Configuration File 16 The `phosphor-fan-presence-tach` application is controlled by a configuration 20 presence of each fan within a machine. 30 See [config.json](../../presence/example/config.json). 38 `/usr/share/phosphor-fan-presence/presence/` 49 i.e.) `/usr/share/phosphor-fan-presence/presence/config.json` 66 The `phosphor-fan-presence-tach` application then traverses the supported 72 1. `/usr/share/phosphor-fan-presence/presence/com.ampere.Hardware.Chassis.Model.MtJade/` 74 2. `/usr/share/phosphor-fan-presence/presence/com.ampere.Hardware.Chassis.Model.MtMitchell/config.j… 78 and `phosphor-fan-presence-tach` application terminates preventing the machine [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/test/ |
H A D | rail_tests.cpp | 57 std::optional<std::string> presence{}; in TEST() local 64 presence, in TEST() 83 std::optional<std::string> presence{ in TEST() local 91 presence, in TEST() 116 std::optional<std::string> presence{}; in TEST() local 122 EXPECT_THROW((Rail{name, presence, page, isPowerSupplyRail, in TEST() 130 std::optional<std::string> presence{}; in TEST() local 136 EXPECT_THROW((Rail{name, presence, page, isPowerSupplyRail, in TEST() 145 std::optional<std::string> presence{}; in TEST() local 152 presence, in TEST() [all …]
|
/openbmc/openpower-occ-control/ |
H A D | occ_presence.hpp | 11 /** @class Presence 14 class Presence : public Error class 17 Presence() = delete; 18 Presence(const Presence&) = delete; 19 Presence& operator=(const Presence&) = delete; 20 Presence(Presence&&) = default; 21 Presence& operator=(Presence&&) = default; 23 /** @brief Constructs the Presence object 30 Presence(EventPtr& event, const fs::path& file, const Manager& mgr, in Presence() function in open_power::occ::Presence
|
/openbmc/phosphor-gpio-monitor/presence/ |
H A D | gpio_presence.hpp | 16 namespace presence namespace 26 /** @class Presence 27 * @brief Responsible for determining and monitoring presence, 31 class Presence : public Evdev class 45 Presence() = delete; 46 ~Presence() = default; 47 Presence(const Presence&) = delete; 48 Presence& operator=(const Presence&) = delete; 49 Presence(Presence&&) = delete; 50 Presence& operator=(Presence&&) = delete; [all …]
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | plat-phosphor-multi-gpio-presence.json | 3 "Name": "presence-ocp-0", 10 "Name": "presence-e1s-0", 11 "LineName": "presence-e1s-0", 17 "Name": "presence-e1s-1", 18 "LineName": "presence-e1s-1", 24 "Name": "presence-asic-modules-0", 25 "LineName": "presence-asic-modules-0", 31 "Name": "presence-asic-modules-1", 32 "LineName": "presence-asic-modules-1", 38 "Name": "presence-post-card", [all …]
|
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-phosphor/fans/ |
H A D | phosphor-fan_%.bbappend | 12 file://presence.json \ 15 file://phosphor-fan-presence-tach@.service \ 26 … install -m 0644 ${UNPACKDIR}/phosphor-fan-presence-tach@.service ${D}${systemd_system_unitdir} 29 install -d ${D}${datadir}/phosphor-fan-presence/control/${MITCHELL_COMPAT_NAME} 30 install -d ${D}${datadir}/phosphor-fan-presence/monitor/${MITCHELL_COMPAT_NAME} 31 install -d ${D}${datadir}/phosphor-fan-presence/presence/${MITCHELL_COMPAT_NAME} 36 ${D}${datadir}/phosphor-fan-presence/control/${MITCHELL_COMPAT_NAME} 40 ${D}${datadir}/phosphor-fan-presence/control/${MITCHELL_COMPAT_NAME}/groups.json 43 ${D}${datadir}/phosphor-fan-presence/monitor/${MITCHELL_COMPAT_NAME}/config.json 44 install -m 0644 ${UNPACKDIR}/presence.json \ [all …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/gpio/ |
H A D | phosphor-gpio-monitor_git.bb | 20 SRC_URI += " file://phosphor-multi-gpio-presence.json" 25 SYSTEMD_SERVICE:${PN}-presence += "phosphor-gpio-presence@.service" 26 SYSTEMD_SERVICE:${PN}-presence += "phosphor-multi-gpio-presence.service" 38 FILES:${PN}-presence += "${bindir}/phosphor-gpio-presence" 39 FILES:${PN}-presence += "${bindir}/phosphor-multi-gpio-presence" 40 FILES:${PN}-presence += "${datadir}/${PN}/phosphor-multi-gpio-presence.json" 46 ${PN}-presence \ 52 install -m 0644 ${UNPACKDIR}/phosphor-multi-gpio-presence.json ${D}${datadir}/${PN}/
|
/openbmc/openbmc/meta-ampere/meta-jefferson/recipes-phosphor/fans/ |
H A D | phosphor-fan_%.bbappend | 11 file://presence.json \ 20 install -d ${D}${datadir}/phosphor-fan-presence/control/${COMPAT_NAME} 21 install -d ${D}${datadir}/phosphor-fan-presence/monitor/${COMPAT_NAME} 22 install -d ${D}${datadir}/phosphor-fan-presence/presence/${COMPAT_NAME} 27 ${D}${datadir}/phosphor-fan-presence/control/${COMPAT_NAME} 31 ${D}${datadir}/phosphor-fan-presence/monitor/${COMPAT_NAME}/config.json 32 install -m 0644 ${UNPACKDIR}/presence.json \ 33 ${D}${datadir}/phosphor-fan-presence/presence/${COMPAT_NAME}/config.json
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/fan-policy/witherspoon/ |
H A D | fan-errors.yaml | 64 'Monitor the presence state of each fan.' 129 - name: watch fan0 presence 131 'Trigger logic on fan0 presence state changes.' 136 callback: check power fan0 presence 147 - name: watch fan1 presence 149 'Trigger logic on fan1 presence state changes.' 154 callback: check power fan1 presence 165 - name: watch fan2 presence 167 'Trigger logic on fan2 presence state changes.' 172 callback: check power fan2 presence [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/fan-policy/swift/ |
H A D | fan-errors.yaml | 63 'Monitor the presence state of each fan.' 128 - name: watch fan0 presence 130 'Trigger logic on fan0 presence state changes.' 135 callback: check power fan0 presence 146 - name: watch fan1 presence 148 'Trigger logic on fan1 presence state changes.' 153 callback: check power fan1 presence 164 - name: watch fan2 presence 166 'Trigger logic on fan2 presence state changes.' 171 callback: check power fan2 presence [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/config_files/ |
H A D | Everest.json | 40 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", string 47 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", string 66 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", string 73 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", string 92 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", string 99 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", string 118 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", string 125 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", string 144 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", string 151 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", string [all …]
|
H A D | Fuji.json | 40 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", string 47 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", string 66 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", string 73 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", string 92 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", string 99 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", string 118 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", string 125 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", string 144 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", string 151 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", string [all …]
|
/openbmc/openbmc/meta-facebook/recipes-phosphor/gpio/phosphor-gpio-monitor/fb-compute-multihost/ |
H A D | phosphor-multi-gpio-monitor.json | 3 "Name": "presence-slot1", 4 "LineName": "PRESENCE-SLOT1", 10 "Name": "presence-slot2", 11 "LineName": "PRESENCE-SLOT2", 17 "Name": "presence-slot3", 18 "LineName": "PRESENCE-SLOT3", 24 "Name": "presence-slot4", 25 "LineName": "PRESENCE-SLOT4",
|
/openbmc/openbmc/meta-ibm/meta-genesis3/recipes-phosphor/gpio/ |
H A D | phosphor-gpio-monitor_%.bbappend | 4 file://phosphor-multi-gpio-presence.json \ 8 FILES:${PN}-presence += " ${datadir}/${PN}/phosphor-multi-gpio-presence.json \ 9 … ${systemd_system_unitdir}/phosphor-multi-gpio-presence.service.d/dependencies.conf \ 13 rm -f ${D}${datadir}/phosphor-gpio-monitor/phosphor-multi-gpio-presence.json 14 install -m 0644 ${UNPACKDIR}/phosphor-multi-gpio-presence.json ${D}${datadir}/${PN}/ 15 install -d ${D}${systemd_system_unitdir}/phosphor-multi-gpio-presence.service.d/ 16 …IR}/dependencies.conf ${D}${systemd_system_unitdir}/phosphor-multi-gpio-presence.service.d/depende…
|
/openbmc/openbmc/meta-ibm/meta-sbp1/recipes-phosphor/gpio/ |
H A D | phosphor-gpio-monitor_%.bbappend | 6 file://phosphor-multi-gpio-presence.json \ 10 FILES:${PN}-presence += " ${datadir}/${PN}/phosphor-multi-gpio-presence.json \ 11 … ${systemd_system_unitdir}/phosphor-multi-gpio-presence.service.d/dependencies.conf \ 15 rm -f ${D}${datadir}/${PN}/phosphor-multi-gpio-presence.json 16 install -m 0644 ${UNPACKDIR}/phosphor-multi-gpio-presence.json ${D}${datadir}/${PN}/ 17 install -d ${D}${systemd_system_unitdir}/phosphor-multi-gpio-presence.service.d/ 18 …IR}/dependencies.conf ${D}${systemd_system_unitdir}/phosphor-multi-gpio-presence.service.d/depende…
|
/openbmc/openbmc/meta-facebook/meta-bletchley/recipes-phosphor/gpio/ |
H A D | phosphor-gpio-monitor_%.bbappend | 6 TMPL_PRESENT = "phosphor-gpio-presence@.service" 7 INSTFMT_PRESENT = "phosphor-gpio-presence@presence-sled{0}.service" 10 SYSTEMD_LINK:${PN}-presence:append = " ${@compose_list(d, 'FMT_PRESENT', 'OBMC_HOST_INSTANCES')}" 13 SLED_PRESENT_ENV_FMT = "obmc/gpio/presence-sled{0}.conf" 14 SYSTEMD_ENVIRONMENT_FILE:${PN}-presence = " ${@compose_list(d, 'SLED_PRESENT_ENV_FMT', 'OBMC_HOST_I… 20 …hExists=${GPIO_PRESENCE_SLED_CONF},g" ${D}${systemd_system_unitdir}/phosphor-gpio-presence@.service 21 …entFile=${GPIO_PRESENCE_SLED_CONF},g" ${D}${systemd_system_unitdir}/phosphor-gpio-presence@.service
|
/openbmc/phosphor-mrw-tools/ |
H A D | gen_presence_yaml.pl | 3 #This script generates YAML that defines the presence detects used 30 my %presence; 32 findTachBasedPresenceDetects(\%presence); 34 #Future: Find other sorts of presence detects 36 printYAML(\%presence, $outputFile); 41 #Finds FRUs and their Presence detects where a tach reading 42 #is used as the presence detect, such as when a nonzero fan RPM 46 my ($presence) = @_; 71 $$presence{Tach}{$name}{type} = 'Fan'; 74 push @{$$presence{Tach}{$name}{sensors}}, $sensor; [all …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/fans/ |
H A D | phosphor-fan_git.bb | 15 PACKAGECONFIG ?= "presence control monitor sensor-monitor" 16 # The control, monitor, and presence apps can either be JSON or YAML driven. 19 # ${PN}-presence-tach specific configuration 20 PACKAGECONFIG[presence] = "-Dpresence-service=enabled \ 24 virtual/phosphor-fan-presence-config \ 63 # openbmc/phosphor-fan-presence#26 is resolved. This should likely be 68 SYSTEMD_SERVICE:${PN}-presence-tach += "${TMPL_TACH}" 69 SYSTEMD_LINK:${PN}-presence-tach += "${@compose_list(d, 'FMT_TACH', 'OBMC_CHASSIS_ZERO_ONLY')}" 71 SYSTEMD_LINK:${PN}-presence-tach += "${@bb.utils.contains('PACKAGECONFIG', 'json', \ 104 FILES:${PN}-presence-tach = "${bindir}/phosphor-fan-presence-tach" [all …]
|
/openbmc/docs/designs/ |
H A D | gpio-based-cable-presence.md | 1 ## GPIO-based Cable Presence Detection 9 The intent of this new daemon design is to report GPIO-based cable presence 13 huge waste. Therefore, we need a solution to pack multiple presence states into 23 1. The openbmc IPMI interface should support exposing cable presence states. 30 Presence states. This new daemon will resIDe in openbmc/dbus-sensors. Its 63 polls the gpio presence signal for these objects in an interval of 10 seconds. 69 On the IPMI sIDe, the presence states will be grouped into fewer SDR IDs in 86 new SDR name is cable[0-1]. The SDR name implies that this SDR has the presence 88 bit position for cable1 is 1. In the case of having more than 14 presence 106 try to group it with anything and use 1 SDR ID for its presence state. See the [all …]
|
/openbmc/phosphor-fan-presence/ |
H A D | README.md | 11 The phosphor-fan-presence repository provides a set of thermal related 35 - [Fan Presence Detection](#fan-presence-detection) 96 - [Fan Presence Detection](#fan-presence-detection) 117 - Default = '/var/lib/phosphor-fan-presence/control' 140 ### Fan Presence Detection 142 Monitors the presence state of fans using GPIOs, nonzero tach feedbacks, or a 145 fan's presence. 148 - `num-presence-log-entries` - Maximum number of entries in the message log 154 - `presence-config` - Location of the config file 155 - Default = ['presence/example/example.yaml'](presence/example/example.yaml) [all …]
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-ufispace-ncplite.dts | 80 psu0-presence-l { 81 label = "psu0-presence-l"; 86 psu1-presence-l { 87 label = "psu1-presence-l"; 111 fan0-presence { 112 label = "fan0-presence"; 117 fan1-presence { 118 label = "fan1-presence"; 123 fan2-presence { 124 label = "fan2-presence"; [all …]
|
/openbmc/entity-manager/configurations/ |
H A D | fp5280g3_fanboard.json | 23 "Presence": { object 52 "Presence": { object 81 "Presence": { object 110 "Presence": { object 139 "Presence": { object 168 "Presence": { object 197 "Presence": { object 226 "Presence": { object 255 "Presence": { object 284 "Presence": { object [all …]
|
/openbmc/openbmc/meta-facebook/meta-bletchley/recipes-bletchley/detect-gpio-present/files/ |
H A D | detect-sled-present@.service | 3 After=phosphor-gpio-presence@presence-sled%i.service 4 Wants=phosphor-gpio-presence@presence-sled%i.service 5 After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-presence-presence_sled%i.service 6 Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-presence-presence_sled%i.service
|