History log of /openbmc/phosphor-pid-control/sensors/ (Results 1 – 25 of 53)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
bd63bcac16-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: I0f105c3310e87172c65a09a8787a2db5a4041cc0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


/openbmc/phosphor-pid-control/.clang-format
/openbmc/phosphor-pid-control/.gitignore
/openbmc/phosphor-pid-control/README.md
/openbmc/phosphor-pid-control/conf.hpp
/openbmc/phosphor-pid-control/configure.md
/openbmc/phosphor-pid-control/dbus/dbusactiveread.hpp
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.cpp
/openbmc/phosphor-pid-control/dbus/dbushelper.cpp
/openbmc/phosphor-pid-control/dbus/dbushelper.hpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassiveredundancy.cpp
/openbmc/phosphor-pid-control/dbus/dbusutil.cpp
/openbmc/phosphor-pid-control/dbus/dbuswrite.cpp
/openbmc/phosphor-pid-control/dbus/dbuswrite.hpp
/openbmc/phosphor-pid-control/interfaces.hpp
/openbmc/phosphor-pid-control/ipmi/main_ipmi.cpp
/openbmc/phosphor-pid-control/ipmi/manualcmds.cpp
/openbmc/phosphor-pid-control/main.cpp
/openbmc/phosphor-pid-control/meson.build
/openbmc/phosphor-pid-control/meson.options
/openbmc/phosphor-pid-control/pid/builder.cpp
/openbmc/phosphor-pid-control/pid/buildjson.cpp
/openbmc/phosphor-pid-control/pid/ec/pid.hpp
/openbmc/phosphor-pid-control/pid/fancontroller.cpp
/openbmc/phosphor-pid-control/pid/fancontroller.hpp
/openbmc/phosphor-pid-control/pid/pidcontroller.cpp
/openbmc/phosphor-pid-control/pid/pidcontroller.hpp
/openbmc/phosphor-pid-control/pid/stepwisecontroller.hpp
/openbmc/phosphor-pid-control/pid/thermalcontroller.cpp
/openbmc/phosphor-pid-control/pid/thermalcontroller.hpp
/openbmc/phosphor-pid-control/pid/util.cpp
/openbmc/phosphor-pid-control/pid/zone.cpp
/openbmc/phosphor-pid-control/pid/zone.hpp
/openbmc/phosphor-pid-control/pid/zone_interface.hpp
host.cpp
host.hpp
pluggable.hpp
/openbmc/phosphor-pid-control/subprojects/CLI11.wrap
/openbmc/phosphor-pid-control/subprojects/nlohmann_json.wrap
/openbmc/phosphor-pid-control/subprojects/phosphor-dbus-interfaces.wrap
/openbmc/phosphor-pid-control/subprojects/phosphor-host-ipmid.wrap
/openbmc/phosphor-pid-control/subprojects/phosphor-logging.wrap
/openbmc/phosphor-pid-control/subprojects/sdbusplus.wrap
/openbmc/phosphor-pid-control/sysfs/util.cpp
/openbmc/phosphor-pid-control/test/helpers.hpp
/openbmc/phosphor-pid-control/test/meson.build
/openbmc/phosphor-pid-control/test/pid_fancontroller_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_json_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_thermalcontroller_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_zone_unittest.cpp
/openbmc/phosphor-pid-control/test/sensor_host_unittest.cpp
/openbmc/phosphor-pid-control/test/sensor_manager_unittest.cpp
/openbmc/phosphor-pid-control/test/zone_mock.hpp
/openbmc/phosphor-pid-control/util.cpp
/openbmc/phosphor-pid-control/util.hpp
8c05112110-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: Icbc50d46e84ee7ef756705e2b19741439a325074
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


