diff mbox series

[09/12] dts: Add phb targets

Message ID 20200313011939.279770-10-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                            | 60 +++++++++++++++++++++++++++++++
 tests/test_p9_fapi_translation.sh | 13 ++++++-
 2 files changed, 72 insertions(+), 1 deletion(-)
diff mbox series

Patch

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@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@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@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@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@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@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@d000000/phb0  0
+Testing /proc0/pib/chiplet@d000000/phb1  1
+Testing /proc0/pib/chiplet@e000000/phb0  2
+Testing /proc0/pib/chiplet@e000000/phb1  3
+Testing /proc0/pib/chiplet@f000000/phb0  4
+Testing /proc0/pib/chiplet@f000000/phb1  5
+Testing /proc1/pib/chiplet@d000000/phb0  0
+Testing /proc1/pib/chiplet@d000000/phb1  1
+Testing /proc1/pib/chiplet@e000000/phb0  2
+Testing /proc1/pib/chiplet@e000000/phb1  3
+Testing /proc1/pib/chiplet@f000000/phb0  4
+Testing /proc1/pib/chiplet@f000000/phb1  5
 EOF
 
-test_skip
 test_run libpdbg_p9_fapi_translation_test phb