Commit 25fd54c
committed
hw/arm/xlnx-versal: fix Versal2 VxWorks SMP boot
VxWorks requires the Versal2 compatible string and looks up secondary CPU nodes using MPIDR-based CPU IDs.
Add the amd,versal2 compatible string for the Versal2 virt machine and generate CPU node unit addresses from the MPIDR affinity value instead of the linear CPU index. This keeps CPU node names aligned with their reg values, for example cpu@100 with reg = <0x100>.
With this change, VxWorks can match the Versal2 DTB, discover secondary CPU nodes, reach the PSCI CPU_ON path, and bring all application CPUs online.
Signed-off-by: shivkd <shiveshkd@gmail.com>1 parent b385a6f commit 25fd54c
2 files changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1122 | 1122 | | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | | - | |
| 1125 | + | |
1126 | 1126 | | |
1127 | 1127 | | |
1128 | | - | |
| 1128 | + | |
1129 | 1129 | | |
1130 | 1130 | | |
1131 | | - | |
1132 | | - | |
| 1131 | + | |
1133 | 1132 | | |
1134 | 1133 | | |
1135 | 1134 | | |
| |||
0 commit comments