Re: [PATCH] firmware: arm_scmi: Drop the ARM architecture dependency

From: Geert Uytterhoeven

Date: Fri Nov 20 2026 - 03:27:06 EST


Hi Han,

On Fri, 6 Nov 2026 at 20:40, Han Gao via B4 Relay
<devnull+gaohan.iscas.ac.cn@xxxxxxxxxx> wrote:
> From: Han Gao <gaohan@xxxxxxxxxxx>
>
> The SCMI core and the mailbox and shared memory transports only use
> generic kernel interfaces. Transports that need architecture support,
> such as SMC, already carry their own dependencies.
>
> Drop the ARM and ARM64 dependency so that other architectures can use
> SCMI. Depend on HAS_IOMEM instead, for devm_ioremap().
>
> Suggested-by: Michal Simek <michal.simek@xxxxxxx>
> Signed-off-by: Han Gao <gaohan@xxxxxxxxxxx>

Thanks for your patch, which is now commit fe87ede443a15969 ("firmware:
arm: scmi: Drop the ARM architecture dependency") in scmi/for-linux-next.

> ---
> This was patch 1 of the Zhihe A210 SoC series [1]. As Michal asked, it
> now goes on its own through the SCMI tree.
>
> Since [1], it depends on HAS_IOMEM: Sashiko found that UML, which has
> no HAS_IOMEM, failed to link devm_ioremap().
>
> Build tested on x86_64 without OF, i386, loongarch64, ppc64le, riscv64
> and arm64. On UML, SCMI can no longer be selected.
>
> [1] https://patch.msgid.link/20261103-a210-scmi-v3-0-ee6b31580808@xxxxxxxxxxx

> --- a/drivers/firmware/arm_scmi/Kconfig
> +++ b/drivers/firmware/arm_scmi/Kconfig
> @@ -3,7 +3,7 @@ menu "ARM System Control and Management Interface Protocol"
>
> config ARM_SCMI_PROTOCOL
> tristate "ARM System Control and Management Interface (SCMI) Message Protocol"
> - depends on ARM || ARM64 || COMPILE_TEST
> + depends on HAS_IOMEM || COMPILE_TEST

Please extend the dependencies to RISCV (from the link above, I assume
you are targeting riscv?) instead. There is no point in showing this
option on architectures that have no users of SCMI; one already has
too many relevant symbols to configure.
People who want to build test on x86_64 without OF, i386, loongarch64,
ppc64le, ... can just enable COMPILE_TEST.

> help
> ARM System Control and Management Interface (SCMI) protocol is a
> set of operating system-independent software interfaces that are

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds