[Pdbg] [RFC PATCH 00/11] Add FAPI hwunits to libpdbg
Amitay Isaacs
amitay at ozlabs.org
Tue Nov 12 13:12:40 AEDT 2019
This is re-work of Alistair's original patches to add FAPI hardware units.
The system device tree for p9 is fully expanded, rather than generating using
m4. This makes it easier to add new hardware units.
Hardware units used by hardware procedures in EKB are added to libpdbg and
device tree (only for Nimbus chip). Hardware unit driver provides
consistent address translation matching that in FAPI. Tests are added to
ensure that address translation code remains consistent with EKB/FAPI.
Patches marked with SQ: can be squashed with the previous patches and are
provided for easier review.
Alistair Popple (3):
libpdbg: Add more targets to scom_addr.h
libpdbg: Add translation support for EKB targets
tests: Add tests to ensure parity with EKB address translations
Amitay Isaacs (7):
dts: Add full expanded p9 device tree
SQ: dts: Add p9 fapi targets
SQ: Remove xbus.c as xbus targets are included in p9_fapi_targets
SQ: tests: Convert the test to use device trees
tests: Add tests for address translation for p9 fapi targets
SQ: tests: Do not skip tests for fapi targets
dts: Add the missing processors in p8 system tree
Joel Stanley (1):
Add scom address helper
Makefile.am | 16 +-
configure.ac | 1 +
libpdbg/hwunit.h | 120 +
libpdbg/p9_fapi_targets.c | 652 ++++
libpdbg/p9_scom_addr.h | 302 ++
libpdbg/xbus.c | 68 -
p8.dts.m4 | 2 +
p9.dts | 3006 ++++++++++++++++++
src/tests/libpdbg_p9_fapi_translation_test.C | 112 +
src/tests/p9_cu.H | 119 +
src/tests/p9_scom_addr.H | 647 ++++
src/tests/p9_scominfo.C | 1494 +++++++++
src/tests/p9_scominfo.H | 94 +
tests/test_p9_fapi_translation.sh | 348 ++
14 files changed, 6909 insertions(+), 72 deletions(-)
create mode 100644 libpdbg/p9_fapi_targets.c
create mode 100644 libpdbg/p9_scom_addr.h
delete mode 100644 libpdbg/xbus.c
create mode 100644 p9.dts
create mode 100644 src/tests/libpdbg_p9_fapi_translation_test.C
create mode 100644 src/tests/p9_cu.H
create mode 100644 src/tests/p9_scom_addr.H
create mode 100644 src/tests/p9_scominfo.C
create mode 100644 src/tests/p9_scominfo.H
create mode 100755 tests/test_p9_fapi_translation.sh
--
2.21.0
More information about the Pdbg
mailing list