Skip to content

Arm LFA: timeout and ACPI platform driver support

Vedashree Vidwans linux-arm-kernel linux-coco lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2firmware: smccc: add timeout, touch wdtdrivers/firmware/smccc/lfa_fw.c+40 -03 replies
2/2firmware: smccc: register as platform driverdrivers/firmware/smccc/lfa_fw.c+134 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Arm LFA: timeout and ACPI platform driver support

Hello,

(This is an updated version of the [RFC PATCH 0/5] Arm LFA: Improvements and interrupt support [1], which builds on top of the latest [PATCH 0/1] Arm Live Firmware activation (LFA) support [2].)

The latest LFA specification [3] updates the interface requirements for ACPI-based platforms to use the ACPI Notify() signal, and device-tree-based interface is unspecified. This series focuses on reworking the LFA driver as an ACPI-backed platform driver, using ACPI Notify() instead of a dedicated interrupt handler. The LFA core behavior and sysfs layout remain as implemented by the base driver.

This series contains two incremental changes:
1. Add a timeout and watchdog touch during LFA operations, to make the
driver more robust in cases where firmware-side prime/activation phases take longer than expected.
2. Register the LFA implementation as a platform driver, layering a
platform driver interface on top of the existing LFA core logic so the functionality can be instantiated via a platform device.

Note:
This posting focuses on architectural and implementation improvements for the LFA driver itself. It assumes that the bugs and issues raised during review of the original "[PATCH 0/1] Arm Live Firmware activation (LFA) support” [2] will be addressed directly by the author in that base series. Once those fixes are in place, this series is intended to layer on top cleanly.

Testing:
The final integrated driver (base LFA + these additions) has been tested on Nvidia server platform with Linux kernel v6.16. The sysfs interface was not exercised as part of this testing.

Regards,
Veda

[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
[2] https://lore.kernel.org/linux-arm-kernel/[email protected]/
[3] https://developer.arm.com/documentation/den0147/latest/

Vedashree Vidwans (2):
firmware: smccc: add timeout, touch wdt
firmware: smccc: register as platform driver

 drivers/firmware/smccc/lfa_fw.c | 193 ++++++++++++++++++++++++++++----
 1 file changed, 174 insertions(+), 19 deletions(-)
Signature · 1 line
2.43.0