[Pdbg] [PATCH 0/7] Implement sbe fifo driver
Amitay Isaacs
amitay at ozlabs.org
Wed Apr 10 18:08:47 AEST 2019
These patches introduce sbe fifo driver for getmem/putmem. It's based on
Ben's original incomplete patches. The sbe fifo driver also parses ffdc in
case of any errors and dumps the ffdc data. It should be easy to add other
chip-ops using the infrastructure in sbefifo.c
Other related changes include:
- Convert kernel pib backend to use /dev/scom*
- Fixing bug in putmem
Do a single read of data from stdin and then do a single memory write.
This avoids the address offset error.
- Reorganize code in _putmem to be similar to _getmem
This means if we fail to write memory using one target, we can try again
with another target.
Amitay Isaacs (5):
mem: Read all the memory before call mem_write
mem: Make _putmem consistent with _getmem
libpdbg: Replace warn/err with PR_WARNING/PR_ERROR
libpdbg: Add interface to BMC kernel sbefifo driver
main: Use sbefifo first before adu for memory read/write
Benjamin Herrenschmidt (2):
target: Store "fd" for struct pib
libpdbg: Add bmc /dev/scom* backend
Makefile.am | 1 +
libpdbg/cfam.c | 1 +
libpdbg/fake.c | 1 +
libpdbg/host.c | 24 ++--
libpdbg/i2c.c | 1 +
libpdbg/kernel.c | 87 +++++++++--
libpdbg/sbefifo.c | 358 ++++++++++++++++++++++++++++++++++++++++++++++
libpdbg/target.c | 44 ++++--
libpdbg/target.h | 9 ++
p9-kernel.dts.m4 | 13 +-
src/mem.c | 118 +++++++++++----
11 files changed, 591 insertions(+), 66 deletions(-)
create mode 100644 libpdbg/sbefifo.c
--
2.20.1
More information about the Pdbg
mailing list