commit | 7b11280d8e3113aecc4b9ce6e5d818268eb2122c | [log] [tgz] |
---|---|---|
author | Jason M. Bills <jason.m.bills@intel.com> | Tue Mar 01 13:28:56 2022 -0800 |
committer | Jason M. Bills <jason.m.bills@intel.com> | Tue Mar 15 11:44:12 2022 -0700 |
tree | e1822070d7f955f9148d0b55401e1843421d3c70 | |
parent | 8bb8f37a55a8c063b103667e38a5ebf31c7ee37e [diff] |
Convert peci_cmds to use the domain libpeci APIs This adds a new '-i' parameter to peci_cmds that allows setting the PECI domain ID byte using the new domain libpeci APIs. Tested: Confirmed that the domain ID can be set correctly using the '-i' parameter. Signed-off-by: Jason M. Bills <jason.m.bills@intel.com> Change-Id: I88506c5f2677f3358ece3555c0f08210ec4e441c
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.