mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yeoreum Yun <yeoreum.yun@arm.com>
To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Cc: Lorenzo Pieralisi <lpieralisi@kernel.org>,
	 Catalin Marinas <catalin.marinas@arm.com>,
	 Suzuki Poulose <suzuki.poulose@arm.com>,
	 Steven Price <steven.price@arm.com>,
	Sami Mujawar <sami.mujawar@arm.com>,
	 "Aneesh Kumar K.V" <aneesh.kumar@kernel.org>,
	Jiri Pirko <jiri@resnulli.us>,
	 GONG Ruiqi <gongruiqi1@huawei.com>,
	Jason Gunthorpe <jgg@ziepe.ca>,  Mark Brown <broonie@kernel.org>,
	Yeoreum Yun <yeoreum.yun@arm.com>
Subject: [PATCH RFC v2 0/6] firmware: arm_firme: introduce FIRME support for host attestation
Date: Fri, 27 Nov 2026 15:28:30 +0000	[thread overview]
Message-ID: <20261127-firme_interface-v2-0-ab88b2d0b4e0@arm.com> (raw)

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@vger.kernel.org
To: linux-arm-kernel@lists.infradead.org
Cc: Lorenzo Pieralisi <lpieralisi@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Suzuki Poulose <suzuki.poulose@arm.com>
Cc: Steven Price <steven.price@arm.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@kernel.org>
Cc: Jiri Pirko <jiri@resnulli.us>
Cc: GONG Ruiqi <gongruiqi1@huawei.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Mark Brown <broonie@kernel.org>

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@resnulli.us/
Link: [3] https://lore.kernel.org/all/20261113160838.2512652-1-jiri@resnulli.us/
---
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@arm.com

---
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


             reply	other threads:[~2026-11-27 15:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 15:28 Yeoreum Yun [this message]
2026-11-27 15:28 ` [PATCH RFC v2 1/6] firmware: arm-smccc: introduce match function Yeoreum Yun
2026-11-27 15:28 ` [PATCH RFC v2 2/6] firmware: arm_firme: introduce arm_firme Yeoreum Yun
2026-11-27 15:28 ` [PATCH RFC v2 3/6] Documentation/ctlv: introduce ctlv-attestation-firme family Yeoreum Yun
2026-11-27 15:28 ` [PATCH RFC v2 4/6] ctlv: add auto-generated files for ctlv-attestation-firme Yeoreum Yun
2026-11-27 15:28 ` [PATCH RFC v2 5/6] attestation: providers: introduce FIRME attestation provider Yeoreum Yun
2026-11-27 15:28 ` [PATCH RFC v2 6/6] selftest: attestation: add firme_attestation_test selftest Yeoreum Yun

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=20261127-firme_interface-v2-0-ab88b2d0b4e0@arm.com \
    --to=yeoreum.yun@arm.com \
    --cc=aneesh.kumar@kernel.org \
    --cc=broonie@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=gongruiqi1@huawei.com \
    --cc=jgg@ziepe.ca \
    --cc=jiri@resnulli.us \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=sami.mujawar@arm.com \
    --cc=steven.price@arm.com \
    --cc=suzuki.poulose@arm.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®