commit | 5f1d7f7adeef902d5776d1af528129892a53d1c3 | [log] [tgz] |
---|---|---|
author | Jason M. Bills <jason.m.bills@intel.com> | Fri May 12 13:58:35 2023 -0700 |
committer | Jason M. Bills <jason.m.bills@intel.com> | Fri May 12 15:13:21 2023 -0700 |
tree | e02eecd424b20f3a9d8c314a829fe0db5e7e3080 | |
parent | 7169faac9eb8a428b4a2ecb680a071f732842004 [diff] |
Reset the cc when looping It's possible if one loop passes and the next fails early that the cc will be left at the previous value. This resets it for each loop so we don't get stale ccs reported. Tested: Confirmed that the cc changes to 0 on failures while looping. Change-Id: I5c1dc62cbd9309175d7add2475366329d295bd6c Signed-off-by: Jason M. Bills <jason.m.bills@intel.com>
libpeci is a library that provides various APIs to interface with the IOCTLs provided by the PECI driver in the OpenBMC kernel. Currently available here:
https://github.com/openbmc/linux/blob/dev-5.4/include/uapi/linux/peci-ioctl.h
This repo also includes a peci_cmds command-line utility with functions that map to the libpeci APIs. It can be used to test PECI functionality across the library, driver, and hardware.
This repo also includes dbus_raw_peci which provides a raw-peci daemon that exposes a raw PECI interface that is accessible over D-Bus. It can be used when an application needs to send a raw PECI command without loading the full PECI library.