#
d7542c83 |
| 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I94e2bfdc8fae9bc14e30c701a0e622709ee9b0fe Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
c86d80fa |
| 04-May-2023 |
Chris Cain <cjcain@us.ibm.com> |
Implement processor throttle dbus properties
- create processor throttle dbus objects for each OCC (processor) - update throttle properties based on OCC poll response data or safe mode status.
Th
Implement processor throttle dbus properties
- create processor throttle dbus objects for each OCC (processor) - update throttle properties based on OCC poll response data or safe mode status.
Throttle data will be made available via Redfish
NAME TYPE SIGNATURE RESULT/VALUE FLAGS 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.Control.Power.Throttle interface - - - .ThrottleCauses property as 0 emits-change .Throttled property b false emits-change
Example of throttled processor (due to a power limit): as 1 "xyz.openbmc_project.Control.Power.Throttle.ThrottleReasons.PowerLimit"
Change-Id: I0af9d82fab9d694427d0adaa45f4a372d25fbc12 Signed-off-by: Chris Cain <cjcain@us.ibm.com>
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 ...
|
#
bae4d07e |
| 28-Feb-2022 |
Chris Cain <cjcain@us.ibm.com> |
Wait for OCC Active PDR to become available
occ-control was attempting to communicate with OCCs before the OCC Active sensor PDR was available. This commit will wait until all PDRs are available bef
Wait for OCC Active PDR to become available
occ-control was attempting to communicate with OCCs before the OCC Active sensor PDR was available. This commit will wait until all PDRs are available before allowing communication with the OCCs. It will also read the OCC Active sensor to determine the state before allowing communication.
When Hostboot moves a system to safe mode it will set the PLDM state of the OCC Active sensor to PLDM_STATE_SET_OPERATIONAL_RUNNING_STATUS_DORMANT This commit will also handle processing of that DORMANT status.
Change-Id: I348cf14455d9373898deec2ac4a04b3752e81c4a Signed-off-by: Chris Cain <cjcain@us.ibm.com>
show more ...
|
#
5d66a0aa |
| 09-Feb-2022 |
Chris Cain <cjcain@us.ibm.com> |
Expose power cap min/max on dbus
The min and max power cap values will be read from sysfs files and then the data will be put on the dbus. This will allow users to know the valid range of power cap
Expose power cap min/max on dbus
The min and max power cap values will be read from sysfs files and then the data will be put on the dbus. This will allow users to know the valid range of power cap available.
The PowerCap object was moved from Manager to Status.
Change-Id: I5196cc8645f84c31a5282cf844109bae47b09bf7 Signed-off-by: Chris Cain <cjcain@us.ibm.com>
show more ...
|
#
1be4337b |
| 09-Dec-2021 |
Chris Cain <cjcain@us.ibm.com> |
Read default power mode & IPS parameters from DBus
If the power mode or idle power saver parameters have never been set, they will be read from a set of default parameters that are on DBus. This all
Read default power mode & IPS parameters from DBus
If the power mode or idle power saver parameters have never been set, they will be read from a set of default parameters that are on DBus. This allows individual systems to have different default settings. Mode/IPS parameters moved from Settings to OCC.Control
Code verified on Everest hardware with multiple scenarios including host reboots, BMC reboots, OCC resets.
Change-Id: Id02613455db7f382791ff37c7dc420dbea1e0906 Signed-off-by: Chris Cain <cjcain@us.ibm.com>
show more ...
|
#
36f9cded |
| 22-Nov-2021 |
Chris Cain <cjcain@us.ibm.com> |
Add support for OEM Power Modes
- Allow mode to be set via PassThrough interface - Allow non-customer OEM power modes to be persisted - Persist any OEM power mode settings - moved mode related code
Add support for OEM Power Modes
- Allow mode to be set via PassThrough interface - Allow non-customer OEM power modes to be persisted - Persist any OEM power mode settings - moved mode related code from Status to PowerMode object - merged PowerIPS into PowerMode object
Tested on Everest and Rainier. Setting mode through PassThrough/ce-login: busctl call org.open_power.OCC.Control /org/open_power/control/occ0 org.open_power.OCC.PassThrough SetMode yq 11 3600 Trace (via PassThrough interface) openpower-occ-control[4440]: PassThrough::setMode() Setting Power Mode 11 (data: 3600) openpower-occ-control[4440]: PowerMode::sendModeChange: SET_MODE(11,3600) command to OCC0 (9 bytes) Trace (setting mode via GUI/Redfish): openpower-occ-control[4440]: Power Mode Change Requested: xyz.openbmc_project.Control.Power.Mode.PowerMode.MaximumPerformance openpower-occ-control[4440]: PowerMode::sendModeChange: SET_MODE(12,0) command to OCC0 (9 bytes) Verified when system in any OEM mode that Redfish also reports OEM Verified all modes are persisted across PM Complex resets and reboots
Change-Id: Idd0be05cb6fd74dbd0776145f212c49addd1c365 Signed-off-by: Chris Cain <cjcain@us.ibm.com>
show more ...
|
#
17257673 |
| 22-Oct-2021 |
Chris Cain <cjcain@us.ibm.com> |
Send ambient and altitude to OCC
After the OCCs go active or anytime the ambient temperature changes the ambient temperature and alititude will get sent to each OCC. The altitude is only read once.
Send ambient and altitude to OCC
After the OCCs go active or anytime the ambient temperature changes the ambient temperature and alititude will get sent to each OCC. The altitude is only read once. If the altitude was not valid, another attempt to read it will be done when the ambient temperature is going to be re-sent.
Tested on Everest and Rainier systems
Change-Id: Icd64c50c05469bc985cfcaa3fcc74c3db5b41429 Signed-off-by: Chris Cain <cjcain@us.ibm.com>
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 association is 'al
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 <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 ...
|
#
25613624 |
| 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I03198711b6d148e82106ca6ff809c25d814ad201
show more ...
|
#
14d1402d |
| 25-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 ...
|
#
13901597 |
| 03-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 ...
|
#
f3b7514e |
| 09-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 ...
|
#
94df8c90 |
| 14-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 ...
|
#
18dc1281 |
| 29-Aug-2017 |
Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
Change signature of getService
getService() has [bus, interface, path] as parameter and the caller invoked it with [bus, path, interface] and that resulted in a failure. Although the fix can be put
Change signature of getService
getService() has [bus, interface, path] as parameter and the caller invoked it with [bus, path, interface] and that resulted in a failure. Although the fix can be put into the caller to pass the right arguments, better fix would be to change the signature of getService() to receive path and then the interface as that is what has been followed all over and the deviation resulted in this bug.
Change-Id: I3efe7f4f0a2d0bceb7e6e801cd68de6b2624fbe0 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
show more ...
|
#
30e329ad |
| 24-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 ...
|