[Pdbg] [PATCH v2 08/20] tests: Add P10 address translation tests wrapper
Amitay Isaacs
amitay at ozlabs.org
Thu Oct 1 17:08:02 AEST 2020
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
Makefile.am | 4 +-
tests/test_p10_fapi_translation.sh | 206 +++++++++++++++++++++++++++++
2 files changed, 209 insertions(+), 1 deletion(-)
create mode 100755 tests/test_p10_fapi_translation.sh
diff --git a/Makefile.am b/Makefile.am
index ceeadb9..d902863 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,13 +32,15 @@ PDBG_TESTS = \
tests/test_attr_array.sh \
tests/test_attr_packed.sh \
tests/test_traverse.sh \
- tests/test_p9_fapi_translation.sh
+ tests/test_p9_fapi_translation.sh \
+ tests/test_p10_fapi_translation.sh
TESTS = $(libpdbg_tests) optcmd_test $(PDBG_TESTS)
tests/test_tree2.sh: fake2.dtb fake2-backend.dtb
tests/test_prop.sh: fake.dtb fake-backend.dtb
tests/test_p9_fapi_translation.sh: p9.dtb bmc-kernel.dtb
+tests/test_p10_fapi_translation.sh: p10.dtb bmc-kernel.dtb
test: $(libpdbg_tests)
diff --git a/tests/test_p10_fapi_translation.sh b/tests/test_p10_fapi_translation.sh
new file mode 100755
index 0000000..5e58ccb
--- /dev/null
+++ b/tests/test_p10_fapi_translation.sh
@@ -0,0 +1,206 @@
+#!/bin/sh
+
+. $(dirname "$0")/driver.sh
+
+test_group "p10 fapi translation tests"
+
+export PDBG_BACKEND_DTB=bmc-kernel.dtb
+export PDBG_DTB=p10.dtb
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 20000000/eq at 0/fc at 0/core at 0 0
+Testing /proc0/pib/chiplet at 20000000/eq at 0/fc at 0/core at 1 1
+Testing /proc0/pib/chiplet at 20000000/eq at 0/fc at 1/core at 0 2
+Testing /proc0/pib/chiplet at 20000000/eq at 0/fc at 1/core at 1 3
+Testing /proc0/pib/chiplet at 21000000/eq at 1/fc at 0/core at 0 4
+Testing /proc0/pib/chiplet at 21000000/eq at 1/fc at 0/core at 1 5
+Testing /proc0/pib/chiplet at 21000000/eq at 1/fc at 1/core at 0 6
+Testing /proc0/pib/chiplet at 21000000/eq at 1/fc at 1/core at 1 7
+Testing /proc0/pib/chiplet at 22000000/eq at 2/fc at 0/core at 0 8
+Testing /proc0/pib/chiplet at 22000000/eq at 2/fc at 0/core at 1 9
+Testing /proc0/pib/chiplet at 22000000/eq at 2/fc at 1/core at 0 10
+Testing /proc0/pib/chiplet at 22000000/eq at 2/fc at 1/core at 1 11
+Testing /proc0/pib/chiplet at 23000000/eq at 3/fc at 0/core at 0 12
+Testing /proc0/pib/chiplet at 23000000/eq at 3/fc at 0/core at 1 13
+Testing /proc0/pib/chiplet at 23000000/eq at 3/fc at 1/core at 0 14
+Testing /proc0/pib/chiplet at 23000000/eq at 3/fc at 1/core at 1 15
+Testing /proc0/pib/chiplet at 24000000/eq at 4/fc at 0/core at 0 16
+Testing /proc0/pib/chiplet at 24000000/eq at 4/fc at 0/core at 1 17
+Testing /proc0/pib/chiplet at 24000000/eq at 4/fc at 1/core at 0 18
+Testing /proc0/pib/chiplet at 24000000/eq at 4/fc at 1/core at 1 19
+Testing /proc0/pib/chiplet at 25000000/eq at 5/fc at 0/core at 0 20
+Testing /proc0/pib/chiplet at 25000000/eq at 5/fc at 0/core at 1 21
+Testing /proc0/pib/chiplet at 25000000/eq at 5/fc at 1/core at 0 22
+Testing /proc0/pib/chiplet at 25000000/eq at 5/fc at 1/core at 1 23
+Testing /proc0/pib/chiplet at 26000000/eq at 6/fc at 0/core at 0 24
+Testing /proc0/pib/chiplet at 26000000/eq at 6/fc at 0/core at 1 25
+Testing /proc0/pib/chiplet at 26000000/eq at 6/fc at 1/core at 0 26
+Testing /proc0/pib/chiplet at 26000000/eq at 6/fc at 1/core at 1 27
+Testing /proc0/pib/chiplet at 27000000/eq at 7/fc at 0/core at 0 28
+Testing /proc0/pib/chiplet at 27000000/eq at 7/fc at 0/core at 1 29
+Testing /proc0/pib/chiplet at 27000000/eq at 7/fc at 1/core at 0 30
+Testing /proc0/pib/chiplet at 27000000/eq at 7/fc at 1/core at 1 31
+EOF
+
+test_run libpdbg_p10_fapi_translation_test core
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 20000000/eq at 0 0
+Testing /proc0/pib/chiplet at 21000000/eq at 1 1
+Testing /proc0/pib/chiplet at 22000000/eq at 2 2
+Testing /proc0/pib/chiplet at 23000000/eq at 3 3
+Testing /proc0/pib/chiplet at 24000000/eq at 4 4
+Testing /proc0/pib/chiplet at 25000000/eq at 5 5
+Testing /proc0/pib/chiplet at 26000000/eq at 6 6
+Testing /proc0/pib/chiplet at 27000000/eq at 7 7
+EOF
+
+test_run libpdbg_p10_fapi_translation_test eq
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 8000000/pec at 0 0
+Testing /proc0/pib/chiplet at 9000000/pec at 1 1
+EOF
+
+test_run libpdbg_p10_fapi_translation_test pec
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 8000000/pec at 0/phb at 0 0
+Testing /proc0/pib/chiplet at 8000000/pec at 0/phb at 1 1
+Testing /proc0/pib/chiplet at 8000000/pec at 0/phb at 2 2
+Testing /proc0/pib/chiplet at 9000000/pec at 1/phb at 0 3
+Testing /proc0/pib/chiplet at 9000000/pec at 1/phb at 1 4
+Testing /proc0/pib/chiplet at 9000000/pec at 1/phb at 2 5
+EOF
+
+test_run libpdbg_p10_fapi_translation_test phb
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at c000000/mc at 0/mi at 0 0
+Testing /proc0/pib/chiplet at d000000/mc at 1/mi at 1 1
+Testing /proc0/pib/chiplet at e000000/mc at 2/mi at 2 2
+Testing /proc0/pib/chiplet at f000000/mc at 3/mi at 3 3
+EOF
+
+test_run libpdbg_p10_fapi_translation_test mi
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at c000000/mc at 0/mi at 0/mcc at 0 0
+Testing /proc0/pib/chiplet at c000000/mc at 0/mi at 0/mcc at 1 1
+Testing /proc0/pib/chiplet at d000000/mc at 1/mi at 1/mcc at 0 2
+Testing /proc0/pib/chiplet at d000000/mc at 1/mi at 1/mcc at 1 3
+Testing /proc0/pib/chiplet at e000000/mc at 2/mi at 2/mcc at 0 4
+Testing /proc0/pib/chiplet at e000000/mc at 2/mi at 2/mcc at 1 5
+Testing /proc0/pib/chiplet at f000000/mc at 3/mi at 3/mcc at 0 6
+Testing /proc0/pib/chiplet at f000000/mc at 3/mi at 3/mcc at 1 7
+EOF
+
+test_run libpdbg_p10_fapi_translation_test mcc
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at c000000/mc at 0/omic at 0 0
+Testing /proc0/pib/chiplet at c000000/mc at 0/omic at 1 1
+Testing /proc0/pib/chiplet at d000000/mc at 1/omic at 2 2
+Testing /proc0/pib/chiplet at d000000/mc at 1/omic at 3 3
+Testing /proc0/pib/chiplet at e000000/mc at 2/omic at 4 4
+Testing /proc0/pib/chiplet at e000000/mc at 2/omic at 5 5
+Testing /proc0/pib/chiplet at f000000/mc at 3/omic at 6 6
+Testing /proc0/pib/chiplet at f000000/mc at 3/omic at 7 7
+EOF
+
+test_run libpdbg_p10_fapi_translation_test omic
+
+
+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 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 11000000 17
+Testing /proc0/pib/chiplet at 12000000 18
+Testing /proc0/pib/chiplet at 13000000 19
+Testing /proc0/pib/chiplet at 18000000 24
+Testing /proc0/pib/chiplet at 19000000 25
+Testing /proc0/pib/chiplet at 1a000000 26
+Testing /proc0/pib/chiplet at 1b000000 27
+Testing /proc0/pib/chiplet at 1c000000 28
+Testing /proc0/pib/chiplet at 1d000000 29
+Testing /proc0/pib/chiplet at 1e000000 30
+Testing /proc0/pib/chiplet at 1f000000 31
+Testing /proc0/pib/chiplet at 20000000 32
+Testing /proc0/pib/chiplet at 21000000 33
+Testing /proc0/pib/chiplet at 22000000 34
+Testing /proc0/pib/chiplet at 23000000 35
+Testing /proc0/pib/chiplet at 24000000 36
+Testing /proc0/pib/chiplet at 25000000 37
+Testing /proc0/pib/chiplet at 26000000 38
+Testing /proc0/pib/chiplet at 27000000 39
+EOF
+
+test_run libpdbg_p10_fapi_translation_test chiplet
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at c000000/mc at 0 0
+Testing /proc0/pib/chiplet at d000000/mc at 1 1
+Testing /proc0/pib/chiplet at e000000/mc at 2 2
+Testing /proc0/pib/chiplet at f000000/mc at 3 3
+EOF
+
+test_run libpdbg_p10_fapi_translation_test mc
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 2000000/nmmu at 0 0
+Testing /proc0/pib/chiplet at 3000000/nmmu at 1 1
+EOF
+
+test_run libpdbg_p10_fapi_translation_test nmmu
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 18000000/iohs at 0 0
+Testing /proc0/pib/chiplet at 19000000/iohs at 1 1
+Testing /proc0/pib/chiplet at 1a000000/iohs at 2 2
+Testing /proc0/pib/chiplet at 1b000000/iohs at 3 3
+Testing /proc0/pib/chiplet at 1c000000/iohs at 4 4
+Testing /proc0/pib/chiplet at 1d000000/iohs at 5 5
+Testing /proc0/pib/chiplet at 1e000000/iohs at 6 6
+Testing /proc0/pib/chiplet at 1f000000/iohs at 7 7
+EOF
+
+test_run libpdbg_p10_fapi_translation_test iohs
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 10000000/pauc at 0/pau at 0 0
+Testing /proc0/pib/chiplet at 11000000/pauc at 1/pau at 3 3
+Testing /proc0/pib/chiplet at 12000000/pauc at 2/pau at 4 4
+Testing /proc0/pib/chiplet at 12000000/pauc at 2/pau at 5 5
+Testing /proc0/pib/chiplet at 13000000/pauc at 3/pau at 6 6
+Testing /proc0/pib/chiplet at 13000000/pauc at 3/pau at 7 7
+EOF
+
+test_run libpdbg_p10_fapi_translation_test pau
+
+
+test_result 0 <<EOF
+Testing /proc0/pib/chiplet at 10000000/pauc at 0 0
+Testing /proc0/pib/chiplet at 11000000/pauc at 1 1
+Testing /proc0/pib/chiplet at 12000000/pauc at 2 2
+Testing /proc0/pib/chiplet at 13000000/pauc at 3 3
+EOF
+
+test_run libpdbg_p10_fapi_translation_test pauc
--
2.26.2
More information about the Pdbg
mailing list