From: Nirmoy Das <nirmoyd@nvidia.com>
To: Andre Przywara <andre.przywara@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Lorenzo Pieralisi <lpieralisi@kernel.org>,
"Sudeep Holla" <sudeep.holla@kernel.org>
Cc: Salman Nabi <salman.nabi@arm.com>,
Vedashree Vidwans <vvidwans@nvidia.com>,
Trilok Soni <trilokkumar.soni@oss.qualcomm.com>,
<vsethi@nvidia.com>, Varun Wadekar <vwadekar@nvidia.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, "Rob Herring" <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
<devicetree@vger.kernel.org>
Subject: Re: [PATCH v5 RESEND 0/6] Arm Live Firmware Activation (LFA) support
Date: Thu, 5 Nov 2026 10:17:39 +0100 [thread overview]
Message-ID: <8b794465-2032-46e3-a090-07d64e0b4146@nvidia.com> (raw)
In-Reply-To: <20261102165421.3651202-1-andre.przywara@arm.com>
On 02.11.26 17:54, Andre Przywara wrote:
> Hi all,
>
> -------------------------
> a resend of the v5 series posted two weeks ago, where our mailserver
> swallowed one email. Just used the opportunity to rebase on v7.4-rc1,
> so dropping the two extra patches I prepended to the post back then
> (already merged). No changes to the patches themselves compared to the
> other v5 post.
> -------------------------
>
> v5 is a decent overhaul of the series for the "Live Firmware Activation"
> kernel support, based on feedback from Mark and Sudeep. Two patches have
> been squashed into the main feature patch, the name attribute has been
> removed, and documentation (hopefully) improved. Other than that quite
> some smaller changes, renames and reworks, hopefully for the better.
>
> For a high level overview of LFA see the rest of this commit message and
> the commit message of the main feature patch (2/6). Some simplified
> overview of the spec is in the top comment in patch 2/6. Also the sysfs
> ABI documentation in the last patch contains some more information.
>
> Based on v7.4-rc1. Changelog below.
> ====================================
>
> This series implements the kernel side support of the Arm Live
> Firmware Activation (LFA) specification [2]. LFA enables the activation
> of updated firmware components without requiring a system reboot,
> reducing downtime and allowing quicker deployment of critical bug fixes
> in environments such as data centers and hyperscale systems.
> It requires explicit firmware support, both via an agent running in EL3
> (for instance in TF-A, already merged), but also in the firmware
> component to be activated. TF-RMM recently merged support for this.
>
> Unlike the usual firmware update process (which may use tools like
> fwupd), LFA focuses solely on the activation of an already updated
> firmware component, called "pending activation" in LFA lingo. This works
> by signalling the LFA agent (part of the EL3 runtime firmware) via an
> SMC call, which then does the heavy lifting of the live update, in
> cooperation with the to-be-updated firmware component.
>
> Key features of the driver:
> * Detects LFA support in system firmware (EL3).
> * Lists all firmware components that support live activation, identified
> by their UUID.
> * Exposes component attributes (e.g., activation capability, and
> activation pending) via sysfs under /sys/firmware/lfa/<UUID>/.
> * Provides interfaces to:
> - Trigger activation of an updated firmware component.
> - Cancel an ongoing activation if required.
> A more detailed list of features can be found in patch 2/6.
> Based on v7.4-rc1.
>
> This work is conceptually similar to Intel’s Platform Firmware Runtime
> Update and telemetry (PFRUT) [3] and TDX module updates [4], but
> targets Arm platforms. The driver has been used to successfully activate
> a Realm Management Monitor (RMM) firmware image in a controlled test
> environment. RMM is analogous to Intel’s TDX module.
>
> There is effort on similar work from the OCP [5]. Future work may
> include integration with utilities like fwupd to automatically select
> the appropriate driver, based on platform architecture, for Live/Runtime
> firmware updates.
>
> Please have a look, test and comment!
Hi Andre,
Tested on our hardware with my 3/6 probe fix applied. Automatic
activation via the ACPI notification worked.
Our internal AI reviewer flagged a number of issues, which Sashiko will
probably flag as well. Sashiko has shown this series as
"In Review" since Nov 2, while series posted around it were reviewed. Do
you know whether it is still working on it, or does the series
need a resend to get reviewed?
https://sashiko.dev/#/patchset/20261102165421.3651202-1-andre.przywara%40arm.com
Regards,
Nirmoy
>
> Best regards,
> Salman and Andre
>
> Changes in v5:
> - merge the timeout and the lock patch into original feature patch
> - drop "name" attribute altogether
> - rename firmware "image" to "component" everywhere
> - add explanation of LFA concepts in top comment
> - use switch/case for error strings and error mapping
> - define error codes with negative numbers
> - rename SMCCC register variable to from "reg" to "regs"
> - don't open code bit masking
> - use only one SMCCC register set where possible
> - rewrite retry:/goto into do/while() loop
> - make example IRQ to be edge triggered
> - update activation_pending in pending_version_show()
> - check SMCCC version to be v1.2 or higher
> - check all SMCCC functions are implemented
> - remove blank lines before return statements
> - use UUID instead of GUID everywhere
> - improve comments
> - filter for ACPI notification 0x80 only
> - update ABI doc to use "component", not "image"
> - add activation_pending attribute
> - fix IRQ/ACPI registration error handling
> - add comments documenting lock requirements
> - print LFA error number when printing error strings
> - explicitly free IRQ in remove() routine
> - reorder functions to avoid early empty prototype
> - adjust SMCCC function ID names to match spec
> - copy list of activatable images to avoid infinite loop
> - update pending status when showing pending_version
> - cast error returns to s64
> - replace "N/A" error return with empty string
>
> Changes in v4:
> - streamline threaded IRQ handler (drop empty hard IRQ part)
> - add lfa_to_linux_error() conversion function
> - use Linux errno codes in more functions
> - drop bogus LFA error numbers for -EAGAIN and -EBUSY
> - clarify interrupt purpose and edge trigger requirement in binding
> - honour signal related return from msleep_interruptible()
> - call clean_fw_images_tree() first in driver teardown
> - streamline ACPI and DT registration
> - cache rendezvous status to avoid race during activation
> - only trigger activation when writing 1/Y/true to sysfs file
> - adapt to new version of Aneesh's SMCCC bus patches ([1])
>
> Changes in v3:
> - change node name in DT binding example
> - move SMCCC function identifiers into generic SMCCC header
> - rework to use the new SMCCC bus instead of a using a faux device
> - add missing workqueue cleanup in probe() routine
> - squash former patch v2 3/8 into base patch
> - use get_image_name() more consistently
> - also consider -LFA_BUSY return in activate call
>
> Changes in v2:
> - restrict build to arm64 (the LFA spec only supports AArch64)
> - rename and extend central data structure to fw_image
> - use separate GPR register sets for some SMC calls
> - provide wrapper for error messages to prevent out-of-bound access
> - return GUID in the "name" sysfs file when image is unknown
> - fix wrong attribute in pending version number show function
> - add missing include files and order them properly
> - fix memory leaks in error cleanup paths
> - handle lifetime using embedded kobjects and a kset
> - drop global lfa_lock, use kset list lock and kobject refcount instead
> - add DT binding documentation
> - add timeout and watchdog re-arming (contributed by Veda)
> - relax timeout period and do not block while waiting
> - register ACPI notification (contributed by Veda) and DT interrupt
> - refactor ACPI notification code to allow sharing with DT code
> - use faux device instead of platform driver
> - add auto_activate file to control automatic activation
> - introduce rwsem mutex to prevent using stale sequence ID
> - use labels and goto instead of infinite loop when retrying activation
> - initialise workqueue only once (thanks to Nirmoy)
> - various cleanups on reported messages and code formatting
> - rebase on top of v7.0-rc1
>
> Changes in v1:
> - Updated SMCCC version 1.1 to 1.2 per the LFA specification requirement.
> - Changed "image_props" array to a linked list to support the dynamic
> removal and addition of firmware images.
> - Added code to refresh firmware images following a successful activation.
> - Added a work_queue to handle the removal of firmware image attribute
> from it's respective kobject "_store" handle.
> - Refactored prime and activate into separate functions.
> - Kernel config for LFA now defaults to "y" i.e. included by default.
> - Added individual kernel attribute files removal when removing the
> respective kobjects using kobject_put().
> - mutex_lock added to activate_fw_image() and prime_fw_image() calls.
> - Renamed create_fw_inventory to update_fw_image_node.
> - Renamed create_fw_images_tree to update_fw_images_tree.
> - Added two more attributes due to specs update from bet0 to bet1:
> current_version: For retrieval of the current firmware's version info.
> pending_version: For retrieval of the pending firmware's version info.
> - Minor changes such as, improved firmware image names, and code comments.
> - do...while loops refactored to for(;;) loops.
>
> [1] https://lore.kernel.org/linux-arm-kernel/20260914060511.277948-1-aneesh.kumar@kernel.org/
> [2] https://developer.arm.com/documentation/den0147/latest/
> [3] https://lore.kernel.org/all/cover.1631025237.git.yu.c.chen@intel.com/
> [4] https://lore.kernel.org/all/20250523095322.88774-1-chao.gao@intel.com/
> [5] https://www.opencompute.org/documents/hyperscale-cpu-impactless-firmware-updates-requirements-specification-v0-7-9-29-2025-pdf
>
> Andre Przywara (4):
> dt-bindings: arm: Add Live Firmware Activation
> firmware: smccc: lfa: Add auto_activate sysfs file
> firmware: smccc: lfa: Register DT interrupt
> firmware: smccc: lfa: add sysfs ABI documentation
>
> Salman Nabi (1):
> firmware: smccc: Add support for Live Firmware Activation (LFA)
>
> Vedashree Vidwans (1):
> firmware: smccc: lfa: Register ACPI notification
>
> Documentation/ABI/testing/sysfs-firmware-lfa | 106 ++
> .../devicetree/bindings/arm/arm,lfa.yaml | 50 +
> drivers/firmware/smccc/Kconfig | 10 +
> drivers/firmware/smccc/Makefile | 1 +
> drivers/firmware/smccc/lfa_fw.c | 1057 +++++++++++++++++
> drivers/firmware/smccc/smccc.c | 5 +
> include/linux/arm-smccc.h | 15 +
> 7 files changed, 1244 insertions(+)
> create mode 100644 Documentation/ABI/testing/sysfs-firmware-lfa
> create mode 100644 Documentation/devicetree/bindings/arm/arm,lfa.yaml
> create mode 100644 drivers/firmware/smccc/lfa_fw.c
>
prev parent reply other threads:[~2026-11-05 9:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 16:54 Andre Przywara
2026-11-02 16:54 ` [PATCH v5 RESEND 1/6] dt-bindings: arm: Add Live Firmware Activation Andre Przywara
2026-11-02 16:54 ` [PATCH v5 RESEND 2/6] firmware: smccc: Add support for Live Firmware Activation (LFA) Andre Przywara
2026-11-04 22:50 ` Vedashree Vidwans
2026-11-02 16:54 ` [PATCH v5 RESEND 3/6] firmware: smccc: lfa: Register ACPI notification Andre Przywara
2026-11-04 20:03 ` Nirmoy Das
2026-11-04 23:02 ` Vedashree Vidwans
2026-11-02 16:54 ` [PATCH v5 RESEND 4/6] firmware: smccc: lfa: Add auto_activate sysfs file Andre Przywara
2026-11-02 16:54 ` [PATCH v5 RESEND 5/6] firmware: smccc: lfa: Register DT interrupt Andre Przywara
2026-11-03 4:20 ` kernel test robot
2026-11-03 7:50 ` kernel test robot
2026-11-03 9:25 ` kernel test robot
2026-11-02 16:54 ` [PATCH v5 RESEND 6/6] firmware: smccc: lfa: add sysfs ABI documentation Andre Przywara
2026-11-05 9:17 ` Nirmoy Das [this message]
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=8b794465-2032-46e3-a090-07d64e0b4146@nvidia.com \
--to=nirmoyd@nvidia.com \
--cc=andre.przywara@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh@kernel.org \
--cc=salman.nabi@arm.com \
--cc=sudeep.holla@kernel.org \
--cc=trilokkumar.soni@oss.qualcomm.com \
--cc=vsethi@nvidia.com \
--cc=vvidwans@nvidia.com \
--cc=vwadekar@nvidia.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
all inboxes | Powered by JetHome®