History log of /openbmc/openpower-occ-control/test/ (Results 1 – 25 of 25)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
89e54fab28-Feb-2024 Patrick Williams <patrick@stwcx.xyz>

test: fix power10-mode compile errors

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

a8ebb1db29-Nov-2023 Patrick Williams <patrick@stwcx.xyz>

build: use allowed over enabled

Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer retur

build: use allowed over enabled

Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer return true for auto features. Instead, the
expectation is to use `allowed()` which is true for both enabled and auto.

Switch all uses of `enabled` to `allowed`.

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

show more ...

d8aab2a921-Apr-2023 Patrick Williams <patrick@stwcx.xyz>

elog-errors: remove generated file

Moved the YAML to phosphor-dbus-interfaces directly and removed
the generated files here.

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

elog-errors: remove generated file

Moved the YAML to phosphor-dbus-interfaces directly and removed
the generated files here.

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

show more ...

a49c987e10-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: I39f8c77091744c8516e043054b4ed7207d85aa08
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


/openbmc/openpower-occ-control/.clang-format
/openbmc/openpower-occ-control/.gitignore
/openbmc/openpower-occ-control/OWNERS
/openbmc/openpower-occ-control/app.cpp
/openbmc/openpower-occ-control/file.hpp
/openbmc/openpower-occ-control/gen/meson.build
/openbmc/openpower-occ-control/gen/org/open_power/OCC/Device/meson.build
/openbmc/openpower-occ-control/gen/org/open_power/OCC/meson.build
/openbmc/openpower-occ-control/gen/regenerate-meson
/openbmc/openpower-occ-control/gen/run-ci
/openbmc/openpower-occ-control/meson.build
/openbmc/openpower-occ-control/occ-active.sh
/openbmc/openpower-occ-control/occ_command.cpp
/openbmc/openpower-occ-control/occ_command.hpp
/openbmc/openpower-occ-control/occ_dbus.cpp
/openbmc/openpower-occ-control/occ_dbus.hpp
/openbmc/openpower-occ-control/occ_device.cpp
/openbmc/openpower-occ-control/occ_device.hpp
/openbmc/openpower-occ-control/occ_errors.cpp
/openbmc/openpower-occ-control/occ_errors.hpp
/openbmc/openpower-occ-control/occ_events.hpp
/openbmc/openpower-occ-control/occ_ffdc.cpp
/openbmc/openpower-occ-control/occ_ffdc.hpp
/openbmc/openpower-occ-control/occ_manager.cpp
/openbmc/openpower-occ-control/occ_manager.hpp
/openbmc/openpower-occ-control/occ_pass_through.cpp
/openbmc/openpower-occ-control/occ_pass_through.hpp
/openbmc/openpower-occ-control/occ_presence.cpp
/openbmc/openpower-occ-control/occ_presence.hpp
/openbmc/openpower-occ-control/occ_sensor.mako.hpp
/openbmc/openpower-occ-control/occ_status.cpp
/openbmc/openpower-occ-control/occ_status.hpp
/openbmc/openpower-occ-control/pldm.cpp
/openbmc/openpower-occ-control/pldm.hpp
/openbmc/openpower-occ-control/powercap.cpp
/openbmc/openpower-occ-control/powercap.hpp
/openbmc/openpower-occ-control/powermode.cpp
/openbmc/openpower-occ-control/powermode.hpp
/openbmc/openpower-occ-control/sensor_gen.py
/openbmc/openpower-occ-control/service_files/meson.build
/openbmc/openpower-occ-control/service_files/op-occ-disable@.service
/openbmc/openpower-occ-control/service_files/op-occ-enable@.service
/openbmc/openpower-occ-control/service_files/org.open_power.OCC.Control.service
/openbmc/openpower-occ-control/subprojects/nlohmann-json.wrap
/openbmc/openpower-occ-control/subprojects/sdbusplus.wrap
occ_dbus_test.cpp
utest.cpp
/openbmc/openpower-occ-control/utils.cpp
/openbmc/openpower-occ-control/utils.hpp
/openbmc/openpower-occ-control/yaml/org/open_power/OCC/Device.errors.yaml
/openbmc/openpower-occ-control/yaml/org/open_power/OCC/Device.metadata.yaml
2f9f9bba20-Sep-2021 Eddie James <eajames@linux.ibm.com>

