U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Michal Simek <michal.simek@amd.com>
Cc: Charles Perry <charles.perry@microchip.com>,
	u-boot@lists.denx.de, Rahul Pathak <rahul@summations.net>,
	Anup Patel <anup@brainfault.org>, Paul Walmsley <pjw@kernel.org>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	Albert Ou <aou@eecs.berkeley.edu>,
	Alexandre Ghiti <alex@ghiti.fr>,
	Romain Caritey <romain.caritey@microchip.com>,
	Mame Maria Mbaye <MameMaria.Mbaye@microchip.com>,
	Tom Rini <trini@konsulko.com>,
	Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,
	Rick Chen <rick@andestech.com>,
	Leo Yu-Chi Liang <ycliang@andestech.com>,
	Souvik Chakravarty <Souvik.Chakravarty@arm.com>
Subject: Re: [PATCH v2 0/5] Add support for RPMI to U-Boot
Date: Thu, 9 Jul 2026 17:57:09 +0100	[thread overview]
Message-ID: <20260709-rounding-gala-841f8043edfc@spud> (raw)
In-Reply-To: <7a17de63-6cd8-4c23-b111-f759ca6af249@amd.com>

[-- Attachment #1: Type: text/plain, Size: 3529 bytes --]

On Thu, Jul 09, 2026 at 05:20:31PM +0200, Michal Simek wrote:
> 
> 
> On 7/9/26 16:54, Charles Perry wrote:
> > On Thu, Jul 09, 2026 at 03:02:11PM +0200, Michal Simek wrote:
> > > 
> > > 
> > > On 7/8/26 23:51, Charles Perry wrote:
> > > > Hello,
> > > > 
> > > > This series adds support for RISC-V Platform Management Interface (RPMI) to
> > > > U-Boot. RPMI is an OS-agnostic protocol for communication between an
> > > > Application Processor (AP) and a Platform Microcontroller (PuC) [1]. The
> > > > goals and purpose of RPMI are similar to ARM's SCMI.
> > > 
> > >  From the first look it looks like SCMI. Why do you introducing something
> > > what can be replaced by SCMI?
> > > And SCMI has only specific ARM transport layer but the rest is arch independent.
> > 
> > Yes, there are alot of similarities between RPMI and SCMI. I found some
> > justification for this in some Linux Plumbers slide deck on RISC-V power
> > management by Paul Walmsley [1]:
> > 
> >   * The hardware is more sophisticated
> >   * The software is more sophisticated
> >   * Some stakeholders haven’t had input in the past
> >   * RISC-V “big tent” philosophy
> > 
> > I think this is referring to the SBI spec of RISC-V vs arm's PSCI but the
> > same arguments may as well apply to RPMI vs SCMI.
> > 
> > Some other arguments:
> > 
> >   * The microcontroller side is made easier with RPMI because of librpmi [2].
> >     SCMI has SCP-firmware [3] which is a quite complex project compared to
> >     librpmi. Also SCP-firmware doesn't accept contribution anymore.
> >   * RPMI is already in Linux.
> > 
> > For what I'm doing, RPMI is what gave me the first results (controlling
> > clocks) the quickest because all the pieces were present in Linux, OpenSBI
> > and librpmi. There are however lots of missing service drivers in Linux and
> > some other important OS like u-boot don't have support for RPMI at all. So
> > even though I gave you a bunch of reason for saying yes to RPMI, I do have
> > some doubt about how long it will take to bring RPMI on par with SCMI,
> > making the SCMI-for-RISCV transport that you suggest more appealing.
> > 
> > [1]: https://lpc.events/event/2/contributions/197/attachments/133/165/RISC-V_Platform_Power_Management.pdf (slide 22)
> > [2]: https://github.com/riscv-software-src/librpmi
> > [3]: https://gitlab.arm.com/firmware/SCP-firmware
> > 
> > > 
> > > In our case where we have Microblaze V in programmable logic I can't see any
> > > reason to use RPMI for talking to the same server if I need to do it from
> > > ARM side too via SCMI.
> > > 
> > > I pretty much think that there should be communication with ARM and instead
> > > of creating another firmware interface talk to each other and have only one
> > > which can be used across multiple architectures.
> 
> I have sent RFC patch to eliminate ARM from SCMI here
> 
> https://lore.kernel.org/all/d7f7e8c9589d937b60e43168845ab4fda15037a3.1783603600.git.michal.simek@amd.com/
> 
> and feedback is quite positive. I think it is more or less question to
> Microchip if you want to take responsibility on another firmware interface
> (I understand that it is approved, etc) or just use what it is around for
> longer time.

I don't think it is a question to just Microchip, it's a question to be asked
to all the various companies and projects using RISC-V. For example will
upstream OpenSBI accept support for SCMI, or will they say "we have RPMI,
use that"?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-07-09 16:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-08 21:51 [PATCH v2 0/5] Add support for RPMI to U-Boot Charles Perry
2026-07-08 21:51 ` [PATCH v2 1/5] firmware: add support for RPMI Charles Perry
2026-07-08 21:51 ` [PATCH v2 2/5] firmware: rpmi: add support for the SBI MPXY transport Charles Perry
2026-07-08 21:51 ` [PATCH v2 3/5] firmware: rpmi: add support for shared memory transport Charles Perry
2026-07-08 21:51 ` [PATCH v2 4/5] drivers: clk: add support for RPMI clocks Charles Perry
2026-07-08 21:51 ` [PATCH v2 5/5] firmware: rpmi: add a test and a sandbox driver Charles Perry
2026-07-09 13:02 ` [PATCH v2 0/5] Add support for RPMI to U-Boot Michal Simek
2026-07-09 14:53   ` Heinrich Schuchardt
2026-07-09 14:54   ` Charles Perry
2026-07-09 15:20     ` Michal Simek
2026-07-09 16:57       ` Conor Dooley [this message]
2026-07-10  3:14         ` Anup Patel
2026-07-10  3:08       ` Anup Patel
2026-07-10  6:36         ` Michal Simek

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=20260709-rounding-gala-841f8043edfc@spud \
    --to=conor@kernel.org \
    --cc=MameMaria.Mbaye@microchip.com \
    --cc=Souvik.Chakravarty@arm.com \
    --cc=alex@ghiti.fr \
    --cc=anup@brainfault.org \
    --cc=aou@eecs.berkeley.edu \
    --cc=charles.perry@microchip.com \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=michal.simek@amd.com \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=rahul@summations.net \
    --cc=rick@andestech.com \
    --cc=romain.caritey@microchip.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=ycliang@andestech.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