commit | c4c3feec24f7acd979475d7fb93f6a6dba0d8f6f | [log] [tgz] |
---|---|---|
author | Matt Simmering <matthew.simmering@intel.com> | Mon Jun 12 17:06:57 2023 -0700 |
committer | Matt Simmering <matthew.simmering@intel.com> | Thu Jun 15 16:17:26 2023 -0700 |
tree | b0ae664c06c5ae65e4fec97c1ecbd063d2a05dce | |
parent | b65de2d694438a0fb3198f09a2aae3c9b8c40bd9 [diff] |
libpeci: Add 64-bit MMIO Read variable MMIO Reads can support 8 byte reads but the variable used is only 4 bytes. Use new 8 byte variable. Tested: Can now read 8 byte variables Before: >> peci_cmds RdEndpointConfigMMIO <register info> -s 8 cc:0x40 0x0000000001100100 After: >> peci_cmds RdEndpointConfigMMIO <register info> -s 8 cc:0x40 0x00ff000001100100 Change-Id: Iac4f8b462e2a391188b4bcb749a49e3792fb9af3 Signed-off-by: Matt Simmering <matthew.simmering@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.