mbox series

[v2,00/19] Add sbefifo backend

Message ID 20200407061613.21325-1-amitay@ozlabs.org
Headers show
Series Add sbefifo backend | expand

Message

Amitay Isaacs April 7, 2020, 6:15 a.m. UTC
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.

V2 changes:
  - Rebased on top of latest master
    (resolved conflicts and add missing code due to upstream changes)

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            |  62 ++--
 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 |  52 +--
 libpdbg/p9chip.c          |   4 +-
 libpdbg/sbefifo.c         | 181 +++++++++--
 libpdbg/target.h          |   1 +
 libsbefifo/cmd_scom.c     |   4 +-
 libsbefifo/operation.c    |   5 +-
 p9-sbefifo.dts.m4         |  86 +++++
 p9.dts                    | 652 +++++++++++++++++++-------------------
 src/main.c                |   3 +
 25 files changed, 706 insertions(+), 463 deletions(-)
 create mode 100644 p9-sbefifo.dts.m4