Skip to content

Commit d9d193d

Browse files
ConchuODpalmer-dabbelt
authored andcommitted
riscv: dts: canaan: Add k210 topology information
The k210 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]> Reviewed-by: Damien Le Moal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent bf6cd1c commit d9d193d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

arch/riscv/boot/dts/canaan/k210.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@
6565
compatible = "riscv,cpu-intc";
6666
};
6767
};
68+
69+
cpu-map {
70+
cluster0 {
71+
core0 {
72+
cpu = <&cpu0>;
73+
};
74+
75+
core1 {
76+
cpu = <&cpu1>;
77+
};
78+
};
79+
};
6880
};
6981

7082
sram: memory@80000000 {

0 commit comments

Comments
 (0)