From patchwork Sat Sep 3 16:42:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 602393 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp2392411mae; Sat, 3 Sep 2022 09:43:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR4EpfZ4UUpmfzLgGxiA+jCVw559/bDeijgeo7m2NT7jsbf172dCOrgTZsNcJPPSnUxRGtWA X-Received: by 2002:a17:907:75c6:b0:741:75a0:b82b with SMTP id jl6-20020a17090775c600b0074175a0b82bmr5642035ejc.465.1662223380235; Sat, 03 Sep 2022 09:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662223380; cv=none; d=google.com; s=arc-20160816; b=h+3wW9N/7O4WZZ1fZ5tDy8MsznSmN/nft+4yMgtRue5DSE8i1rHsLKhiqQX9iy6Ggo JimGJP9gfSh9yWvfXg1Cs+fMk4I0mem3hE3QMalD1IVpsPyHx+Q1qzUKr1+Z4qV5Y7I4 JsL7ERY1JTfWHeKJ8HLeQa2oDD9ag0vb/FwEcnLqtk5WR9MLkXChlO0y/D5Mis+8i+Hq 4eCzhifv+4fAmUHamW8IYK6bdDqsCRpbpf+0Uo/CZwe3dl+GBP/3t5onomgNpHormQcn wwc+J5kk2RhKwB0YpEVmiFrqMGUG8qgna+d2J+8nxVhBzo5ZcKaK+9BhSAOS88gf7Y/z VrYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=yO6UQmho4sg991g9WeTLRNzw5TbwT8/7jZGvdZeEye8=; b=i5UOhkpuwrU5R31ghLUxN4MJN5QGfs8tMDqg9nbjhIb+vajYSAANR5DtIuJoS/hOxL MV/jvV+AfziwizKn6xqstxGDTyUv1QLPXaASw7MA2ULEaSxIK2wYPcfaeVzvPSW00ZAS B5H8kuh0FOIT8MsqTIExJuXnnTDF5JggsT2Rwo8iOYoa8Nne9XHsFb/7Mlf8EI9NGjgt uQRmBruIyZGEdZD9lTe2ryZ61GMhrWmaygq6/QWmxG2ayw0rX3N+Jup4spgn7p1sL8pk BijfvNi2AL9zMIsBzdbGWdm0+0BvesVz8wA/9UPhkmU8E/0y0koYsIWADEkT4R6CIDSY Mzlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ItzsEXMx; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id dp20-20020a170906c15400b0073d6e50e564si3933339ejc.348.2022.09.03.09.42.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Sep 2022 09:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ItzsEXMx; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8E4FF83FCA; Sat, 3 Sep 2022 18:42:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ItzsEXMx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5D97984001; Sat, 3 Sep 2022 18:42:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 24F4580F4E for ; Sat, 3 Sep 2022 18:42:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-ej1-x62a.google.com with SMTP id kk26so9299633ejc.11 for ; Sat, 03 Sep 2022 09:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date; bh=yO6UQmho4sg991g9WeTLRNzw5TbwT8/7jZGvdZeEye8=; b=ItzsEXMxSztpdovNK5raRTfvUXf8GqmdjG7PYgr9yMSnnKZ//yCcP2jq/nXrfLEAez 2MCLXp9mCSMDtcjRwI3lxVSHCV0FcdLXxdAKzEjbUcSkPDtWpEOOI/WV7dz4EJKA+oP3 fo2QNj5tDSeEdtI8C6iT4AQ2fgi3g6AbvnQaB2cObU3XaOSYyDcgPUTmdE8fDJdtyCaT BUXE7kNIF5fA13iEllFTOsvfQCi1R3Qy/mKW+oLBhnxPDt4eOXZ7fe+7VCerPTrQTnjF oPeWAzSE0aIziVyFPLyDC5WjAKmfksgTRCBf/CIvRemxE4GumpHc7tpOQWV+Pvg0VsBx +6Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date; bh=yO6UQmho4sg991g9WeTLRNzw5TbwT8/7jZGvdZeEye8=; b=X3DFOTSV56qoPCZXShINLDDHNOakH/k4TT18oIg6AoxpsA8X3LYncDSt6/GKO3onzU HBZPNp3K9jxG/OfA1y/SEE9gWigy89d7pFogfSvSwjtKmfoyHaK8iJ2uVpQ22ZCImCcS TX+QFeb3oIvaK9XDZtczrk5/QPezqMMx9+5+lmq/2OmZPS1fAiOyurQU6HwfvpcSC5+x 4Xcd3tfFdKJyUwGhhfqiXtX/u+nJaISTflZnUjCETHU5Mrfftrr/nHxuLLbqfbPT0bcD tw5TmfZw45ceJbuz+YrcpVpd2qmknMWsXNCFDeiqP+plnu5NcMPdiMEbjggABQ6T/2SG WqQw== X-Gm-Message-State: ACgBeo15Ixyo1tYooiwpoT62XQeUQ5/D1vtOc9DI63w/26Ttny6e2Mdu 7TVYkYnvDZpXtyGji37LKODym4zThkN3iA== X-Received: by 2002:a17:907:9495:b0:73c:b19e:ce06 with SMTP id dm21-20020a170907949500b0073cb19ece06mr30328761ejc.559.1662223370723; Sat, 03 Sep 2022 09:42:50 -0700 (PDT) Received: from localhost.localdomain ([46.103.15.185]) by smtp.gmail.com with ESMTPSA id kv8-20020a17090778c800b00741b368a448sm2624157ejc.203.2022.09.03.09.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Sep 2022 09:42:49 -0700 (PDT) From: Ilias Apalodimas To: u-boot@lists.denx.de, trini@konsulko.com Subject: Pull request tpm-03092022 Date: Sat, 3 Sep 2022 19:42:47 +0300 Message-Id: <20220903164247.387856-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean Hi Tom, The following changes since commit 67fe8cc0016756f3479288b3f67d59a517e512d5: Merge tag 'efi-2022-10-rc4' of https://source.denx.de/u-boot/custodians/u-boot-efi (2022-09-02 09:09:47 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-tpm/ tags/tpm-03092022 for you to fetch changes up to 5208ed187cb6314dc64657802e8e5bb5a5e3a7fb: tpm: Allow committing non-volatile data (2022-09-03 16:59:05 +0300) CI: https://source.denx.de/u-boot/custodians/u-boot-tpm/-/commit/5208ed187cb6314dc64657802e8e5bb5a5e3a7fb Please pull Thanks /Ilias ---------------------------------------------------------------- Simon added a few TPM fixes and additions regarding the TRPM internal state reporting ---------------------------------------------------------------- Simon Glass (7): tpm: Require a digest source when extending the PCR tpm: Correct the permissions command in TPMv1 tpm: Correct the define-space command in TPMv2 tpm: sandbox: Allow init of TPM in a different phase tpm: Allow reporting the internal state tpm: Implement state command for Cr50 tpm: Allow committing non-volatile data cmd/tpm-common.c | 20 +++++ cmd/tpm-user-utils.h | 2 + cmd/tpm-v1.c | 3 +- cmd/tpm-v2.c | 3 + cmd/tpm_test.c | 5 +- drivers/tpm/cr50_i2c.c | 163 +++++++++++++++++++++++++++++++++++++++++ drivers/tpm/tpm-uclass.c | 10 +++ drivers/tpm/tpm2_tis_sandbox.c | 17 ++++- include/tpm-common.h | 20 +++++ include/tpm-v2.h | 30 ++++++++ include/tpm_api.h | 8 +- lib/tpm-v1.c | 5 +- lib/tpm-v2.c | 70 ++++++++++++++++-- lib/tpm_api.c | 10 ++- test/dm/Makefile | 1 + test/dm/tpm.c | 34 +++++++++ 16 files changed, 380 insertions(+), 21 deletions(-) create mode 100644 test/dm/tpm.c