From patchwork Sat Nov 13 20:15:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1554759 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=h43vLtdR; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hs6Ct3gTkz9s5P for ; Sun, 14 Nov 2021 07:16:10 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5BEEB83273; Sat, 13 Nov 2021 21:16:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="h43vLtdR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6DCEE83273; Sat, 13 Nov 2021 21:16:05 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7A1168326B for ; Sat, 13 Nov 2021 21:16:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1636834559; bh=ZZRXhaUp2k+KNGLraNLG6uo2cps4sW1WTTIyJ49CJ6E=; h=X-UI-Sender-Class:Date:To:Cc:From:Subject; b=h43vLtdRwiHYiqL5ztWj7LpgtWd2tlZZ1iNa7IG6Q8YnDfaE3frX3mRy+dUlZBOpT lhWp+Ls0AK09/WD3sW2XDSU0EjCtnILeGXfYhoYLxAuk5atFEhK7Y+cNM36dyEaL6Y 6Wa6YQ9I596yiwoGeZYBpUX2S2XDdKVaeDmYyJ/g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.35] ([88.152.144.157]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MfHAB-1mBX1Q2Ed1-00gq6s; Sat, 13 Nov 2021 21:15:59 +0100 Message-ID: <27128b8e-b61e-2af0-df99-25a61847bd73@gmx.de> Date: Sat, 13 Nov 2021 21:15:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Content-Language: en-US To: Tom Rini Cc: Alexander Graf , U-Boot Mailing List , Ilias Apalodimas , Masahisa Kojima , Simon Glass From: Heinrich Schuchardt Subject: Pull request for efi-2022-01-r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i04hwyVR0zk8CiTw4JNmT715ehQxWtUN AwziIRX+qB5Izq6u2aygouX5cImhT7tjCHKfqTGUP6okEJvCxBFfyHtblsMav8mK8rogqvnnL 9wk5scKZsMr4FfhA6S3+KMF4wmk0vqXqWItGL70i1KMA1JlgEi1S+mLy5PV1nghw3vDI/TT7j zdw3pvlhloOcGvm4Q5k4Jcwp/C6JqZ4/vjK+rO7OkxLdv5esxeUBY0gCFTgLFeJDjcwiA8fcu jus5B5+e6WKqLRWXnfkur/h/60aeeYnoOz5jxrHJz/TxkT+VahKDHD/5sDh+0xcIzyHo1GUpq gXptXLZpA0aNt8= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Dear Tom, as agreed with Simon I have added the TPMv2 mmio driver to my pull request as this driver is needed for testing the EFI_TCG2_PROTOCOL. Patch Dockerfile: build swtpm https://lists.denx.de/pipermail/u-boot/2021-November/466713.html is another part of the effort to make the protocol testable. The following changes since commit 6354913def1f61711c2278bd2616c748f21f69da: Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-marvell (2021-11-10 09:15:18 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-01-rc2-2 for you to fetch changes up to 2a10e06e07540694d82838793ee7cb34f4dbc59c: MAINTAINERS: Add entry for TPM drivers (2021-11-10 20:57:54 +0100) ---------------------------------------------------------------- Pull request for efi-2022-01-rc2-2 UEFI: * fix measurement of BootOrder variable for TCG2 protocol TPM: * TIS mmio driver. This driver supports QEMU's emulated TPM. ---------------------------------------------------------------- Ilias Apalodimas (8): tpm: refactor function names and macros for infineon v1.2 TPM tpm: refactor function names for LPC based TPMs tpm2: Introduce TIS tpm core tpm2: Add a TPMv2 MMIO TIS driver tpm: Use the new API on tpm2 spi driver configs: Enable tpmv2 mmio on qemu for arm/arm64 doc: qemu: Add instructions for swtpm usage MAINTAINERS: Add entry for TPM drivers Masahisa Kojima (1): efi_loader: fix BootOrder variable measurement handling MAINTAINERS | 5 + configs/qemu_arm64_defconfig | 2 + configs/qemu_arm_defconfig | 2 + doc/board/emulation/qemu-arm.rst | 25 +++ drivers/tpm/Kconfig | 9 + drivers/tpm/Makefile | 3 +- drivers/tpm/tpm2_tis_core.c | 463 +++++++++++++++++++++++++++++++++++++++ drivers/tpm/tpm2_tis_mmio.c | 157 +++++++++++++ drivers/tpm/tpm2_tis_spi.c | 447 +++---------------------------------- drivers/tpm/tpm_tis.h | 136 ++++++++++++ drivers/tpm/tpm_tis_infineon.c | 34 +-- drivers/tpm/tpm_tis_lpc.c | 4 +- include/tpm-v2.h | 1 + lib/efi_loader/efi_tcg2.c | 4 +- 14 files changed, 854 insertions(+), 438 deletions(-) create mode 100644 drivers/tpm/tpm2_tis_core.c create mode 100644 drivers/tpm/tpm2_tis_mmio.c