[Pdbg] [PATCH v2 0/7] Make kernel fsi driver generic

Amitay Isaacs amitay at ozlabs.org
Wed Jun 10 15:24:19 AEST 2020


Currently the kernel fsi driver only works for the primary fsi connected
to the first processor because of hard-coded paths.  Move the path definition
to device-tree, so all slave fsi devices connected to fsi hub can also be
accessed.  This avoids the need for using hmfsi driver to access slave fsi
devices.

This patchset changes the sbefifo driver to always use the kernel fsi driver
for all slave fsi devices.  However, the kernel driver still uses hmfsi driver
for all slave fsi devices.  This is intentional as on p9 systems, the kernel
is not yet updated to create /sys devices to access slave fsi devices.

V2 changes:
  - Avoid doing fsi bus scan always, instead do it only if required

Amitay Isaacs (7):
  libpdbg: Store fsi_fd state information in fsi structure
  libpdbg: Do not hard-code fsi device path
  dts: Add fsi device (relative) path for kernel fsi driver
  dts: Switch to kernel fsi driver in sbefifo backend
  libpdbg: Rescan fsi bus only once
  libpdbg: If device path does not exist, log at INFO level
  libpdbg: Drop unused definitions

 bmc-kernel.dts.m4  |  1 +
 bmc-sbefifo.dts.m4 |  4 +-
 libpdbg/dtb.c      |  2 -
 libpdbg/hwunit.h   |  1 +
 libpdbg/kernel.c   | 99 +++++++++++++++++++++++++---------------------
 5 files changed, 59 insertions(+), 48 deletions(-)

-- 
2.26.2



More information about the Pdbg mailing list