[Pdbg] [RFC PATCH 09/11] tests: Add tests for address translation for p9 fapi targets
Amitay Isaacs
amitay at ozlabs.org
Tue Nov 12 13:12:49 AEDT 2019
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
Makefile.am | 3 +-
tests/test_p9_fapi_translation.sh | 327 ++++++++++++++++++++++++++++++
2 files changed, 329 insertions(+), 1 deletion(-)
create mode 100755 tests/test_p9_fapi_translation.sh
diff --git a/Makefile.am b/Makefile.am
index 5ab64e5..8c5c629 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,7 +25,8 @@ PDBG_TESTS = \
tests/test_hw_bmc.sh \
tests/test_hexdump.sh \
tests/test_tree.sh \
- tests/test_tree2.sh
+ tests/test_tree2.sh \
+ tests/test_p9_fapi_translation.sh
TESTS = $(libpdbg_tests) optcmd_test $(PDBG_TESTS)
diff --git a/tests/test_p9_fapi_translation.sh b/tests/test_p9_fapi_translation.sh
new file mode 100755
index 0000000..f87108e
--- /dev/null
+++ b/tests/test_p9_fapi_translation.sh
@@ -0,0 +1,327 @@
+#!/bin/sh
+
+. $(dirname "$0")/driver.sh
+
+test_group "p9 fapi translation tests"
+
+export PDBG_BACKEND_DTB=p9-kernel.dtb
+export PDBG_DTB=p9.dtb
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 10000000/eq at 0/ex at 0/chiplet at 20000000/core at 0 0
+Testing /proc0/pib/chiplet at 10000000/eq at 0/ex at 0/chiplet at 21000000/core at 0 1
+Testing /proc0/pib/chiplet at 10000000/eq at 0/ex at 1/chiplet at 22000000/core at 0 2
+Testing /proc0/pib/chiplet at 10000000/eq at 0/ex at 1/chiplet at 23000000/core at 0 3
+Testing /proc0/pib/chiplet at 11000000/eq at 1/ex at 0/chiplet at 24000000/core at 0 4
+Testing /proc0/pib/chiplet at 11000000/eq at 1/ex at 0/chiplet at 25000000/core at 0 5
+Testing /proc0/pib/chiplet at 11000000/eq at 1/ex at 1/chiplet at 26000000/core at 0 6
+Testing /proc0/pib/chiplet at 11000000/eq at 1/ex at 1/chiplet at 27000000/core at 0 7
+Testing /proc0/pib/chiplet at 12000000/eq at 2/ex at 0/chiplet at 28000000/core at 0 8
+Testing /proc0/pib/chiplet at 12000000/eq at 2/ex at 0/chiplet at 29000000/core at 0 9
+Testing /proc0/pib/chiplet at 12000000/eq at 2/ex at 1/chiplet at 2a000000/core at 0 10
+Testing /proc0/pib/chiplet at 12000000/eq at 2/ex at 1/chiplet at 2b000000/core at 0 11
+Testing /proc0/pib/chiplet at 13000000/eq at 3/ex at 0/chiplet at 2c000000/core at 0 12
+Testing /proc0/pib/chiplet at 13000000/eq at 3/ex at 0/chiplet at 2d000000/core at 0 13
+Testing /proc0/pib/chiplet at 13000000/eq at 3/ex at 1/chiplet at 2e000000/core at 0 14
+Testing /proc0/pib/chiplet at 13000000/eq at 3/ex at 1/chiplet at 2f000000/core at 0 15
+Testing /proc0/pib/chiplet at 14000000/eq at 4/ex at 0/chiplet at 30000000/core at 0 16
+Testing /proc0/pib/chiplet at 14000000/eq at 4/ex at 0/chiplet at 31000000/core at 0 17
+Testing /proc0/pib/chiplet at 14000000/eq at 4/ex at 1/chiplet at 32000000/core at 0 18
+Testing /proc0/pib/chiplet at 14000000/eq at 4/ex at 1/chiplet at 33000000/core at 0 19
+Testing /proc0/pib/chiplet at 15000000/eq at 5/ex at 0/chiplet at 34000000/core at 0 20
+Testing /proc0/pib/chiplet at 15000000/eq at 5/ex at 0/chiplet at 35000000/core at 0 21
+Testing /proc0/pib/chiplet at 15000000/eq at 5/ex at 1/chiplet at 36000000/core at 0 22
+Testing /proc0/pib/chiplet at 15000000/eq at 5/ex at 1/chiplet at 37000000/core at 0 23
+Testing /proc1/pib/chiplet at 10000000/eq at 0/ex at 0/chiplet at 20000000/core at 0 0
+Testing /proc1/pib/chiplet at 10000000/eq at 0/ex at 0/chiplet at 21000000/core at 0 1
+Testing /proc1/pib/chiplet at 10000000/eq at 0/ex at 1/chiplet at 22000000/core at 0 2
+Testing /proc1/pib/chiplet at 10000000/eq at 0/ex at 1/chiplet at 23000000/core at 0 3
+Testing /proc1/pib/chiplet at 11000000/eq at 1/ex at 0/chiplet at 24000000/core at 0 4
+Testing /proc1/pib/chiplet at 11000000/eq at 1/ex at 0/chiplet at 25000000/core at 0 5
+Testing /proc1/pib/chiplet at 11000000/eq at 1/ex at 1/chiplet at 26000000/core at 0 6
+Testing /proc1/pib/chiplet at 11000000/eq at 1/ex at 1/chiplet at 27000000/core at 0 7
+Testing /proc1/pib/chiplet at 12000000/eq at 2/ex at 0/chiplet at 28000000/core at 0 8
+Testing /proc1/pib/chiplet at 12000000/eq at 2/ex at 0/chiplet at 29000000/core at 0 9
+Testing /proc1/pib/chiplet at 12000000/eq at 2/ex at 1/chiplet at 2a000000/core at 0 10
+Testing /proc1/pib/chiplet at 12000000/eq at 2/ex at 1/chiplet at 2b000000/core at 0 11
+Testing /proc1/pib/chiplet at 13000000/eq at 3/ex at 0/chiplet at 2c000000/core at 0 12
+Testing /proc1/pib/chiplet at 13000000/eq at 3/ex at 0/chiplet at 2d000000/core at 0 13
+Testing /proc1/pib/chiplet at 13000000/eq at 3/ex at 1/chiplet at 2e000000/core at 0 14
+Testing /proc1/pib/chiplet at 13000000/eq at 3/ex at 1/chiplet at 2f000000/core at 0 15
+Testing /proc1/pib/chiplet at 14000000/eq at 4/ex at 0/chiplet at 30000000/core at 0 16
+Testing /proc1/pib/chiplet at 14000000/eq at 4/ex at 0/chiplet at 31000000/core at 0 17
+Testing /proc1/pib/chiplet at 14000000/eq at 4/ex at 1/chiplet at 32000000/core at 0 18
+Testing /proc1/pib/chiplet at 14000000/eq at 4/ex at 1/chiplet at 33000000/core at 0 19
+Testing /proc1/pib/chiplet at 15000000/eq at 5/ex at 0/chiplet at 34000000/core at 0 20
+Testing /proc1/pib/chiplet at 15000000/eq at 5/ex at 0/chiplet at 35000000/core at 0 21
+Testing /proc1/pib/chiplet at 15000000/eq at 5/ex at 1/chiplet at 36000000/core at 0 22
+Testing /proc1/pib/chiplet at 15000000/eq at 5/ex at 1/chiplet at 37000000/core at 0 23
+EOF
+
+test_run libpdbg_p9_fapi_translation_test core
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 10000000/eq at 0 0
+Testing /proc0/pib/chiplet at 11000000/eq at 1 1
+Testing /proc0/pib/chiplet at 12000000/eq at 2 2
+Testing /proc0/pib/chiplet at 13000000/eq at 3 3
+Testing /proc0/pib/chiplet at 14000000/eq at 4 4
+Testing /proc0/pib/chiplet at 15000000/eq at 5 5
+Testing /proc1/pib/chiplet at 10000000/eq at 0 0
+Testing /proc1/pib/chiplet at 11000000/eq at 1 1
+Testing /proc1/pib/chiplet at 12000000/eq at 2 2
+Testing /proc1/pib/chiplet at 13000000/eq at 3 3
+Testing /proc1/pib/chiplet at 14000000/eq at 4 4
+Testing /proc1/pib/chiplet at 15000000/eq at 5 5
+EOF
+
+test_run libpdbg_p9_fapi_translation_test eq
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 10000000/eq at 0/ex at 0 0
+Testing /proc0/pib/chiplet at 10000000/eq at 0/ex at 1 1
+Testing /proc0/pib/chiplet at 11000000/eq at 1/ex at 0 0
+Testing /proc0/pib/chiplet at 11000000/eq at 1/ex at 1 1
+Testing /proc0/pib/chiplet at 12000000/eq at 2/ex at 0 0
+Testing /proc0/pib/chiplet at 12000000/eq at 2/ex at 1 1
+Testing /proc0/pib/chiplet at 13000000/eq at 3/ex at 0 0
+Testing /proc0/pib/chiplet at 13000000/eq at 3/ex at 1 1
+Testing /proc0/pib/chiplet at 14000000/eq at 4/ex at 0 0
+Testing /proc0/pib/chiplet at 14000000/eq at 4/ex at 1 1
+Testing /proc0/pib/chiplet at 15000000/eq at 5/ex at 0 0
+Testing /proc0/pib/chiplet at 15000000/eq at 5/ex at 1 1
+Testing /proc1/pib/chiplet at 10000000/eq at 0/ex at 0 0
+Testing /proc1/pib/chiplet at 10000000/eq at 0/ex at 1 1
+Testing /proc1/pib/chiplet at 11000000/eq at 1/ex at 0 0
+Testing /proc1/pib/chiplet at 11000000/eq at 1/ex at 1 1
+Testing /proc1/pib/chiplet at 12000000/eq at 2/ex at 0 0
+Testing /proc1/pib/chiplet at 12000000/eq at 2/ex at 1 1
+Testing /proc1/pib/chiplet at 13000000/eq at 3/ex at 0 0
+Testing /proc1/pib/chiplet at 13000000/eq at 3/ex at 1 1
+Testing /proc1/pib/chiplet at 14000000/eq at 4/ex at 0 0
+Testing /proc1/pib/chiplet at 14000000/eq at 4/ex at 1 1
+Testing /proc1/pib/chiplet at 15000000/eq at 5/ex at 0 0
+Testing /proc1/pib/chiplet at 15000000/eq at 5/ex at 1 1
+EOF
+
+test_run libpdbg_p9_fapi_translation_test ex
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 6000000/xbus at 0 0
+Testing /proc1/pib/chiplet at 6000000/xbus at 0 0
+EOF
+
+test_run libpdbg_p9_fapi_translation_test xbus
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 9000000/obus at 0 0
+Testing /proc0/pib/chiplet at c000000/obus at 3 3
+Testing /proc1/pib/chiplet at 9000000/obus at 0 0
+Testing /proc1/pib/chiplet at c000000/obus at 3 3
+EOF
+
+test_run libpdbg_p9_fapi_translation_test obus
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test nv
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test pec
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test phb
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test mi
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test dmi
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test mcc
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test omic
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test omi
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test mcs
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test mca
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test mcbist
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 1000000 1
+Testing /proc0/pib/chiplet at 2000000 2
+Testing /proc0/pib/chiplet at 3000000 3
+Testing /proc0/pib/chiplet at 4000000 4
+Testing /proc0/pib/chiplet at 5000000 5
+Testing /proc0/pib/chiplet at 6000000 6
+Testing /proc0/pib/chiplet at 7000000 7
+Testing /proc0/pib/chiplet at 8000000 8
+Testing /proc0/pib/chiplet at 9000000 9
+Testing /proc0/pib/chiplet at c000000 12
+Testing /proc0/pib/chiplet at d000000 13
+Testing /proc0/pib/chiplet at e000000 14
+Testing /proc0/pib/chiplet at f000000 15
+Testing /proc0/pib/chiplet at 10000000 16
+Testing /proc0/pib/chiplet at 10000000/eq at 0/ex at 0/chiplet at 20000000 32
+Testing /proc0/pib/chiplet at 10000000/eq at 0/ex at 0/chiplet at 21000000 33
+Testing /proc0/pib/chiplet at 10000000/eq at 0/ex at 1/chiplet at 22000000 34
+Testing /proc0/pib/chiplet at 10000000/eq at 0/ex at 1/chiplet at 23000000 35
+Testing /proc0/pib/chiplet at 11000000 17
+Testing /proc0/pib/chiplet at 11000000/eq at 1/ex at 0/chiplet at 24000000 36
+Testing /proc0/pib/chiplet at 11000000/eq at 1/ex at 0/chiplet at 25000000 37
+Testing /proc0/pib/chiplet at 11000000/eq at 1/ex at 1/chiplet at 26000000 38
+Testing /proc0/pib/chiplet at 11000000/eq at 1/ex at 1/chiplet at 27000000 39
+Testing /proc0/pib/chiplet at 12000000 18
+Testing /proc0/pib/chiplet at 12000000/eq at 2/ex at 0/chiplet at 28000000 40
+Testing /proc0/pib/chiplet at 12000000/eq at 2/ex at 0/chiplet at 29000000 41
+Testing /proc0/pib/chiplet at 12000000/eq at 2/ex at 1/chiplet at 2a000000 42
+Testing /proc0/pib/chiplet at 12000000/eq at 2/ex at 1/chiplet at 2b000000 43
+Testing /proc0/pib/chiplet at 13000000 19
+Testing /proc0/pib/chiplet at 13000000/eq at 3/ex at 0/chiplet at 2c000000 44
+Testing /proc0/pib/chiplet at 13000000/eq at 3/ex at 0/chiplet at 2d000000 45
+Testing /proc0/pib/chiplet at 13000000/eq at 3/ex at 1/chiplet at 2e000000 46
+Testing /proc0/pib/chiplet at 13000000/eq at 3/ex at 1/chiplet at 2f000000 47
+Testing /proc0/pib/chiplet at 14000000 20
+Testing /proc0/pib/chiplet at 14000000/eq at 4/ex at 0/chiplet at 30000000 48
+Testing /proc0/pib/chiplet at 14000000/eq at 4/ex at 0/chiplet at 31000000 49
+Testing /proc0/pib/chiplet at 14000000/eq at 4/ex at 1/chiplet at 32000000 50
+Testing /proc0/pib/chiplet at 14000000/eq at 4/ex at 1/chiplet at 33000000 51
+Testing /proc0/pib/chiplet at 15000000 21
+Testing /proc0/pib/chiplet at 15000000/eq at 5/ex at 0/chiplet at 34000000 52
+Testing /proc0/pib/chiplet at 15000000/eq at 5/ex at 0/chiplet at 35000000 53
+Testing /proc0/pib/chiplet at 15000000/eq at 5/ex at 1/chiplet at 36000000 54
+Testing /proc0/pib/chiplet at 15000000/eq at 5/ex at 1/chiplet at 37000000 55
+Testing /proc1/pib/chiplet at 1000000 1
+Testing /proc1/pib/chiplet at 2000000 2
+Testing /proc1/pib/chiplet at 3000000 3
+Testing /proc1/pib/chiplet at 4000000 4
+Testing /proc1/pib/chiplet at 5000000 5
+Testing /proc1/pib/chiplet at 6000000 6
+Testing /proc1/pib/chiplet at 7000000 7
+Testing /proc1/pib/chiplet at 8000000 8
+Testing /proc1/pib/chiplet at 9000000 9
+Testing /proc1/pib/chiplet at c000000 12
+Testing /proc1/pib/chiplet at d000000 13
+Testing /proc1/pib/chiplet at e000000 14
+Testing /proc1/pib/chiplet at f000000 15
+Testing /proc1/pib/chiplet at 10000000 16
+Testing /proc1/pib/chiplet at 10000000/eq at 0/ex at 0/chiplet at 20000000 32
+Testing /proc1/pib/chiplet at 10000000/eq at 0/ex at 0/chiplet at 21000000 33
+Testing /proc1/pib/chiplet at 10000000/eq at 0/ex at 1/chiplet at 22000000 34
+Testing /proc1/pib/chiplet at 10000000/eq at 0/ex at 1/chiplet at 23000000 35
+Testing /proc1/pib/chiplet at 11000000 17
+Testing /proc1/pib/chiplet at 11000000/eq at 1/ex at 0/chiplet at 24000000 36
+Testing /proc1/pib/chiplet at 11000000/eq at 1/ex at 0/chiplet at 25000000 37
+Testing /proc1/pib/chiplet at 11000000/eq at 1/ex at 1/chiplet at 26000000 38
+Testing /proc1/pib/chiplet at 11000000/eq at 1/ex at 1/chiplet at 27000000 39
+Testing /proc1/pib/chiplet at 12000000 18
+Testing /proc1/pib/chiplet at 12000000/eq at 2/ex at 0/chiplet at 28000000 40
+Testing /proc1/pib/chiplet at 12000000/eq at 2/ex at 0/chiplet at 29000000 41
+Testing /proc1/pib/chiplet at 12000000/eq at 2/ex at 1/chiplet at 2a000000 42
+Testing /proc1/pib/chiplet at 12000000/eq at 2/ex at 1/chiplet at 2b000000 43
+Testing /proc1/pib/chiplet at 13000000 19
+Testing /proc1/pib/chiplet at 13000000/eq at 3/ex at 0/chiplet at 2c000000 44
+Testing /proc1/pib/chiplet at 13000000/eq at 3/ex at 0/chiplet at 2d000000 45
+Testing /proc1/pib/chiplet at 13000000/eq at 3/ex at 1/chiplet at 2e000000 46
+Testing /proc1/pib/chiplet at 13000000/eq at 3/ex at 1/chiplet at 2f000000 47
+Testing /proc1/pib/chiplet at 14000000 20
+Testing /proc1/pib/chiplet at 14000000/eq at 4/ex at 0/chiplet at 30000000 48
+Testing /proc1/pib/chiplet at 14000000/eq at 4/ex at 0/chiplet at 31000000 49
+Testing /proc1/pib/chiplet at 14000000/eq at 4/ex at 1/chiplet at 32000000 50
+Testing /proc1/pib/chiplet at 14000000/eq at 4/ex at 1/chiplet at 33000000 51
+Testing /proc1/pib/chiplet at 15000000 21
+Testing /proc1/pib/chiplet at 15000000/eq at 5/ex at 0/chiplet at 34000000 52
+Testing /proc1/pib/chiplet at 15000000/eq at 5/ex at 0/chiplet at 35000000 53
+Testing /proc1/pib/chiplet at 15000000/eq at 5/ex at 1/chiplet at 36000000 54
+Testing /proc1/pib/chiplet at 15000000/eq at 5/ex at 1/chiplet at 37000000 55
+EOF
+
+test_run libpdbg_p9_fapi_translation_test chiplet
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test ppe
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test sbe
+
+
+test_result 0 <<EOF
+EOF
+
+test_skip
+test_run libpdbg_p9_fapi_translation_test capp
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 7000000/mc at 0 0
+Testing /proc0/pib/chiplet at 8000000/mc at 1 1
+Testing /proc1/pib/chiplet at 7000000/mc at 0 0
+Testing /proc1/pib/chiplet at 8000000/mc at 1 1
+EOF
+
+test_run libpdbg_p9_fapi_translation_test mc
--
2.21.0
More information about the Pdbg
mailing list