Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Krzysztof Kozlowski" <krzysztof.kozlowski@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH 08/10] arm64: dts: exynos5433: Re-order nodes to match coding style
Date: Fri, 11 Sep 2026 10:28:34 +0000	[thread overview]
Message-ID: <20260911102835.37AA21F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260911-b4-dts-samsung-cleanup-strict-continued-v1-8-9aa55051c42b@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Reordering device tree `cpu` nodes by unit-address changes the logical CPU numbering, fragmenting cluster groupings and breaking userspace expectations.
--

commit 42e710983fc6263e0bd5798117a1ac4661f1ffa1
Author: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

arm64: dts: exynos5433: Re-order nodes to match coding style

This patch reorders nodes in the Exynos 5433 device tree to alphabetical order
to comply with DT style checks. In doing so, it moves the Cortex-A57 cpu nodes
to appear before the Cortex-A53 cpu nodes.

> diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi
> index d318c87effaa6..3e67d9091a191 100644
> --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi
> +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi
[ ... ]
> @@ -90,136 +90,136 @@ core3 {
>  			};
>  		};
>  
> -		cpu0: cpu@100 {
> +		cpu4: cpu@0 {
>  			device_type = "cpu";
> -			compatible = "arm,cortex-a53";
> +			compatible = "arm,cortex-a57";

[Severity: High]
Does reordering these nodes by unit-address change the logical CPU numbering
and fragment the cluster groupings?

During boot, arch/arm64/kernel/smp.c:of_parse_and_init_cpus() iterates through
the CPU nodes in the exact order they appear in the device tree. The boot CPU
(A53 cpu@100) always receives logical ID 0.

Before this patch, the A53 nodes appeared first, yielding contiguous logical
IDs 0-3 for the A53 cores and 4-7 for the A57 cores.

Because this patch moves the A57 nodes (cpu@0 through cpu@3) before the
remaining A53 nodes, the kernel will assign logical IDs 1-4 to the A57 cores
and 5-7 to the remaining A53 cores.

Could this fragment the logical clusters into A53: 0, 5, 6, 7 and A57:
1, 2, 3, 4, breaking userspace expectations (like thermal daemons or taskset
configurations) that expect logical CPUs 0-3 to be the little cores and 4-7 to
be the big cores?

>  			enable-method = "psci";
[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260911-b4-dts-samsung-cleanup-strict-continued-v1-0-9aa55051c42b@oss.qualcomm.com?part=8

  reply	other threads:[~2026-09-11 10:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-11 10:19 [PATCH 00/10] arm64: dts: exynos: Few strict dt-style-check cleanups Krzysztof Kozlowski
2026-09-11 10:19 ` [PATCH 01/10] arm64: dts: exynos: axis: Re-order nodes to match coding style Krzysztof Kozlowski
2026-09-11 11:08   ` Jesper Nilsson
2026-09-11 10:19 ` [PATCH 02/10] arm64: dts: exynos: axis: Re-order properties " Krzysztof Kozlowski
2026-09-11 11:09   ` Jesper Nilsson
2026-09-11 10:19 ` [PATCH 03/10] arm64: dts: exynos: gs101: " Krzysztof Kozlowski
2026-09-11 10:19 ` [PATCH 04/10] arm64: dts: exynos: gs101: Re-order nodes " Krzysztof Kozlowski
2026-09-11 10:19 ` [PATCH RFT 05/10] arm64: dts: exynos2200-g0s: Drop chosen address/size cells Krzysztof Kozlowski
2026-09-11 10:19 ` [PATCH 06/10] arm64: dts: exynos2200-g0s: Re-order properties to match coding style Krzysztof Kozlowski
2026-09-11 10:19 ` [PATCH 07/10] arm64: dts: exynos2200: Drop redundant blank lines Krzysztof Kozlowski
2026-09-11 10:19 ` [PATCH 08/10] arm64: dts: exynos5433: Re-order nodes to match coding style Krzysztof Kozlowski
2026-09-11 10:28   ` sashiko-bot [this message]
2026-09-11 10:58   ` Krzysztof Kozlowski
2026-09-11 10:19 ` [PATCH 09/10] arm64: dts: exynos5433: Re-order properties " Krzysztof Kozlowski
2026-09-11 10:19 ` [PATCH 10/10] arm64: dts: exynos7870: " Krzysztof Kozlowski

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=20260911102835.37AA21F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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