Devicetree
 help / color / mirror / Atom feed
From: "Clément Le Goffic" <clegoffic@baylibre.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Jerome Brunet <jbrunet+clk@baylibre.com>,
	Ulf Hansson <ulfh@kernel.org>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	"Rafael J . Wysocki" <rafael@kernel.org>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>,
	Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	Kevin Hilman <khilman@baylibre.com>,
	Vinod Koul <vkoul@kernel.org>,
	Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	Paul Elder <paul.elder+renesas@ideasonboard.com>,
	Sudeep Holla <sudeep.holla@kernel.org>,
	Cristian Marussi <cristian.marussi@arm.com>,
	arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v5 00/15] R-Car X5H Ironhide CPG/MDLC SCMI remapping support
Date: Thu, 26 Nov 2026 13:15:18 +0100	[thread overview]
Message-ID: <bc5f0035-08ba-4813-9bda-9b2ba68f3680@baylibre.com> (raw)
In-Reply-To: <20261125221502.GD3581@killaraus.ideasonboard.com>

Hi Geert, Laurent,

Thanks to both of you for the answers, I reply to all of them here.

On 11/25/26 3:45 PM, Geert Uytterhoeven wrote:
> Status = "reserved" would work fine for a leaf device (e.g. a network
> interface), without further dependencies.
>
> For core components like the CPG and MDLC its different, as every single
> module on the SoCs makes use of them.

Right, an SCMI DT changes every producer and consumer node, and they would change again with each firmware version that changes its ids. If I were to do it, I would handle those changes in a downstream tree, as SCMI does not seem designed for several firmware versions with different ids on the same chip.

>   1. They are not stable!
>      We only _assumed_ they are stable, so we could relax dependencies.
>      With that assumption, there is no longer a need for the (contented)
>      addition of scmi_get_base_info(), which would be needed to
>      distinguish among different firmware using e.g. different ID
>      spaces.

I think this is the real problem, and it is not specific to X5H. Ideally the SCMI firmware keeps its ids stable, and to me it should even be mandatory.

>   2. That can't work for now, due to limitations/deficiencies of the
>      current SCMI firmware specification and/or firmware implementation.

Which ones? Can't we work on improving it?

>   3. Last but not least, they are not hardware description.

They are firmware ids, and the arm,scmi binding is made for them.

On 11/25/26 3:52 PM, Geert Uytterhoeven wrote:
> This only focuses on the IDs, not on different abstractions offered by
> SCMI.
>
> The latter leads to the need for changes in (many) DT bindings and
> drivers, to support the same hardware blocks that are already supported
> without SCMI in the same and/or older SoCs.  How many different DT
> binding variants, with corresponding more complex handling in drivers,
> are you willing to support for the same hardware block?
> The remapping driver takes care of this in a single place, avoiding DT
> binding and driver changes all over the tree.

Agreed, the ids are only one part. But most of the other differences on X5H come from the firmware (missing clocks, zero rates, reserved resets) or from the missing clock domain in SCMI, so I would rather fix them in the firmware and in the specification.

On 11/25/26 3:55 PM, Geert Uytterhoeven wrote:
> So we can't upstream DT, until we have stable IDs for real?

Yes, that would be my take, to avoid glue code based on the firmware version.

To me, development firmware is the SDK, made for development, and a released firmware is the one that has been fully tested, where no new resource or missing id is discovered anymore. As you wrote to Wolfram, "We are still discovering missing SCMI IDs for some resource", so I think the X5H firmware is still in development.

I was also always told not to upstream something that is not mature enough, as your cover letter says for the firmware. So why is it important to upstream the DT before the firmware is mature?

On 11/25/26 11:15 PM, Laurent Pinchart wrote:
> It's not a matter of "in development". Software is always in
> development. Don't get me wrong, I agree that we should minimize
> breaking changes in SCMI firmware, but we can't avoid them, or even
> minimize them enough, without a QA cost that nobody seems willing to
> pay. Where's the stable SCP firmware for X5H ?

Linux is always in development too, and it still keeps its userspace ABI stable. I think a firmware can do the same with its ids: keeping them stable is not a QA cost, it is a rule when adding resources, append only and never renumber.

The open-source SCP firmware I am developing for X5H is public here: https://git.gitlab.arm.com/clegoffic/SCP-firmware/-/tree/renesas