/openbmc/phosphor-pid-control/.clang-format
/openbmc/phosphor-pid-control/.gitignore
/openbmc/phosphor-pid-control/README.md
/openbmc/phosphor-pid-control/configure.md
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.cpp
/openbmc/phosphor-pid-control/dbus/dbushelper.cpp
/openbmc/phosphor-pid-control/dbus/dbushelper.hpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassiveredundancy.cpp
/openbmc/phosphor-pid-control/dbus/dbuswrite.cpp
/openbmc/phosphor-pid-control/examples/fan-info.json
/openbmc/phosphor-pid-control/interfaces.hpp
/openbmc/phosphor-pid-control/ipmi.md
/openbmc/phosphor-pid-control/ipmi/manualcmds.cpp
/openbmc/phosphor-pid-control/main.cpp
/openbmc/phosphor-pid-control/notimpl/readonly.hpp
/openbmc/phosphor-pid-control/notimpl/writeonly.hpp
/openbmc/phosphor-pid-control/pid/buildjson.cpp
/openbmc/phosphor-pid-control/pid/ec/logging.hpp
/openbmc/phosphor-pid-control/pid/ec/pid.cpp
/openbmc/phosphor-pid-control/pid/ec/pid.hpp
/openbmc/phosphor-pid-control/pid/ec/stepwise.cpp
/openbmc/phosphor-pid-control/pid/pidcontroller.hpp
/openbmc/phosphor-pid-control/pid/pidloop.cpp
/openbmc/phosphor-pid-control/pid/zone.cpp
/openbmc/phosphor-pid-control/pid/zone.hpp
host.cpp
host.hpp
sensor.hpp
/openbmc/phosphor-pid-control/test/dbus_passive_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_json_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_thermalcontroller_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_zone_unittest.cpp
/openbmc/phosphor-pid-control/test/sensor_host_unittest.cpp
/openbmc/phosphor-pid-control/test/sensor_manager_unittest.cpp
/openbmc/phosphor-pid-control/test/writeinterface_mock.hpp
/openbmc/phosphor-pid-control/tools/fan_rpm_loop_test.sh
/openbmc/phosphor-pid-control/tools/fan_rpm_loop_unittest.sh
/openbmc/phosphor-pid-control/tuning.md
/openbmc/phosphor-pid-control/util.cpp
23e22b9013-Nov-2022 Josh Lehan <krellan@google.com>

Add new PID Class types "power" and "powersum"

Implements this feature:
https://github.com/openbmc/phosphor-pid-control/issues/24

In addition to the existing "temp" and "margin" classes, adding
new

Add new PID Class types "power" and "powersum"

Implements this feature:
https://github.com/openbmc/phosphor-pid-control/issues/24

In addition to the existing "temp" and "margin" classes, adding
new "power" and "powersum" Class types.

The "power" class is the same as "temp", but expects D-Bus power
sensors, instead of D-Bus temperature sensors.

The "powersum" class is the same as "power", but sums together all of
the given inputs, instead of finding the maximum.

Signed-off-by: Josh Lehan <krellan@google.com>
Change-Id: I11d8ad8385632658ed061671134be87a560cd02a

show more ...


/openbmc/phosphor-pid-control/.gitignore
/openbmc/phosphor-pid-control/Makefile.am
/openbmc/phosphor-pid-control/buildjson/buildjson.cpp
/openbmc/phosphor-pid-control/buildjson/buildjson.hpp
/openbmc/phosphor-pid-control/conf.hpp
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.hpp
/openbmc/phosphor-pid-control/dbus/dbusutil.cpp
/openbmc/phosphor-pid-control/interfaces.hpp
/openbmc/phosphor-pid-control/ipmi/manualcmds.cpp
/openbmc/phosphor-pid-control/ipmi/manualcmds.hpp
/openbmc/phosphor-pid-control/main.cpp
/openbmc/phosphor-pid-control/meson.build
/openbmc/phosphor-pid-control/meson_options.txt
/openbmc/phosphor-pid-control/pid/builder.cpp
/openbmc/phosphor-pid-control/pid/buildjson.cpp
/openbmc/phosphor-pid-control/pid/ec/logging.cpp
/openbmc/phosphor-pid-control/pid/ec/logging.hpp
/openbmc/phosphor-pid-control/pid/ec/pid.cpp
/openbmc/phosphor-pid-control/pid/ec/pid.hpp
/openbmc/phosphor-pid-control/pid/fancontroller.cpp
/openbmc/phosphor-pid-control/pid/fancontroller.hpp
/openbmc/phosphor-pid-control/pid/pidcontroller.cpp
/openbmc/phosphor-pid-control/pid/pidcontroller.hpp
/openbmc/phosphor-pid-control/pid/pidloop.cpp
/openbmc/phosphor-pid-control/pid/pidloop.hpp
/openbmc/phosphor-pid-control/pid/stepwisecontroller.cpp
/openbmc/phosphor-pid-control/pid/thermalcontroller.cpp
/openbmc/phosphor-pid-control/pid/thermalcontroller.hpp
/openbmc/phosphor-pid-control/pid/tuning.cpp
/openbmc/phosphor-pid-control/pid/tuning.hpp
/openbmc/phosphor-pid-control/pid/util.cpp
/openbmc/phosphor-pid-control/pid/zone.cpp
/openbmc/phosphor-pid-control/pid/zone.hpp
/openbmc/phosphor-pid-control/pid/zone_interface.hpp
builder.cpp
/openbmc/phosphor-pid-control/test/Makefile.am
/openbmc/phosphor-pid-control/test/dbus_util_unittest.cpp
/openbmc/phosphor-pid-control/test/json_parse_unittest.cpp
/openbmc/phosphor-pid-control/test/meson.build
/openbmc/phosphor-pid-control/test/pid_fancontroller_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_json_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_thermalcontroller_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_zone_unittest.cpp
/openbmc/phosphor-pid-control/test/zone_mock.hpp
/openbmc/phosphor-pid-control/tuning.md
a1ae4fa128-Oct-2022 Harvey.Wu <Harvey.Wu@quantatw.com>

