[Pdbg] [PATCH 00/19] Add sbefifo backend

Amitay Isaacs amitay at ozlabs.org
Thu Feb 27 12:06:45 AEDT 2020


For openbmc, all the hardware access is required to go via sbefifo.
Currently some of the operations are hacked in to go via sbefifo.
This patchset removes temporary hacks and adds infrastructure to create
sbefifo backend.

Also fix couple of bugs in libsbefifo.

Amitay Isaacs (19):
  libsbefifo: Fix compilation error for undefined variable
  libsbefifo: Use the correct sized pointer
  libpdbg: Add an api to get current backend
  libpdbg: Register hwunit drivers per backend
  libpdbg: Register fsi drivers with fsi backend
  libpdbg: Register i2c driver with i2c backend
  libpdbg: Register fake drivers with fake backend
  libpdbg: Register host drivers with host backend
  libpdbg: Register cronus drivers with cronus backend
  libpdbg: Add pib driver using sbefifo
  libpdbg: Add chiplet driver using sbefifo
  libpdbg: Add core driver using sbefifo
  libpdbg: Add thread driver using sbefifo
  libpdbg: Add all thread procedures to pib target
  libpdbg: Implement all thread procedures using sbefifo
  libpdbg: Remove special case thread procedures using sbefifo
  libpdbg: Drop thread procedures from chipop target
  libpdbg: Add sbefifo backend
  main: Add sbefifo backend

 Makefile.am               |   1 +
 libpdbg/adu.c             |   4 +-
 libpdbg/bmcfsi.c          |   2 +-
 libpdbg/cfam.c            |   8 +-
 libpdbg/chip.c            |  60 ++--
 libpdbg/cronus.c          |   6 +-
 libpdbg/dtb.c             |  24 ++
 libpdbg/fake.c            |   8 +-
 libpdbg/host.c            |   2 +-
 libpdbg/htm.c             |   6 +-
 libpdbg/hwunit.c          |  31 +-
 libpdbg/hwunit.h          |  10 +-
 libpdbg/i2c.c             |   2 +-
 libpdbg/kernel.c          |   4 +-
 libpdbg/libpdbg.h         |   7 +-
 libpdbg/p8chip.c          |   4 +-
 libpdbg/p9_fapi_targets.c |  48 +--
 libpdbg/p9chip.c          |   6 +-
 libpdbg/sbefifo.c         | 181 +++++++++--
 libpdbg/target.h          |   1 +
 libsbefifo/cmd_scom.c     |   4 +-
 libsbefifo/operation.c    |   5 +-
 p9-sbefifo.dts.m4         |  86 +++++
 p9.dts                    | 654 +++++++++++++++++++-------------------
 src/main.c                |   3 +
 25 files changed, 705 insertions(+), 462 deletions(-)
 create mode 100644 p9-sbefifo.dts.m4

-- 
2.24.1



More information about the Pdbg mailing list