For the SDK firmware, Geert's v5 cover says one table covers SDK 4.31 and later, tested with 4.36 and 4.39, so the ids v5 uses have not changed since 4.31.

Personally, I also don't like to see version numbers of firmware that is neither upstream nor public in an open-source project like the Linux kernel.

On 11/25/26 3:55 PM, Geert Uytterhoeven wrote:
> Zephyr has less complex software abstractions than Linux, and
> might not care about DT stability.

Yes, we are lucky on this one :-D

On 11/25/26 3:56 PM, Geert Uytterhoeven wrote:
> I understand that can work on servers with N CPU cores, N network
> interfaces, and N storage controllers, where you run multiple
> virtual instances using the same DTB describing e.g. a single CPU core,
> network interface, and storage controller.
> But not on an embedded platform with complex I/O...

To me, X5H is an Arm platform like another, not a special case. NXP's automotive S32G, which also has complex I/O, already uses SCMI ids in its mainline DT. That is why I would rather handle the firmware versions with the SCMI quirk framework, the same way for every platform, than with a special case for each SoC.

On 11/25/26 11:15 PM, Laurent Pinchart wrote:
> We have two options to deal with that: either we handle that instability
> in every leaf driver, or we handle it in a central place. The latter
> seems a much better solution to me.

Agreed on a central place rather than every leaf driver. Where we differ is which central place: I think it is the SCMI framework, with its quirk framework, rather than one remapping driver per SoC. A hardware revision is handled by the driver of that hardware, but SCMI is the same protocol on every SoC, so its firmware versions are better handled once in the SCMI stack.

Anyway, I know I am going against the common view here, and maybe I live in an idealistic world. I truly think that one SCMI platform should have only one SCMI firmware version, but somehow several exist here. Do you know why the old SDK firmware versions are not simply fixed and updated?

In general, different SoC vendors seem to face the same issue, so perhaps it comes from the software development process around SCMI servers. That may be worth stating somewhere, or even directly in the SCMI specification, for example that a released SCMI firmware keeps its ids stable.

As long as old firmware versions are not fixed, it changes how the SCMI Linux framework has to think about the product development lifecycle: how can we handle several SCMI server versions without a set of device trees and without dependencies inside the drivers?

My first idea was an upstream interface in the SCMI framework, used by tables maintained downstream. But that does not hold, as an upstream interface needs an upstream user, and I am not in favor of adding one for this.

So I would rather keep a set of atomic patches downstream, one per firmware version, built on the SCMI quirk framework, so they stay easy to rebase and maintain. This way upstream carries no development firmware, no extra device trees and no version-specific code.

This would also follow the comment in drivers/clk/clk-scmi-oem.c: "impl_ver-specific behavior should be considered a bug and handled via SCMI Quirk framework".

> The way to go in my opinion is minimizing firmware breakages *and*
> having a remapping driver. Those are not mutually exclusive.

Agreed, they are not. We only disagree on where the remapping should live.

