History log of /openbmc/phosphor-fan-presence/monitor/ (Results 176 – 193 of 193)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
d7999b7c30-Jul-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

monitor: Remove getService

Remove getService from tach_sensor as it is no longer used.

Change-Id: I568afb502379e05e85685d279033ab198c3cc91f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

2a58e2ce30-Jul-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

monitor: Use common wrapper methods

Replace the implementation of readProperty with a call to the
common property accessor in sdbusplus.hpp.

Change-Id: Ic4ba75bad7458a99f3e29c9235e1a54ae62286fe
Sig

monitor: Use common wrapper methods

Replace the implementation of readProperty with a call to the
common property accessor in sdbusplus.hpp.

Change-Id: Ic4ba75bad7458a99f3e29c9235e1a54ae62286fe
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


/openbmc/phosphor-fan-presence/.gitignore
/openbmc/phosphor-fan-presence/Makefile.am
/openbmc/phosphor-fan-presence/configure.ac
/openbmc/phosphor-fan-presence/cooling-type/cooling_type.cpp
/openbmc/phosphor-fan-presence/evdevpp/evdev.hpp
/openbmc/phosphor-fan-presence/evdevpp/test/.gitignore
/openbmc/phosphor-fan-presence/evdevpp/test/Makefile.am
/openbmc/phosphor-fan-presence/evdevpp/test/evmon.cpp
tach_sensor.cpp
/openbmc/phosphor-fan-presence/presence/.gitignore
/openbmc/phosphor-fan-presence/presence/Makefile.am
/openbmc/phosphor-fan-presence/presence/anyof.cpp
/openbmc/phosphor-fan-presence/presence/anyof.hpp
/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/fan.cpp
/openbmc/phosphor-fan-presence/presence/fan.hpp
/openbmc/phosphor-fan-presence/presence/gpio.cpp
/openbmc/phosphor-fan-presence/presence/gpio.hpp
/openbmc/phosphor-fan-presence/presence/pfpgen.py
/openbmc/phosphor-fan-presence/presence/psensor.cpp
/openbmc/phosphor-fan-presence/presence/psensor.hpp
/openbmc/phosphor-fan-presence/presence/rpolicy.hpp
/openbmc/phosphor-fan-presence/presence/tach.cpp
/openbmc/phosphor-fan-presence/presence/tach.hpp
/openbmc/phosphor-fan-presence/presence/tach_detect.cpp
/openbmc/phosphor-fan-presence/presence/templates/anyof.mako.hpp
/openbmc/phosphor-fan-presence/presence/templates/fallback.mako.hpp
/openbmc/phosphor-fan-presence/presence/templates/generated.mako.hpp
/openbmc/phosphor-fan-presence/presence/templates/gpio.mako.hpp
/openbmc/phosphor-fan-presence/presence/templates/tach.mako.hpp
/openbmc/phosphor-fan-presence/presence/test/Makefile.am
/openbmc/phosphor-fan-presence/presence/test/fallbacktest.cpp
/openbmc/phosphor-fan-presence/sdbusplus.hpp
/openbmc/phosphor-fan-presence/sdevent.hpp
/openbmc/phosphor-fan-presence/sdevent/event.hpp
/openbmc/phosphor-fan-presence/sdevent/io.hpp
/openbmc/phosphor-fan-presence/sdevent/source.hpp
/openbmc/phosphor-fan-presence/sdevent/test/.gitignore
/openbmc/phosphor-fan-presence/sdevent/test/Makefile.am
/openbmc/phosphor-fan-presence/sdevent/test/iotest.cpp
ce75b51126-Jul-2017 Matt Spinler <spinler@us.ibm.com>

fan-monitor: Capture more data on failure

When a fan gets set to nonfunctional, it is useful
to know how fast the rotor was actually going and
what the expected speed was.

Change-Id: I760d6fa7d1930

fan-monitor: Capture more data on failure

When a fan gets set to nonfunctional, it is useful
to know how fast the rotor was actually going and
what the expected speed was.

Change-Id: I760d6fa7d193038f9740d241bf4d4d0039020f64
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...

8e94250410-Jul-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

monitor: Avoid Target interface for mapper queries

Avoid asking the mapper for the Target interface on sensors
that do not have it.

Change-Id: I43f61c98291cc15d7daf43d2b01c6b7fa4edfa62

618027ab26-Jun-2017 Dinesh Chinari <chinari@us.ibm.com>

phosphor-fan-presence elog error exception.

Implemented elog exception for phosphor fan presence,
replacing runtime_errors.

