History log of /openbmc/phosphor-fan-presence/presence/tach_detect.cpp (Results 1 – 15 of 15)
Revision Date Author Comments
# 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 re

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


# 0daedd18 25-Jan-2021 Matt Spinler <spinler@us.ibm.com>

presence: Don't start until JSON config is found

Make use of the JsonConfig class's callback functionality to not
actually start fan presence checking until the config file is available.

presence: Don't start until JSON config is found

Make use of the JsonConfig class's callback functionality to not
actually start fan presence checking until the config file is available.

If the config file name is known right away, then monitoring will start
right away, but if it has to wait for the IBMCompatible interface to
show up on D-bus first, it will wait for that.

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

show more ...


# 1a568650 24-Aug-2020 Jolie Ku <jolie_ku@wistron.com>

presence: Use shared JSON config file finding & loading header

Use the shared JSON config determination header for loading its
JSON configuration file.

Tested:
run phosp

presence: Use shared JSON config file finding & loading header

Use the shared JSON config determination header for loading its
JSON configuration file.

Tested:
run phosphor-fan-presence-tach can find and load config.json from
/usr/share/phosphor-fan-presence/presence and
/etc/phosphor-fan-presence/presence/ in witherspoon qemu

Change-Id: I5c4fdf7d96de7c956ca24b4a5751911cc1bf1f03
Signed-off-by: Jolie Ku <jolie_ku@wistron.com>

show more ...


# 2d2caa34 26-May-2020 Matthew Barth <msbarth@us.ibm.com>

presence: Clang format updates

Used `format-code.sh` build script to make changes to conform to clang
format.

Tested: Compiled

Change-Id: I2fc795938e85a752ee56b54212d38

presence: Clang format updates

Used `format-code.sh` build script to make changes to conform to clang
format.

Tested: Compiled

Change-Id: I2fc795938e85a752ee56b54212d389c2ff296828
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>

show more ...


# 5060b101 16-Dec-2019 Matthew Barth <msbarth@us.ibm.com>

presence: Hard code JSON config file locations

Instead of using locations provided at configure time to retrieve the
JSON config file, hard code the directory paths and the dbus
inte

presence: Hard code JSON config file locations

Instead of using locations provided at configure time to retrieve the
JSON config file, hard code the directory paths and the dbus
interface/property used. This simplifies what's required to be given at
configure time and eliminates complexities in the possible locations the
JSON config files could be stored in.

The expected value retrieved from dbus is a relative location to the
base path /usr/share/phosphor-fan-presence/presence/[DBUS_VALUE]

Tested:
Config file is able to loaded from each location
Dbus property value used relative to base path location

Change-Id: I831647f78887b3948ce35be4015fd7762748838d
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>

show more ...


# 3a429d91 05-Dec-2019 Matthew Barth <msbarth@us.ibm.com>

presence: Retrieve config file location from dbus

When configured with a dbus interface and property storing the file
location of the json configuration for fan presence, retrieve it fro

presence: Retrieve config file location from dbus

When configured with a dbus interface and property storing the file
location of the json configuration for fan presence, retrieve it from
the associated dbus object. The first dbus object found with the given
interface is used to get the file location from the given property
on that interface. Having more than one dbus object hosting the
interface with the configuration file location property is unsupported.

Tested:
Config file is retrieved from defined dbus object

Change-Id: I82fbd622ded11da029ed9fdac8239a69a82370f8
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>

show more ...


# f3e70470 03-Dec-2019 Matthew Barth <msbarth@us.ibm.com>

presence: Reload json config on SIGHUP

Enable capturing the HUP signal to reload the json configuration. This
will reload and process the default json config file, updating the set
o

presence: Reload json config on SIGHUP

Enable capturing the HUP signal to reload the json configuration. This
will reload and process the default json config file, updating the set
of policies to be the same set of policies from when fan presence was
started.

Tested:
Configuration is reloaded and processed after SIGHUP
Single set of policies exist that correlate to the json config

Change-Id: I761ac3779baf5b058308d7c565fd117fe052d61c
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>

show more ...


# fd05d649 14-Nov-2019 Matthew Barth <msbarth@us.ibm.com>

presence: Add JSON config class

Add a JSON config class that will be used to parse a given JSON config
file and generate the fan presence policies from that config.

Tested:

presence: Add JSON config class

Add a JSON config class that will be used to parse a given JSON config
file and generate the fan presence policies from that config.

Tested:
N/A

Change-Id: Iac1703ea8d9e1e1d0d40e15a58145181d4f1a0f9
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>

show more ...


# 1cfc2f11 19-Oct-2018 William A. Kennington III <wak@google.com>

Switch sd_event loops to sdeventplus

This change is mostly focused around plumbing the sdeventplus::Event
object everywhere and using the member functions provided for the event.
No

Switch sd_event loops to sdeventplus

This change is mostly focused around plumbing the sdeventplus::Event
object everywhere and using the member functions provided for the event.
No migration to the timer utility is performed yet.

Change-Id: I912ab82bc081239d3b7c3cf7c5caca6742ef9c87
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...


# 372b22c3 12-Jul-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

presence: Switch to new framework

Switch the main application logic to the output produced by
the new parser previously.
Remove unused code.

Signed-off-by: Brad Bishop <brad

presence: Switch to new framework

Switch the main application logic to the output produced by
the new parser previously.
Remove unused code.

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

show more ...


# 76596b21 13-Jun-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

presence: Invoke pfpgen.py

Invoke the new parser during build.

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


# 8e9a8e75 08-Jun-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

presence: Check DBus for initial state

At startup load the initial state from the DBus object
if one exists already.

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

presence: Check DBus for initial state

At startup load the initial state from the DBus object
if one exists already.

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

show more ...


# 0dea38e5 08-Jun-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

presence: Remove work from enclosure constructor

Allow class users to control when an enclosure should
export its state on DBus.

Signed-off-by: Brad Bishop <bradleyb@fuzziesquir

presence: Remove work from enclosure constructor

Allow class users to control when an enclosure should
export its state on DBus.

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

show more ...


# ec613db1 08-Jun-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

presence: Use new sdbusplus wrapper

Use the sdbusplus wrapper methods introduced previously.

Change-Id: Ifd431753e9513436a9b5ab98cc49d907a5929c20
Signed-off-by: Brad Bishop <bra

presence: Use new sdbusplus wrapper

Use the sdbusplus wrapper methods introduced previously.

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

show more ...


# 9df0e16e 22-Apr-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

build: Move presence to a subdirectory

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