From patchwork Fri May 15 19:53:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 245863 List-Id: U-Boot discussion From: ilias.apalodimas at linaro.org (Ilias Apalodimas) Date: Fri, 15 May 2020 22:53:00 +0300 Subject: [PATCH 0/6 v3] EFI variable support via OP-TEE Message-ID: <20200515195306.522742-1-ilias.apalodimas@linaro.org> Hi! This is the v3 of the patchset adding EFI variable support via OP-TEE originally posted here [1] [2] Changes since v2: * patch 1: - Fixed typos and c/p mistakes on struct documentation * patch 2: - Depend on OPTEE instead of SUPPORT_EMMC_RPMB, since a Secure World storage can be used (directly from StandAloneMM) instead of RPMB - Refactor exit points and always use a goto out; instead of returns when possible - Add an early check on efi_get_next_variable_name() instead of relying on StMM for checking. * patch 3: - Add optional -nv -rt -at -bs arguments to define attributes for efidebug query command [1] https://lists.denx.de/pipermail/u-boot/2020-May/410772.html [2] https://lists.denx.de/pipermail/u-boot/2020-May/411603.html Ilias Apalodimas (5): efi_loader: Implement EFI variable handling via OP-TEE cmd: efidebug: Add support for querying UEFI variable storage MAINTAINERS: Add maintainer for EFI variables via OP-TEE doc: uefi.rst: Add OP-TEE variable storage config options configs: lx2160a: Add default config for lx2160a using StMM in OP-TEE Sughosh Ganu (1): efi_loader: Add headers for EDK2 StandAloneMM communication MAINTAINERS | 6 + cmd/efidebug.c | 60 ++- configs/lx2160ardb_tfa_stmm_defconfig | 78 +++ doc/uefi/uefi.rst | 17 + include/mm_communication.h | 208 ++++++++ lib/efi_loader/Kconfig | 9 + lib/efi_loader/Makefile | 4 + lib/efi_loader/efi_variable_tee.c | 662 ++++++++++++++++++++++++++ 8 files changed, 1043 insertions(+), 1 deletion(-) create mode 100644 configs/lx2160ardb_tfa_stmm_defconfig create mode 100644 include/mm_communication.h create mode 100644 lib/efi_loader/efi_variable_tee.c