fix compile warning when meson build

- Fix compile warning:
[-Werror=unused-variable], [-Werror=sign-compare] and
deprecated INSTANTIATE_TEST_CASE_P

Signed-off-by: Harvey.Wu <Harvey.Wu@quantatw

fix compile warning when meson build

- Fix compile warning:
[-Werror=unused-variable], [-Werror=sign-compare] and
deprecated INSTANTIATE_TEST_CASE_P

Signed-off-by: Harvey.Wu <Harvey.Wu@quantatw.com>
Change-Id: If8713f0b938cd5306bbe19a9078731db0c3667dc

show more ...

b228bc3022-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: Ie36d234f4580029a7832a0cd179f3bb78a1a403f

show more ...


/openbmc/phosphor-pid-control/OWNERS
/openbmc/phosphor-pid-control/configure.ac
/openbmc/phosphor-pid-control/dbus/dbusactiveread.hpp
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.cpp
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.hpp
/openbmc/phosphor-pid-control/dbus/dbushelper.cpp
/openbmc/phosphor-pid-control/dbus/dbushelper.hpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.hpp
/openbmc/phosphor-pid-control/dbus/dbuspassiveredundancy.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassiveredundancy.hpp
/openbmc/phosphor-pid-control/dbus/dbuswrite.cpp
/openbmc/phosphor-pid-control/ipmi/dbus_mode.cpp
/openbmc/phosphor-pid-control/main.cpp
/openbmc/phosphor-pid-control/pid/builder.cpp
/openbmc/phosphor-pid-control/pid/builder.hpp
/openbmc/phosphor-pid-control/pid/pidcontroller.hpp
/openbmc/phosphor-pid-control/pid/stepwisecontroller.cpp
/openbmc/phosphor-pid-control/pid/thermalcontroller.cpp
/openbmc/phosphor-pid-control/pid/zone.cpp
/openbmc/phosphor-pid-control/pid/zone.hpp
/openbmc/phosphor-pid-control/pid/zone_interface.hpp
builder.cpp
builder.hpp
host.cpp
host.hpp
manager.hpp
/openbmc/phosphor-pid-control/setsensor.cpp
/openbmc/phosphor-pid-control/test/dbus_passive_unittest.cpp
/openbmc/phosphor-pid-control/test/helpers.hpp
/openbmc/phosphor-pid-control/test/pid_stepwisecontroller_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_thermalcontroller_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_zone_unittest.cpp
/openbmc/phosphor-pid-control/test/zone_mock.hpp
d8c5a45c07-Apr-2022 Patrick Williams <patrick@stwcx.xyz>

sdbusplus: object: don't use 'bool' argument constructor

`sdbusplus::server::object_t` has long had an enum-based parameter for
signal action, but maintained a backwards compatible boolean mapping.

sdbusplus: object: don't use 'bool' argument constructor

`sdbusplus::server::object_t` has long had an enum-based parameter for
signal action, but maintained a backwards compatible boolean mapping.
It is time to remove this boolean to make it more observable which
actions are being used in applications. Map all `true` occurrences to
`action::defer_emit`.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I94aa9a4451cebc772d3259323ff1b679e53f90bb

show more ...

8f73ad7606-Oct-2021 Alex.Song <zheng.song@intel.com>

Make specific UNA sensors not trigger failsafe

By convention, sensors at some states like 'not present',
'power state not matching' are marked as 'unavailable' on dbus.
At such states, some specific

Make specific UNA sensors not trigger failsafe

By convention, sensors at some states like 'not present',
'power state not matching' are marked as 'unavailable' on dbus.
At such states, some specific sensors should not be considered as
failed and trigger pid 'failsafe'.

