Skip to content

Commit af8f260

Browse files
ConchuODpalmer-dabbelt
authored andcommitted
riscv: dts: sifive: Add fu540 topology information
The fu540 has no cpu-map node, so tools like hwloc cannot correctly parse the topology. Add the node using the existing node labels. Reported-by: Brice Goglin <[email protected]> Link: open-mpi/hwloc#536 Signed-off-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent ef09fa6 commit af8f260

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

arch/riscv/boot/dts/sifive/fu540-c000.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,30 @@
133133
interrupt-controller;
134134
};
135135
};
136+
137+
cpu-map {
138+
cluster0 {
139+
core0 {
140+
cpu = <&cpu0>;
141+
};
142+
143+
core1 {
144+
cpu = <&cpu1>;
145+
};
146+
147+
core2 {
148+
cpu = <&cpu2>;
149+
};
150+
151+
core3 {
152+
cpu = <&cpu3>;
153+
};
154+
155+
core4 {
156+
cpu = <&cpu4>;
157+
};
158+
};
159+
};
136160
};
137161
soc {
138162
#address-cells = <2>;

0 commit comments

Comments
 (0)