From patchwork Mon May 27 06:15:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 799209 Delivered-To: patch@linaro.org Received: by 2002:a5d:6a47:0:b0:354:fb4b:99cd with SMTP id t7csp1724839wrw; Sun, 26 May 2024 23:15:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXuXBotf2viGA0+uBXHBdkJPLZQzbBVie7+kwhMpCPT9AT1eyNarQuXQ+dJXM9qRegvRil//zsEan8jd2avgcLM X-Google-Smtp-Source: AGHT+IGbSx9YBbekzf835OPMWQJ3k6GpAn4hejau925FqSuzOqjuo3z1e6Loo/huKtBWFBqNJSZc X-Received: by 2002:a17:906:da04:b0:a62:129e:e693 with SMTP id a640c23a62f3a-a6265114ac6mr558365366b.52.1716790512142; Sun, 26 May 2024 23:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716790512; cv=none; d=google.com; s=arc-20160816; b=A4oQQPOqTQQGwCtYy1b3vCBx6YrNp77yD0vdpQM0RbBNGFLpSPqGX8QPddMAbVsqph CJePnI3qxylV4fka0g6BGnYaukiX0bN6Bf0kliypfVhyMqRjYMEY55kbyDpkIftMOy5Q 1bwPHRM8IB3yUQgGThO36VJ3OZQZPKVhHBY2fdAwJlCMUnOaYko6kpGlJkPJr72+9ZTm yro12fBCL8tx0uIlDfAYMy7e9MrdALx3RwNIz5D3O1ljcc8e7FHJoE8nhJGxE4JMHtww SAKACtDGE+nd6SPgUaZjlmbpoW0WXFPiquCApw1/xVjkYaiVZI4RdJ7aAmz+BXVlF2vm +Fng== 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=dwxI66VAYJF0FDH3lf4LfwD2O50HJxN/ySLMQfQdVr0=; fh=p9BSuLA8mwDVSV2wLBoVWl2/Not1CjfFTlcpg37N2rk=; b=hTVsKcSDC8vdW2keEqBCWP8E9wmLsaV0+/z9KCeVYPgQ2TwdI/bzbMWVVB/RLLTwPg iyIIT3eRuCHeIXW8pdfHYrv7KihDIowjs2/v5X6hIO2DANQ2AMDLGJLGAJeR3QFzyKKx /6PC4CDohVgL5GzWAgSEjhmvGeR1crZuORdSAzDuTIbY0XHcsPUzzJQZ0S0lg0jZ9y2Q PS1TjjdZPAz28EauhYu7VL2ry0bgyB1PR0v9LVn24pZBHrq16SrLSzWG2gEhdylsAFf4 AngFYp+mZc6Ph94MR4KqH+CkoDiTfzasAsNoEabP0WOUqfHnoAApg8BeOPka5Et2Sijm B/sA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yrqcAG8Y; 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 a640c23a62f3a-a626cc37890si349232566b.477.2024.05.26.23.15.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 23:15:12 -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=yrqcAG8Y; 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 8DF3387D5F; Mon, 27 May 2024 08:15:11 +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="yrqcAG8Y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 52A4688228; Mon, 27 May 2024 08:15:10 +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-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) (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 AB32887C75 for ; Mon, 27 May 2024 08:15:07 +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-lj1-x234.google.com with SMTP id 38308e7fff4ca-2e72224c395so85206561fa.3 for ; Sun, 26 May 2024 23:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716790507; x=1717395307; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dwxI66VAYJF0FDH3lf4LfwD2O50HJxN/ySLMQfQdVr0=; b=yrqcAG8Yz9XYCM+OIARNugx5HFW9sz+wkKVJPdG+zbPGKUGQQnCJoDE7qieiAbB/iE JP0WgSWyN3qGJWT9D+xjO4MZyzHtL/4YqYhaMOF7OKCFogZaD6bHrwAZWwy5j30jV+32 Ut5UlBxMSJ+DkPet0gBpMJ6Xz7Nr4U8R7w7Q0IwvT8tAakrTWGXXDWztJvM0Tj3LHYv4 khr6SVI77u9x08aQ915/DCYfMwTAfypv646aKo7vcrei6wbE+oL3SqYbb6bxqLMg8aRe mIVl46/04XP/ujPHgM4zPYCx7/Y8KHKIdy7ScsImrCSnCpleyqoRvyuGe1YVvcSszPXT 8JTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716790507; x=1717395307; 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=dwxI66VAYJF0FDH3lf4LfwD2O50HJxN/ySLMQfQdVr0=; b=qCKx/XKXgx0wVJ3ddHRq7ZHIkRFOIbh/VdVulEOGmx/kWRztOjh8C7Zf0dmDElqxXw tHg4LjGKK+liP3U1jSdFvxwknclBWYndRQfawgk0mTH1tCh8B9QQ3AiD2W1K3AoISMsQ giaf92OwggB8cAzGglz1RGoXe5cba46PuVdsyKW6crYeYBqsRy8KIv6lvYwV4KRlg+aW vZRlfzXlgpWHpN48OQk6BkZk+gixi3zrVIftHHtn3B+BxvieEsTrmrplGlvfPP9IxXwo ks1zzStYM0WUp4pAOF8heGx65ISnO2i3EttmkipKjD0Q6/sf9D13fBdH2LOjKIqRSNwT D+Qw== X-Gm-Message-State: AOJu0YzUpfpqZ3G3Q6eMwNH2sd/rY5d/qv6tAONZeYEQsyNweEaWwtO/ 0Y6ULSKhOIurgz0bXDDwSWuS84d55jPhEdVTDTWwW+hCC6a9tBHNjhHXXnoLR4Jix2kt9n1fyvm l X-Received: by 2002:a2e:9f43:0:b0:2d8:8eb4:11a6 with SMTP id 38308e7fff4ca-2e95b08c1b7mr49767911fa.12.1716790506975; Sun, 26 May 2024 23:15:06 -0700 (PDT) Received: from localhost.localdomain (ppp089210091242.access.hol.gr. [89.210.91.242]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-358a33e6f03sm2794517f8f.36.2024.05.26.23.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 23:15:06 -0700 (PDT) From: Ilias Apalodimas To: u-boot@lists.denx.de, trini@konsulko.com Cc: ilias.apalodimas@linaro.org, tharvey@gateworks.com Subject: Pull request for tpm-master-27052024 Date: Mon, 27 May 2024 09:15:04 +0300 Message-ID: <20240527061504.19822-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.45.1 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 I know it's not early in the release and although this contains a new feature apart from fixes, I prefer this going into -master. The added feature is on a TPM cmd and is harmless. If you only want the fixes please let me know and I'll send the rest in -next The following changes since commit a7f0154c412859323396111dd0c09dbafbc153cb: Prepare v2024.07-rc3 (2024-05-20 10:05:16 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-tpm/ tags/tpm-master-27052024 for you to fetch changes up to 89aa8463cdf3919ca4f04fc24ec8b154ff56d97e: tpm-v2: allow algorithm name to be configured for pcr_read and pcr_extend (2024-05-27 09:00:27 +0300) The CI https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/20873 had no issues Please consider pulling Thanks /Ilias ---------------------------------------------------------------- Tim fixed - An inconsistency in the reported active PCR banks. This was only affecting EFI applications requesting the active PCR banks from the TPM. - Adjusted the error message when a reset GPIO for the TPM was not found. It now prints a reasonable error message, instead of just printing that GPIO was not found - Enhanced the tpm command functionality. We can now define the algorithm(sha1, 256 etc) we want to use while extending or reading PCRs ---------------------------------------------------------------- Tim Harvey (3): tpm: display warning if using gpio reset with TPM tpm-v2: add support for mapping algorithm names to algos tpm-v2: allow algorithm name to be configured for pcr_read and pcr_extend cmd/tpm-v2.c | 49 +++++++++++++++++++-------- drivers/tpm/tpm2_tis_spi.c | 21 +++++++----- include/tpm-v2.h | 77 +++++++++++++++++++++++++++++++++++++++++-- lib/efi_loader/efi_tcg2.c | 6 ++-- lib/tpm-v2.c | 82 +++++++++++++++++++++++++++++----------------- test/py/tests/test_tpm2.py | 2 +- 6 files changed, 177 insertions(+), 60 deletions(-)