A typical example is when a system is powered-off, its CPU/DIMM temp
sensors are 'unavailable', these sensors should not be treated as
'failed' and trigger pid 'failsafe'. This is necessary for systems
whose Fans will keep working when the CPU is off.

This feature is configurable per sensor (valid on thermal sensors). It
can be enabled by setting the Pid controller option
"InputUnavailableAsFailed" to 'false' when one configuring the PID module
via entity-manager, or by setting the sensor option "unavailableAsFailed"
to 'false' when one configuring the PID module via JSON. (These options are
optional and default to 'true')

Tested:
1. On a Fan 'always-on' system, enabale this feature on CPU temp sensors,
poweroff the system, 'unavailable' CPU temp sensors do not trigger the
failsafe mode.
2. 'Unavailable' Fans still trigger the failsafe mode.
3. 'Unfunctional' or 'failed' sensors still trigger the failsafe mode.

Signed-off-by: Zheng Song <zheng.song@intel.com>
Change-Id: I1dd1d76466f43e7dcf51c161c96714f1bcfae88d

show more ...

17971efd17-Feb-2021 Harvey Wu <Harvey.Wu@quantatw.com>

sensors: host: Implement getFailed function to HostSensor

1. Add getFailed function to check the dbus value in HostSensor
is finite or not, if not, pid control will into failsafe mode.

Signed-of

sensors: host: Implement getFailed function to HostSensor

1. Add getFailed function to check the dbus value in HostSensor
is finite or not, if not, pid control will into failsafe mode.

Signed-off-by: Harvey Wu <Harvey.Wu@quantatw.com>
Change-Id: Ib198aecf512a3a107793319014f6c0b531cc6211

show more ...

1df9e87908-Oct-2020 Patrick Venture <venture@google.com>

drop struct keyword for non-packed objects

As a style decision, struct is often used with packed structures to
indicate they are used like C-structs. Cleanup this codebase to not use
the extra stru

drop struct keyword for non-packed objects

As a style decision, struct is often used with packed structures to
indicate they are used like C-structs. Cleanup this codebase to not use
the extra struct keyword throughout.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I2f83bb1989e4d1f2f843ba3e45fb82e04f0fa61c

show more ...

2400ce4301-Oct-2020 Josh Lehan <krellan@google.com>

dbuswrite: Add another write() form to WriteInterface

Adding another form of the write() call,
which takes 3 arguments instead of 1,
providing an alternate interface for caller to use.

A compatibil

dbuswrite: Add another write() form to WriteInterface

Adding another form of the write() call,
which takes 3 arguments instead of 1,
providing an alternate interface for caller to use.

A compatibility function is provided,
which simply calls write(), so no API breakage.

The additional arguments to write() allow caller
to force the write to happen even if old value same,
and/or to learn the actual raw value written.

Adding boilerplate to Sensor and PluggableSensor,
to also pass the 3-argument write() through.

Signed-off-by: Josh Lehan <krellan@google.com>
Change-Id: Iaf35f674ef9ce38b56017f6cb0f821df6c789649

show more ...