Change-Id: I70465060838b2cbaeadccf84ed5924e222ac59e3
Signed-off-by: Dines

phosphor-fan-presence elog error exception.

Implemented elog exception for phosphor fan presence,
replacing runtime_errors.

Change-Id: I70465060838b2cbaeadccf84ed5924e222ac59e3
Signed-off-by: Dinesh Chinari <chinari@us.ibm.com>

show more ...

a5763ff814-Jun-2017 Matt Spinler <spinler@us.ibm.com>

fan-monitor: use sd_notify(READY=1)

After the fans have initialized their Functional inventory
property, send systemd the READY notification. If the service
which runs this application is of type =

fan-monitor: use sd_notify(READY=1)

After the fans have initialized their Functional inventory
property, send systemd the READY notification. If the service
which runs this application is of type = notify, then systemd
will hold off starting any dependent services until this is sent.

In our case, we want phosphor-fan-control --control to not be
started until this notification is done.

Change-Id: Iec87418ce308aa9ca81a47c20039ade7e8fe66c3
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...

8420111912-May-2017 Matt Spinler <spinler@us.ibm.com>

Move Fan objects back to heap

Turns out that with the objects on the stack,
some of them were corrupt in the callbacks.

Change-Id: Ifd4179839d4e05fdb1f05e417093cb14cec3addc
Signed-off-by: Matt Spin

Move Fan objects back to heap

Turns out that with the objects on the stack,
some of them were corrupt in the callbacks.

Change-Id: Ifd4179839d4e05fdb1f05e417093cb14cec3addc
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...

e824f98511-May-2017 Matt Spinler <spinler@us.ibm.com>

Use unique_ptr for sd_event object wrapper

Convert the sd_event object wrapper from a shared_ptr to
a unique_ptr. Requires a new header file.

Change-Id: I868a9e88ed93878c2e0bb12e58f8d3a604510da0
S

Use unique_ptr for sd_event object wrapper

Convert the sd_event object wrapper from a shared_ptr to
a unique_ptr. Requires a new header file.

Change-Id: I868a9e88ed93878c2e0bb12e58f8d3a604510da0
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...

1432184628-Apr-2017 Matt Spinler <spinler@us.ibm.com>

Generate data from yaml during build

Run the python script to generate fan_zone_defs.cpp

Change-Id: I242aa4246a277509ddbcf1c62fec96782a48b37b
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

85be2e7028-Apr-2017 Matt Spinler <spinler@us.ibm.com>

Python script to generate monitor data

Generate the data structures from yaml data.

Change-Id: I8e21fa099f9365b8c8c7d2227c4debc263601b72
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

b1e1851427-Apr-2017 Matt Spinler <spinler@us.ibm.com>

Add inventory update support

Set a fan's Functional property to false when
it has been out of spec for too long. When it
is back in spec, set it back to functional.

Change-Id: I264129479c58fd296df

Add inventory update support

Set a fan's Functional property to false when
it has been out of spec for too long. When it
is back in spec, set it back to functional.

Change-Id: I264129479c58fd296df7c3a1d3d42f5d7aa7b60b
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...

a4c8f1f527-Apr-2017 Matt Spinler <spinler@us.ibm.com>

Add timer start/stop support

In Fan's tachChanged handler, start up the timer
for a sensor if it is running too slow. If it is
within spec, stop the timer if running and make
the sensor functional

Add timer start/stop support

In Fan's tachChanged handler, start up the timer
for a sensor if it is running too slow. If it is
within spec, stop the timer if running and make
the sensor functional again if necessary.

Change-Id: Ib18de2b69942d334da0cb8cd4cc4de8a2784efab
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...

c36168a127-Apr-2017 Matt Spinler <spinler@us.ibm.com>

Fill in main() function

Create the Fan objects, and start the dbus/event loop.

Change-Id: I7c6a60bb5d2c20578b529e7e5f3dc13f50e55dd7
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

a9406a7727-Apr-2017 Matt Spinler <spinler@us.ibm.com>

Add Timer support to TachSensor

Add a Timer object to the TachSensor class

Change-Id: I419b5712de9e8e94f2a08de84d13170e44c33c7a
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

ebaae61127-Apr-2017 Matt Spinler <spinler@us.ibm.com>

Add dbus support to TachSensor

TachSensor will match on properties changed
signals for the Value and Target properties.
When these occur, it will load in those
properties and then tell the Fan class

Add dbus support to TachSensor

TachSensor will match on properties changed
signals for the Value and Target properties.
When these occur, it will load in those
properties and then tell the Fan class there
was a change.

Also, TachSensor will read in the Target property
during construction so it will have a valid value
to check against right away.

