History log of /openbmc/phosphor-hwmon/thresholds.hpp (Results 1 – 18 of 18)
Revision Date Author Comments
# b6865fdc 16-Dec-2024 Matt Spinler <spinler@us.ibm.com>

Remove vim mode lines

It isn't necessary to store editor settings in source files.

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


# e96daf6c 18-Dec-2024 Patrick Williams <patrick@stwcx.xyz>

clang-format: re-format for clang-19

clang-format-19 isn't compatible with the clang-format-18 output, so we
need to reformat the code with the latest version. A few parameters
in clang-tidy have b

clang-format: re-format for clang-19

clang-format-19 isn't compatible with the clang-format-18 output, so we
need to reformat the code with the latest version. A few parameters
in clang-tidy have been deprecated, so adjust the style file
accordingly.

See Ie2f6eb3b043f2d655c9df806815afd7971fd0947 for updated style.
See I88192b41ab7a95599a90915013579608af7bc56f for clang-19 enablement.

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

show more ...


# ad6043f6 22-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: I86dfa77a53a306b0e868eeb82de30b270704c455

show more ...


# d273b1e0 30-Mar-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` or `action::emit_no_signals` as appropriate.

- Value: defer_emit (primary object)
- Others: emit_no_signals (secondary objects)

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

show more ...


# 04da0551 18-Jul-2021 Thang Q. Nguyen <thang@os.amperecomputing.com>

sensor: accept single sensor threshold

Currently, sensors require a couple of LC/UC and/or LNC/UNC. However, in
real hardware design, there might be only one of LC, UC, LNC or UNC
available.
This ch

sensor: accept single sensor threshold

Currently, sensors require a couple of LC/UC and/or LNC/UNC. However, in
real hardware design, there might be only one of LC, UC, LNC or UNC
available.
This change allows to specify only single sensor threshold.

Tested:
1. Specify only UC threshold for PSU0_Temp sensor
2. root@mtjade:~# ipmitool sensor get PSU0_TEMP
Locating sensor record...
Sensor ID : PSU0_TEMP (0xf3)
Entity ID : 30.58
Sensor Type (Threshold) : Temperature
Sensor Reading : 26 (+/- 0) degrees C
Status : ok
Lower Non-Recoverable : na
Lower Critical : na
Lower Non-Critical : na
Upper Non-Critical : na
Upper Critical : 64.000
Upper Non-Recoverable : na
Positive Hysteresis : Unspecified
Negative Hysteresis : Unspecified

Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: I70fa136c6d96a6edc2ed1a6a65eee85b6ff62e39

show more ...


# 73769099 14-Apr-2021 Duke Du <Duke.Du@quantatw.com>

Send high/low alarm signal when sensor reading exceeds threshold

The change to the xyz.openbmc_project.Sensor.Threshold.Warning and
xyz.openbmc_project.Sensor.Threshold.Critical interface that add
t

Send high/low alarm signal when sensor reading exceeds threshold

The change to the xyz.openbmc_project.Sensor.Threshold.Warning and
xyz.openbmc_project.Sensor.Threshold.Critical interface that add
the new signals WarningHighAlarmAsserted, WarningHighAlarmDeasserted,
WarningLowAlarmAsserted, WarningLowAlarmDeasserted,
CriticalHighAlarmAsserted, CriticalHighAlarmDeasserted,
CriticalLowAlarmAsserted and CriticalLowAlarmDeasserted.

When sensor reading exceeds the threshold, hwmon would send the signal
with the sensor reading value at that time.

Tested:
Use dbus-monitor command to check the signal is captured, when hwmon
send signals.

Signed-off-by: Duke Du <Duke.Du@quantatw.com>
Change-Id: Ibf050b8bcff128cf77fd103c6d2bd1f30700b27b

show more ...


# 6206723d 19-Jun-2019 Patrick Venture <venture@google.com>

rename Object type to InterfaceMap

Rename the Object type to InterfaceMap to give it a less opaque name.
The word object is somewhat overloaded.

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

rename Object type to InterfaceMap

Rename the Object type to InterfaceMap to give it a less opaque name.
The word object is somewhat overloaded.

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

show more ...


# ee73f5bd 01-Aug-2018 James Feist <james.feist@linux.intel.com>

Make hwmon work with double or int64 interface

Deduce type based on interface using decltype
and if it is double apply scale to the value.

Tested-by: Noticed that on dbus using busctl and debug
ser

Make hwmon work with double or int64 interface