/openbmc/phosphor-pid-control/.gitignore
/openbmc/phosphor-pid-control/MAINTAINERS
/openbmc/phosphor-pid-control/Makefile.am
/openbmc/phosphor-pid-control/configure.ac
/openbmc/phosphor-pid-control/dbus/dbusactiveread.cpp
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.cpp
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.hpp
/openbmc/phosphor-pid-control/dbus/dbushelper.cpp
/openbmc/phosphor-pid-control/dbus/dbushelper.hpp
/openbmc/phosphor-pid-control/dbus/dbushelper_interface.hpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.hpp
/openbmc/phosphor-pid-control/dbus/dbusutil.cpp
/openbmc/phosphor-pid-control/dbus/dbusutil.hpp
/openbmc/phosphor-pid-control/dbus/dbuswrite.cpp
/openbmc/phosphor-pid-control/dbus/dbuswrite.hpp
/openbmc/phosphor-pid-control/interfaces.hpp
/openbmc/phosphor-pid-control/ipmi/control.hpp
/openbmc/phosphor-pid-control/ipmi/dbus_mode.cpp
/openbmc/phosphor-pid-control/ipmi/dbus_mode.hpp
/openbmc/phosphor-pid-control/ipmi/main_ipmi.cpp
/openbmc/phosphor-pid-control/ipmi/manual_messages.hpp
/openbmc/phosphor-pid-control/ipmi/manualcmds.cpp
/openbmc/phosphor-pid-control/ipmi/manualcmds.hpp
/openbmc/phosphor-pid-control/main.cpp
/openbmc/phosphor-pid-control/pid/builder.cpp
/openbmc/phosphor-pid-control/pid/builder.hpp
/openbmc/phosphor-pid-control/pid/pidloop.cpp
/openbmc/phosphor-pid-control/pid/pidloop.hpp
/openbmc/phosphor-pid-control/pid/stepwisecontroller.cpp
/openbmc/phosphor-pid-control/pid/stepwisecontroller.hpp
/openbmc/phosphor-pid-control/pid/zone.cpp
/openbmc/phosphor-pid-control/pid/zone.hpp
/openbmc/phosphor-pid-control/pid/zone_interface.hpp
pluggable.cpp
pluggable.hpp
sensor.hpp
/openbmc/phosphor-pid-control/test/controller_mock.hpp
/openbmc/phosphor-pid-control/test/dbus_active_unittest.cpp
/openbmc/phosphor-pid-control/test/dbus_passive_unittest.cpp
/openbmc/phosphor-pid-control/test/dbushelper_mock.hpp
/openbmc/phosphor-pid-control/test/pid_zone_unittest.cpp
/openbmc/phosphor-pid-control/test/zone_mock.hpp
/openbmc/phosphor-pid-control/util.hpp
8729eb9810-Aug-2020 Patrick Venture <venture@google.com>

Make the dbushelper own its own bus handle.

The dbushelper implements an interface that should not be sdbusplus
specific. By making the implementation own the sdbusplus aspects, an
alternate impleme

Make the dbushelper own its own bus handle.

The dbushelper implements an interface that should not be sdbusplus
specific. By making the implementation own the sdbusplus aspects, an
alternate implementation can be swapped in.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I4109772499421e2e6497a0fcad663ebbd1210a7c

show more ...

aadb30dd10-Aug-2020 Patrick Venture <venture@google.com>

move dbus helper interface into its own file

This is step 1 to improving the interface to be more generic and drop
requirements on dbus.

Signed-off-by: Patrick Venture <venture@google.com>
Change-I

move dbus helper interface into its own file

This is step 1 to improving the interface to be more generic and drop
requirements on dbus.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I7835ea8242bfb7189cabc1a4084e5f84143d40f6

show more ...

cfbf62b510-Aug-2020 Patrick Venture <venture@google.com>

sensors/builder: add missing headers

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ie6c26c27d292ad82a5113dce03439e40cae14904

a076487a08-Aug-2020 Patrick Venture <venture@google.com>

sensors/zones: place in namespace and cleanup

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I527dbc8477a232945f696227a7b0b2adbee45175


