Linux Power Management development
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: "Clément Le Goffic" <clegoffic@baylibre.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 07:15:02 +0900	[thread overview]
Message-ID: <20261125221502.GD3581@killaraus.ideasonboard.com> (raw)
In-Reply-To: <27796cff-eef5-46ce-8079-93a0a8d40db5@baylibre.com>

On Mon, Nov 23, 2026 at 08:09:05PM +0100, Clément Le Goffic wrote:
> On 11/23/26 5:05 PM, Laurent Pinchart wrote:
> > v5 supports one firmware version at the moment, and the driver would get
> > support for new firmware versions when/if needed.
> 
> This is where I disagree: I don't think a SoC driver should follow the
> SDK versions.

In theory, I agree. In practice, I don't see how that's avoidable.

We routinely have drivers that follow hardware revisions. There's
nothing controversial there, when hardware behaviour differs between
revisions, drivers have to adapt. It would be great if every single IP
core in every SoC was perfect in its first revision, but bugs happen,
and we have to deal with them.

With SCMI, firmware will also not have a stable interface, and it will
be worse than hardware. A hardware bug is way more costly to fix, so the
QA process is more strict. Firmware are too easy to update, so they're
simply less stable.

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.

> > I have yet to see any vendor who can provide 100% stability guarantees
> > for SCMI firmware interfaces. In theory, sure. In real life, I just
> > don't buy it.
> 
> I agree that while an SCMI firmware is in development, its ids can
> change between versions. To keep the ids of a released firmware
> stable, I see three rules:
> - an id always names the same resource, ids are never swapped,
> - an id is never dropped: when a resource goes away, the firmware
>   keeps its id reserved and denies access to it, as SCMI 4.0 section
>   3.2.1 describes,
> - new ids are only added at the end
> 
> I think upstream should only support a firmware that follows these
> rules, with its ids in the DT.
> 
> For firmware still in development, I agree with what Cristian wrote on
> the RFC[1]: "fix your firmwares AND/OR apply quirks in the meantime".
> 
> Any other view on this is welcome.

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 ?

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

> > We can agree to disagree on this, no issue.
> 
> Sure, I think we both already know we disagree on this :-)
> Thanks for taking the time to discuss it
> 
> [1] https://lore.kernel.org/r/aekXUvIPb8nkhdKu@pluto

-- 
Regards,

Laurent Pinchart

  parent reply	other threads:[~2026-11-25 22:15 UTC|newest]

Thread overview: 57+ 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-20  3:45   ` Marek Vasut
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-20  3:35   ` Marek Vasut
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-20  3:36   ` Marek Vasut
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-20  3:37   ` Marek Vasut
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 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 [this message]
2026-11-26 12:15                     ` Clément Le Goffic
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=20261125221502.GD3581@killaraus.ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=arm-scmi@vger.kernel.org \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=bmasney+clk@redhat.com \
    --cc=clegoffic@baylibre.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=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