[Pdbg] [PATCH 09/12] dts: Add phb targets

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


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

diff --git a/p9.dts b/p9.dts
index c6890ad..8281fe3 100644
--- a/p9.dts
+++ b/p9.dts
@@ -287,6 +287,16 @@
 					index = < 0x00 >;
 					reg = < 0x00 0xd000000 0xfffff >;
 				};
+
+				phb0 {
+					compatible = "ibm,power9-phb";
+					index = < 0x00 >;
+				};
+
+				phb1 {
+					compatible = "ibm,power9-phb";
+					index = < 0x01 >;
+				};
 			};
 
 			chiplet at e000000 {
@@ -301,6 +311,16 @@
 					index = < 0x01 >;
 					reg = < 0x00 0xe000000 0xfffff >;
 				};
+
+				phb0 {
+					compatible = "ibm,power9-phb";
+					index = < 0x02 >;
+				};
+
+				phb1 {
+					compatible = "ibm,power9-phb";
+					index = < 0x03 >;
+				};
 			};
 
 			chiplet at f000000 {
@@ -315,6 +335,16 @@
 					index = < 0x02 >;
 					reg = < 0x00 0xf000000 0xfffff >;
 				};
+
+				phb0 {
+					compatible = "ibm,power9-phb";
+					index = < 0x04 >;
+				};
+
+				phb1 {
+					compatible = "ibm,power9-phb";
+					index = < 0x05 >;
+				};
 			};
 
 			chiplet at 10000000 {
@@ -1888,6 +1918,16 @@
 					index = < 0x00 >;
 					reg = < 0x00 0xd000000 0xfffff >;
 				};
+
+				phb0 {
+					compatible = "ibm,power9-phb";
+					index = < 0x00 >;
+				};
+
+				phb1 {
+					compatible = "ibm,power9-phb";
+					index = < 0x01 >;
+				};
 			};
 
 			chiplet at e000000 {
@@ -1902,6 +1942,16 @@
 					index = < 0x01 >;
 					reg = < 0x00 0xe000000 0xfffff >;
 				};
+
+				phb0 {
+					compatible = "ibm,power9-phb";
+					index = < 0x02 >;
+				};
+
+				phb1 {
+					compatible = "ibm,power9-phb";
+					index = < 0x03 >;
+				};
 			};
 
 			chiplet at f000000 {
@@ -1916,6 +1966,16 @@
 					index = < 0x02 >;
 					reg = < 0x00 0xf000000 0xfffff >;
 				};
+
+				phb0 {
+					compatible = "ibm,power9-phb";
+					index = < 0x04 >;
+				};
+
+				phb1 {
+					compatible = "ibm,power9-phb";
+					index = < 0x05 >;
+				};
 			};
 
 			chiplet at 10000000 {
diff --git a/tests/test_p9_fapi_translation.sh b/tests/test_p9_fapi_translation.sh
index 91dda04..b54edf3 100755
--- a/tests/test_p9_fapi_translation.sh
+++ b/tests/test_p9_fapi_translation.sh
@@ -147,9 +147,20 @@ test_run libpdbg_p9_fapi_translation_test pec
 
 
 test_result 0 <<EOF
+Testing /proc0/pib/chiplet at d000000/phb0  0
+Testing /proc0/pib/chiplet at d000000/phb1  1
+Testing /proc0/pib/chiplet at e000000/phb0  2
+Testing /proc0/pib/chiplet at e000000/phb1  3
+Testing /proc0/pib/chiplet at f000000/phb0  4
+Testing /proc0/pib/chiplet at f000000/phb1  5
+Testing /proc1/pib/chiplet at d000000/phb0  0
+Testing /proc1/pib/chiplet at d000000/phb1  1
+Testing /proc1/pib/chiplet at e000000/phb0  2
+Testing /proc1/pib/chiplet at e000000/phb1  3
+Testing /proc1/pib/chiplet at f000000/phb0  4
+Testing /proc1/pib/chiplet at f000000/phb1  5
 EOF
 
-test_skip
 test_run libpdbg_p9_fapi_translation_test phb
 
 
-- 
2.24.1



More information about the Pdbg mailing list