/openbmc/phosphor-pid-control/conf.hpp
/openbmc/phosphor-pid-control/dbus/dbusactiveread.cpp
/openbmc/phosphor-pid-control/dbus/dbusactiveread.hpp
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.cpp
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.hpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.hpp
/openbmc/phosphor-pid-control/dbus/dbuspassiveredundancy.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassiveredundancy.hpp
/openbmc/phosphor-pid-control/dbus/dbuswrite.cpp
/openbmc/phosphor-pid-control/dbus/dbuswrite.hpp
/openbmc/phosphor-pid-control/dbus/util.cpp
/openbmc/phosphor-pid-control/experiments/drive.cpp
/openbmc/phosphor-pid-control/experiments/drive.hpp
/openbmc/phosphor-pid-control/interfaces.hpp
/openbmc/phosphor-pid-control/main.cpp
/openbmc/phosphor-pid-control/notimpl/readonly.cpp
/openbmc/phosphor-pid-control/notimpl/readonly.hpp
/openbmc/phosphor-pid-control/notimpl/writeonly.cpp
/openbmc/phosphor-pid-control/notimpl/writeonly.hpp
/openbmc/phosphor-pid-control/pid/builder.cpp
/openbmc/phosphor-pid-control/pid/builder.hpp
/openbmc/phosphor-pid-control/pid/buildjson.cpp
/openbmc/phosphor-pid-control/pid/buildjson.hpp
/openbmc/phosphor-pid-control/pid/controller.hpp
/openbmc/phosphor-pid-control/pid/ec/pid.cpp
/openbmc/phosphor-pid-control/pid/ec/pid.hpp
/openbmc/phosphor-pid-control/pid/ec/stepwise.cpp
/openbmc/phosphor-pid-control/pid/ec/stepwise.hpp
/openbmc/phosphor-pid-control/pid/fan.hpp
/openbmc/phosphor-pid-control/pid/fancontroller.cpp
/openbmc/phosphor-pid-control/pid/fancontroller.hpp
/openbmc/phosphor-pid-control/pid/pidcontroller.cpp
/openbmc/phosphor-pid-control/pid/pidcontroller.hpp
/openbmc/phosphor-pid-control/pid/pidloop.cpp
/openbmc/phosphor-pid-control/pid/pidloop.hpp
/openbmc/phosphor-pid-control/pid/stepwisecontroller.cpp
/openbmc/phosphor-pid-control/pid/stepwisecontroller.hpp
/openbmc/phosphor-pid-control/pid/thermalcontroller.cpp
/openbmc/phosphor-pid-control/pid/thermalcontroller.hpp
/openbmc/phosphor-pid-control/pid/util.cpp
/openbmc/phosphor-pid-control/pid/zone.cpp
/openbmc/phosphor-pid-control/pid/zone.hpp
builder.cpp
builder.hpp
buildjson.cpp
buildjson.hpp
host.cpp
host.hpp
manager.cpp
manager.hpp
pluggable.cpp
pluggable.hpp
sensor.hpp
/openbmc/phosphor-pid-control/sysfs/sysfsread.cpp
/openbmc/phosphor-pid-control/sysfs/sysfsread.hpp
/openbmc/phosphor-pid-control/sysfs/sysfswrite.cpp
/openbmc/phosphor-pid-control/sysfs/sysfswrite.hpp
/openbmc/phosphor-pid-control/sysfs/util.cpp
/openbmc/phosphor-pid-control/test/controller_mock.hpp
/openbmc/phosphor-pid-control/test/dbus_active_unittest.cpp
/openbmc/phosphor-pid-control/test/dbus_passive_unittest.cpp
/openbmc/phosphor-pid-control/test/dbushelper_mock.hpp
/openbmc/phosphor-pid-control/test/helpers.hpp
/openbmc/phosphor-pid-control/test/json_parse_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_fancontroller_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_json_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_stepwisecontroller_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_thermalcontroller_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_zone_unittest.cpp
/openbmc/phosphor-pid-control/test/readinterface_mock.hpp
/openbmc/phosphor-pid-control/test/sensor_host_unittest.cpp
/openbmc/phosphor-pid-control/test/sensor_manager_unittest.cpp
/openbmc/phosphor-pid-control/test/sensor_mock.hpp
/openbmc/phosphor-pid-control/test/sensor_pluggable_unittest.cpp
/openbmc/phosphor-pid-control/test/sensors_json_unittest.cpp
/openbmc/phosphor-pid-control/test/writeinterface_mock.hpp
/openbmc/phosphor-pid-control/test/zone_mock.hpp
/openbmc/phosphor-pid-control/util.hpp
cdd6134907-Aug-2020 Patrick Venture <venture@google.com>

Move the sensor utils into their own module

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I22f6a951921095660fd2be502e59a38161565a95

4f4bb17207-Aug-2020 Patrick Venture <venture@google.com>

sensors:sensor: drop unused chrono header

The chrono header is no longer used in this file.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ieca31dfa9166be0cfd5bd84a9aaeef11d30f1b93

a83a3ecc04-Aug-2020 Patrick Venture <venture@google.com>

update clang-format from Latest in docs

Updates the clang-format file and then applies it.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ia9faf13ce171f90bf07547efd781139bee23e8c7