Change-Id: I2dc2cacf5804826c6b0e0ea91196cbdaa4d5b893
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...

abf8da3627-Apr-2017 Matt Spinler <spinler@us.ibm.com>

Fan and TachSensor class introduction

A Fan object has one or more TachSensor objects.

The TachSensor class is used to keep track of the
the actual and expected speeds. It only tracks
expected spe

Fan and TachSensor class introduction

A Fan object has one or more TachSensor objects.

The TachSensor class is used to keep track of the
the actual and expected speeds. It only tracks
expected speeds if the _hasTarget attribute is true.

Future commits will add more functionality.

Change-Id: I9bb5fac39f25c5c31c18457ebedf82838fcf6641
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...

35b156b727-Apr-2017 Matt Spinler <spinler@us.ibm.com>

Fan monitor data

This commit contains the data that will be used by
the monitor code.

The generated.cpp file will later be generated during
the build by a python script.

Change-Id: I4dc4552ae8e58c

Fan monitor data

This commit contains the data that will be used by
the monitor code.

The generated.cpp file will later be generated during
the build by a python script.

Change-Id: I4dc4552ae8e58cd27478416888dd3363e7c2bf3f
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...

e567dd2427-Apr-2017 Matt Spinler <spinler@us.ibm.com>

phosphor-fan-monitor framework

This application will monitor the actual speeds of
fans (via their sensors) and compare them to their
expected speeds. If a fan is too slow for too long,
it will have

phosphor-fan-monitor framework

This application will monitor the actual speeds of
fans (via their sensors) and compare them to their
expected speeds. If a fan is too slow for too long,
it will have its Functional property in the inventory
set to false. If it starts working again, the property
will be set back to true.

It will use configuration data to say which fans to check
and which values to use for various timeout and deviation
parameters.

Change-Id: Ic61613018a758727835b70f2df0ecd1bf12e8256
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...


/openbmc/phosphor-fan-presence/.gitignore
/openbmc/phosphor-fan-presence/LICENSE
/openbmc/phosphor-fan-presence/Makefile.am
/openbmc/phosphor-fan-presence/bootstrap.sh
/openbmc/phosphor-fan-presence/chassis-cooling-type/Makefile.am
/openbmc/phosphor-fan-presence/chassis-cooling-type/cooling_type.cpp
/openbmc/phosphor-fan-presence/chassis-cooling-type/cooling_type.hpp
/openbmc/phosphor-fan-presence/configure.ac
/openbmc/phosphor-fan-presence/control/Makefile.am
/openbmc/phosphor-fan-presence/control/example/fans.yaml
/openbmc/phosphor-fan-presence/control/example/zones.yaml
/openbmc/phosphor-fan-presence/control/fan.cpp
/openbmc/phosphor-fan-presence/control/fan.hpp
/openbmc/phosphor-fan-presence/control/gen-fan-zone-defs.py
/openbmc/phosphor-fan-presence/control/main.cpp
/openbmc/phosphor-fan-presence/control/manager.cpp
/openbmc/phosphor-fan-presence/control/manager.hpp
/openbmc/phosphor-fan-presence/control/types.hpp
/openbmc/phosphor-fan-presence/control/zone.cpp
/openbmc/phosphor-fan-presence/control/zone.hpp
Makefile.am
main.cpp
/openbmc/phosphor-fan-presence/presence/Makefile.am
/openbmc/phosphor-fan-presence/presence/example/fan-detect.yaml
/openbmc/phosphor-fan-presence/presence/fan_detect_defs.hpp
/openbmc/phosphor-fan-presence/presence/fan_enclosure.cpp
/openbmc/phosphor-fan-presence/presence/fan_enclosure.hpp
/openbmc/phosphor-fan-presence/presence/fan_properties.hpp
/openbmc/phosphor-fan-presence/presence/gen-fan-detect-defs.py
/openbmc/phosphor-fan-presence/presence/sensor_base.hpp
/openbmc/phosphor-fan-presence/presence/tach_detect.cpp
/openbmc/phosphor-fan-presence/presence/tach_sensor.cpp
/openbmc/phosphor-fan-presence/presence/tach_sensor.hpp
/openbmc/phosphor-fan-presence/test/Makefile.am
/openbmc/phosphor-fan-presence/test/timertest.cpp
/openbmc/phosphor-fan-presence/timer.cpp
/openbmc/phosphor-fan-presence/timer.hpp
/openbmc/phosphor-fan-presence/utility.cpp
/openbmc/phosphor-fan-presence/utility.hpp

12345678