[Pdbg] [PATCH 08/12] dts: Add pec targets

Amitay Isaacs amitay at ozlabs.org
Fri Mar 13 12:19:35 AEDT 2020


Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 p9.dts                            | 48 +++++++++++++++++++++++++++++++
 tests/test_p9_fapi_translation.sh |  7 ++++-
 2 files changed, 54 insertions(+), 1 deletion(-)

diff --git a/p9.dts b/p9.dts
index b89e665..c6890ad 100644
--- a/p9.dts
+++ b/p9.dts
@@ -279,18 +279,42 @@
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0d >;
 				reg = < 0x00 0xd000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec at d000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x00 >;
+					reg = < 0x00 0xd000000 0xfffff >;
+				};
 			};
 
 			chiplet at e000000 {
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0e >;
 				reg = < 0x00 0xe000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec at e000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x01 >;
+					reg = < 0x00 0xe000000 0xfffff >;
+				};
 			};
 
 			chiplet at f000000 {
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0f >;
 				reg = < 0x00 0xf000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec at f000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x02 >;
+					reg = < 0x00 0xf000000 0xfffff >;
+				};
 			};
 
 			chiplet at 10000000 {
@@ -1856,18 +1880,42 @@
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0d >;
 				reg = < 0x00 0xd000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec at d000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x00 >;
+					reg = < 0x00 0xd000000 0xfffff >;
+				};
 			};
 
 			chiplet at e000000 {
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0e >;
 				reg = < 0x00 0xe000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec at e000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x01 >;
+					reg = < 0x00 0xe000000 0xfffff >;
+				};
 			};
 
 			chiplet at f000000 {
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0f >;
 				reg = < 0x00 0xf000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec at f000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x02 >;
+					reg = < 0x00 0xf000000 0xfffff >;
+				};
 			};
 
 			chiplet at 10000000 {
diff --git a/tests/test_p9_fapi_translation.sh b/tests/test_p9_fapi_translation.sh
index e4d8233..91dda04 100755
--- a/tests/test_p9_fapi_translation.sh
+++ b/tests/test_p9_fapi_translation.sh
@@ -135,9 +135,14 @@ test_run libpdbg_p9_fapi_translation_test nv
 
 
 test_result 0 <<EOF
+Testing /proc0/pib/chiplet at d000000/pec at d000000  0
+Testing /proc0/pib/chiplet at e000000/pec at e000000  1
+Testing /proc0/pib/chiplet at f000000/pec at f000000  2
+Testing /proc1/pib/chiplet at d000000/pec at d000000  0
+Testing /proc1/pib/chiplet at e000000/pec at e000000  1
+Testing /proc1/pib/chiplet at f000000/pec at f000000  2
 EOF
 
-test_skip
 test_run libpdbg_p9_fapi_translation_test pec
 
 
-- 
2.24.1



More information about the Pdbg mailing list