/openbmc/phosphor-pid-control/.clang-format
/openbmc/phosphor-pid-control/build/buildjson.cpp
/openbmc/phosphor-pid-control/build/buildjson.hpp
/openbmc/phosphor-pid-control/dbus/dbusactiveread.hpp
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.hpp
/openbmc/phosphor-pid-control/dbus/dbuspassiveredundancy.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassiveredundancy.hpp
/openbmc/phosphor-pid-control/dbus/dbuswrite.cpp
/openbmc/phosphor-pid-control/dbus/dbuswrite.hpp
/openbmc/phosphor-pid-control/dbus/util.cpp
/openbmc/phosphor-pid-control/errors/exception.hpp
/openbmc/phosphor-pid-control/interfaces.hpp
/openbmc/phosphor-pid-control/ipmi/manualcmds.cpp
/openbmc/phosphor-pid-control/ipmi/manualcmds.hpp
/openbmc/phosphor-pid-control/main.cpp
/openbmc/phosphor-pid-control/notimpl/readonly.hpp
/openbmc/phosphor-pid-control/notimpl/writeonly.hpp
/openbmc/phosphor-pid-control/pid/builder.cpp
/openbmc/phosphor-pid-control/pid/builder.hpp
/openbmc/phosphor-pid-control/pid/buildjson.cpp
/openbmc/phosphor-pid-control/pid/buildjson.hpp
/openbmc/phosphor-pid-control/pid/fancontroller.hpp
/openbmc/phosphor-pid-control/pid/pidcontroller.hpp
/openbmc/phosphor-pid-control/pid/pidloop.cpp
/openbmc/phosphor-pid-control/pid/stepwisecontroller.hpp
/openbmc/phosphor-pid-control/pid/thermalcontroller.hpp
/openbmc/phosphor-pid-control/pid/zone.hpp
buildjson.cpp
buildjson.hpp
host.hpp
manager.hpp
pluggable.hpp
sensor.hpp
/openbmc/phosphor-pid-control/setsensor.cpp
/openbmc/phosphor-pid-control/sysfs/sysfsread.hpp
/openbmc/phosphor-pid-control/sysfs/sysfswrite.hpp
/openbmc/phosphor-pid-control/test/controller_mock.hpp
/openbmc/phosphor-pid-control/test/dbus_active_unittest.cpp
/openbmc/phosphor-pid-control/test/dbus_passive_unittest.cpp
/openbmc/phosphor-pid-control/test/dbushelper_mock.hpp
/openbmc/phosphor-pid-control/test/helpers.hpp
/openbmc/phosphor-pid-control/test/pid_zone_unittest.cpp
/openbmc/phosphor-pid-control/test/sensor_host_unittest.cpp
/openbmc/phosphor-pid-control/test/sensor_mock.hpp
/openbmc/phosphor-pid-control/test/writeinterface_mock.hpp
/openbmc/phosphor-pid-control/util.hpp
8154e32622-Jun-2020 James Feist <james.feist@linux.intel.com>

Allow building with double value interface

Sensor interface using double looks about ready to go in,
it was found this repo doesn't build. Fix it.

Change-Id: I48b943e5e8e77506d1b978d2b9a56db1387624

Allow building with double value interface

Sensor interface using double looks about ready to go in,
it was found this repo doesn't build. Fix it.

Change-Id: I48b943e5e8e77506d1b978d2b9a56db13876248e
Signed-off-by: James Feist <james.feist@linux.intel.com>

show more ...

6b9f599910-Sep-2019 Patrick Venture <venture@google.com>

conf: add ignoreDbusMinMax option

Add an optional field to the sensor configuration, s.t. it'll tell a
dbus passive sensor to ignore the MinValue and MaxValue properties from
dbus.

Signed-off-by: P

conf: add ignoreDbusMinMax option

Add an optional field to the sensor configuration, s.t. it'll tell a
dbus passive sensor to ignore the MinValue and MaxValue properties from
dbus.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ia6a8c802c2dc5bf41e5e860b21d7764cc09e6b6b

show more ...

35906cc329-Aug-2019 Patrick Venture <venture@google.com>

sensors: buildjson: only load min/max if type fan

The min/max value in the json configuration only provide meaning in the
context of a fan sensor. This patch only loads the configuration
options in

sensors: buildjson: only load min/max if type fan

The min/max value in the json configuration only provide meaning in the
context of a fan sensor. This patch only loads the configuration
options in that case, and reports a warning if otherwise detected.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I20898ab3c87f4e9c6005683420a30c6685944c96

show more ...

c7ab57e929-Aug-2019 Patrick Venture <venture@google.com>

sensors: buildjson: minor min/max cleanup

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I9d01753a40f1146d49e1a03a18dbea704f3fff84

98b704e103-Jun-2019 James Feist <james.feist@linux.intel.com>

Add Fan Redundancy Support

This adds fan redundancy support to passive sensors.
If there are redundancy interfaces on dbus, we'll fail
a sensor if the status is set to failed.

Tested: Set Redundanc

Add Fan Redundancy Support

This adds fan redundancy support to passive sensors.
If there are redundancy interfaces on dbus, we'll fail
a sensor if the status is set to failed.

Tested: Set Redundancy to Failed On Dbus, saw all fans
in collection boost. Then restarted swampd, came up
and still boosted. Set redundancy OK, and they all slowed
down.

Change-Id: I8879bef1471bbc168435d6b22dd20006b9dca133
Signed-off-by: James Feist <james.feist@linux.intel.com>

