From patchwork Tue Jun 13 08:02:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 691954 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp288470wru; Tue, 13 Jun 2023 01:03:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+nY08itckW7jquPfTq192TtguCh2GYZX8DTJ+2ZdgcN6xN7I1YkzFKrdQ//Dk9N01BlAW X-Received: by 2002:a17:902:ce8a:b0:1b2:a63:95aa with SMTP id f10-20020a170902ce8a00b001b20a6395aamr10217801plg.54.1686643389796; Tue, 13 Jun 2023 01:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686643389; cv=none; d=google.com; s=arc-20160816; b=BgDtCXl6mLtv+q+vLenQAT9YhvJzggvfdoqng0UZe0ozTEkL1VflEblpFTiGWp+jZE BQVAbAbLUYJ4qhrFuMzfkOWtPrm+lLdixuJ1fyNFhnZbGOujWwNIGIjDza1iehL590Ox 856qRrFg03uJOROt7NToQ8nKTDwcy4cyvgbmw5Njl39Hw3BBhSinUI0rBAFj2NntnXWO VXjIcv4t1cMLM7NlcDeEPFDi2jE4niQisdjEsbxXvo1Omi/z1NucTsyBWHMAxUNAuRDO DvhtbZ0CBoxT6exb4faqv3oqhsQ1o5mDcNEfhG5YgIoW0F9wxjtwCDkUmYDchOIU/EJH KLCg== 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:cc:to:from:dkim-signature; bh=BkCM2xdKzKTztOkNR20nQSVtj/zX0rxpa1WYWxN9sxU=; b=GJvHiLrksnYykKtXuVJco4rcZp9iwA2Md29iZg1zZcYiUjwP9NwkexgN8ix6rYsIqd 1n1u51AesfAq3bouE/icMnfHnTToXrtCZlzaQCpOi1p80yCNPPehNuuzxyaXUKAdWish VC2hCAV1h2leOofqyVVbL4BfZBqQyGpNtS+Mj+COh3ddzHCoyLYL6J+W3Xpk+360mSDf j4tT9gf6RRAf3CuYruWkVXJs+18a/D98c8I94dAI5K/+lIsAJChgY4j8t0yaAeuPPnAZ osic1aCBqxocgZP73Zr+HDMRGrQrfPwspF3LJKDgTOwBXh1dKvjjRtLpLnklQYE5HQak pF0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VwRt6K8B; 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 b13-20020a170902d50d00b001b3c62d71ccsi3437833plg.227.2023.06.13.01.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 01:03:09 -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=VwRt6K8B; 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 B99B38621A; Tue, 13 Jun 2023 10:03:01 +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="VwRt6K8B"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 76E12861E8; Tue, 13 Jun 2023 10:02:59 +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-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (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 942D785FF0 for ; Tue, 13 Jun 2023 10:02: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=ilias.apalodimas@linaro.org Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-30fbfd517baso1533164f8f.2 for ; Tue, 13 Jun 2023 01:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686643376; x=1689235376; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BkCM2xdKzKTztOkNR20nQSVtj/zX0rxpa1WYWxN9sxU=; b=VwRt6K8BxHnMJinWw8w6VyuD9TAb/Vv3tky3xGHpo0VU8aKcW8ueJWgJpQZei26Smd 5rFsnQgkpU3xulGOc2a0oA+pgs1agKuTagLZQ+6NVk35LcHOifTuGch07AGzUJvrgh9j foNHK8OzFWNL123FIWwmMUsFmf4IofWRvCSIqWKkPWPepy25heTp4pv3j3SDAuZldmZs dG1LlPzD6KhSBGgxihj/vsfuitjwHln2SbYp1ycWOoqV/I8Xg3tE/P+59klldEhYOHsQ uqE+M0HvW8IFR2pHID+ea47LyRJDkI51p9rP1VtG1Tgiuvn5N/Y5R4eWpXRy808qA93K 3dWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686643376; x=1689235376; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BkCM2xdKzKTztOkNR20nQSVtj/zX0rxpa1WYWxN9sxU=; b=jDh9pmkUsHruyMs4P4FWGmgqZ+/65VIDItm2xAmNO+L7XfXD6hi2XFHPCc3H9ukFr9 5ked/Y0/3fIyZ7u5BqlLuLqtn+oJh2pkS3gnXuN+MNPemXZ4TmBXAQExpuduHmjs7Kga K3BXL3xMJpkXUiqzw0yskQa2l2wDSUQn8oukvhcBhtH01pdJHBJfSiTwFngPNx/pm0Ma aLz/KSRTgvngAFdi+tUE2hm5WiVYOG0QsoPgxh3W/kERCcgzl0s/2vurG7RImEp3wCWm Wx0bV0mAIcvfnrondwGZ0NlHNFS1QNtprJAT10kAWg9HMngAfUlblwXa6iMSwDvKPXk5 0kww== X-Gm-Message-State: AC+VfDyapQ22THZYVZmNGbJMe/WUR/yezjAIRcA7kdagAP0rrQxLQqA0 z/ZL3JVd8R1IfGPCfpJVXaAaVcbn/D5bOBjJjUN5XQ== X-Received: by 2002:a5d:4b86:0:b0:30d:5cce:3bb5 with SMTP id b6-20020a5d4b86000000b0030d5cce3bb5mr5275767wrt.60.1686643375902; Tue, 13 Jun 2023 01:02:55 -0700 (PDT) Received: from localhost.localdomain (ppp089210114029.access.hol.gr. [89.210.114.29]) by smtp.gmail.com with ESMTPSA id u3-20020a5d5143000000b0030fcda0508fsm995701wrt.110.2023.06.13.01.02.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 01:02:55 -0700 (PDT) From: Ilias Apalodimas To: u-boot@lists.denx.de, trini@konsulko.com Cc: sjg@chromium.org Subject: Pull request for tpm-for_tom-13062023 Date: Tue, 13 Jun 2023 11:02:53 +0300 Message-Id: <20230613080253.624151-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.39.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.8 at phobos.denx.de X-Virus-Status: Clean Hi Tom, The following changes since commit 260d4962e06c0a7d2713523c131416a3f70d7f2c: Merge tag v2023.07-rc4 into next (2023-06-12 14:55:33 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-tpm/ tags/tpm-for_tom-13062023 for you to fetch changes up to 011f015540d788227a1a2d16dd6245120827bdec: test/py: Account PCR updates properly during testing (2023-06-13 08:51:07 +0300) The CI https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/16574 showed no issues ---------------------------------------------------------------- In order to initialize a tpm device we usually need the following command sequence - tpm init - tpm startup TPM2_SU_CLEAR - tpm2 self_test full A few months ago we added a tpm_autostart() function which wraps that in a single function and always initializes the tpm correctly. We can now provide a command line for that function and simplify our CLI. ---------------------------------------------------------------- Ilias Apalodimas (3): tpm: Add 'tpm autostart' shell command test/py: replace 'tpm2 init, startup, selftest' sequences test/py: Account PCR updates properly during testing cmd/tpm-common.c | 16 ++++++++++++++++ cmd/tpm-user-utils.h | 1 + cmd/tpm-v1.c | 6 +++++- cmd/tpm-v2.c | 6 ++++++ test/py/tests/test_tpm2.py | 19 ++++++++----------- 5 files changed, 36 insertions(+), 12 deletions(-)