Message ID | 20230125113904.517057-2-ilias.apalodimas@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp221513pvb; Wed, 25 Jan 2023 03:39:50 -0800 (PST) X-Google-Smtp-Source: AK7set9L2oBwa5o4blqx6Q0Xq36tDGgT1QaEoRkhIkkpf1g3t2kN//JKsPgiPqX3fEHSZYlAUN8a X-Received: by 2002:a05:6870:c08a:b0:163:1b0a:75df with SMTP id c10-20020a056870c08a00b001631b0a75dfmr2309167oad.24.1674646790073; Wed, 25 Jan 2023 03:39:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674646790; cv=none; d=google.com; s=arc-20160816; b=NDoOqxHDCBXWBwXLEJ3TxhbNtJ3r06zdHNfmBDqhCiFsa1/nhYAUQD0b0FILjRyqOU EzVd3J6tg7MkgoDSeJDI8xQoX6X8n0JYSeqdj0K+0GjGO3o+Ss2JYlnK4M9oEiZe4Bgs vXwKuk3hpQA5Flg6bFEWpJ5pVoOVix0tmcoUC1LAREHrenLzcVJG/Q8IlmD7hq/pdvgM RnRcyeJmE0/Y9v0BWPU48WmB5j07U66P5RyILrxSPhj5noWFAZ71W2VwIB02coTGIZOn 4V4d0mhmvj/E38Dy5CmIv8f8SgzJqYKXRm3MLMzYq5ghX/TVe9uU7V3UcfU8wCmRpiNg Nusw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OilGK1mftFnUBqVlsIktR0LqPpPfkUMxifI8HXfvKpo=; b=lKfhKCKcy5ju2SdfV9H7FeY4mBDUqy5XMbBqbfC1Uqg6cT9AcBBIPrnQaaXY7Cr3Hn CBYNA0bn/Zg2o6QomBJaWIyJsT/vsCphDW8JoufGK4fZw5xibRAZo2Wpg0nRGFNU+jOY VxQYk1Vonmh9pTHDpOQlFy/qGF38/1pXXOvxKoMGCQrSBX6kVvgmw4unY+IBdCMbN/I8 szUtOLs3ErHM5heL/jTE11Oqtd1CWQ6Dcrxxcc3Kz6/Gssi4sjJdTPIckTf4OsDT0F8E 1HWEuaqx+yvkSEijp705VVUT8gMHzFUGe7lngiw+J7V5OyBRn8rSaBVDHiyMMGXsk+18 CyKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=unVBc2y3; 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id y36-20020a05687045a400b00157cf55701csi4501035oao.180.2023.01.25.03.39.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 03:39:50 -0800 (PST) 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=unVBc2y3; 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 04F8385695; Wed, 25 Jan 2023 12:39:39 +0100 (CET) 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="unVBc2y3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A130C84EEF; Wed, 25 Jan 2023 12:39:27 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 6DD9B8563A for <u-boot@lists.denx.de>; Wed, 25 Jan 2023 12:39:25 +0100 (CET) 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-ed1-x531.google.com with SMTP id w11so6156450edv.0 for <u-boot@lists.denx.de>; Wed, 25 Jan 2023 03:39:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OilGK1mftFnUBqVlsIktR0LqPpPfkUMxifI8HXfvKpo=; b=unVBc2y3WfzCpVddd5k5Z6xug9MxoSZSCf1eaImg7y2JIVsQVGIUIRMRjJIJTE0PvW x25J5HEpGV/5fgO2GdE+1d+d0aqwV+QyePWgBFIUv/kELh7GCp3tLPCs4VevedCpt/xL ymS+NH2T5e7Qo1ReuUClv59c8Rktbqgj1Jur2xqrzbme8TgMfLW0gO+2TKSAxN/UmF+8 YHsiRiRMLYBd3hBsQ+jpnQGPzacn5LO0AeSa76aS8nE1u+Qk1HAdBfFAYMipr0vUX84a R/0xOiZMheUm99DYI5Ug9ZV4EXfdB3S/pPCxMnZyPqRmPyMj8aCcqa1W96Isf1FxQwJ5 16dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OilGK1mftFnUBqVlsIktR0LqPpPfkUMxifI8HXfvKpo=; b=ANzoeX3bF+bIe9JBANh74BshTWDk2odKAbfa6eyH9jtOzfhMMIvh08Kbl1gf8oe65a 7wr8SRsor8HzZ7AkYi88uDIHUbJmY5+s9bubo/Efggr0M7zSZPitgnaQD1yTt80ja3fl FtDZ9tszL9qpRVCNhFTN9YQC+AD4aIrFr2zQmRrySQBHzCXaJW1FMLgXnhoU0khadAnc UfJWja1/OvKnQ539mZEMmoiV9DTo6AGUkhOBP45ja7tl/TpjKuSuiuYxYGRkr6XKznoA 5V6E6aIb0mJ9dkU1eUtKE5rfMBBdLsoZK5vdmgvxNnUaPintzZ8+lhshj/j/1NHezxtO BkHg== X-Gm-Message-State: AFqh2kohLJkY4qFiidCVkEpjPeZBSzMAOMBVC7NaC7dq7S1aaIaFSixK NKjBseLl2Dao1YI/Ez3y9oq/j/701HD6kRd2 X-Received: by 2002:a05:6402:f20:b0:499:b672:ee3a with SMTP id i32-20020a0564020f2000b00499b672ee3amr39865916eda.12.1674646765139; Wed, 25 Jan 2023 03:39:25 -0800 (PST) Received: from localhost.localdomain ([2a02:85f:fc9d:e4b5:f0f6:e48b:8d50:ecb2]) by smtp.gmail.com with ESMTPSA id c10-20020a056402100a00b0049dfd6bdc25sm2261794edu.84.2023.01.25.03.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 03:39:24 -0800 (PST) From: Ilias Apalodimas <ilias.apalodimas@linaro.org> To: u-boot@lists.denx.de Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, Sughosh Ganu <sughosh.ganu@linaro.org> Subject: [PATCH 2/2] efi_loader: use tpm_auto_start for the tpm device Date: Wed, 25 Jan 2023 13:39:04 +0200 Message-Id: <20230125113904.517057-2-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230125113904.517057-1-ilias.apalodimas@linaro.org> References: <20230125113904.517057-1-ilias.apalodimas@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
[1/2] tpm: add a function that performs selftest + startup
|
expand
|
diff --git a/lib/efi_loader/efi_tcg2.c b/lib/efi_loader/efi_tcg2.c index 918e9a268641..d035a00d98ac 100644 --- a/lib/efi_loader/efi_tcg2.c +++ b/lib/efi_loader/efi_tcg2.c @@ -2422,7 +2422,7 @@ efi_status_t efi_tcg2_register(void) } /* initialize the TPM as early as possible. */ - err = tpm_startup(dev, TPM_ST_CLEAR); + err = tpm_auto_start(dev); if (err) { log_err("TPM startup failed\n"); goto fail;
A previous commit is adding a new tpm startup functions which initializes the TPMv2 and performs all the needed selftests. Since the TPM selftests might be needed depending on the requested lgorithm or functional module use that instead. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> --- lib/efi_loader/efi_tcg2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)