Deduce type based on interface using decltype
and if it is double apply scale to the value.

Tested-by: Noticed that on dbus using busctl and debug
server that doubles were produced and scaled.

Also verifed that hwmon still produced int64_t values when
building with current phosphor-dbus-interfaces.

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

show more ...


# 4cbdfef2 18-Oct-2018 William A. Kennington III <wak@google.com>

Remove old experimental includes

We are now using c++17 so we no longer need experimental optional and
any. We can use the standard any and optional now.

Change-Id: I88fcb4258c69ac5ad9766e2c65463c5

Remove old experimental includes

We are now using c++17 so we no longer need experimental optional and
any. We can use the standard any and optional now.

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

show more ...


# 685efa16 12-Oct-2018 Patrick Venture <venture@google.com>

cleanup: reduced scope of variables

Cppcheck CI tool identified many variables whose scope could be reduced.

Change-Id: I1478b5680adc560d08bc74ffc91929b1d19e24fa
Signed-off-by: Patrick Venture <ven

cleanup: reduced scope of variables

Cppcheck CI tool identified many variables whose scope could be reduced.

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

show more ...


# 043d3230 31-Aug-2018 Patrick Venture <venture@google.com>

add .clang-format

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


# 7a5285de 17-Apr-2018 Patrick Venture <venture@google.com>

move getEnv methods into env namespace

Move the getEnv(...) methods into the env namespace,
for consistency.

Change-Id: I4055d9456c17f8b20071cdee1b8e531c10fb0c7e
Signed-off-by: Patrick Venture <ven

move getEnv methods into env namespace

Move the getEnv(...) methods into the env namespace,
for consistency.

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

show more ...


# fe17effc 29-Oct-2017 Chiabing Lee <chiabinglee@gmail.com>

Update threshold checking comparison operators

Change sensors threshold value checking to less/greater than or equal

Resolves openbmc/openbmc#2531

Change-Id: I4f177f583c95ffd278d696d053644c453d03a

Update threshold checking comparison operators

Change sensors threshold value checking to less/greater than or equal

Resolves openbmc/openbmc#2531

Change-Id: I4f177f583c95ffd278d696d053644c453d03ab7b
Signed-off-by: Chiabing Lee <chiabinglee@gmail.com>

show more ...


# ccfc77b6 12-Oct-2017 Matt Spinler <spinler@us.ibm.com>

Pass discrete type/ID values into addThreshold

The ID has to be looked up separately in some cases
so can't always be the ID specified in the key_type object.

Change-Id: I7f5b395ec3db2182fe84df2404

Pass discrete type/ID values into addThreshold

The ID has to be looked up separately in some cases
so can't always be the ID specified in the key_type object.

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

show more ...


# 325456cb 12-Oct-2017 Matt Spinler <spinler@us.ibm.com>

use stoll() to convert threshold string to number

The stoi() and stol() functions will throw out of range
exceptions when trying to convert valid threshold values,
such as power numbers in microwatt

use stoll() to convert threshold string to number

The stoi() and stol() functions will throw out of range
exceptions when trying to convert valid threshold values,
such as power numbers in microwatts.

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

show more ...


# 973886db 15-Mar-2017 Saqib Khan <khansa@us.ibm.com>

Change constexpr function pointers to static constants

Note: Newer version of gcc no longer supports constexpr
function pointers to be declared in the header file.
Therefore we fixed this by declari

Change constexpr function pointers to static constants

Note: Newer version of gcc no longer supports constexpr
function pointers to be declared in the header file.
Therefore we fixed this by declaring them as static
constants in the header file and moved the initialization
to the source file.

Change-Id: Ied87c62b14be79cc268cfe8c63e8f2385c7e75b6
Signed-off-by: Saqib Khan <khansa@us.ibm.com>

show more ...


# 30dbceec 18-Jan-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Delay emission of InterfacesAdded

Make use of sdbusplus::server::object::object defered signal
emission feature so that only one InterfacesAdded signal is
emitted when creating objects.

Change-Id:

Delay emission of InterfacesAdded

Make use of sdbusplus::server::object::object defered signal
emission feature so that only one InterfacesAdded signal is
emitted when creating objects.

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

show more ...


# e228acc0 06-Jan-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Add threshold support methods

Add type traits and methods in support of sensor thresholds.

Change-Id: I92a0c17aba4899c0d48bf76039d48a6ed1ee7f95
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.c

Add threshold support methods

Add type traits and methods in support of sensor thresholds.

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

show more ...