commit | 6ca3164be78492bdfc1eac5ab528b896dde299ca | [log] [tgz] |
---|---|---|
author | Jason M. Bills <jason.m.bills@linux.intel.com> | Thu Aug 06 10:26:19 2020 -0700 |
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | Thu Aug 06 10:26:19 2020 -0700 |
tree | f863ac1e76990eeb94106a84b33e35b6f0a72a39 | |
parent | c965e72c6765e054531c1ab91e7fa13f04651f21 [diff] |
Return an error for invalid target addresses If the provided target address is outside of the valid range, return an error instead of sending the command. Tested: Ran each command with valid and invalid target addresses and confirmed that the error is returned appropriately. Change-Id: I49940a3e6353429b70f9c2012b53fa94c5355d13 Signed-off-by: Jason M. Bills <jason.m.bills@linux.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.