[PATCH v2] firmware: arm: Group interface drivers under arm/
Sudeep Holla
sudeep.holla at kernel.org
Mon Nov 9 23:53:26 PST 2026
On Tue, Nov 10, 2026 at 01:27:24PM +1000, Gavin Shan wrote:
> Hi Sudeep,
>
> On 11/6/26 9:50 PM, Sudeep Holla wrote:
> > Arm firmware interface drivers currently live directly under
> > drivers/firmware/. Some use an arm_ prefix while others use generic
> > names. More Arm firmware interface drivers, such as:
> >
> > 1. Live Firmware Activation (LFA) [1]
> > 2. Firmware Interfaces for Realm Management Extension (FIRME) [2]
> >
> > expected soon, which would further crowd the top-level directory.
> >
> > There are couple of other possible arm specific firmware interfaces
> > that may need to reside there.
> >
> > Create drivers/firmware/arm/ as the common home for Arm firmware
> > interface drivers. Move FF-A, PSCI, RMM, SCMI, SCPI, SDEI, and SMCCC
> > under it, drop the redundant arm_ prefix from the some directory/file
> > names. Update the Kconfig, Kbuild, maintainer and documentation paths.
> >
> > The resulting hierarchy provides room for upcoming interfaces without
> > continuing to add Arm-specific directories at the firmware root.
> >
> > [1] https://lore.kernel.org/all/20261102165421.3651202-1-andre.przywara@arm.com/
> > [2] https://lore.kernel.org/all/20261019-firme_interface-v1-0-27895c9cebaa@arm.com/
> >
> > Signed-off-by: Sudeep Holla <sudeep.holla at kernel.org>
> > ---
> >
> > v1[1]->v2:
> > - Rebased on v7.4-rc1
> > - Fixed missing rmm folder movement in Kconfig and Makefile
> >
> > [1] https://lore.kernel.org/all/20261022090003.3083557-1-sudeep.holla@kernel.org/
> >
[...]
> > rename from drivers/firmware/arm_sdei.c
> > rename to drivers/firmware/arm/sdei.c
> > diff --git a/drivers/firmware/arm_sdei_nmi.c b/drivers/firmware/arm/sdei_nmi.c
> > similarity index 100%
> > rename from drivers/firmware/arm_sdei_nmi.c
> > rename to drivers/firmware/arm/sdei_nmi.c
>
> There are other two source files where updates are needed to reflect the
> renaming (drivers/firmware/arm_sdei_nmi.c -> drivers/firmware/arm/sdei_nmi.c).
>
> gshan at gshan-thinkpadx1nanogen2:~/sandbox/l$ git grep arm_sdei_nmi\.c
> arch/arm64/include/asm/nmi.h: * drivers/firmware/arm_sdei_nmi.c implements them when active; a future
> arch/arm64/kernel/smp.c: * - the SDEI cross-CPU NMI handler (drivers/firmware/arm_sdei_nmi.c),
>
Indeed, I have a patch that I plan to send as a fix once this lands in
the upstream to avoid unnecessary dependency/conflicts across tree for
such silly thing.
Regards,
Sudeep
-->8
>From 60c25986d81c86b0e966159715cf982d63308422 Mon Sep 17 00:00:00 2001
From: Sudeep Holla <sudeep.holla at kernel.org>
Date: Fri, 6 Nov 2026 13:49:13 +0000
Subject: [PATCH] arm64: Update stale path references to sdei_nmi.c
Commit ceb90a70d571 ("firmware: arm: Group interface drivers under
arm/") moved drivers/firmware/arm_sdei_nmi.c to
drivers/firmware/arm/sdei_nmi.c but left two comment references
pointing to the old path.
Update the comments in nmi.h and smp.c to reflect the new location.
Signed-off-by: Sudeep Holla <sudeep.holla at kernel.org>
---
arch/arm64/include/asm/nmi.h | 2 +-
arch/arm64/kernel/smp.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/include/asm/nmi.h b/arch/arm64/include/asm/nmi.h
index 2e8974ff8d63..e2956b24b627 100644
--- a/arch/arm64/include/asm/nmi.h
+++ b/arch/arm64/include/asm/nmi.h
@@ -9,7 +9,7 @@ struct pt_regs;
/*
* Cross-CPU NMI provider hooks, consulted by the arm64 arch code before
* its regular-IRQ / pseudo-NMI IPI paths. The SDEI provider in
- * drivers/firmware/arm_sdei_nmi.c implements them when active; a future
+ * drivers/firmware/arm/sdei_nmi.c implements them when active; a future
* FEAT_NMI provider could slot in here too. The stubs let callers stay
* unconditional when ARM_SDEI_NMI is off.
*
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
index 014b163ce658..18e117fea1fc 100644
--- a/arch/arm64/kernel/smp.c
+++ b/arch/arm64/kernel/smp.c
@@ -881,7 +881,7 @@ void arch_irq_work_raise(void)
*
* - the regular IPI_CPU_STOP and pseudo-NMI IPI_CPU_STOP_NMI handlers;
* - panic_smp_self_stop(), a CPU parking itself on a parallel panic();
- * - the SDEI cross-CPU NMI handler (drivers/firmware/arm_sdei_nmi.c),
+ * - the SDEI cross-CPU NMI handler (drivers/firmware/arm/sdei_nmi.c),
* which reaches CPUs the stop IPIs could not.
*
* The IPI stop handlers pass @die_on_crash true. The SDEI handler and
--
2.43.0
More information about the linux-arm-kernel
mailing list