diff mbox series

[12/12] dts: Add ppe targets

Message ID 20200313011939.279770-13-amitay@ozlabs.org
State Accepted
Headers show
Series Update fapi targets in device tree | expand

Commit Message

Amitay Isaacs March 13, 2020, 1:19 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 p9.dts                            | 169 ++++++++++++++++++++++++++++++
 tests/test_p9_fapi_translation.sh |  33 +++++-
 2 files changed, 201 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/p9.dts b/p9.dts
index c4b6d1c..537a3b0 100644
--- a/p9.dts
+++ b/p9.dts
@@ -1630,6 +1630,90 @@ 
 				index = < 0x00 >;
 			};
 
+			sbe0 {
+				compatible = "ibm,power9-sbe";
+				index = < 0x00 >;
+			};
+
+			ppe0 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x00 >;
+			};
+
+			ppe1 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x0a >;
+			};
+
+			ppe2 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x0d >;
+			};
+
+			ppe3 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x14 >;
+			};
+
+			ppe4 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x19 >;
+			};
+
+			ppe5 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x1e >;
+			};
+
+			ppe6 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x28 >;
+			};
+
+			ppe7 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x29 >;
+			};
+
+			ppe8 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x2a >;
+			};
+
+			ppe9 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x2b >;
+			};
+
+			ppe10 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x2c >;
+			};
+
+			ppe11 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x2d >;
+			};
+
+			ppe12 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x2e >;
+			};
+
+			ppe13 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x32 >;
+			};
+
+			ppe14 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x34 >;
+			};
+
+			ppe15 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x38 >;
+			};
 		};
 	};
 
@@ -3260,6 +3344,91 @@ 
 				compatible = "ibm,power9-occ";
 				index = < 0x00 >;
 			};
+
+			sbe0 {
+				compatible = "ibm,power9-sbe";
+				index = < 0x00 >;
+			};
+
+			ppe0 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x00 >;
+			};
+
+			ppe1 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x0a >;
+			};
+
+			ppe2 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x0d >;
+			};
+
+			ppe3 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x14 >;
+			};
+
+			ppe4 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x19 >;
+			};
+
+			ppe5 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x1e >;
+			};
+
+			ppe6 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x28 >;
+			};
+
+			ppe7 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x29 >;
+			};
+
+			ppe8 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x2a >;
+			};
+
+			ppe9 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x2b >;
+			};
+
+			ppe10 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x2c >;
+			};
+
+			ppe11 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x2d >;
+			};
+
+			ppe12 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x2e >;
+			};
+
+			ppe13 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x32 >;
+			};
+
+			ppe14 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x34 >;
+			};
+
+			ppe15 {
+				compatible = "ibm,power9-ppe";
+				index = < 0x38 >;
+			};
 		};
 	};
 };
diff --git a/tests/test_p9_fapi_translation.sh b/tests/test_p9_fapi_translation.sh
index 11ece9a..a5a09b1 100755
--- a/tests/test_p9_fapi_translation.sh
+++ b/tests/test_p9_fapi_translation.sh
@@ -338,9 +338,40 @@  test_run libpdbg_p9_fapi_translation_test chiplet
 
 
 test_result 0 <<EOF
+Testing /proc0/pib/ppe0  0
+Testing /proc0/pib/ppe1  10
+Testing /proc0/pib/ppe2  13
+Testing /proc0/pib/ppe3  20
+Testing /proc0/pib/ppe4  25
+Testing /proc0/pib/ppe5  30
+Testing /proc0/pib/ppe6  40
+Testing /proc0/pib/ppe7  41
+Testing /proc0/pib/ppe8  42
+Testing /proc0/pib/ppe9  43
+Testing /proc0/pib/ppe10  44
+Testing /proc0/pib/ppe11  45
+Testing /proc0/pib/ppe12  46
+Testing /proc0/pib/ppe13  50
+Testing /proc0/pib/ppe14  52
+Testing /proc0/pib/ppe15  56
+Testing /proc1/pib/ppe0  0
+Testing /proc1/pib/ppe1  10
+Testing /proc1/pib/ppe2  13
+Testing /proc1/pib/ppe3  20
+Testing /proc1/pib/ppe4  25
+Testing /proc1/pib/ppe5  30
+Testing /proc1/pib/ppe6  40
+Testing /proc1/pib/ppe7  41
+Testing /proc1/pib/ppe8  42
+Testing /proc1/pib/ppe9  43
+Testing /proc1/pib/ppe10  44
+Testing /proc1/pib/ppe11  45
+Testing /proc1/pib/ppe12  46
+Testing /proc1/pib/ppe13  50
+Testing /proc1/pib/ppe14  52
+Testing /proc1/pib/ppe15  56
 EOF
 
-test_skip
 test_run libpdbg_p9_fapi_translation_test ppe