Best regards,
Clément

  reply	other threads:[~2026-11-26 12:15 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 19:44 [PATCH v5 00/15] R-Car X5H Ironhide CPG/MDLC SCMI remapping support Geert Uytterhoeven
2026-11-18 19:44 ` [PATCH v5 01/15] clk: renesas: r8a78000: Merge debug prints in r8a78000_clk_get() Geert Uytterhoeven
2026-11-20  2:57   ` Marek Vasut
2026-11-20  7:56     ` Geert Uytterhoeven
2026-11-23 10:57       ` Laurent Pinchart
2026-11-18 19:44 ` [PATCH v5 02/15] clk: renesas: r8a78000: Replace sentinel by explicit ID map size Geert Uytterhoeven
2026-11-20  3:02   ` Marek Vasut
2026-11-23 11:01   ` Laurent Pinchart
2026-11-18 19:44 ` [PATCH v5 03/15] clk: renesas: r8a78000: Shrink IDs to 16 bits Geert Uytterhoeven
2026-11-20  3:04   ` Marek Vasut
2026-11-23 11:12   ` Laurent Pinchart
2026-11-18 19:44 ` [PATCH v5 04/15] clk: renesas: r8a78000: Add clk_hw to clk_map Geert Uytterhoeven
2026-11-20  3:25   ` Marek Vasut
2026-11-23 11:24   ` Laurent Pinchart
2026-11-18 19:44 ` [PATCH v5 05/15] clk: renesas: r8a78000: Add SCMI remapping support Geert Uytterhoeven
2026-11-23 11:36   ` Laurent Pinchart
2026-11-23 12:34     ` Geert Uytterhoeven
2026-11-23 12:54       ` Laurent Pinchart
2026-11-23 13:02         ` Geert Uytterhoeven
2026-11-23 15:07           ` Laurent Pinchart
2026-11-18 19:44 ` [PATCH v5 06/15] reset: Extract __reset_control_get_from_provider() Geert Uytterhoeven
2026-11-18 19:44 ` [PATCH v5 07/15] reset: Add reset_control_get_from_provider_exclusive() Geert Uytterhoeven
2026-11-18 19:44 ` [PATCH v5 08/15] pmdomain: Make genpd_get_from_provider() always return on first match Geert Uytterhoeven
2026-11-25 15:24   ` Ulf Hansson
2026-11-18 19:44 ` [PATCH v5 09/15] pmdomain: Make genpd_get_from_provider() return -EPROBE_DEFER Geert Uytterhoeven
2026-11-25 11:08   ` Ulf Hansson
2026-11-18 19:44 ` [PATCH v5 10/15] pmdomain: Make genpd_get_from_provider() public Geert Uytterhoeven
2026-11-25 11:17   ` Ulf Hansson
2026-11-18 19:44 ` [PATCH v5 11/15] pmdomain: renesas: r8a78000: Drop MDLC name comment Geert Uytterhoeven
2026-11-23 11:37   ` Laurent Pinchart
2026-11-18 19:45 ` [PATCH v5 12/15] pmdomain: renesas: r8a78000: Replace sentinel by explicit ID map size Geert Uytterhoeven
2026-11-23 11:39   ` Laurent Pinchart
2026-11-18 19:45 ` [PATCH v5 13/15] pmdomain: renesas: r8a78000: Shrink IDs to 16 bits Geert Uytterhoeven
2026-11-23 11:39   ` Laurent Pinchart
2026-11-18 19:45 ` [PATCH v5 14/15] pmdomain: renesas: r8a78000: Add SCMI remapping support Geert Uytterhoeven
2026-11-18 20:22   ` sashiko-bot
2026-11-19  7:48     ` Geert Uytterhoeven
2026-11-18 19:45 ` [PATCH v5 15/15] arm64: dts: renesas: ironhide: Enable SCMI devpd, sys, clock, and reset Geert Uytterhoeven
2026-11-19 14:47 ` [PATCH v5 00/15] R-Car X5H Ironhide CPG/MDLC SCMI remapping support Clément Le Goffic
2026-11-19 23:47   ` Laurent Pinchart
2026-11-20 10:29     ` Clément Le Goffic
2026-11-20 11:10       ` Wolfram Sang
2026-11-20 14:33         ` Clément Le Goffic
2026-11-23 10:36           ` Laurent Pinchart
2026-11-23 15:46             ` Clément Le Goffic
2026-11-23 16:05               ` Laurent Pinchart
2026-11-23 19:09                 ` Clément Le Goffic
2026-11-25 14:56                   ` Geert Uytterhoeven
2026-11-25 22:15                   ` Laurent Pinchart
2026-11-26 12:15                     ` Clément Le Goffic [this message]
2026-11-25 14:55               ` Geert Uytterhoeven
2026-11-25 14:52           ` Geert Uytterhoeven
2026-11-25 14:47         ` Geert Uytterhoeven
2026-11-23 10:31       ` Laurent Pinchart
2026-11-25 14:45   ` Geert Uytterhoeven

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=bc5f0035-08ba-4813-9bda-9b2ba68f3680@baylibre.com \
    --to=clegoffic@baylibre.com \
    --cc=arm-scmi@vger.kernel.org \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=bmasney+clk@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=cristian.marussi@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=jbrunet+clk@baylibre.com \
    --cc=khilman@baylibre.com \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=p.zabel@pengutronix.de \
    --cc=paul.elder+renesas@ideasonboard.com \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=sudeep.holla@kernel.org \
    --cc=ulfh@kernel.org \
    --cc=vkoul@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