Add FFDC collection

Add a class to watch for the presence of SBEFIFO FFDC reported up
through the OCC hwmon driver.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Change-Id: Ia8bf6eddb037aec547

Add FFDC collection

Add a class to watch for the presence of SBEFIFO FFDC reported up
through the OCC hwmon driver.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Change-Id: Ia8bf6eddb037aec547b72ecce39c1a977d9374bc

show more ...

064fc15b24-Sep-2021 George Liu <liuxiwei@inspur.com>

Remove compilation using autotools

The intent behind this commit is build openpower-occ-control with
meson, so need to remove files related to autotools.

Tested: built openpower-occ-control success

Remove compilation using autotools

The intent behind this commit is build openpower-occ-control with
meson, so need to remove files related to autotools.

Tested: built openpower-occ-control successfully and worked.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I46e87cca03eb84631cb34ad7bab33e973b1fc95e

show more ...

bddcf85307-Sep-2021 George Liu <liuxiwei@inspur.com>

Add meson build

This commit is to add meson build.
and later, we will remove Autotools and replace it with meson build.

Tested: built openpower-occ-control successfully and Unit test passes.

Signe

Add meson build

This commit is to add meson build.
and later, we will remove Autotools and replace it with meson build.

Tested: built openpower-occ-control successfully and Unit test passes.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I7f5fbc7150194a78f9b36bb256613fc70b834130

show more ...

bcef3b4809-Sep-2021 George Liu <liuxiwei@inspur.com>

Replace std::experimental::filesystem with std::filesystem

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I91d2f1b7a8858ba8c676b68693863bb35b56dffc

b5ca101509-Sep-2021 George Liu <liuxiwei@inspur.com>

Update clang-format

refer: https://github.com/openbmc/docs/blob/master/style/cpp/.clang-format

Tested: built openpower-occ-control successfully.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Cha

Update clang-format

refer: https://github.com/openbmc/docs/blob/master/style/cpp/.clang-format

Tested: built openpower-occ-control successfully.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I136870023229ff906d471dd4d8debfd404812ff1

show more ...

14d1402d25-Aug-2021 Matt Spinler <spinler@us.ibm.com>

The label field for temperature sensors is decimal

It turns out that the OCC driver displays the value of the
tempX_label file as a decimal as opposed to the hex format we just
speculated it would b

The label field for temperature sensors is decimal

It turns out that the OCC driver displays the value of the
tempX_label file as a decimal as opposed to the hex format we just
speculated it would be.

For example, a 0xC0000001 value will read as 3221225473.

Change the code to read that as a uint32_t and then extract that type
and instance fields directly from it.

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

show more ...

1390159703-Jun-2021 George Liu <liuxiwei@inspur.com>

Verify the value of the tempX_label file

- The intent behind this commit is to verify the value of
the tempX_label file.

