History log of /openbmc/phosphor-fan-presence/docs/control/events.md (Results 1 – 17 of 17)
Revision Date Author Comments
# 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 ...


# 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 ...


# 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 ...


# 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 ...