mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	 Matthias Brugger <matthias.bgg@gmail.com>,
	 AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>
Cc: kernel@collabora.com, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-mediatek@lists.infradead.org,
	 Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Subject: [PATCH] arm64: dts: mediatek: mt8370: fix CPU map core ordering
Date: Tue, 17 Nov 2026 13:22:07 +0100	[thread overview]
Message-ID: <20261117-mt8370-fix-cpu-map-core-order-v1-1-00c6c74c7629@collabora.com> (raw)

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>


             reply	other threads:[~2026-11-17 12:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 12:22 Louis-Alexis Eyraud [this message]
2026-11-17 13:37 ` AngeloGioacchino Del Regno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261117-mt8370-fix-cpu-map-core-order-v1-1-00c6c74c7629@collabora.com \
    --to=louisalexis.eyraud@collabora.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kernel@collabora.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®