| /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 …]
|
| /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-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/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 | 5 CONFIG_FOLDER = "phosphor-fan-presence" 17 file://presence.json \ 23 SYSTEMD_OVERRIDE:${PN}-presence-tach += "${EXECCON_OVERRIDE_CONF}:${TMPL_TACH}.d/${EXECCON_OVERRIDE_CONF}" 29 install -d ${D}${datadir}/${CONFIG_FOLDER}/presence/${COMPAT_NAME} 41 install -m 0644 ${UNPACKDIR}/presence.json \ 42 ${D}${datadir}/${CONFIG_FOLDER}/presence/${COMPAT_NAME}/config.json
|
| /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() 173 std::optional<std::string> presence{}; TEST() local 186 std::optional<std::string> presence{ TEST() local 205 std::optional<std::string> presence{}; TEST() local 242 std::optional<std::string> presence{}; TEST() local 262 std::optional<std::string> presence{}; TEST() local 282 std::optional<std::string> presence{}; TEST() local 302 std::optional<std::string> presence{}; TEST() local 348 std::optional<std::string> presence{}; TEST() local 365 std::optional<std::string> presence{ TEST() local 385 std::optional<std::string> presence{ TEST() local 405 std::optional<std::string> presence{ TEST() local 440 std::optional<std::string> presence{}; TEST() local 523 std::optional<std::string> presence{}; TEST() local 606 std::optional<std::string> presence{}; TEST() local 689 std::optional<std::string> presence{}; TEST() local 776 std::optional<std::string> presence{}; TEST() local 908 std::optional<std::string> presence{ TEST() local 935 std::optional<std::string> presence{ TEST() local 962 std::optional<std::string> presence{}; TEST() local 985 std::optional<std::string> presence{}; TEST() local 1009 std::optional<std::string> presence{}; TEST() local 1037 std::optional<std::string> presence{}; TEST() local 1072 std::optional<std::string> presence{}; TEST() local 1113 std::optional<std::string> presence{ TEST() local 1142 std::optional<std::string> presence{ TEST() local 1171 std::optional<std::string> presence{}; TEST() local 1196 std::optional<std::string> presence{}; TEST() local 1223 std::optional<std::string> presence{}; TEST() local 1259 std::optional<std::string> presence{}; TEST() local 1298 std::optional<std::string> presence{}; TEST() local 1340 std::optional<std::string> presence{ TEST() local 1368 std::optional<std::string> presence{ TEST() local 1398 std::optional<std::string> presence{}; TEST() local 1422 std::optional<std::string> presence{}; TEST() local 1448 std::optional<std::string> presence{}; TEST() local 1489 std::optional<std::string> presence{}; TEST() local 1528 std::optional<std::string> presence{}; TEST() local [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" 39 FILES:${PN}-presence += "${bindir}/phosphor-gpio-presence" 40 FILES:${PN}-presence += "${bindir}/phosphor-multi-gpio-presence" 41 FILES:${PN}-presence += "${datadir}/${PN}/phosphor-multi-gpio-presence.json" 47 ${PN}-presence \ 53 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 | 5 CONFIG_FOLDER = "phosphor-fan-presence" 16 file://presence.json \ 22 SYSTEMD_OVERRIDE:${PN}-presence-tach += "${EXECCON_OVERRIDE_CONF}:${TMPL_TACH}.d/${EXECCON_OVERRIDE_CONF}" 28 install -d ${D}${datadir}/${CONFIG_FOLDER}/presence/${COMPAT_NAME} 38 install -m 0644 ${UNPACKDIR}/presence.json \ 39 ${D}${datadir}/${CONFIG_FOLDER}/presence/${COMPAT_NAME}/config.json
|
| /openbmc/docs/designs/inventory/ |
| H A D | gpio-based-hardware-inventory.md | 11 …ased cable presence detection](https://github.com/openbmc/docs/blob/46902afd6ebd20d1148379df99fe2c… 17 presence of cards, cables and other connected entities which may or may not be 18 plugged into a system. A subset of these entities support presence detection via 25 The existing design for the gpio based cable presence is partially implemented 28 …om/openbmc/docs/blob/879601d92becfa1dbc082f487abfb5e0151a5091/designs/gpio-based-cable-presence.md) 30 Currently the way to do gpio based presence detection is via 31 phosphor-multi-gpio-presence and phosphor-inventory-manager. 36 The presence daemon then toggles the 'Present' property on dbus interface 44 …presence daemon config](https://github.com/openbmc/openbmc/blob/1d438f68277cdb37e8062ae298402e9685… 49 phosphor-multi-gpio-presence configuration: [all …]
|
| /openbmc/phosphor-gpio-monitor/presence/ |
| H A D | gpio_presence.hpp | 19 namespace presence namespace 29 /** @class Presence 30 * @brief Responsible for determining and monitoring presence, 34 class Presence : public Evdev class 48 Presence() = delete; 49 ~Presence() = default; 50 Presence(const Presence&) = delete; 51 Presence& operator=(const Presence&) = delete; 52 Presence(Presence&&) = delete; 53 Presence& operator=(Presence&&) = delete; [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/openbmc/meta-phosphor/recipes-phosphor/configuration/ |
| H A D | entity-manager_git.bb | 15 PACKAGECONFIG ??= "ipmi-fru gpio-presence" 18 PACKAGECONFIG[gpio-presence] = "-Dgpio-presence=true, -Dgpio-presence=false, libgpiod" 35 SYSTEMD_SERVICE:gpio-presence = "xyz.openbmc_project.gpiopresence.service" 42 ${@bb.utils.contains('PACKAGECONFIG', 'gpio-presence', 'gpio-presence', '', d)} \ 55 FILES:gpio-presence = "${bindir}/gpio-presence-sensor" 59 ${@bb.utils.contains('PACKAGECONFIG', 'gpio-presence', 'gpi [all...] |
| /openbmc/phosphor-power/phosphor-power-sequencer/config_files/ |
| H A D | Everest.json | 53 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", 60 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", 79 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", 86 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", 105 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", 112 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", 131 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", 138 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", 157 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", 164 "presence" 40 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 47 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 66 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 73 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 92 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 99 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 118 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 125 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 144 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 151 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 170 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 177 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 194 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 200 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string [all...] |
| H A D | Fuji.json | 53 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", 60 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", 79 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", 86 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", 105 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", 112 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", 131 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", 138 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", 157 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", 164 "presence" 40 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 47 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 66 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 73 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 92 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 99 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 118 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 125 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 144 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 151 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 170 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 177 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string 194 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm2/cpu0", global() string 200 "presence": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm3/cpu0", global() string [all...] |
| /openbmc/entity-manager/src/gpio-presence/ |
| H A D | README.md | 1 # gpio-presence-sensor 17 "PresencePinNames": ["presence-cable0"], 23 "PresencePinNames": ["presence-slot0a", "presence-slot0b"], 29 "PresencePinNames": ["presence-slot0a", "presence-slot0b"], 35 "PresencePinNames": ["presence-slot0a", "presence-slot0b"], 41 "PresencePinNames": ["presence-fanboard0"], 80 This is what the gpio-presence daemon exposes on dbus when the hardware is
|
| /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
|
| /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-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/openbmc/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/ |
| H A D | motor-init-calibration@.service | 5 Requires=phosphor-gpio-presence@presence-sled%i.service 6 After=phosphor-gpio-presence@presence-sled%i.service 7 Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-presence-presence_sled%i.service 8 After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-presence-presence_sled%i.service
|
| /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 59 polls the gpio presence signal for these objects in an interval of 10 seconds. 65 On the IPMI sIDe, the presence states will be grouped into fewer SDR IDs in 82 new SDR name is cable[0-1]. The SDR name implies that this SDR has the presence 84 bit position for cable1 is 1. In the case of having more than 14 presence 102 try to group it with anything and use 1 SDR ID for its presence state. See the [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 \ 66 # openbmc/phosphor-fan-presence#26 is resolved. This should likely be 71 SYSTEMD_SERVICE:${PN}-presence-tach += "${TMPL_TACH}" 72 SYSTEMD_LINK:${PN}-presence-tach += "${@compose_list(d, 'FMT_TACH', 'OBMC_CHASSIS_ZERO_ONLY')}" 74 SYSTEMD_LINK:${PN}-presence-tach += "${@bb.utils.contains('PACKAGECONFIG', 'json', \ 107 FILES:${PN}-presence-tach = "${bindir}/phosphor-fan-presence-tach" [all …]
|