mbox series

[0/3] occ: fsi and hwmon: Extract and provide the SBEFIFO FFDC

Message ID 20210914213543.73351-1-eajames@linux.ibm.com (mailing list archive)
Headers show
Series occ: fsi and hwmon: Extract and provide the SBEFIFO FFDC | expand

Message

Eddie James Sept. 14, 2021, 9:35 p.m. UTC
Currently, users have no way to obtain the FFDC (First Failure Data
Capture) provided by the SBEFIFO when an operation fails. To remedy this,
add code in the FSI OCC driver to store this FFDC in the user's response
buffer and set the response length accordingly.
On the hwmon side, there is a need at the application level to perform
side-band operations in response to SBE errors. Therefore, add a new
binary sysfs file that provides the FFDC (or lack thereof) when there is
an SBEFIFO error. Now applications can take action when an SBE error is
detected.

Eddie James (3):
  fsi: occ: Use a large buffer for responses
  fsi: occ: Store the SBEFIFO FFDC in the user response buffer
  hwmon: (occ) Provide the SBEFIFO FFDC in binary sysfs

 drivers/fsi/fsi-occ.c      | 184 ++++++++++++++++++++-----------------
 drivers/hwmon/occ/p9_sbe.c |  98 +++++++++++++++++++-
 include/linux/fsi-occ.h    |   3 +
 3 files changed, 202 insertions(+), 83 deletions(-)