mbox series

[v3,0/2] fsi: sbefifo: Add userspace timeout control

Message ID 20220121053816.82253-1-joel@jms.id.au
Headers show
Series fsi: sbefifo: Add userspace timeout control | expand

Message

Joel Stanley Jan. 21, 2022, 5:38 a.m. UTC
Certain SBE operations (e.g. collecting trace information from processors)
can take long time (> 10 seconds) to finish before SBE can respond.
Such operations will currently timeout due to the default response
timeout of 10 seconds.  This patchset allows users to set a longer timeout
using ioctl on the sbefifo device fd, before issuing SBE operations that
are likely to take longer.

The userspace that interacts with the sbefifo character device is
libpdbg. An example use of the ioctl is in this branch:

 https://github.com/amitay/pdbg/commits/ioctl

v3:
 Take over from Amitay
 Clarify use case in commit message
 Link to userspace implementation in cover letter

Amitay Isaacs (2):
  fsi: sbefifo: Use specified value of start of response timeout
  fsi: sbefifo: Implement FSI_SBEFIFO_READ_TIMEOUT_SECONDS ioctl

 drivers/fsi/fsi-sbefifo.c | 53 ++++++++++++++++++++++++++++++++++++++-
 include/uapi/linux/fsi.h  | 14 +++++++++++
 2 files changed, 66 insertions(+), 1 deletion(-)