[PATCH v5 00/15] R-Car X5H Ironhide CPG/MDLC SCMI remapping support
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Wed Nov 25 14:15:02 PST 2026
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
More information about the linux-arm-kernel
mailing list