* [PATCH] firmware: arm_scmi: Drop the ARM architecture dependency
@ 2026-11-06 19:40 Han Gao via B4 Relay
2026-11-09 7:30 ` Michal Simek
2026-11-20 8:26 ` Geert Uytterhoeven
0 siblings, 2 replies; 5+ messages in thread
From: Han Gao via B4 Relay @ 2026-11-06 19:40 UTC (permalink / raw)
To: Sudeep Holla, Cristian Marussi, Michal Simek
Cc: arm-scmi, linux-arm-kernel, linux-kernel, Han Gao, Han Gao
From: Han Gao <gaohan@iscas.ac.cn>
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@amd.com>
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
---
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@iscas.ac.cn
---
drivers/firmware/arm_scmi/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/arm_scmi/Kconfig b/drivers/firmware/arm_scmi/Kconfig
index 783c24a20e29..f403271c3d11 100644
--- 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
help
ARM System Control and Management Interface (SCMI) protocol is a
set of operating system-independent software interfaces that are
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261107-arm-scmi-arch-dep-96a99b32bcca
Best regards,
--
Han Gao <gaohan@iscas.ac.cn>
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] firmware: arm_scmi: Drop the ARM architecture dependency
2026-11-06 19:40 [PATCH] firmware: arm_scmi: Drop the ARM architecture dependency Han Gao via B4 Relay
@ 2026-11-09 7:30 ` Michal Simek
2026-11-20 8:26 ` Geert Uytterhoeven
1 sibling, 0 replies; 5+ messages in thread
From: Michal Simek @ 2026-11-09 7:30 UTC (permalink / raw)
To: gaohan, Sudeep Holla, Cristian Marussi
Cc: arm-scmi, linux-arm-kernel, linux-kernel, Han Gao
On 11/6/26 20:40, Han Gao via B4 Relay wrote:
> From: Han Gao <gaohan@iscas.ac.cn>
>
> 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@amd.com>
> Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
> ---
> 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@iscas.ac.cn
> ---
> drivers/firmware/arm_scmi/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Michal Simek <michal.simek@amd.com>
Thanks,
Michal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] firmware: arm_scmi: Drop the ARM architecture dependency
2026-11-06 19:40 [PATCH] firmware: arm_scmi: Drop the ARM architecture dependency Han Gao via B4 Relay
2026-11-09 7:30 ` Michal Simek
@ 2026-11-20 8:26 ` Geert Uytterhoeven
2026-11-20 8:43 ` Han Gao
1 sibling, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2026-11-20 8:26 UTC (permalink / raw)
To: gaohan
Cc: Sudeep Holla, Cristian Marussi, Michal Simek, arm-scmi,
linux-arm-kernel, linux-kernel, Han Gao
Hi Han,
On Fri, 6 Nov 2026 at 20:40, Han Gao via B4 Relay
<devnull+gaohan.iscas.ac.cn@kernel.org> wrote:
> From: Han Gao <gaohan@iscas.ac.cn>
>
> 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@amd.com>
> Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
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@iscas.ac.cn
> --- 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@linux-m68k.org
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] firmware: arm_scmi: Drop the ARM architecture dependency
2026-11-20 8:26 ` Geert Uytterhoeven
@ 2026-11-20 8:43 ` Han Gao
2026-11-20 8:51 ` Geert Uytterhoeven
0 siblings, 1 reply; 5+ messages in thread
From: Han Gao @ 2026-11-20 8:43 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Han Gao, gaohan, Sudeep Holla, Cristian Marussi, Michal Simek,
arm-scmi, linux-arm-kernel, linux-kernel
On Fri, 20 Nov 2026 09:26:47 +0100 Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> Hi Han,
>
> On Fri, 6 Nov 2026 at 20:40, Han Gao via B4 Relay
> <devnull+gaohan.iscas.ac.cn@kernel.org> wrote:
> > From: Han Gao <gaohan@iscas.ac.cn>
> >
> > 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@amd.com>
> > Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
>
> 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@iscas.ac.cn
>
> > --- 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.
Following Michal's suggestion[1], I'm dropping ARM/ARM64.
[1] https://lore.kernel.org/all/3d38c4a5-1a12-4af1-ac2e-413a457ce4c5@amd.com/
>
> > 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@linux-m68k.org
>
> 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
Sent using hkml (https://github.com/sjp38/hackermail)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] firmware: arm_scmi: Drop the ARM architecture dependency
2026-11-20 8:43 ` Han Gao
@ 2026-11-20 8:51 ` Geert Uytterhoeven
0 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2026-11-20 8:51 UTC (permalink / raw)
To: Han Gao
Cc: gaohan, Sudeep Holla, Cristian Marussi, Michal Simek, arm-scmi,
linux-arm-kernel, linux-kernel
Hi Han,
On Fri, 20 Nov 2026 at 09:43, Han Gao <rabenda.cn@gmail.com> wrote:
> On Fri, 20 Nov 2026 09:26:47 +0100 Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > On Fri, 6 Nov 2026 at 20:40, Han Gao via B4 Relay
> > <devnull+gaohan.iscas.ac.cn@kernel.org> wrote:
> > > From: Han Gao <gaohan@iscas.ac.cn>
> > >
> > > 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@amd.com>
> > > Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
> >
> > 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@iscas.ac.cn
> >
> > > --- 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.
>
> Following Michal's suggestion[1], I'm dropping ARM/ARM64.
>
> [1] https://lore.kernel.org/all/3d38c4a5-1a12-4af1-ac2e-413a457ce4c5@amd.com/
Yes, I read that.
For reference, other firmware interfaces are also not exposed to the
whole world:
$ git grep -w ARCH_SUPPORTS_ACPI
arch/arm64/Kconfig: select ARCH_SUPPORTS_ACPI
arch/loongarch/Kconfig: select ARCH_SUPPORTS_ACPI
arch/riscv/Kconfig: select ARCH_SUPPORTS_ACPI if 64BIT
arch/x86/Kconfig: select ARCH_SUPPORTS_ACPI
drivers/acpi/Kconfig:config ARCH_SUPPORTS_ACPI
drivers/acpi/Kconfig: depends on ARCH_SUPPORTS_ACPI
$ git grep -w "config EFI"
arch/arm/Kconfig:config EFI
arch/arm64/Kconfig:config EFI
arch/loongarch/Kconfig:config EFI
arch/riscv/Kconfig:config EFI
arch/x86/Kconfig:config EFI
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-20 8:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-06 19:40 [PATCH] firmware: arm_scmi: Drop the ARM architecture dependency Han Gao via B4 Relay
2026-11-09 7:30 ` Michal Simek
2026-11-20 8:26 ` Geert Uytterhoeven
2026-11-20 8:43 ` Han Gao
2026-11-20 8:51 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox