Skip to contentSkip to conversation

arm-bsp/fvp-base*: Fix the MPIDR values in the device tree

PATCH Applied Anders Dellien 2 participants 2 messages Mar 4, 2021 – Mar 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm-bsp/fvp-base*: Fix the MPIDR values in the device tree

The MPIDR values are incorrect, which means that only two CPUs start. With this patch, all 8 CPUs start.

Change-Id I4baa8738948ec756d6902bc75d0a56edf15e23f8
---
 .../fvp-base-arm32/fvp-base-arm32-dts.patch   | 28 +++++++++----------
 .../linux/files/fvp-base-dts.patch            | 28 +++++++++----------
 2 files changed, 28 insertions(+), 28 deletions(-)
meta-arm-bsp/recipes-kernel/linux/files/fvp-base-arm32/fvp-base-arm32-dts.patch +14 -14
index de7b752..b21b4c0 100644
@@ -112,64 +112,64 @@ index 000000000000..f4601c7f99f8
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU1:cpu@1 {
++               CPU1:cpu@100 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x1>;
++                       reg = <0x0 0x100>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU2:cpu@2 {
++               CPU2:cpu@200 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x2>;
++                       reg = <0x0 0x200>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU3:cpu@3 {
++               CPU3:cpu@300 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x3>;
++                       reg = <0x0 0x300>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU4:cpu@100 {
++               CPU4:cpu@10000 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x100>;
++                       reg = <0x0 0x10000>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU5:cpu@101 {
++               CPU5:cpu@10100 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x101>;
++                       reg = <0x0 0x10100>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU6:cpu@102 {
++               CPU6:cpu@10200 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x102>;
++                       reg = <0x0 0x10200>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU7:cpu@103 {
++               CPU7:cpu@10300 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x103>;
++                       reg = <0x0 0x10300>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
meta-arm-bsp/recipes-kernel/linux/files/fvp-base-dts.patch +14 -14
index 47bc8e1..fcd8f70 100644
@@ -110,64 +110,64 @@ index 000000000000..f4601c7f99f8
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU1:cpu@1 {
++               CPU1:cpu@100 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x1>;
++                       reg = <0x0 0x100>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU2:cpu@2 {
++               CPU2:cpu@200 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x2>;
++                       reg = <0x0 0x200>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU3:cpu@3 {
++               CPU3:cpu@300 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x3>;
++                       reg = <0x0 0x300>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU4:cpu@100 {
++               CPU4:cpu@10000 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x100>;
++                       reg = <0x0 0x10000>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU5:cpu@101 {
++               CPU5:cpu@10100 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x101>;
++                       reg = <0x0 0x10100>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU6:cpu@102 {
++               CPU6:cpu@10200 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x102>;
++                       reg = <0x0 0x10200>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU7:cpu@103 {
++               CPU7:cpu@10300 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x103>;
++                       reg = <0x0 0x10300>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
Signature · 1 line
2.17.1
Applied
#1 lore raw
Quoted 6 lines · Anders Dellien

The MPIDR values are incorrect, which means that only two CPUs start. With this patch, all 8 CPUs start.

Change-Id I4baa8738948ec756d6902bc75d0a56edf15e23f8

---

Applied to the master branch

Thanks,
Jon

Quoted 177 lines
 .../fvp-base-arm32/fvp-base-arm32-dts.patch   | 28 +++++++++----------
 .../linux/files/fvp-base-dts.patch            | 28 +++++++++----------
 2 files changed, 28 insertions(+), 28 deletions(-)
meta-arm-bsp/recipes-kernel/linux/files/fvp-base-arm32/fvp-base-arm32-dts.patch +14 -14
index de7b752..b21b4c0 100644
@@ -112,64 +112,64 @@ index 000000000000..f4601c7f99f8
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU1:cpu@1 {
++               CPU1:cpu@100 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x1>;
++                       reg = <0x0 0x100>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU2:cpu@2 {
++               CPU2:cpu@200 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x2>;
++                       reg = <0x0 0x200>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU3:cpu@3 {
++               CPU3:cpu@300 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x3>;
++                       reg = <0x0 0x300>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU4:cpu@100 {
++               CPU4:cpu@10000 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x100>;
++                       reg = <0x0 0x10000>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU5:cpu@101 {
++               CPU5:cpu@10100 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x101>;
++                       reg = <0x0 0x10100>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU6:cpu@102 {
++               CPU6:cpu@10200 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x102>;
++                       reg = <0x0 0x10200>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU7:cpu@103 {
++               CPU7:cpu@10300 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x103>;
++                       reg = <0x0 0x10300>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
meta-arm-bsp/recipes-kernel/linux/files/fvp-base-dts.patch +14 -14
index 47bc8e1..fcd8f70 100644
@@ -110,64 +110,64 @@ index 000000000000..f4601c7f99f8
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU1:cpu@1 {
++               CPU1:cpu@100 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x1>;
++                       reg = <0x0 0x100>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU2:cpu@2 {
++               CPU2:cpu@200 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x2>;
++                       reg = <0x0 0x200>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU3:cpu@3 {
++               CPU3:cpu@300 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x3>;
++                       reg = <0x0 0x300>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU4:cpu@100 {
++               CPU4:cpu@10000 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x100>;
++                       reg = <0x0 0x10000>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU5:cpu@101 {
++               CPU5:cpu@10100 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x101>;
++                       reg = <0x0 0x10100>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU6:cpu@102 {
++               CPU6:cpu@10200 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x102>;
++                       reg = <0x0 0x10200>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
 +               };
 +
-+               CPU7:cpu@103 {
++               CPU7:cpu@10300 {
 +                       device_type = "cpu";
 +                       compatible = "arm,armv8";
-+                       reg = <0x0 0x103>;
++                       reg = <0x0 0x10300>;
 +                       enable-method = "psci";
 +                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
 +                       next-level-cache = <&L2_0>;
Signature · 1 line
2.17.1