[Pdbg] [PATCH v2 0/3] sbefifo long running chip-op ioctl support

Joel Stanley joel at jms.id.au
Wed Feb 23 16:34:43 AEDT 2022


v2: Split out new API from implemntation of ops
    Document long ops in commit message

The sbefifo driver in the kernel has gained an ioctl for setting the
timeout (in seconds) for a chip-op.

 https://lore.kernel.org/all/20220121053816.82253-1-joel@jms.id.au/

It will appear in v5.18 (mainline), and is backported to OpenBMC
dev-5.15.

The timeout is per-descriptor so the currently running application will
set this for chip-ops that are specified as long running in the SP to
SBE Interface Specification for P10 Systems, version 2.

After the operation is complete libpdbg will reset the timout to the
kernel's default.

Amitay Isaacs (3):
  configure: Add configure check for <linux/fsi.h>
  libsbefifo: Add long read timeout API
  libsbefifo: Set long read timeout for chip-ops

 libsbefifo/sbefifo_private.h |  2 ++
 libsbefifo/cmd_array.c       | 12 +++++++++++
 libsbefifo/cmd_control.c     |  6 ++++++
 libsbefifo/cmd_generic.c     |  6 ++++++
 libsbefifo/cmd_memory.c      | 23 ++++++++++++++++++++
 libsbefifo/cmd_mpipl.c       | 18 ++++++++++++++++
 libsbefifo/cmd_register.c    | 12 +++++++++++
 libsbefifo/cmd_ring.c        | 18 ++++++++++++++++
 libsbefifo/connect.c         | 41 ++++++++++++++++++++++++++++++++++++
 configure.ac                 |  5 +++++
 10 files changed, 143 insertions(+)

-- 
2.34.1



More information about the Pdbg mailing list