dfddd648 | 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: Ica590f8613f1fb89ab1ca676ac51c1cc7e38d67f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
3420426c | 06-Dec-2023 |
Matt Spinler <spinler@us.ibm.com> |
cnfgs:p10bmc: Rename the IBM config directories
Due to the fan applications now using the xyz.openbmc_project.Inventory.Decorator.Compatible interface instead of the xyz.openbmc_project.Configuratio
cnfgs:p10bmc: Rename the IBM config directories
Due to the fan applications now using the xyz.openbmc_project.Inventory.Decorator.Compatible interface instead of the xyz.openbmc_project.Configuration.IBMCompatibleSystem one, the names of the systems have changed as the new interface uses a different property value format.
Rename all of the directories that mirror those property names to the new ones.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ie541d15b47a155e88800fb7def76c0e8fbd8182b
show more ...
|
ef17a25a | 07-Dec-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: adjust nlohmann-json dependency
- Simplify the dependency logic in the meson.build. - Align the meson dep name with consistent practices from other repos. - Use the non-versioned wrap file.
meson: adjust nlohmann-json dependency
- Simplify the dependency logic in the meson.build. - Align the meson dep name with consistent practices from other repos. - Use the non-versioned wrap file.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I0e3052763bffe9f98d8ca10c5b523b58e000f636
show more ...
/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,bonnell/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,bonnell/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,bonnell/pcie_cards.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,bonnell/zones.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,everest/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,everest/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-1s4u/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-2u/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-2u/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-4u/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-4u/groups.json/openbmc/phosphor-fan-presence/control/json/manager.cpp/openbmc/phosphor-fan-presence/control/meson.build/openbmc/phosphor-fan-presence/meson.build/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,bonnell/config.json/openbmc/phosphor-fan-presence/monitor/fan.cpp/openbmc/phosphor-fan-presence/monitor/meson.build/openbmc/phosphor-fan-presence/monitor/test/meson.buildmeson.build/openbmc/phosphor-fan-presence/subprojects/nlohmann_json.wrap/openbmc/phosphor-fan-presence/test/meson.build |
5e15c3ba | 20-Oct-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I3e9e6350864ac267819a4b8d670bef7d3746976e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
fbf4703f | 17-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
use std::format instead of fmt::format
The std::format is sufficient for the uses in this repository except for in one file (override_fan_target.cpp, since P2286 isn't supported by GCC yet). Switch
use std::format instead of fmt::format
The std::format is sufficient for the uses in this repository except for in one file (override_fan_target.cpp, since P2286 isn't supported by GCC yet). Switch to std::format whenever possible.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib2576fb530a4d7ce238e1b0bd95b40b476ec2107
show more ...
|
16e512d4 | 17-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: fix nlohmann-json dependency
Previously the json dependency was only added when `json-control` or `json-config` options were enabled, but there is now base code that utilizes nlohmann-json di
build: fix nlohmann-json dependency
Previously the json dependency was only added when `json-control` or `json-config` options were enabled, but there is now base code that utilizes nlohmann-json directly (such as logger.hpp). Add the dependency at the top level.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ia92e54f9bd4812af0977bcfa5479f093f7bdbc67
show more ...
|
61b73296 | 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I152f141a5e8343b92b5ce81d3ca16eec77b5606b Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
a49e3f19 | 08-Dec-2022 |
Patrick Williams <patrick@stwcx.xyz> |
prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML files to have consistent formatting for these file types. Re-run the formatter on the whole repository.
prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML files to have consistent formatting for these file types. Re-run the formatter on the whole repository.
Change-Id: I961ec77b2617da3e097e64e0d8e8980bb7e5b426 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
/openbmc/phosphor-fan-presence/README.md/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,bonnell/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,bonnell/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,everest/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,everest/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,everest/pcie_cards.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-1s4u/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-1s4u/pcie_cards.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-2u/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-2u/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-2u/pcie_cards.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-4u/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-4u/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-4u/pcie_cards.json/openbmc/phosphor-fan-presence/control/gen-fan-zone-defs.py/openbmc/phosphor-fan-presence/docs/control/README.md/openbmc/phosphor-fan-presence/docs/control/debug.md/openbmc/phosphor-fan-presence/docs/control/events.md/openbmc/phosphor-fan-presence/docs/control/fanctl/README.md/openbmc/phosphor-fan-presence/docs/control/fans.md/openbmc/phosphor-fan-presence/docs/control/groups.md/openbmc/phosphor-fan-presence/docs/control/zones.md/openbmc/phosphor-fan-presence/docs/monitor/README.md/openbmc/phosphor-fan-presence/docs/monitor/class.md/openbmc/phosphor-fan-presence/docs/monitor/deviation.md/openbmc/phosphor-fan-presence/docs/monitor/fan_missing_error_delay.md/openbmc/phosphor-fan-presence/docs/monitor/group.md/openbmc/phosphor-fan-presence/docs/monitor/inventory.md/openbmc/phosphor-fan-presence/docs/monitor/method.md/openbmc/phosphor-fan-presence/docs/monitor/monitor_start_delay.md/openbmc/phosphor-fan-presence/docs/monitor/nonfunc_rotor_error_delay.md/openbmc/phosphor-fan-presence/docs/monitor/num_nonfunc_rotors_before_error.md/openbmc/phosphor-fan-presence/docs/monitor/num_sensors_nonfunc_for_fan_nonfunc.md/openbmc/phosphor-fan-presence/docs/monitor/power_off_config.md/openbmc/phosphor-fan-presence/docs/monitor/sensors.md/openbmc/phosphor-fan-presence/docs/monitor/set_func_on_present.md/openbmc/phosphor-fan-presence/docs/presence/README.md/openbmc/phosphor-fan-presence/docs/presence/eeprom.md/openbmc/phosphor-fan-presence/docs/presence/methods.md/openbmc/phosphor-fan-presence/docs/presence/name.md/openbmc/phosphor-fan-presence/docs/presence/path.md/openbmc/phosphor-fan-presence/docs/presence/rpolicy.md/openbmc/phosphor-fan-presence/docs/sensor-monitor/README.md/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,bonnell/config.json/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,everest/config.json/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,rainier-1s4u/config.json/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,rainier-2u/config.json/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,rainier-4u/config.json/openbmc/phosphor-fan-presence/monitor/config_files/witherspoon/config.json/openbmc/phosphor-fan-presence/monitor/example/config.jsonconfig_files/p10bmc/ibm,bonnell/config.jsonconfig_files/p10bmc/ibm,everest/config.jsonconfig_files/p10bmc/ibm,rainier-1s4u/config.jsonconfig_files/p10bmc/ibm,rainier-2u/config.jsonconfig_files/p10bmc/ibm,rainier-4u/config.jsonconfig_files/witherspoon/config.jsonexample/config.jsonexample/example.yaml |
0f2588f2 | 05-Dec-2022 |
Patrick Williams <patrick@stwcx.xyz> |
python: fix flake8 warnings and format with black
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: If25d550660b82ea8c5f2c9b9140f3e7c5f77e906 |
ffec17e0 | 05-Oct-2022 |
Matt Spinler <spinler@us.ibm.com> |
presence:ibm,bonnell: Add config file
The Bonnell system has 2 dual rotor fans with their presence detect GPIOs wired directly to the BMC using GPIOs F4 and F5. The device tree has these configured
presence:ibm,bonnell: Add config file
The Bonnell system has 2 dual rotor fans with their presence detect GPIOs wired directly to the BMC using GPIOs F4 and F5. The device tree has these configured as GPIO keys 6 and 7.
The 'physpath' values are only used by the 'Fallback' presence redundancy policy, which we are not using because we're using 'AnyOf' instead. On other systems that would be the I2C device path of the IO expander the presence detects are wired to. In this case they're wired to the BMC so an I2C path doesn't apply, so I just chose 'BMC' to have something there, which again isn't used anyway but the code requires it.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I4b1753bb110b3668e86ab4fa46624e0afc6f46a5
show more ...
|
08bc72f2 | 12-Oct-2022 |
Matt Spinler <spinler@us.ibm.com> |
presence: Add ctors for AnyOf and Fallback
Add constructors to the AnyOf and Fallback presence detection classes that don't take an EEPROMDevice pointer. This will fix the YAML based compilation wh
presence: Add ctors for AnyOf and Fallback
Add constructors to the AnyOf and Fallback presence detection classes that don't take an EEPROMDevice pointer. This will fix the YAML based compilation which was failing because the python template wasn't adding that EEPROMDevice argument.
Alternatively the python mako template could have been modified to pass in the argument, but there are no plans to add the EEPROM support to the YAML mode anyway.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I178bf8a8e258de3597f8ced600dc803cab54f227
show more ...
|
bc4179e9 | 04-Oct-2022 |
Matt Spinler <spinler@us.ibm.com> |
pres: Add way to bind fan eeprom driver after plug
Some fans have EEPROMs on them that are read by other BMC code so the contents can be added to the BMC inventory. Since fans can usually be hotplu
pres: Add way to bind fan eeprom driver after plug
Some fans have EEPROMs on them that are read by other BMC code so the contents can be added to the BMC inventory. Since fans can usually be hotplugged, this means those EEPROMs need to be read after a fan is plugged, and there was previously no method to trigger that.
This commit adds functionality to phosphor-fan-presence-tach to bind the EEPROM driver to the new device after a fan with an EEPROM is plugged. This triggers a udev event which triggers EEPROM reads if the platform is configured to do so.
This is done with a new optional JSON section in the config.json, which looks like: "eeprom": { "bus_address": "31-0050", "driver_name": "at24", "bind_delay_ms": 1000 }
The 'bus_address' field is the device's I2C bus and address string as it is represented in the I2C subsystem in sysfs. The 'driver_name' field is the name of the device driver that manages that device. The 'bind_delay_ms' field allows there to be a defined amount of time between when the device is plugged and when the driver is bound, in case a certain amount of time is required for the device to come online after it receives power.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I10d36efab954393239e6face96244ecd34035596
show more ...
|
a787af09 | 20-Jun-2022 |
Mike Capps <mikepcapps@gmail.com> |
meson support: remove autoconf
This commit removes the deprecated autoconf makefiles, artifacts, and service files which have autoconf-style naming (*.in).
Signed-off-by: Mike Capps <mikepcapps@gma
meson support: remove autoconf
This commit removes the deprecated autoconf makefiles, artifacts, and service files which have autoconf-style naming (*.in).
Signed-off-by: Mike Capps <mikepcapps@gmail.com> Change-Id: I9c0e6162798c235f899aeb5cd9ecea1a0eee29a5
show more ...
|
a081956f | 13-Jun-2022 |
Mike Capps <mikepcapps@gmail.com> |
meson support: create meson.build files
This commit contains the meson.build files necessary to build the project and unit tests. The normal procedure is to run the command 'meson build' followed by
meson support: create meson.build files
This commit contains the meson.build files necessary to build the project and unit tests. The normal procedure is to run the command 'meson build' followed by ninja -C build. Additionally, service files are copied to remove autoconf-style naming convention (they cannot be removed before autoconf files are removed).
Signed-off-by: Mike Capps <mikepcapps@gmail.com> Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I6cf8f5c1c923a198ad2fb4638843645479fd0498
show more ...
|
cb356d48 | 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9029cc722e7712633c15436bd3868d8c3209f567
show more ...
|
808d7fe8 | 13-Jun-2022 |
Mike Capps <mikepcapps@gmail.com> |
meson support: remove code warnings 1
This commit contains code changes necessary to support the increased warning level from Meson builds. Most changes are for unused variables.
To keep the review
meson support: remove code warnings 1
This commit contains code changes necessary to support the increased warning level from Meson builds. Most changes are for unused variables.
To keep the review size manageable, this commit contains only monitor and presence changes (and top-level json_config.hpp).
Signed-off-by: Mike Capps <mikepcapps@gmail.com> Change-Id: I7280b512c54e8d5aeba3300764a239f3dcbab14d
show more ...
|
dfc8c4d0 | 22-Jun-2022 |
Matt Spinler <spinler@us.ibm.com> |
presence: Only allow loading once
If entity manager were to get restarted, the JsonConfig::start() function would be called again which would attempt to load a config on top of an existing one.
Fix
presence: Only allow loading once
If entity manager were to get restarted, the JsonConfig::start() function would be called again which would attempt to load a config on top of an existing one.
Fix that by only allowing the config to load once. If someone wanted the config to load again, they could either send the HUP signal or just restart the service.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I1526db17500ffe88408c8bc1f0abba9c4952107b
show more ...
/openbmc/phosphor-fan-presence/.gitignore/openbmc/phosphor-fan-presence/MAINTAINERS/openbmc/phosphor-fan-presence/OWNERS/openbmc/phosphor-fan-presence/configure.ac/openbmc/phosphor-fan-presence/control/Makefile.am/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,everest/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,everest/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,everest/pcie_cards.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,everest/zones.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-1s4u/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-1s4u/pcie_cards.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-1s4u/zones.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-2u/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-2u/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-2u/pcie_cards.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-2u/zones.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-4u/events.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-4u/groups.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-4u/pcie_cards.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-4u/zones.json/openbmc/phosphor-fan-presence/control/fanctl.cpp/openbmc/phosphor-fan-presence/control/json/actions/action.hpp/openbmc/phosphor-fan-presence/control/json/actions/count_state_floor.cpp/openbmc/phosphor-fan-presence/control/json/actions/count_state_floor.hpp/openbmc/phosphor-fan-presence/control/json/actions/count_state_target.cpp/openbmc/phosphor-fan-presence/control/json/actions/count_state_target.hpp/openbmc/phosphor-fan-presence/control/json/actions/get_managed_objects.cpp/openbmc/phosphor-fan-presence/control/json/actions/get_managed_objects.hpp/openbmc/phosphor-fan-presence/control/json/actions/mapped_floor.cpp/openbmc/phosphor-fan-presence/control/json/actions/mapped_floor.hpp/openbmc/phosphor-fan-presence/control/json/actions/missing_owner_target.cpp/openbmc/phosphor-fan-presence/control/json/actions/missing_owner_target.hpp/openbmc/phosphor-fan-presence/control/json/actions/net_target_decrease.cpp/openbmc/phosphor-fan-presence/control/json/actions/net_target_decrease.hpp/openbmc/phosphor-fan-presence/control/json/actions/net_target_increase.cpp/openbmc/phosphor-fan-presence/control/json/actions/override_fan_target.cpp/openbmc/phosphor-fan-presence/control/json/actions/override_fan_target.hpp/openbmc/phosphor-fan-presence/control/json/actions/pcie_card_floors.cpp/openbmc/phosphor-fan-presence/control/json/actions/pcie_card_floors.hpp/openbmc/phosphor-fan-presence/control/json/actions/request_target_base.hpp/openbmc/phosphor-fan-presence/control/json/actions/set_parameter_from_group_max.cpp/openbmc/phosphor-fan-presence/control/json/actions/timer_based_actions.cpp/openbmc/phosphor-fan-presence/control/json/config_base.hpp/openbmc/phosphor-fan-presence/control/json/dbus_zone.cpp/openbmc/phosphor-fan-presence/control/json/event.cpp/openbmc/phosphor-fan-presence/control/json/event.hpp/openbmc/phosphor-fan-presence/control/json/fan.cpp/openbmc/phosphor-fan-presence/control/json/fan.hpp/openbmc/phosphor-fan-presence/control/json/group.cpp/openbmc/phosphor-fan-presence/control/json/group.hpp/openbmc/phosphor-fan-presence/control/json/manager.cpp/openbmc/phosphor-fan-presence/control/json/manager.hpp/openbmc/phosphor-fan-presence/control/json/triggers/handlers.hpp/openbmc/phosphor-fan-presence/control/json/triggers/init.cpp/openbmc/phosphor-fan-presence/control/json/triggers/parameter.cpp/openbmc/phosphor-fan-presence/control/json/triggers/parameter.hpp/openbmc/phosphor-fan-presence/control/json/triggers/signal.cpp/openbmc/phosphor-fan-presence/control/json/triggers/signal.hpp/openbmc/phosphor-fan-presence/control/json/triggers/timer.cpp/openbmc/phosphor-fan-presence/control/json/triggers/trigger.hpp/openbmc/phosphor-fan-presence/control/json/triggers/trigger_aliases.hpp/openbmc/phosphor-fan-presence/control/json/utils/flight_recorder.cpp/openbmc/phosphor-fan-presence/control/json/utils/flight_recorder.hpp/openbmc/phosphor-fan-presence/control/json/utils/modifier.cpp/openbmc/phosphor-fan-presence/control/json/utils/modifier.hpp/openbmc/phosphor-fan-presence/control/json/utils/pcie_card_metadata.cpp/openbmc/phosphor-fan-presence/control/json/utils/pcie_card_metadata.hpp/openbmc/phosphor-fan-presence/control/json/zone.cpp/openbmc/phosphor-fan-presence/control/json/zone.hpp/openbmc/phosphor-fan-presence/control/main.cpp/openbmc/phosphor-fan-presence/control/manager.cpp/openbmc/phosphor-fan-presence/control/triggers.cpp/openbmc/phosphor-fan-presence/control/types.hpp/openbmc/phosphor-fan-presence/control/zone.cpp/openbmc/phosphor-fan-presence/control/zone.hpp/openbmc/phosphor-fan-presence/docs/control/README.md/openbmc/phosphor-fan-presence/docs/control/debug.md/openbmc/phosphor-fan-presence/docs/control/events.md/openbmc/phosphor-fan-presence/docs/control/fanctl/README.md/openbmc/phosphor-fan-presence/docs/control/fans.md/openbmc/phosphor-fan-presence/docs/control/groups.md/openbmc/phosphor-fan-presence/docs/control/zones.md/openbmc/phosphor-fan-presence/json_config.hpp/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,everest/config.json/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,rainier-1s4u/config.json/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,rainier-2u/config.json/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,rainier-4u/config.json/openbmc/phosphor-fan-presence/monitor/fan.cpp/openbmc/phosphor-fan-presence/monitor/fan_error.cpp/openbmc/phosphor-fan-presence/monitor/fan_error.hpp/openbmc/phosphor-fan-presence/monitor/gen-fan-monitor-defs.py/openbmc/phosphor-fan-presence/monitor/json_parser.cpp/openbmc/phosphor-fan-presence/monitor/power_interface.cpp/openbmc/phosphor-fan-presence/monitor/power_off_action.hpp/openbmc/phosphor-fan-presence/monitor/system.cpp/openbmc/phosphor-fan-presence/monitor/system.hpp/openbmc/phosphor-fan-presence/monitor/tach_sensor.cpp/openbmc/phosphor-fan-presence/monitor/tach_sensor.hpp/openbmc/phosphor-fan-presence/monitor/types.hpp/openbmc/phosphor-fan-presence/power_state.hppjson_parser.cppjson_parser.hpp/openbmc/phosphor-fan-presence/sensor-monitor/Makefile.am/openbmc/phosphor-fan-presence/sensor-monitor/alarm_timestamps.hpp/openbmc/phosphor-fan-presence/sensor-monitor/main.cpp/openbmc/phosphor-fan-presence/sensor-monitor/shutdown_alarm_monitor.cpp/openbmc/phosphor-fan-presence/sensor-monitor/shutdown_alarm_monitor.hpp/openbmc/phosphor-fan-presence/sensor-monitor/threshold_alarm_logger.cpp/openbmc/phosphor-fan-presence/sensor-monitor/threshold_alarm_logger.hpp/openbmc/phosphor-fan-presence/utility.hpp |
ddb773b2 | 06-Oct-2021 |
Patrick Williams <patrick@stwcx.xyz> |
catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id1b5054d3147c39d98309bc11ed7016d6909e2a6 |
8bf1c42c | 05-Aug-2021 |
Matthew Barth <msbarth@us.ibm.com> |
presence: Install JSON config files from repo
Install the JSON config files for the machine name provided in the environment variable "MACHINE" into the application's data directory. When no "MACHIN
presence: Install JSON config files from repo
Install the JSON config files for the machine name provided in the environment variable "MACHINE" into the application's data directory. When no "MACHINE" name is given, the entire contents of the `config_files` directory is installed and when a given "MACHINE" named directory does not exist, the installation is intended to fail. This failure of installation is to ensure that the fan application's necessary JSON config files will exist so the fan application does not fail to start.
Change-Id: I350643cc7378963da39a9c2ebc2a6d9748f04c46 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
/openbmc/phosphor-fan-presence/configure.ac/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,everest/fans.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,everest/zones.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-1s4u/fans.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-1s4u/zones.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-2u/zones.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier-4u/zones.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,rainier/fans.json/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,everest/config.json/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,rainier-1s4u/config.json/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,rainier-2u/config.json/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,rainier-4u/config.json/openbmc/phosphor-fan-presence/monitor/config_files/witherspoon/config.jsonMakefile.am |
6923a3f0 | 05-Aug-2021 |
Matthew Barth <msbarth@us.ibm.com> |
presence: Add machine JSON config files
Add the known JSON config files that exist in the openbmc repository to be installed for each machine.
Change-Id: I722b58a2509118614ca5546f6db2468f5a465166 S
presence: Add machine JSON config files
Add the known JSON config files that exist in the openbmc repository to be installed for each machine.
Change-Id: I722b58a2509118614ca5546f6db2468f5a465166 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
a35a890b | 10-Jun-2021 |
Mike Capps <mikepcapps@gmail.com> |
presence: detect and report GPIO exceptions on startup
To address issue ibm2982, we will now catch exceptions when creating the GPIO presence sensor and substitute it with a nullary sensor that alwa
presence: detect and report GPIO exceptions on startup
To address issue ibm2982, we will now catch exceptions when creating the GPIO presence sensor and substitute it with a nullary sensor that always reports non-present. This will give proper error logging for the basic failure scenario of disconnected hardware. Currently this scenario causes a core dump and subsequent investigation.
Additionally, an OpenBMC event log has been created using the label xyz.openbmc_project.Fan.Presence.Error.GPIODeviceUnavailable
Signed-off-by: Mike Capps <mikepcapps@gmail.com> Change-Id: Ib25fb27ed4a0a23aae667beb1e7708ada7ea7d65
show more ...
|
5b839919 | 21-Jun-2021 |
Matthew Barth <msbarth@us.ibm.com> |
presence: Use new JsonConfig object
To simplify handling the loading of config files, use the updated JsonConfig object that populates the available compatibility values used when retrieving the JSO
presence: Use new JsonConfig object
To simplify handling the loading of config files, use the updated JsonConfig object that populates the available compatibility values used when retrieving the JSON file and loading it. The given load function is called if compatibility values are found upon being constructed or after an interfacesAdded signal is received, which then it can call `getConfFile` to find the JSON config file to be loaded.
Change-Id: I7698f0abf91dc6414386a42b710bcde9c3f47612 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
c65d91d6 | 21-Apr-2021 |
Matt Spinler <spinler@us.ibm.com> |
presence: Sensor conflict checking for AnyOf
There can be more than one way to detect the presence of a fan, such as by a GPIO and by a nonzero tach reading. The AnyOf redundancy policy only requir
presence: Sensor conflict checking for AnyOf
There can be more than one way to detect the presence of a fan, such as by a GPIO and by a nonzero tach reading. The AnyOf redundancy policy only requires one of these to indicate present when determining the overall fan presence state.
This commit adds the functionality to check for the case when one of the method reports not present while another reports present. In this case, the one reporting not present will be considered the wrong one, and depending on the detection type either an information event log or just a journal trace will be created.
Only one log per method per power cycle will occur. Since one of the methods probably looks for nonzero tach readings, there is a 5 second delay after a power on is detected before a conflict check is done.
If the GPIO method is where the problem is detected, an event log is created. If it's instead the tach sensor method, then a trace will just be put in the journal because there is already code watching for and creating event logs for stopped tachs - the fan monitor code.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I72a764ecff4076d6dc40335b92d177b6b3cfa2d9
show more ...
|
76e73c2a | 21-Apr-2021 |
Matt Spinler <spinler@us.ibm.com> |
Let PowerState class run multiple callbacks
Previously the PowerState class could only handle a single callback function. This commit changes that to allow other callback functions to be added with
Let PowerState class run multiple callbacks
Previously the PowerState class could only handle a single callback function. This commit changes that to allow other callback functions to be added with a addCallback() method. The callback functions are then executed when the power state changes.
This also changes the use of the PowerState object in the fan presence code to a shared_ptr instead of a unique_ptr, and adds a function to return the PowerState object to use in the app, creating it if necessary. This allows multiple pieces of the code to add their own callbacks to the same object.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I35fc8ab94c4806f0c7fd2f1552c58131b8f30f23
show more ...
|
8bd63087 | 15-Feb-2021 |
Matthew Barth <msbarth@us.ibm.com> |
presence: Format example JSON configuration
Update the formatting of the example JSON configuration file to align with how fan monitor's example JSON config file is formatted.
Signed-off-by: Matthe
presence: Format example JSON configuration
Update the formatting of the example JSON configuration file to align with how fan monitor's example JSON config file is formatted.
Signed-off-by: Matthew Barth <msbarth@us.ibm.com> Change-Id: I0fe78bb54b2ebfd6f5d106620a9260877fde70e4
show more ...
|