show more ...

1fe0895207-May-2019 James Feist <james.feist@linux.intel.com>

Make dbusconfiguration reloadable without reboot

Now that asio is being used instead of threads, we can
reload the fan configuration without having to restart the
application. This moves the ownersh

Make dbusconfiguration reloadable without reboot

Now that asio is being used instead of threads, we can
reload the fan configuration without having to restart the
application. This moves the ownership of the passive and host
bus outside of the SensorManager so that it can be recreated
each reload.

Tested: Watched logs and saw full fan config get reloaded
after changing fan configuration

Tested: Ran on json configured system and it behaved as
expected.

Change-Id: I00e6b27f75384fd41de2017b723f159c9691ae97
Signed-off-by: James Feist <james.feist@linux.intel.com>

show more ...


/openbmc/phosphor-pid-control/.gitignore
/openbmc/phosphor-pid-control/.lcovrc
/openbmc/phosphor-pid-control/Makefile.am
/openbmc/phosphor-pid-control/README.md
/openbmc/phosphor-pid-control/configure.ac
/openbmc/phosphor-pid-control/dbus/dbusactiveread.cpp
/openbmc/phosphor-pid-control/dbus/dbusactiveread.hpp
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.cpp
/openbmc/phosphor-pid-control/dbus/dbusconfiguration.hpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.cpp
/openbmc/phosphor-pid-control/dbus/dbuspassive.hpp
/openbmc/phosphor-pid-control/dbus/dbuswrite.hpp
/openbmc/phosphor-pid-control/dbus/util.cpp
/openbmc/phosphor-pid-control/experiments/drive.cpp
/openbmc/phosphor-pid-control/main.cpp
/openbmc/phosphor-pid-control/pid/buildjson.cpp
/openbmc/phosphor-pid-control/pid/fancontroller.cpp
/openbmc/phosphor-pid-control/pid/pidloop.cpp
/openbmc/phosphor-pid-control/pid/pidloop.hpp
/openbmc/phosphor-pid-control/pid/tuning.cpp
/openbmc/phosphor-pid-control/pid/tuning.hpp
/openbmc/phosphor-pid-control/pid/util.cpp
/openbmc/phosphor-pid-control/pid/zone.cpp
/openbmc/phosphor-pid-control/pid/zone.hpp
builder.cpp
builder.hpp
manager.hpp
/openbmc/phosphor-pid-control/sysfs/sysfsread.hpp
/openbmc/phosphor-pid-control/sysfs/sysfswrite.hpp
/openbmc/phosphor-pid-control/sysfs/util.cpp
/openbmc/phosphor-pid-control/test/Makefile.am
/openbmc/phosphor-pid-control/test/dbushelper_mock.hpp
/openbmc/phosphor-pid-control/test/pid_json_unittest.cpp
/openbmc/phosphor-pid-control/test/pid_zone_unittest.cpp
/openbmc/phosphor-pid-control/test/sensor_manager_unittest.cpp
/openbmc/phosphor-pid-control/util.hpp
f81f288626-Feb-2019 James Feist <james.feist@linux.intel.com>

Expand conf namespace

Put rest of conf.hpp in the conf namespace. This is
largely a sed replace, and wrapping from_json in
conf namespace as it failed to build.

Change-Id: I9fe5c7b2fface44618c43af2

Expand conf namespace

Put rest of conf.hpp in the conf namespace. This is
largely a sed replace, and wrapping from_json in
conf namespace as it failed to build.

Change-Id: I9fe5c7b2fface44618c43af2367035afc39bcb64
Signed-off-by: James Feist <james.feist@linux.intel.com>

show more ...

75eb769d25-Feb-2019 James Feist <james.feist@linux.intel.com>

dbuspassive: allow scaling

For tachs it is beneficial to deal in percent so that
multiple controllers can be used with different fan
types without having to recalculate. This starts using
the unused

dbuspassive: allow scaling

For tachs it is beneficial to deal in percent so that
multiple controllers can be used with different fan
types without having to recalculate. This starts using
the unused min and max fields to be able to scale readings.
Since max and min are commonly on the value interface, the
special value of <int64_t>::lowest() allows these to be gathered
from dbus instead of having to enter them manually.

Tested-by: Moved pid control to percent and printed
outputs

Change-Id: I9496eb92a18b68a7cd7f034d41d40ef5175c6974
Signed-off-by: James Feist <james.feist@linux.intel.com>

show more ...

123