* [PATCH] arm64: dts: mediatek: mt8370: fix CPU map core ordering
@ 2026-11-17 12:22 Louis-Alexis Eyraud
2026-11-17 13:37 ` AngeloGioacchino Del Regno
0 siblings, 1 reply; 2+ messages in thread
From: Louis-Alexis Eyraud @ 2026-11-17 12:22 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Louis-Alexis Eyraud
In mt8370.dtsi, the child list for the cluster0 node of cpu-map is
overridden, to reflect that the MT8370 SoC, as being less powerful
variant of MT8188 and MT8390 SoCs, has less ARM Cortex-A55 cores
number than MT8188 and MT8390 (4 vs 6) but the same Cortex-A78 cores
number.
How the cluster0 node override is done makes the core child nodes to be
named in a non sequential way (core0 to core3, then core6 to core7).
First, it breaks the cpu-map child nodes naming convention in the
cpu-topology bindings. It also causes the arch_topology driver to skip
the A78 core nodes during its devicetree parsing, leading to at least
incorrect CPU capacity computation for them.
So, modify the override so the A78 cores are seen as core4 and core5
in the cluster0 node.
Fixes: 49b07ed22e37 ("arm64: dts: mediatek: add support for MT8370 SoC")
Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
---
The patch has been tested on Mediatek Genio 510-EVK board, that
integrates a MT8379 SoC with a kernel based on linux-next tree
(tag: next-20261116)
---
arch/arm64/boot/dts/mediatek/mt8370.dtsi | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8370.dtsi b/arch/arm64/boot/dts/mediatek/mt8370.dtsi
index 7ac8b8d03494..3fa48f2e6a6a 100644
--- a/arch/arm64/boot/dts/mediatek/mt8370.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8370.dtsi
@@ -16,8 +16,16 @@ cpus {
cpu-map {
cluster0 {
- /delete-node/ core4;
- /delete-node/ core5;
+ core4 {
+ cpu = <&cpu6>;
+ };
+
+ core5 {
+ cpu = <&cpu7>;
+ };
+
+ /delete-node/ core6;
+ /delete-node/ core7;
};
};
};
---
base-commit: 38c8be16846f10f3a710351357e4f4ace7254c8e
change-id: 20261117-mt8370-fix-cpu-map-core-order-0a95d9e87802
Best regards,
--
Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: dts: mediatek: mt8370: fix CPU map core ordering
2026-11-17 12:22 [PATCH] arm64: dts: mediatek: mt8370: fix CPU map core ordering Louis-Alexis Eyraud
@ 2026-11-17 13:37 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 2+ messages in thread
From: AngeloGioacchino Del Regno @ 2026-11-17 13:37 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
Louis-Alexis Eyraud
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
On Tue, 17 Nov 2026 13:22:07 +0100, Louis-Alexis Eyraud wrote:
> In mt8370.dtsi, the child list for the cluster0 node of cpu-map is
> overridden, to reflect that the MT8370 SoC, as being less powerful
> variant of MT8188 and MT8390 SoCs, has less ARM Cortex-A55 cores
> number than MT8188 and MT8390 (4 vs 6) but the same Cortex-A78 cores
> number.
>
> How the cluster0 node override is done makes the core child nodes to be
> named in a non sequential way (core0 to core3, then core6 to core7).
> First, it breaks the cpu-map child nodes naming convention in the
> cpu-topology bindings. It also causes the arch_topology driver to skip
> the A78 core nodes during its devicetree parsing, leading to at least
> incorrect CPU capacity computation for them.
>
> [...]
Applied to v7.4-next/dts64, thanks!
[1/1] arm64: dts: mediatek: mt8370: fix CPU map core ordering
commit: 14cdd904db60288b782ffeac59f4c626ef11e9f5
Cheers,
Angelo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-17 13:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 12:22 [PATCH] arm64: dts: mediatek: mt8370: fix CPU map core ordering Louis-Alexis Eyraud
2026-11-17 13:37 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®