- In the future, the value of this file will be changed to
`D0000002` (O

Verify the value of the tempX_label file

- The intent behind this commit is to verify the value of
the tempX_label file.

- In the future, the value of this file will be changed to
`D0000002` (OCC sensor ID).
- OCC Sensor Ids(D0000002)
- First byte is type - D0
- Second byte is reserved - 00
- Third+Fourth bytes are instance id - 0002

Tested: built openpower-occ-control successfully and unit test worked

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I5e89ce9592898f79b9fe926dd7bbe5691bf535a5

show more ...

6f777cda09-Jun-2021 George Liu <liuxiwei@inspur.com>

Add occ-dbus object

- The intent behind this commit is to add APIs for dynamically
createing D-Bus objects.

- When temperature values such as DIMM or Core are monitored, D-Bus
objects need to b

Add occ-dbus object

- The intent behind this commit is to add APIs for dynamically
createing D-Bus objects.

- When temperature values such as DIMM or Core are monitored, D-Bus
objects need to be dynamically created and the corresponding
attribute values updated. If the object path exists, only the
attribute value needs to be updated.

- Currently supports Sensor and OperationalStatus interfaces.

- Also, added Unit Test to occ_dbus file.

Tested: built openpower-occ-control successfully and UTest pass.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I1eac918d6a7a04d6b72b4e68fff868b04dde9c28

show more ...

f3b7514e09-Jun-2021 George Liu <liuxiwei@inspur.com>

Refactor D-Bus object

- The intent behind this commit is to refactor D-Bus, and abstract
the bus, getService, getProperty and other methods into the utils
file, and other file operations D-Bus o

Refactor D-Bus object

- The intent behind this commit is to refactor D-Bus, and abstract
the bus, getService, getProperty and other methods into the utils
file, and other file operations D-Bus only need to include
uitls.hpp.

- We can also continue to add other general methods such as
setPropery, getSubTree in the utils file in the future.

- Also, removed redundant files(occ_finder.hpp and occ_finder.cpp).

Tested: built openpower-occ-control successfully and worked.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I53e61e30a76173c154a9f47fc122936468abbc4b

show more ...

a8857c5027-Jan-2021 Chris Cain <cjcain@us.ibm.com>

Trigger periodic OCC POLL commands when the OCCs are running

The OCC control app will periodically trigger kernel poll commands
to the OCC when the OCCs are active.
Code change also adds an interfac

Trigger periodic OCC POLL commands when the OCCs are running

The OCC control app will periodically trigger kernel poll commands
to the OCC when the OCCs are active.
Code change also adds an interface to allow any OCC command to be
sent to an OCC. The pass-through interface was also updated to
use the new command object.

Tested: I did several IPLs on multiple Rainier systems to verify
the changes. I forced OCC resets to ensure polling stopped when
OCCs were disabled and restarted after it came out of reset.

Change-Id: I56970e781a988bb94f17ac38173ace8a68bb5fad
Signed-off-by: Chris Cain <cjcain@us.ibm.com>

show more ...

774f9af919-Mar-2019 Eddie James <eajames@us.ibm.com>

Fix error attribute naming for Linux 5.0

There was a slight change to one of the error attributes as part of the
OCC driver upstreaming process. This commit also adds unit tests for the
error attrib

Fix error attribute naming for Linux 5.0

There was a slight change to one of the error attributes as part of the
OCC driver upstreaming process. This commit also adds unit tests for the
error attributes. This required some refactoring to support the unit
tests.

Resolves openbmc/openbmc#3505

Signed-off-by: Eddie James <eajames@us.ibm.com>
Change-Id: I665b46e44b18befc8a728f7246bcda82f1f1a71c

show more ...

94df8c9014-Sep-2018 Gunnar Mills <gmills@us.ibm.com>

clang-format: Update to match docs repo

Update the .clang-format file and run clang-format-6.0.
This .clang-format matches the example one in
https://github.com/openbmc/docs/blob/master/cpp-style-an

clang-format: Update to match docs repo

Update the .clang-format file and run clang-format-6.0.
This .clang-format matches the example one in
https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting

Change-Id: Id6760866dedbaeafd83ea8ef2e0303e30b8955aa
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...

3c1706a827-Jun-2018 William A. Kennington III <wak@google.com>

tests: Quick fix for googletest

The test cases need to be linked agaist not only -lgmock_main and
-lgmock but also against -lgtest to pull in all of the needed symbols.
Specifically the build was mi

tests: Quick fix for googletest

The test cases need to be linked agaist not only -lgmock_main and
-lgmock but also against -lgtest to pull in all of the needed symbols.
Specifically the build was missing the ::testing::Test symbol.
Googletest changed the way they link their libraries in the newer
version. Instead of including all the objects for libgtest inside of
libgmock, they have libgmock append a DT_NEEDED on libgtest. This is
breaking out linking process. Since we are using googletest
functionality, link against libgtest as expected.

Tested:
Unit tests build and pass again.

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

show more ...

41470e5630-Nov-2017 Lei YU <mine260309@gmail.com>

Powercap: add p8 support

P8 uses i2c-occ and powercap is not created.
Add P8 support by creating powercap object with i2c device name.

Fixes openbmc/openbmc#2688

Change-Id: Ia63070d63f4392cc4b084a

Powercap: add p8 support

P8 uses i2c-occ and powercap is not created.
Add P8 support by creating powercap object with i2c device name.

Fixes openbmc/openbmc#2688

Change-Id: Ia63070d63f4392cc4b084ab628cdbdcf4206c883
Signed-off-by: Lei YU <mine260309@gmail.com>

show more ...

636577f406-Oct-2017 Edward A. James <eajames@us.ibm.com>

Add OCC present count detection and watch

Add a Presence child class of Error to handle detecting the number of
OCCs available. Add an instance of this Presence class if the Device
detects that it i

Add OCC present count detection and watch

Add a Presence child class of Error to handle detecting the number of
OCCs available. Add an instance of this Presence class if the Device
detects that it is the master OCC, since the number of present OCCs is
only reported by the master OCC. When a change to the number of OCCs
reported is detected, compare with the number of OCCs determined to be
active by the Manager, and if there is a mismatch, follow the usual
error path (reset OCC, etc).

Partially resolves openbmc/openbmc#2285
See https://gerrit.openbmc-project.xyz/#/c/7843/

Change-Id: Idbaca52b307992d9b01fe15439ab746ef6d64397
Signed-off-by: Edward A. James <eajames@us.ibm.com>

show more ...

b5259a1e01-Sep-2017 Lei YU <mine260309@gmail.com>

Add occ_ prefix for i2c occ dbus objects

I2c occ dbus objects path were their i2c addresses, e.g. 3_0050.
This does not indicate it's occ objects, and it does not work with
op-occ-disable/enable ser

Add occ_ prefix for i2c occ dbus objects

I2c occ dbus objects path were their i2c addresses, e.g. 3_0050.
This does not indicate it's occ objects, and it does not work with
op-occ-disable/enable services, which searches "occ" key words in object
path.

So add "occ_" prefix for i2c occ dbus objects, e.g. occ_3_0050, to
indicate it's occ objects and work well with op-occ-disable/enable
services.

Change-Id: I21712f2fb7cf6138248f6986b84f99c90c3fa3a2
Signed-off-by: Lei YU <mine260309@gmail.com>

show more ...

6c56a4a813-Jul-2017 Lei YU <mine260309@gmail.com>

Add unit tests for utils and refactor Makefiles

1. Add unit tests for utils;
2. Put the common code shared by app and utest into a library, and link the
library to app and utest.
This eliminates the

Add unit tests for utils and refactor Makefiles

1. Add unit tests for utils;
2. Put the common code shared by app and utest into a library, and link the
library to app and utest.
This eliminates the duplicated compiled objects.
3. Update .gitignore

Change-Id: I05ee93c2b23748a1e038eeec3534d49b94911366
Signed-off-by: Lei YU <mine260309@gmail.com>

show more ...

0ab90ca713-Jul-2017 Lei YU <mine260309@gmail.com>

Add I2C OCC support for P8 systems

P8 system uses I2C OCC and it uses different driver for occ-hwmon.
Add `--enable-i2c-occ` configure option to enable the support.

It searches i2c device names in

Add I2C OCC support for P8 systems

P8 system uses I2C OCC and it uses different driver for occ-hwmon.
Add `--enable-i2c-occ` configure option to enable the support.

It searches i2c device names in sysfs to get all occ-hwmon devices and
use the i2c device name to bind/unbind the driver.

The occ control object path for I2C OCC hwmon becomes something like
/org/open_power/control/3_0050, where 3_0050 is the i2c address.

Change-Id: I8b9d8d4429c563528dc88fb2679b265c53d7a2d5
Signed-off-by: Lei YU <mine260309@gmail.com>

show more ...

30e329ad24-Jul-2017 Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>

Reset OCC on error condition

After detecting the error in the OCC, invokes OccReset command
in Host Control dbus object with the sensor ID of the failing OCC

Fixes openbmc/openbmc#1363

Change-Id:

Reset OCC on error condition

After detecting the error in the OCC, invokes OccReset command
in Host Control dbus object with the sensor ID of the failing OCC

Fixes openbmc/openbmc#1363

Change-Id: I608dbbb943d3b39d0709d6f350ab799e771a13e9
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>

show more ...

ee4d83df29-Jun-2017 Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>

Add support to watch for OCC errors

Change-Id: I98d95020a2d01e281e5c8efa825d6b4bd4c6c160
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>

4cea4d2b10-Jul-2017 Andrew Geissler <andrewg@us.ibm.com>

Determine pcap value to send to occ

Change-Id: Ie60aac151f5fd8ce091020ce756834e4877cbc93
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>