Devicetree
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@mailbox.org>
To: devicetree@vger.kernel.org
Cc: wsa+renesas@sang-engineering.com, conor+dt@kernel.org,
	krzk+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH] arm64: dts: renesas: r8a78000: Add PSCI node
Date: Thu, 14 May 2026 14:39:12 +0200	[thread overview]
Message-ID: <5bf3c863-0959-4625-b9b6-f5ea36c0bcea@mailbox.org> (raw)
In-Reply-To: <20260514113120.0B5EDC2BCC7@smtp.kernel.org>

On 5/14/26 1:31 PM, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [High] Missing 'enable-method' in CPU nodes prevents SMP bring-up.
> --
> 
> commit 0e20af8dd1fbf54360d3f87985cba2a59a5ee08f
> Author: Marek Vasut <marek.vasut+renesas@mailbox.org>
> arm64: dts: renesas: r8a78000: Add PSCI node
> 
> This commit adds the PSCI node to the r8a78000 device tree to describe SMC
> based access. This enables interaction with the TFA BL31 PSCI provider for
> tasks such as CPU power management.
> 
>> diff --git a/arch/arm64/boot/dts/renesas/r8a78000.dtsi b/arch/arm64/boot/dts/renesas/r8a78000.dtsi
>> index 4c97298fa7634..9e759ea46ee20 100644
>> --- a/arch/arm64/boot/dts/renesas/r8a78000.dtsi
>> +++ b/arch/arm64/boot/dts/renesas/r8a78000.dtsi
> 
> [ ... ]
> 
>> @@ -665,6 +665,11 @@ extalr_clk: extalr-clk {
>>   		/* clock-frequency must be set on board */
>>   	};
>>   
>> +	psci {
>> +		compatible = "arm,psci-1.0";
>> +		method = "smc";
>> +	};
>> +
> 
> Does this also require updating the CPU nodes to actually use PSCI?
> 
> Looking at the ARM64 SMP bring-up in arch/arm64/kernel/cpu_ops.c, the kernel
> relies on cpu_read_enable_method() to determine how to wake up secondary
> CPUs. It expects an enable-method property in the device tree for each CPU
> node:
> 
> arch/arm64/kernel/cpu_ops.c:cpu_read_enable_method() {
>          ...
>          dn = of_get_cpu_node(cpu, NULL);
>          ...
>          enable_method = of_get_property(dn, "enable-method", NULL);
>          if (!enable_method) {
>                  ...
>          }
>          ...
> }
> 
> Without adding enable-method = "psci" to the cpu nodes in r8a78000.dtsi,
> does this cause an SMP regression where the system fails to initialize
> secondary cores and boots as a single-core system?
PSCI is used here to power off / reboot the system, SMP enablement is a 
separate topic and a separate patch.

      reply	other threads:[~2026-05-14 12:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-13 22:50 [PATCH] arm64: dts: renesas: r8a78000: Add PSCI node Marek Vasut
2026-05-14 11:31 ` sashiko-bot
2026-05-14 12:39   ` Marek Vasut [this message]

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=5bf3c863-0959-4625-b9b6-f5ea36c0bcea@mailbox.org \
    --to=marek.vasut@mailbox.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=wsa+renesas@sang-engineering.com \
    /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