diff mbox series

[03/12] dts: Fix index for mcs targets

Message ID 20200313011939.279770-4-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                            | 28 ++++++++++++++++++++++++----
 tests/test_p9_fapi_translation.sh |  8 ++++++--
 2 files changed, 30 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/p9.dts b/p9.dts
index 090f957..199254c 100644
--- a/p9.dts
+++ b/p9.dts
@@ -75,9 +75,14 @@ 
 					compatible = "ibm,power9-nest";
 					index = < 0x01 >;
 
-					mcs1 {
+					mcs2 {
 						compatible = "ibm,power9-mcs";
-						index = < 0x01 >;
+						index = < 0x02 >;
+					};
+
+					mcs3 {
+						compatible = "ibm,power9-mcs";
+						index = < 0x03 >;
 					};
 				};
 			};
@@ -111,6 +116,11 @@ 
 						compatible = "ibm,power9-mcs";
 						index = < 0x00 >;
 					};
+
+					mcs1 {
+						compatible = "ibm,power9-mcs";
+						index = < 0x01 >;
+					};
 				};
 			};
 
@@ -1576,9 +1586,14 @@ 
 					compatible = "ibm,power9-nest";
 					index = < 0x01 >;
 
-					mcs1 {
+					mcs2 {
 						compatible = "ibm,power9-mcs";
-						index = < 0x01 >;
+						index = < 0x02 >;
+					};
+
+					mcs3 {
+						compatible = "ibm,power9-mcs";
+						index = < 0x03 >;
 					};
 				};
 			};
@@ -1612,6 +1627,11 @@ 
 						compatible = "ibm,power9-mcs";
 						index = < 0x00 >;
 					};
+
+					mcs1 {
+						compatible = "ibm,power9-mcs";
+						index = < 0x01 >;
+					};
 				};
 			};
 
diff --git a/tests/test_p9_fapi_translation.sh b/tests/test_p9_fapi_translation.sh
index 6773843..7f7ea21 100755
--- a/tests/test_p9_fapi_translation.sh
+++ b/tests/test_p9_fapi_translation.sh
@@ -184,10 +184,14 @@  test_run libpdbg_p9_fapi_translation_test omi
 
 
 test_result 0 <<EOF
-Testing /proc0/pib/chiplet@3000000/n1/mcs1  1
+Testing /proc0/pib/chiplet@3000000/n1/mcs2  2
+Testing /proc0/pib/chiplet@3000000/n1/mcs3  3
 Testing /proc0/pib/chiplet@5000000/n3/mcs0  0
-Testing /proc1/pib/chiplet@3000000/n1/mcs1  1
+Testing /proc0/pib/chiplet@5000000/n3/mcs1  1
+Testing /proc1/pib/chiplet@3000000/n1/mcs2  2
+Testing /proc1/pib/chiplet@3000000/n1/mcs3  3
 Testing /proc1/pib/chiplet@5000000/n3/mcs0  0
+Testing /proc1/pib/chiplet@5000000/n3/mcs1  1
 EOF
 
 test_run libpdbg_p9_fapi_translation_test mcs