Skip to content

Commit bf6cd1c

Browse files
ConchuODpalmer-dabbelt
authored andcommitted
riscv: dts: sifive: Add fu740 topology information
The fu740 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 af8f260 commit bf6cd1c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

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

0 commit comments

Comments
 (0)