#
a49c987e |
| 10-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 ...
|
#
af40808f |
| 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: I9541d521bf67882215a4a66dce020e38ac2df065
show more ...
|
#
ace67d85 |
| 18-Oct-2021 |
Matt Spinler <spinler@us.ibm.com> |
Add proc IO Ring and core/IO ring DVFS sensors Add support for the processor IO ring temperature sensor which the OCC uses fru type 9 for. There is one per OCC. Add support for
Add proc IO Ring and core/IO ring DVFS sensors Add support for the processor IO ring temperature sensor which the OCC uses fru type 9 for. There is one per OCC. Add support for reading the processor core and IO ring DVFS (Dynamic Voltage and Frequency Slewing) temperature values out of the tempN_max files and putting them on D-Bus. These values are the temperatures at which the OCC starts using DVFS to cool the chip and are being put on D-Bus so that fan control can read them and increase fan speeds before then so the OCC doesn't have to do the DVFS. Even though there is a value in the tempN_max file for every core, there only needs to be one value on D-Bus per OCC. These are put in the sensors namespace using the xyz.openbmc_project.Sensor.Value interface. They do not need associations to the chassis, and they don't need to be set to NaN when the OCCs aren't active, since the values can never change. There are values in the tempN_max files for most, if not all, other temperature types as well, but the IO ring and core DVFS temps are the only ones that aren't known ahead of time because they come from the processor EEPROM. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I3e3f7a2a5db4053ea055e7baa16f0b0bf6eddbca
show more ...
|
#
5901abda |
| 23-Sep-2021 |
Matt Spinler <spinler@us.ibm.com> |
Add chassis association to sensors Add an association to the chassis for each sensor so that the Redfish code can find them. The forward association is 'chassis', and the reverse as
Add chassis association to sensors Add an association to the chassis for each sensor so that the Redfish code can find them. The forward association is 'chassis', and the reverse association is 'all_sensors'. This matches what other sensor applications do and is documented in sensors-architecture.md in the docs repository. Tested: Checked the associations were present in the mapper and that the sensors now show up on the sensors page in the web UI. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Iefb6d4dc2e5c9399d919e9e1b7c8dd04f20e7a3e
show more ...
|
#
b5ca1015 |
| 09-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 <
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 ...
|
#
bb895cb8 |
| 18-Jun-2021 |
Chicago Duan <duanzhijia01@inspur.com> |
Read proc temps and dimm temps This commit uses openpower-occ-control to monitor the temperature and power sensors, and create sensors on D-BUS. In the loop, read the sensor values e
Read proc temps and dimm temps This commit uses openpower-occ-control to monitor the temperature and power sensors, and create sensors on D-BUS. In the loop, read the sensor values every 1 seconds. Tested: I use virtual data to get sensor values: busctl tree org.open_power.OCC.Control |-/org | `-/org/open_power | `-/org/open_power/control | |-/org/open_power/control/occ0 | `-/org/open_power/control/occ1 `-/xyz `-/xyz/openbmc_project `-/xyz/openbmc_project/sensors |-/xyz/openbmc_project/sensors/power | |-/xyz/openbmc_project/sensors/power/p0_mem_2_power | |-/xyz/openbmc_project/sensors/power/p0_mem_power | |-/xyz/openbmc_project/sensors/power/p0_power | |-/xyz/openbmc_project/sensors/power/p1_mem_power | |-/xyz/openbmc_project/sensors/power/p1_power | |-/xyz/openbmc_project/sensors/power/p2_mem_power | |-/xyz/openbmc_project/sensors/power/p2_power | |-/xyz/openbmc_project/sensors/power/p3_mem_power | |-/xyz/openbmc_project/sensors/power/p3_power | `-/xyz/openbmc_project/sensors/power/total_power `-/xyz/openbmc_project/sensors/temperature |-/xyz/openbmc_project/sensors/temperature/dimm5_dram_temp |-/xyz/openbmc_project/sensors/temperature/dimm9_dram_temp |-/xyz/openbmc_project/sensors/temperature/proc0_core2_temp |-/xyz/openbmc_project/sensors/temperature/proc0_core3_temp |-/xyz/openbmc_project/sensors/temperature/proc1_core2_temp |-/xyz/openbmc_project/sensors/temperature/proc1_core3_temp |-/xyz/openbmc_project/sensors/temperature/vrm_vdd0_temp `-/xyz/openbmc_project/sensors/temperature/vrm_vdd1_temp busctl introspect org.open_power.OCC.Control /xyz/openbmc_project/sensors/temperature/proc0_core3_temp NAME TYPE SIGNATURE RESULT/VALUE org.freedesktop.DBus.Introspectable interface - - .Introspect method - s org.freedesktop.DBus.Peer interface - - .GetMachineId method - s .Ping method - - org.freedesktop.DBus.Properties interface - - .Get method ss v .GetAll method s a{sv} .Set method ssv - .PropertiesChanged signal sa{sv}as - xyz.openbmc_project.Sensor.Value interface - - .MaxValue property d 0 .MinValue property d 0 .Unit property s "xyz.openbmc... .Value property d 49 xyz.openbmc_project.State.Decorator.OperationalStatus interface - - .Functional property b true busctl introspect org.open_power.OCC.Control /xyz/openbmc_project/sensors/power/total_power NAME TYPE SIGNATURE RESULT/VALUE org.freedesktop.DBus.Introspectable interface - - .Introspect method - s org.freedesktop.DBus.Peer interface - - .GetMachineId method - s .Ping method - - org.freedesktop.DBus.Properties interface - - .Get method ss v .GetAll method s a .Set method ssv - .PropertiesChanged signal sa{sv}as - xyz.openbmc_project.Sensor.Value interface - - .MaxValue property d 0 .MinValue property d 0 .Unit property s "xyz.openbmc... .Value property d 83 xyz.openbmc_project.State.Decorator.OperationalStatus interface - - .Functional property b true Signed-off-by: Chicago Duan <duanzhijia01@inspur.com> Change-Id: Iff30ab51745dab500fa19aa4c35b07e0052ac665
show more ...
|
#
0ad9dd87 |
| 22-Jun-2021 |
George Liu <liuxiwei@inspur.com> |
Verify object path is empty This commit is verify object path is empty when calling the set method of the occ dbus, and when the object path is empty, return directly. Signe
Verify object path is empty This commit is verify object path is empty when calling the set method of the occ dbus, and when the object path is empty, return directly. Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I0d0b01659e43b8ebf7e00bd455dddafebea4a5f0
show more ...
|
#
6f777cda |
| 09-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
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 ...
|