All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] occ: fsi and hwmon: Extract and provide the SBEFIFO FFDC
@ 2021-09-20 18:41 Eddie James
  2021-09-20 18:41 ` [PATCH v2 1/3] fsi: occ: Use a large buffer for responses Eddie James
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eddie James @ 2021-09-20 18:41 UTC (permalink / raw)
  To: linux-fsi
  Cc: linux-kernel, linux-hwmon, jk, joel, alistair, linux, jdelvare, eajames

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.

Changes since v1:
 - Remove the magic value that indicated an SBE/SBEFIFO error with no
   FFDC.
 - Remove binary sysfs state management and intead just clear the error
   flag when the whole FFDC has been read.

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      | 163 +++++++++++++++++++------------------
 drivers/hwmon/occ/p9_sbe.c |  86 ++++++++++++++++++-
 include/linux/fsi-occ.h    |   2 +
 3 files changed, 171 insertions(+), 80 deletions(-)

-- 
2.27.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-20 18:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-20 18:41 [PATCH v2 0/3] occ: fsi and hwmon: Extract and provide the SBEFIFO FFDC Eddie James
2021-09-20 18:41 ` [PATCH v2 1/3] fsi: occ: Use a large buffer for responses Eddie James
2021-09-20 18:41 ` [PATCH v2 2/3] fsi: occ: Store the SBEFIFO FFDC in the user response buffer Eddie James
2021-09-20 18:41 ` [PATCH v2 3/3] hwmon: (occ) Provide the SBEFIFO FFDC in binary sysfs Eddie James

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.