[PATCH RFC v2 0/6] firmware: arm_firme: introduce FIRME support for host attestation

From: Yeoreum Yun

Date: Fri Nov 27 2026 - 10:30:02 EST


The Arm Confidential Compute Architecture (CCA) introduces the
Realm Management Extension (FEAT_RME), which enables the creation and
management of dynamically allocated, attestable trusted execution
environments known as Realms.

Realm management relies on EL3 firmware to provide services for Realm
construction, resource allocation and isolation, and attestation of
the initial Realm state.

The Firmware Interface for Realm Management Extensions (FIRME) [0]
specification defines standard interfaces through which EL3 firmware
provides these services. FIRME defines the following service groups:

- Granule Protection Table (GPT) management
- IDE key management for PCIe and CXL Root Ports
- Memory Encryption Context management
- Attestation Token management
- Integrated Device management

FIRME also defines a Base service that provides common functionality,
including service discovery and feature discovery.

Although FIRME primarily supports Arm CCA, its interfaces can also be used
on systems without FEAT_RME to provide firmware-based attestation and
other security services.

This RFC patch series introduces the arm_firme, which provides
the common APIs used to firme service driver implementation.
each firme service driver would be implmented based on the smccc-bus
with common APIs and add firme attestation provider with smccc driver.

This patch based on arm64/for-next/smccc-bus and attestation branch [1-3].

To: linux-kernel@xxxxxxxxxxxxxxx
To: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
Cc: Lorenzo Pieralisi <lpieralisi@xxxxxxxxxx>
Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
Cc: Suzuki Poulose <suzuki.poulose@xxxxxxx>
Cc: Steven Price <steven.price@xxxxxxx>
Cc: Sami Mujawar <sami.mujawar@xxxxxxx>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@xxxxxxxxxx>
Cc: Jiri Pirko <jiri@xxxxxxxxxxx>
Cc: GONG Ruiqi <gongruiqi1@xxxxxxxxxx>
Cc: Jason Gunthorpe <jgg@xxxxxxxx>
Cc: Mark Brown <broonie@xxxxxxxxxx>

Link: [0] https://support.arm.com/documentation/den0149/latest
Link: [1] https://github.com/jpirko/linux_mlxsw/tree/wip_attestation_all_2
Link: [2] https://lore.kernel.org/all/20261113155515.2510194-1-jiri@xxxxxxxxxxx/
Link: [3] https://lore.kernel.org/all/20261113160838.2512652-1-jiri@xxxxxxxxxxx/
---
Changes in RFCv2:
- rebase on the attestation infrastructure.
- librarise arm_firme.c from firme driver.
- add firme attestation provider.
- Link to RFCv1: https://lore.kernel.org/r/20261019-firme_interface-v1-0-27895c9cebaa@xxxxxxx

---
Yeoreum Yun (6):
firmware: arm-smccc: introduce match function
firmware: arm_firme: introduce arm_firme
Documentation/ctlv: introduce ctlv-attestation-firme family
ctlv: add auto-generated files for ctlv-attestation-firme
attestation: providers: introduce FIRME attestation provider
selftest: attestation: add firme_attestation_test selftest

Documentation/ctlv/abi/ctlv-attestation-firme.yaml | 19 +
Documentation/ctlv/abi/families.registry.yaml | 1 +
Documentation/ctlv/families.yaml | 1 +
Documentation/ctlv/generated-files.yaml | 11 +
.../ctlv/specs/ctlv-attestation-firme.yaml | 20 +
drivers/attestation/Kconfig | 9 +
drivers/attestation/Makefile | 5 +
.../generated/ctlv_attestation_firme_gen.c | 64 +
.../generated/ctlv_attestation_firme_gen.h | 40 +
drivers/attestation/providers/firme.c | 292 ++++
drivers/firmware/Kconfig | 36 +
drivers/firmware/Makefile | 1 +
drivers/firmware/arm_firme.c | 275 ++++
drivers/firmware/smccc/bus.c | 24 +-
drivers/firmware/smccc/smccc.c | 3 +-
include/linux/arm-smccc-bus.h | 5 +-
include/linux/arm-smccc.h | 1 +
include/linux/arm_firme.h | 261 ++++
include/uapi/ctlv/ctlv_attestation_firme_gen.h | 34 +
include/uapi/ctlv/ctlv_families_gen.h | 1 +
tools/testing/selftests/attestation/.gitignore | 1 +
tools/testing/selftests/attestation/Makefile | 10 +-
.../attestation/ctlv_attestation_firme_user_gen.c | 1547 ++++++++++++++++++++
.../attestation/ctlv_attestation_firme_user_gen.h | 47 +
.../selftests/attestation/firme_attestation_test.c | 232 +++
25 files changed, 2928 insertions(+), 12 deletions(-)
---
base-commit: 7ff5e548abbc2312431d4eea9ad283347963a6e2
change-id: 20260729-firme_interface-75616c45a203

Best regards,
--
Sincerely,
Yeoreum Yun