10d4542d | 12-Dec-2024 |
Matt Spinler <spinler@us.ibm.com> |
Fix markdown format problem
The example wasn't proper JSON. Make it proper with good formatting.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Idbbd7d13357430351162a3e0b0a0ea26c86ff712 |
d24eeba0 | 05-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
docs/control/README.md: Fix MD051 warnings
The following warnings are generated by using markdownlint analysis: ``` docs/control/README.md:7:3 MD051/link-fragments Link fragments should be valid [Co
docs/control/README.md: Fix MD051 warnings
The following warnings are generated by using markdownlint analysis: ``` docs/control/README.md:7:3 MD051/link-fragments Link fragments should be valid [Context: "[Example](#example)"] ```
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I3a1e38966509b1490640018415b40df2f2233c7e
show more ...
|
ab818284 | 05-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
docs/control/README.md: Fix MD034 warnings
The following warnings are generated by using markdownlint analysis: ``` docs/control/README.md:243:1 MD034/no-bare-urls Bare URL used [Context: "https://g
docs/control/README.md: Fix MD034 warnings
The following warnings are generated by using markdownlint analysis: ``` docs/control/README.md:243:1 MD034/no-bare-urls Bare URL used [Context: "https://github.com/openbmc/pho..."] ``` Refer to markdown-lint [1] to fix MD034 [1]: https://github.com/updownpress/markdown-lint/blob/master/rules/034-no-bare-urls.md
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I48595b22044c4fc22741d302862bc6c7260d1cc7
show more ...
|
6631eee0 | 05-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
docs/control/fanctl/README.md: Fix MD026 warnings
The following warnings are generated by using markdownlint analysis: ``` docs/control/fanctl/README.md:60:12 MD026/no-trailing-punctuation Trailing
docs/control/fanctl/README.md: Fix MD026 warnings
The following warnings are generated by using markdownlint analysis: ``` docs/control/fanctl/README.md:60:12 MD026/no-trailing-punctuation Trailing punctuation in heading [Punctuation: ':'] ``` Refer to markdown-lint [1] to fix MD026 [1]: https://github.com/updownpress/markdown-lint/blob/master/rules/026-no-trailing-punctuation.md
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Icf87d4d60f406b0b936bddd98b7dbe91099ef58e
show more ...
|
cf04f3f2 | 05-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
docs/control/events.md: Fix MD029 warnings
The following warnings are generated by using markdownlint analysis: ``` docs/control/events.md:301:1 MD029/ol-prefix Ordered list item prefix [Expected: 1
docs/control/events.md: Fix MD029 warnings
The following warnings are generated by using markdownlint analysis: ``` docs/control/events.md:301:1 MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/1/1] docs/control/events.md:329:1 MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/1/1] docs/control/events.md:366:1 MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/1/1] docs/control/events.md:393:1 MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/1/1] ``` Refer to markdown-lint [1] to fix MD029 [1]: https://github.com/updownpress/markdown-lint/blob/master/rules/029-ol-prefix.md
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I6e81aee613c92e368905811ba51ef5be0696c0a1
show more ...
|
64fb88c1 | 05-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
Fix MD040 warnings
The following warnings are generated by using markdownlint analysis: ``` MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"] ``` Refer
Fix MD040 warnings
The following warnings are generated by using markdownlint analysis: ``` MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"] ``` Refer to markdown-lint [1] to fix MD040 [1]: https://github.com/updownpress/markdown-lint/blob/master/rules/040-fenced-code-language.md
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Ie866ac8c3d8e33d2c8811f7c6a5965d6dad1f88a
show more ...
|
6781491c | 11-Jun-2024 |
Chau Ly <chaul@amperecomputing.com> |
control: json: Correct hysteresis definitions
The action target_from_group_max has been implementing the reversed definitions of positive hysteresis and negative hysteresis. The positive hysteresis
control: json: Correct hysteresis definitions
The action target_from_group_max has been implementing the reversed definitions of positive hysteresis and negative hysteresis. The positive hysteresis should be for the value increasing case and vice versa. This commit corrects that in source code and events.md.
Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: I1b84884d16d5f20d0fdcd9033188ffd31e91f907
show more ...
|
078c0a86 | 11-Jun-2024 |
Chau Ly <chaul@amperecomputing.com> |
control: manager: Services with no managed objs
When a D-Bus object used in events is under a service that has the "org.freedesktop.DBus.ObjectManager", the control::json::Manager will try to get al
control: manager: Services with no managed objs
When a D-Bus object used in events is under a service that has the "org.freedesktop.DBus.ObjectManager", the control::json::Manager will try to get all the managed objects under the service and add to cache. However, in case when the results from the GetManagedObjects are empty, it omits the attempt to directly read the object from D-Bus using the configured information.
This patch handles this situation and allows services that have the ObjectManager interface but empty managed objects can be read.
Example: Objects under xyz.openbmc_project.State.Host service.
root@mtmitchell-dcscm:~# busctl call xyz.openbmc_project.State.Host \ /xyz/openbmc_project/state/host0 org.freedesktop.DBus.ObjectManager \ GetManagedObjects
a{oa{sa{sv}}} 0
Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: I5eca78fdfbc8a26fb7effb861440dc3cf28959d0
show more ...
|
7fa4d16e | 04-Jan-2024 |
Matt Spinler <spinler@us.ibm.com> |
control: Add optional delay to count_state_floor
Add an optional delay field to the count_state_floor action that takes a value in seconds. When set to a nonzero value, the action will then require
control: Add optional delay to count_state_floor
Add an optional delay field to the count_state_floor action that takes a value in seconds. When set to a nonzero value, the action will then require the count condition to be satisfied for that amount of time before setting the floor. This can be used to prevent the floor from jumping when there is just short change to a property value, for example if a sensor set to not functional for a short amount of time.
For example:
{ "name": "count_state_floor", "count": 1, "state": false, "delay": 5, "floor": 18000 }
This says that the floor won't be set to 18000 until at least 1 group member has its property value set to false for a continuous 5 seconds.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I67409ce651d9592b1cabb3f7cb36ba998c3ef545
show more ...
|
b99ce0ed | 30-Nov-2023 |
Chau Ly <chaul@amperecomputing.com> |
Use generic interface to look for configs
IBM has specific interface IBMCompatibleSystem to look for the compatible system location under which the configs are placed. The Entity Manager schema for
Use generic interface to look for configs
IBM has specific interface IBMCompatibleSystem to look for the compatible system location under which the configs are placed. The Entity Manager schema for the property under this interface and the interface name itself can't be generic for other meta systems. To find a more common interface, this should be the one that is probed together with chassis and has its property value corresponding to system's name.
This commit proposes the use of the property Names under the interface xyz.openbmc_project.Inventory.Decorator.Compatible [1]. The property can be configured in chassis's Entity Manager json configuration with a list of one or more compatible system strings. The usage of this interface was mentioned in document [2].
[1] https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/\ yaml/xyz/openbmc_project/Inventory/Decorator/Compatible.interface.yaml [2] https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/\ yaml/xyz/openbmc_project/Software/README.md#compatibility
Tested in Ampere's Mt.Mitchell platform.
1. Configure the interface in Motherboard's Entity Manager config: "xyz.openbmc_project.Inventory.Decorator.Compatible": { "Names": ["com.ampere.Hardware.Chassis.Model.MtMitchell"] } 2. Configs are already placed under /usr/share/phosphor-fan-presence/<daemon>/\ com.ampere.Hardware.Chassis.Model.MtMitchell/ 3. When Entity Manager config is probed: $ busctl call -j xyz.openbmc_project.ObjectMapper \ /xyz/openbmc_project/object_mapper xyz.openbmc_project.ObjectMapper \ GetSubTreePaths sias / 0 1 xyz.openbmc_project.Inventory.Decorator.Compatible { "type": "a{sa{sas}}", "data": [ [ "/xyz/openbmc_project/inventory/system/board/\ Mt_Mitchell_Motherboard" : { "xyz.openbmc_project.EntityManager" : [ ... "xyz.openbmc_project.Inventory.Decorator.Compatible ] } ] ] }
$ busctl get-property xyz.openbmc_project.EntityManager \ /xyz/openbmc_project/inventory/system/board/Mt_Mitchell_Motherboard \ xyz.openbmc_project.Inventory.Decorator.Compatible Names as 1 "com.ampere.Hardware.Chassis.Model.MtMitchell" 4. When phosphor-fan's daemon starts, it can successfully find configs under the folder "com.ampere.Hardware.Chassis.Model.MtMitchell"
Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: I55107f1c2a78e78ba7cea650b8eaeaf4fd615d2b
show more ...
/openbmc/phosphor-fan-presence/.clang-format/openbmc/phosphor-fan-presence/control/actions.cpp/openbmc/phosphor-fan-presence/control/actions.hpp/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-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/fanctl.cpp/openbmc/phosphor-fan-presence/control/functor.hpp/openbmc/phosphor-fan-presence/control/json/actions/action.hpp/openbmc/phosphor-fan-presence/control/json/actions/count_state_target.cpp/openbmc/phosphor-fan-presence/control/json/actions/default_floor.cpp/openbmc/phosphor-fan-presence/control/json/actions/get_managed_objects.cpp/openbmc/phosphor-fan-presence/control/json/actions/mapped_floor.cpp/openbmc/phosphor-fan-presence/control/json/actions/missing_owner_target.cpp/openbmc/phosphor-fan-presence/control/json/actions/net_target_decrease.cpp/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/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.cpp/openbmc/phosphor-fan-presence/control/json/actions/set_parameter_from_group_max.cpp/openbmc/phosphor-fan-presence/control/json/actions/target_from_group_max.cpp/openbmc/phosphor-fan-presence/control/json/actions/timer_based_actions.cpp/openbmc/phosphor-fan-presence/control/json/dbus_zone.cpp/openbmc/phosphor-fan-presence/control/json/dbus_zone.hpp/openbmc/phosphor-fan-presence/control/json/event.cpp/openbmc/phosphor-fan-presence/control/json/fan.cpp/openbmc/phosphor-fan-presence/control/json/fan.hpp/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/profile.cpp/openbmc/phosphor-fan-presence/control/json/profile.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/signal.cpp/openbmc/phosphor-fan-presence/control/json/triggers/timer.cpp/openbmc/phosphor-fan-presence/control/json/utils/flight_recorder.cpp/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/main.cpp/openbmc/phosphor-fan-presence/control/manager.cpp/openbmc/phosphor-fan-presence/control/meson.build/openbmc/phosphor-fan-presence/control/preconditions.cpp/openbmc/phosphor-fan-presence/control/zone.cpp/openbmc/phosphor-fan-presence/control/zone.hpp/openbmc/phosphor-fan-presence/cooling-type/cooling_type.cpp/openbmc/phosphor-fan-presence/cooling-type/main.cpp/openbmc/phosphor-fan-presence/cooling-type/meson.buildREADME.md/openbmc/phosphor-fan-presence/docs/monitor/README.md/openbmc/phosphor-fan-presence/docs/monitor/deviation.md/openbmc/phosphor-fan-presence/docs/presence/README.md/openbmc/phosphor-fan-presence/evdevpp/evdev.hpp/openbmc/phosphor-fan-presence/evdevpp/test/evmon.cpp/openbmc/phosphor-fan-presence/hwmon_ffdc.cpp/openbmc/phosphor-fan-presence/json_config.hpp/openbmc/phosphor-fan-presence/logger.hpp/openbmc/phosphor-fan-presence/meson.build/openbmc/phosphor-fan-presence/meson.options/openbmc/phosphor-fan-presence/monitor/conditions.cpp/openbmc/phosphor-fan-presence/monitor/config_files/p10bmc/ibm,bonnell/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-4u/config.json/openbmc/phosphor-fan-presence/monitor/fan.cpp/openbmc/phosphor-fan-presence/monitor/fan.hpp/openbmc/phosphor-fan-presence/monitor/fan_error.cpp/openbmc/phosphor-fan-presence/monitor/gen-fan-monitor-defs.py/openbmc/phosphor-fan-presence/monitor/json_parser.cpp/openbmc/phosphor-fan-presence/monitor/main.cpp/openbmc/phosphor-fan-presence/monitor/meson.build/openbmc/phosphor-fan-presence/monitor/power_interface.cpp/openbmc/phosphor-fan-presence/monitor/power_off_action.hpp/openbmc/phosphor-fan-presence/monitor/power_off_cause.hpp/openbmc/phosphor-fan-presence/monitor/power_off_rule.hpp/openbmc/phosphor-fan-presence/monitor/system.cpp/openbmc/phosphor-fan-presence/monitor/tach_sensor.cpp/openbmc/phosphor-fan-presence/monitor/tach_sensor.hpp/openbmc/phosphor-fan-presence/monitor/test/meson.build/openbmc/phosphor-fan-presence/monitor/trust_group.hpp/openbmc/phosphor-fan-presence/monitor/types.hpp/openbmc/phosphor-fan-presence/power_state.hpp/openbmc/phosphor-fan-presence/presence/anyof.cpp/openbmc/phosphor-fan-presence/presence/error_reporter.cpp/openbmc/phosphor-fan-presence/presence/fallback.cpp/openbmc/phosphor-fan-presence/presence/gpio.cpp/openbmc/phosphor-fan-presence/presence/gpio.hpp/openbmc/phosphor-fan-presence/presence/json_parser.cpp/openbmc/phosphor-fan-presence/presence/meson.build/openbmc/phosphor-fan-presence/presence/psensor.hpp/openbmc/phosphor-fan-presence/presence/tach.cpp/openbmc/phosphor-fan-presence/sdbusplus.hpp/openbmc/phosphor-fan-presence/sensor-monitor/alarm_timestamps.hpp/openbmc/phosphor-fan-presence/sensor-monitor/meson.build/openbmc/phosphor-fan-presence/sensor-monitor/service_files/sensor-monitor.service/openbmc/phosphor-fan-presence/sensor-monitor/shutdown_alarm_monitor.cpp/openbmc/phosphor-fan-presence/sensor-monitor/threshold_alarm_logger.cpp/openbmc/phosphor-fan-presence/subprojects/cereal.wrap/openbmc/phosphor-fan-presence/subprojects/evdev.wrap/openbmc/phosphor-fan-presence/subprojects/nlohmann_json.wrap/openbmc/phosphor-fan-presence/test/meson.build/openbmc/phosphor-fan-presence/utility.hpp |
1a555607 | 08-Dec-2022 |
Matt Spinler <spinler@us.ibm.com> |
control: mapped_floor: Add conditions
Add the concept of a condition to the mapped_floor action such that it will only run if the condition is met. If the condition isn't met, the run() function wi
control: mapped_floor: Add conditions
Add the concept of a condition to the mapped_floor action such that it will only run if the condition is met. If the condition isn't met, the run() function will just exit immediately.
A condition is created by placing the following in the JSON:
* condition_group - The name of the group that has the property the condition will use. For now, it must be a single member group. * condition_value - The value the property has to be to meet the condition. * condition_op - Either 'equal' or 'not_equal', where the property has to either be equal to or not equal to the condition value.
For example, the following says the single member of the 'cpu 0' group must have its Model property be equal to "1234" for the action to run:
{ "groups": [{ "name": "cpu 0", "interface": "xyz.openbmc_project.Inventory.Decorator.Asset", "property": { "name": "Model" } } ... ], ... "name": "mapped_floor", "key_group": "ambient temp", "condition_group": "cpu 0", "condition_value": "1234", "condition_op": "equal", ... }
If a condition is present but isn't met, the action will remove its floor hold if it has one to support the case of the condition property changing values.
Change-Id: I3ede20efd334e2c5292a441c089534420959c7bc Signed-off-by: Matt Spinler <spinler@us.ibm.com>
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/OWNERS/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/fans.json/openbmc/phosphor-fan-presence/control/config_files/p10bmc/ibm,bonnell/groups.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,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/control/json/actions/target_from_group_max.cppREADME.mddebug.mdevents.mdfanctl/README.mdfans.mdgroups.mdzones.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.json/openbmc/phosphor-fan-presence/monitor/example/monitor.yaml/openbmc/phosphor-fan-presence/monitor/fan.cpp/openbmc/phosphor-fan-presence/monitor/gen-fan-monitor-defs.py/openbmc/phosphor-fan-presence/monitor/json_parser.cpp/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/presence/anyof.cpp/openbmc/phosphor-fan-presence/presence/anyof.hpp/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/ibm,bonnell/config.json/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/ibm,everest/config.json/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/ibm,rainier-1s4u/config.json/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/ibm,rainier-2u/config.json/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/ibm,rainier-4u/config.json/openbmc/phosphor-fan-presence/presence/config_files/witherspoon/config.json/openbmc/phosphor-fan-presence/presence/eeprom_device.hpp/openbmc/phosphor-fan-presence/presence/example/config.json/openbmc/phosphor-fan-presence/presence/example/example.yaml/openbmc/phosphor-fan-presence/presence/fallback.cpp/openbmc/phosphor-fan-presence/presence/fallback.hpp/openbmc/phosphor-fan-presence/presence/json_parser.cpp/openbmc/phosphor-fan-presence/presence/json_parser.hpp/openbmc/phosphor-fan-presence/presence/pfpgen.py/openbmc/phosphor-fan-presence/presence/rpolicy.hpp/openbmc/phosphor-fan-presence/sensor-monitor/threshold_alarm_logger.cpp/openbmc/phosphor-fan-presence/sensor-monitor/threshold_alarm_logger.hpp |
44872b07 | 19-Sep-2022 |
Chau Ly <chaul@amperecomputing.com> |
control: Support target_path option in configuration file
The target path containing the interface xyz.openbmc_project.control.FanPwm or xyz.openbmc_project.control.FanSpeed can be different between
control: Support target_path option in configuration file
The target path containing the interface xyz.openbmc_project.control.FanPwm or xyz.openbmc_project.control.FanSpeed can be different between phosphor-hwmon and dbus-sensor.
In phosphor-hwmon, it is "/xyz/openbmc_project/sensors/fan_tach/". In dbus-sensor, it is "/xyz/openbmc_project/control/fanpwm/"
This commit supports making this path configurable via "target_path". By default, it is "/xyz/openbmc_project/sensors/fan_tach/".
Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: Id799986ff69455b7c7054070ed2ab3b2e2500a6c
show more ...
|
bb29bb7c | 11-Aug-2022 |
chaul.ampere <chaul@amperecomputing.com> |
control: Json action to set zone's target from group
This commit adds an action to fan control json format, supporting setting target of Zone to a value corresponding to the maximum value from group
control: Json action to set zone's target from group
This commit adds an action to fan control json format, supporting setting target of Zone to a value corresponding to the maximum value from group member properties. The mapping is according to the map. If there are more than one group using this action, the maximum speed derived from the mapping of all groups will be set to target.
For example: { "name": "target_from_group_max", "groups": [ { "name": "zone0_ambient", "interface": "xyz.openbmc_project.Sensor.Value", "property": { "name": "Value" } } ], "neg_hysteresis": 1, "pos_hysteresis": 0, "map": [ { "value": 10.0, "target": 38.0 }, ... ] }
The above JSON will cause the action to read the property specified in the group "zone0_ambient" from all members of the group. The change in the group's members value will be checked against "neg_hysteresis" and "pos_hysteresis" to decide if it is worth taking action. "neg_hysteresis" is for the increasing case and "pos_hysteresis" is for the decreasing case. The maximum property value of the group will be mapped to the "map" to get the output "target". The updated "target" value of each group will be stored in a static map with a key. The maximum value from the static map will be used to set to the Zone's target.
Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: I7b99a6e82ab2faaf40d290ab6f9cb27781e12952
show more ...
|
d05b47cb | 01-Jun-2022 |
Matt Spinler <spinler@us.ibm.com> |
control:docs: Add a section on debug
Describe how fanctl dump and fanctl query_dump can be used to help with debug.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Iac9b50685c03b5f030af
control:docs: Add a section on debug
Describe how fanctl dump and fanctl query_dump can be used to help with debug.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Iac9b50685c03b5f030af1f965ca776e1d16f3f81
show more ...
|
eaead444 | 01-Jun-2022 |
Matt Spinler <spinler@us.ibm.com> |
control:docs:events: Document modifiers
Modifiers can be used by certain actions to modify the result in a configurable manner.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I587034ae
control:docs:events: Document modifiers
Modifiers can be used by certain actions to modify the result in a configurable manner.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I587034ae3c6be8c5ce6c47aba35d9d1e199f0665
show more ...
|
174a1ab3 | 01-Jun-2022 |
Matt Spinler <spinler@us.ibm.com> |
control:docs:events: Add two more actions
Describe the call_actions_based_on_timer and get_managed_objects actions.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ie159a9bc14084b9439d8
control:docs:events: Add two more actions
Describe the call_actions_based_on_timer and get_managed_objects actions.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ie159a9bc14084b9439d8f00b54679591f6c0cd81
show more ...
|
c0a1701e | 01-Jun-2022 |
Matt Spinler <spinler@us.ibm.com> |
control:docs:events: Add more actions
Describe the pcie_card_floors, set_request_target_base_with_max, and set_parameter_from_group_max actions.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Cha
control:docs:events: Add more actions
Describe the pcie_card_floors, set_request_target_base_with_max, and set_parameter_from_group_max actions.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I18f58846da516ac3ea962e5a0e5e3aa168f46d59
show more ...
|
4ec9ed96 | 01-Jun-2022 |
Matt Spinler <spinler@us.ibm.com> |
control:docs:events: Add more actions
Describe the mapped_floor, set_target_on_missing_owner, and override_fan_target actions.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ifb7fb14fb
control:docs:events: Add more actions
Describe the mapped_floor, set_target_on_missing_owner, and override_fan_target actions.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ifb7fb14fbecd2538118282848da29377fe288e2f
show more ...
|
57ad717f | 01-Jun-2022 |
Matt Spinler <spinler@us.ibm.com> |
control:docs:events: Add three more actions
Describe the count_state_floor, count_state_before_target, and default_floor_on_missing_owner actions.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> C
control:docs:events: Add three more actions
Describe the count_state_floor, count_state_before_target, and default_floor_on_missing_owner actions.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I77be2a743391b9cbd3033970bca8449da84a395f
show more ...
|
e946c127 | 01-Jun-2022 |
Matt Spinler <spinler@us.ibm.com> |
control:docs:events: Start adding actions
Describe the net_target_increase and net_target_decrease actions.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I7de18b4cad79767079daef3e8a48
control:docs:events: Start adding actions
Describe the net_target_increase and net_target_decrease actions.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I7de18b4cad79767079daef3e8a48e355999a9d4e
show more ...
|
46083f3f | 01-Jun-2022 |
Matt Spinler <spinler@us.ibm.com> |
control:docs:events: Describe triggers
Describe the trigger entries in events.json.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I7158b72f0ebb00714fb8bf28bcda46ff2ffd2e80 |
a3415cd5 | 01-Jun-2022 |
Matt Spinler <spinler@us.ibm.com> |
control:docs:events: Describe groups
Describe the groups entries in events.json.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I6ab62748f47a3b73106639c404841cecf892a957 |
f53db389 | 31-May-2022 |
Matt Spinler <spinler@us.ibm.com> |
control:docs: Create events.md
This describes the events.json file. Only an introduction and example is added with this commit. Further details will be added in future commits.
Signed-off-by: Mat
control:docs: Create events.md
This describes the events.json file. Only an introduction and example is added with this commit. Further details will be added in future commits.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: If50579d6b26afb979933d4f085cdb21ab14235b2
show more ...
|
5d6b3620 | 31-May-2022 |
Matt Spinler <spinler@us.ibm.com> |
control:docs: create zones.md
This describes the zones.json file.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Id559f4989637d23b842d0a2485785128dedb1107 |