From patchwork Mon Aug 7 15:17:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eddie James X-Patchwork-Id: 711129 Delivered-To: patch@linaro.org Received: by 2002:a05:6359:d30:b0:129:c516:61db with SMTP id gp48csp1602061rwb; Mon, 7 Aug 2023 08:18:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfWQ7UqBtOePaKHNWgfk08lQxa6vXK0AwQafeE/vF815maQdq8Ivf2PL+ATpEjm/r2Teex X-Received: by 2002:a5d:4e04:0:b0:313:e559:2d4c with SMTP id p4-20020a5d4e04000000b00313e5592d4cmr5577083wrt.45.1691421487577; Mon, 07 Aug 2023 08:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691421487; cv=none; d=google.com; s=arc-20160816; b=WpupTBpi3A0zjAm5oZDrigok6IJeXeH7L63akfXjZgcI0wWtQd9faETlTqUTaLuhUT sMB4qUn5BAwdCXABdLqWhk4VYquafURarlmpUS/xC6s8kqDWzuU3bx+DzXC6/d4QNS9X iaIeSbcIhW4n6Vo2uvOq85zhSe4JiuurIruc8UycO5wOm2ceJmuscBeXIeawXftWVC/B bbR3eS0kzm1ruW4eF3p/Fvx5cxhagsZ7PsaEu8auvSTkDIPNXVgcmpCAmpOzxpCxGjY0 /UR9EZn6MEND1hL01T2mMN/knN951wEwyUbwaBEMTEgQohXLzTnZhJeqrxuTTf31V7EY WKeA== 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=0aGoL5TGWfYBX0dqaNDMRLmfid22YXbf5vNPGNVLvXA=; fh=x3v0/GoXJuL1oFKziP5cRNs3+Fqz1zxSh3t+0A/5jr0=; b=qapD2H8qe523QR9E6M2smeDlMgm4ny41e5wC6z1hEdVT9klzVObIjXFLcEz7eSPk8t BW2fIm9NqGpIMdXyScyKoCS2nFmgUefLhydy107NjMCE24u6HXq84nYwKkVPFcvEZNtl xQvBRR2URE66N5SFBZpTTfjFrN1TyK61k1tw1KHnYZ+ItbLQkHIlvqLu8mp8k94rhOQ5 RSRFt41QYSUyjxeanyacAu5vCm0ecgGbT8awIDQIYi8knTzpwVyuWoaf6V+mRQbpkvI+ 9CB1On3I+kXELK7q15jfKl2Z+HoTEoyNMODDmq8rIOEdAzFDRwE4wYDibPw/OfXAMlr+ Macg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="B6aG/qWl"; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com 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 t13-20020a05600001cd00b00317c8fa5fafsi3877117wrx.374.2023.08.07.08.18.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 08:18:07 -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=@ibm.com header.s=pp1 header.b="B6aG/qWl"; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EE29A80844; Mon, 7 Aug 2023 17:17:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.ibm.com 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=ibm.com header.i=@ibm.com header.b="B6aG/qWl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A33DD85F3D; Mon, 7 Aug 2023 17:17:49 +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=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 27812808E6 for ; Mon, 7 Aug 2023 17:17:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eajames@linux.ibm.com Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 377F8XLu031269; Mon, 7 Aug 2023 15:17:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=0aGoL5TGWfYBX0dqaNDMRLmfid22YXbf5vNPGNVLvXA=; b=B6aG/qWlb1eficvRRlhyjM2neuk5r+I8ObcKUOjqQRc61iOPoh2VOP7FJlbRv+/3K0bb UJXy7gjwuOTpRIMFIbQ2sQB/jW5A8qy12ioeCtm5hncZNGClgZ6l5XdV4UqFsAEjJfYn lYWRCySSJDEPrmat0h1y1onE4+144++2cdItCBKgXYDQTjylTaVTK5bzVPM1daQ1rZTQ 9xhvqzT8hfRcnTs9bLC0JTczRueI5Dgm6m92ttjLUUJXcBZOHsdt7AMlS1PfzXUsE/nJ OTB3R2IuBRVKwF1/5qNWJkZmUD4IxAGaOE4Y7FXvdkJjR4DFAmIGo6jNBD2WAj0j+qsn Pg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3sb2r98qm3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:17:39 +0000 Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 377F8wYo001151; Mon, 7 Aug 2023 15:17:39 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3sb2r98qjw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:17:38 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 377E0XEG006653; Mon, 7 Aug 2023 15:17:38 GMT Received: from smtprelay04.dal12v.mail.ibm.com ([172.16.1.6]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3sa0rspjtx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:17:38 +0000 Received: from smtpav02.dal12v.mail.ibm.com (smtpav02.dal12v.mail.ibm.com [10.241.53.101]) by smtprelay04.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 377FHbkT23069198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Aug 2023 15:17:37 GMT Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B5C8058051; Mon, 7 Aug 2023 15:17:37 +0000 (GMT) Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 797FA5805E; Mon, 7 Aug 2023 15:17:37 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.130.18]) by smtpav02.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 7 Aug 2023 15:17:37 +0000 (GMT) From: Eddie James To: u-boot@lists.denx.de Cc: ilias.apalodimas@linaro.org, sjg@chromium.org, xypron.glpk@gmx.de, joel@jms.id.au, eajames@linux.ibm.com Subject: [PATCH v10 07/10] efi_loader: fix EFI_ENTRY point on get_active_pcr_banks Date: Mon, 7 Aug 2023 10:17:32 -0500 Message-Id: <20230807151735.84093-8-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230807151735.84093-1-eajames@linux.ibm.com> References: <20230807151735.84093-1-eajames@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: N51j6rULrO9ks0waqIj9LB-6IBZcAwFe X-Proofpoint-ORIG-GUID: mIS27j1i7aPw2B7nXrEOoZ_VQEG2fJ0r X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-07_16,2023-08-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 impostorscore=0 adultscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308070135 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 From: Ilias Apalodimas Signed-off-by: Ilias Apalodimas --- lib/efi_loader/efi_tcg2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_tcg2.c b/lib/efi_loader/efi_tcg2.c index 5f0f4b5dd2..829bae7436 100644 --- a/lib/efi_loader/efi_tcg2.c +++ b/lib/efi_loader/efi_tcg2.c @@ -718,16 +718,16 @@ efi_tcg2_get_active_pcr_banks(struct efi_tcg2_protocol *this, struct udevice *dev; efi_status_t ret; + EFI_ENTRY("%p, %p", this, active_pcr_banks); + if (!this || !active_pcr_banks) { ret = EFI_INVALID_PARAMETER; goto out; } - ret = tcg2_platform_get_tpm2(&dev); if (ret != EFI_SUCCESS) goto out; - EFI_ENTRY("%p, %p", this, active_pcr_banks); ret = tcg2_get_active_pcr_banks(dev, active_pcr_banks); out: From patchwork Mon Aug 7 15:17:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eddie James X-Patchwork-Id: 711131 Delivered-To: patch@linaro.org Received: by 2002:a05:6359:d30:b0:129:c516:61db with SMTP id gp48csp1602670rwb; Mon, 7 Aug 2023 08:19:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnUeotAAQ1LvPPGjfnrvUI4/zo2/FK/6WEJYSUuG0r2FjBEY0Q1F90E0V3bOfnuGQ9+dKT X-Received: by 2002:a2e:7d09:0:b0:2b0:297c:cbdf with SMTP id y9-20020a2e7d09000000b002b0297ccbdfmr7100458ljc.1.1691421551927; Mon, 07 Aug 2023 08:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691421551; cv=none; d=google.com; s=arc-20160816; b=djOT6FPneWct+eObiwJdZcdezqM9tpIr8mY1uiaLVLMlQHiyCrQFS4BEO/y9abSFGq Glk57nTycncFbE6xOLWAr2SeWWH4w9JvNGvHU3klQ/YGZ4NLpc4B5xTJwuE+C6+ZYcKj vjiilrbsVxsEWDldeobQC5UjLxFm8MpX71bLaC2dqprxEPlMjuIFb+SW+1ejJAKZ6xd8 vGVMX1WzcD+dDxiCLgQajFar2jNKCMoS12WEM32p/DQlK16/alJtDn0jOIB0HvWwDJwB +Pzczut/LpIsg2DFVqqrxQK/J9pxJW7ZQJCMtT/MWvDomTZRgV9pHIj+F1GZduI+zY0x jIeQ== 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=ZGZSOud+SzjyrBE9wz95oFuy76SFS6aoYHBywGxiWcw=; fh=x3v0/GoXJuL1oFKziP5cRNs3+Fqz1zxSh3t+0A/5jr0=; b=g7/aU/Z9adQqgh1pkl609Nz2+VhW0V2ZdTMdniXOTvZWlq4sRVYpwgPC9NfCDw1fES kRdTvPf7yrkHZIFbLTQAm4woubk/0tRUmuw8xVh8wbLH3lfcxTnZ42F3wlP0CYSHWgy5 WAjZMkAjVl0d6aypJcvpozvqlSHWcGoKpq6k8O2Wt5ISZomyPanUwFINkzId3lyyQ4e3 Db4u56p9P8aeSFZDCoWLsfs4y7Yjennrq7+ykBGX/X/cHBFQOfMhFP+udDgYXfxw9hlS TxIjHEWeE/nTY1Qn5qW/yb9MniyXfg+573ajQrbnovpmt58X0VteAI7EvmGAMP7Hs03I SWsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=j+CO8VVN; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com 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 j15-20020adfff8f000000b00317a9140b18si3705775wrr.310.2023.08.07.08.19.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 08:19:11 -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=@ibm.com header.s=pp1 header.b=j+CO8VVN; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A59AD8080F; Mon, 7 Aug 2023 17:19:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.ibm.com 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=ibm.com header.i=@ibm.com header.b="j+CO8VVN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5E6828077F; Mon, 7 Aug 2023 17:19:01 +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=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 11D1780834 for ; Mon, 7 Aug 2023 17:18:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eajames@linux.ibm.com Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 377FCY7F006021; Mon, 7 Aug 2023 15:18:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=ZGZSOud+SzjyrBE9wz95oFuy76SFS6aoYHBywGxiWcw=; b=j+CO8VVNOyAde9wbtFr9y4TaG6Lb3w2hgq/ZeyCGeGo5jTCpjocIZU3yvAPIBBKxz5Ne rCMsVz7damWOFr73/cTGHYPZUkqWnTyqWPFcCWRTsKe1CPXT0lDvmWFxLKnBJrZHxhRt OcjgiElUD1GqqdDDaOKJ1Dfq45aHgBPPtpp4KBJ3Ez7huECPkxjpmTQPFioax06cdXAr RB+cW5krRZpUorqvHUJ2j4fQqdSeZD8g1nsFnLxuzoHB3ye1iiuwW9hC0bG/okPsIbyt nDKnZBHP3sw+bnwiynlQCJncSvpA43aV1UbDns2CCHiA+MGee1OqwqoT9QRZxM2o1g2u Yg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3sb2tu8eur-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:18:54 +0000 Received: from m0353724.ppops.net (m0353724.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 377FDTrr008698; Mon, 7 Aug 2023 15:18:53 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3sb2tu8eu9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:18:53 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 377EWPmN001777; Mon, 7 Aug 2023 15:18:53 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([172.16.1.7]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3sa3f1dk62-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:18:53 +0000 Received: from smtpav02.dal12v.mail.ibm.com (smtpav02.dal12v.mail.ibm.com [10.241.53.101]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 377FHc452294322 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Aug 2023 15:17:38 GMT Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F3E2A58051; Mon, 7 Aug 2023 15:17:37 +0000 (GMT) Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C187D5805A; Mon, 7 Aug 2023 15:17:37 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.130.18]) by smtpav02.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 7 Aug 2023 15:17:37 +0000 (GMT) From: Eddie James To: u-boot@lists.denx.de Cc: ilias.apalodimas@linaro.org, sjg@chromium.org, xypron.glpk@gmx.de, joel@jms.id.au, eajames@linux.ibm.com Subject: [PATCH v10 08/10] test: use a non system PCR for testing PCR extend Date: Mon, 7 Aug 2023 10:17:33 -0500 Message-Id: <20230807151735.84093-9-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230807151735.84093-1-eajames@linux.ibm.com> References: <20230807151735.84093-1-eajames@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: lCkvx23RMastQd08CYhz2ZPJx-AqE0M9 X-Proofpoint-ORIG-GUID: -RLPxHFjo8G1FSa-4Sn3vupZljf_70n7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-07_16,2023-08-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 suspectscore=0 bulkscore=0 malwarescore=0 phishscore=0 adultscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308070135 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 From: Ilias Apalodimas We currently use PCR 0 for testing the PCR read/extend functionality in our selftests. How ever those PCRs are defined by the TCG spec for platform use. For example if the tests run *after* the efi subsystem initialization, which extends PCRs 0 & 7 it will give a false positive. So let's switch over to a PCR which is more suitable and is defined for OS use. It's worth noting that we are using PCR10 here, since PCR9 is used internally by U-Boot if we choose to measure the loaded DTB Reviewed-by: Simon Glass Signed-off-by: Ilias Apalodimas --- test/py/tests/test_tpm2.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/py/tests/test_tpm2.py b/test/py/tests/test_tpm2.py index fce689cd99..8cd3046285 100644 --- a/test/py/tests/test_tpm2.py +++ b/test/py/tests/test_tpm2.py @@ -236,7 +236,7 @@ def test_tpm2_dam_parameters(u_boot_console): def test_tpm2_pcr_read(u_boot_console): """Execute a TPM2_PCR_Read command. - Perform a PCR read of the 0th PCR. Must be zero. + Perform a PCR read of the 10th PCR. Must be zero. """ if is_sandbox(u_boot_console): tpm2_sandbox_init(u_boot_console) @@ -244,7 +244,7 @@ def test_tpm2_pcr_read(u_boot_console): force_init(u_boot_console) ram = u_boot_utils.find_ram_base(u_boot_console) - read_pcr = u_boot_console.run_command('tpm2 pcr_read 0 0x%x' % ram) + read_pcr = u_boot_console.run_command('tpm2 pcr_read 10 0x%x' % ram) output = u_boot_console.run_command('echo $?') assert output.endswith('0') @@ -254,7 +254,7 @@ def test_tpm2_pcr_read(u_boot_console): updates = int(re.findall(r'\d+', str)[0]) # Check the output value - assert 'PCR #0 content' in read_pcr + assert 'PCR #10 content' in read_pcr assert '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00' in read_pcr @pytest.mark.buildconfigspec('cmd_tpm_v2') @@ -272,19 +272,19 @@ def test_tpm2_pcr_extend(u_boot_console): force_init(u_boot_console) ram = u_boot_utils.find_ram_base(u_boot_console) - read_pcr = u_boot_console.run_command('tpm2 pcr_read 0 0x%x' % (ram + 0x20)) + read_pcr = u_boot_console.run_command('tpm2 pcr_read 10 0x%x' % (ram + 0x20)) output = u_boot_console.run_command('echo $?') assert output.endswith('0') str = re.findall(r'\d+ known updates', read_pcr)[0] updates = int(re.findall(r'\d+', str)[0]) - u_boot_console.run_command('tpm2 pcr_extend 0 0x%x' % ram) + u_boot_console.run_command('tpm2 pcr_extend 10 0x%x' % ram) output = u_boot_console.run_command('echo $?') assert output.endswith('0') # Read the value back into a different place so we can still use 'ram' as # our zero bytes - read_pcr = u_boot_console.run_command('tpm2 pcr_read 0 0x%x' % (ram + 0x20)) + read_pcr = u_boot_console.run_command('tpm2 pcr_read 10 0x%x' % (ram + 0x20)) output = u_boot_console.run_command('echo $?') assert output.endswith('0') assert 'f5 a5 fd 42 d1 6a 20 30 27 98 ef 6e d3 09 97 9b' in read_pcr @@ -294,11 +294,11 @@ def test_tpm2_pcr_extend(u_boot_console): new_updates = int(re.findall(r'\d+', str)[0]) assert (updates + 1) == new_updates - u_boot_console.run_command('tpm2 pcr_extend 0 0x%x' % ram) + u_boot_console.run_command('tpm2 pcr_extend 10 0x%x' % ram) output = u_boot_console.run_command('echo $?') assert output.endswith('0') - read_pcr = u_boot_console.run_command('tpm2 pcr_read 0 0x%x' % (ram + 0x20)) + read_pcr = u_boot_console.run_command('tpm2 pcr_read 10 0x%x' % (ram + 0x20)) output = u_boot_console.run_command('echo $?') assert output.endswith('0') assert '7a 05 01 f5 95 7b df 9c b3 a8 ff 49 66 f0 22 65' in read_pcr From patchwork Mon Aug 7 15:17:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eddie James X-Patchwork-Id: 711130 Delivered-To: patch@linaro.org Received: by 2002:a05:6359:d30:b0:129:c516:61db with SMTP id gp48csp1602345rwb; Mon, 7 Aug 2023 08:18:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH99adpNDv/NgEpLB7scjMtBtxJ85z4nOK1wpiMrS790sHDEvtdfepjS1iEfh1xxhImcy/0 X-Received: by 2002:adf:fac1:0:b0:317:6734:c2ae with SMTP id a1-20020adffac1000000b003176734c2aemr5384613wrs.11.1691421516169; Mon, 07 Aug 2023 08:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691421516; cv=none; d=google.com; s=arc-20160816; b=Z+/RONRxt5UOLrpokkJzXLXOjqTmO0m/RrUrWzvo7J/74JfF9FGmLkpHJ5/Vl7uKpK pixx7FU8daCx/KWXuCXVfuu4nzMx8t0rTxGK1FS1LRLfo0deLyLNR0fhhfR+MbCEnita RE5JEb6PS1Ukt9nme/QKSoUQUVShGNalPWSyYFgvLaaMSKuzn5J1u5UJt8Qw8lhURJ8l C8NUwUVCi36mRPgkx9sJo/qvtdy1D6lcsEdzrgmd1ubdcKe0vENak72+LzQAn9Jv0j/G zmCARsHwy15Z7yAMXhDYxg06fdDKB+Wxk59T4ACA4SgyRoulxksBtWGBhJJlcPQT+nxg Djyw== 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=JhHKLINhKXLm+dd/9dvYc9LThPJT82hxti8eXPV4tjc=; fh=x3v0/GoXJuL1oFKziP5cRNs3+Fqz1zxSh3t+0A/5jr0=; b=SymIRgoX4h1aM3dRAyfa+EvafnwGzJrXAs+6B/5yOyA5hJ5p7IOaHdGbXa4YQCZnKD Ccx01TrdvnT43pWJkGCi2iEwp7GWNyPjUzsyYwVJJRrqULsrA2RQ4TNjZq0ZXl1OhZM4 M4GMxE337fVsd6Ns9n6Kxsa+zHGlZl6Q01c3ecM5yGj64KnGRuGkrCTqQZGZcv3c3rAb +GJLy3fomlR1o7/e4rlWpNnPMhRxKJWLAbzYGQYnE7mSd4tijtv9teQGiFRzBgKY8gOK 0HV9kklB192TtIqLjQOHPNSkBAXtg+OdXT91keLvceXJFareARaiMNWDuD++Yjg7ILIO LAIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=J0Ldy89Y; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com 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 c16-20020a5d4cd0000000b00314240f7362si3905937wrt.227.2023.08.07.08.18.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 08:18:36 -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=@ibm.com header.s=pp1 header.b=J0Ldy89Y; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C0CCE86878; Mon, 7 Aug 2023 17:17:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.ibm.com 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=ibm.com header.i=@ibm.com header.b="J0Ldy89Y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A11888468A; Mon, 7 Aug 2023 17:17:51 +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=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 898E9847BC for ; Mon, 7 Aug 2023 17:17:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eajames@linux.ibm.com Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 377FEuf7032013; Mon, 7 Aug 2023 15:17:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=JhHKLINhKXLm+dd/9dvYc9LThPJT82hxti8eXPV4tjc=; b=J0Ldy89YUB7mz1RkvixR8BI2XgcJZG3FMDuzTCEQDFShRa6aRIF5FWrWpea6HwIwn4Vc uyqM1g/PZJCR36jHhoGi5RFaiQCAfFeZi8SbzKpzTaOECKLcaJPG4wKHY+Afyyqoq23V SA+x7PFHz5rkx2iprmE6V6e9N+30h6MDi7vABR3l6gtmrpvATGQcZcokJYpy3vlXBvRB TBXfaCeEw9aW7dJjraMMW7d9tvRu0jhZ2ljEhw5jbWmhLIo9PYDEcxZe56QqaH3cUewQ 1GfRkY8pmmk5RjB46ncZRCOzfi4ybbd/9iBXDSFfpgUmSbE1qr2lnL0QeiPM1orHIfW3 Ng== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3sb33581u3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:17:40 +0000 Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 377FGJup002884; Mon, 7 Aug 2023 15:17:39 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3sb33581tp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:17:39 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 377EX54F001801; Mon, 7 Aug 2023 15:17:38 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([172.16.1.7]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3sa3f1djtm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:17:38 +0000 Received: from smtpav02.dal12v.mail.ibm.com (smtpav02.dal12v.mail.ibm.com [10.241.53.101]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 377FHcp72360016 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Aug 2023 15:17:38 GMT Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3DA8258051; Mon, 7 Aug 2023 15:17:38 +0000 (GMT) Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0B2665805F; Mon, 7 Aug 2023 15:17:38 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.130.18]) by smtpav02.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 7 Aug 2023 15:17:37 +0000 (GMT) From: Eddie James To: u-boot@lists.denx.de Cc: ilias.apalodimas@linaro.org, sjg@chromium.org, xypron.glpk@gmx.de, joel@jms.id.au, eajames@linux.ibm.com Subject: [PATCH v10 09/10] test/py: only run 'tpm2 autostart' to init the tpm Date: Mon, 7 Aug 2023 10:17:34 -0500 Message-Id: <20230807151735.84093-10-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230807151735.84093-1-eajames@linux.ibm.com> References: <20230807151735.84093-1-eajames@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: sa8cQNcEsUdaSOyrLskydpBiJUVw8SGt X-Proofpoint-ORIG-GUID: 2TIxHfHhzd9_1zXDEWOYqeGtnXfb59Q_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-07_16,2023-08-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 phishscore=0 malwarescore=0 mlxlogscore=999 lowpriorityscore=0 spamscore=0 bulkscore=0 adultscore=0 impostorscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308070139 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 From: Ilias Apalodimas commit xxxxxxxx ("") replaced the forced and sandbox tpm2 initialization running 'tpm2 autostart' instead of the startup tpm sequence. The difference is that the new function handles the internal tpm_init state internally and doesn't return an error when trying to initialize the tpm multiple times. Replace the remaining instances Signed-off-by: Ilias Apalodimas --- test/py/tests/test_tpm2.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/py/tests/test_tpm2.py b/test/py/tests/test_tpm2.py index 8cd3046285..5bbb2d2069 100644 --- a/test/py/tests/test_tpm2.py +++ b/test/py/tests/test_tpm2.py @@ -61,7 +61,7 @@ def test_tpm2_init(u_boot_console): skip_test = u_boot_console.config.env.get('env__tpm_device_test_skip', False) if skip_test: pytest.skip('skip TPM device test') - u_boot_console.run_command('tpm2 init') + u_boot_console.run_command('tpm2 autostart') output = u_boot_console.run_command('echo $?') assert output.endswith('0') @@ -97,11 +97,7 @@ def test_tpm2_sandbox_self_test_full(u_boot_console): """ if is_sandbox(u_boot_console): u_boot_console.restart_uboot() - u_boot_console.run_command('tpm2 init') - output = u_boot_console.run_command('echo $?') - assert output.endswith('0') - - u_boot_console.run_command('tpm2 startup TPM2_SU_CLEAR') + u_boot_console.run_command('tpm2 autostart') output = u_boot_console.run_command('echo $?') assert output.endswith('0') From patchwork Mon Aug 7 15:17:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eddie James X-Patchwork-Id: 711132 Delivered-To: patch@linaro.org Received: by 2002:a05:6359:d30:b0:129:c516:61db with SMTP id gp48csp1602778rwb; Mon, 7 Aug 2023 08:19:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIFWj8iyKn9C1MGlNGu+E431FDli6w6EorR/C8SiJMzHD1DvRbg74TTFHnwQrjk2OlZQQk X-Received: by 2002:a5d:670f:0:b0:317:636b:fcb1 with SMTP id o15-20020a5d670f000000b00317636bfcb1mr5965788wru.27.1691421562255; Mon, 07 Aug 2023 08:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691421562; cv=none; d=google.com; s=arc-20160816; b=tU2Q+QAGMbYVzj1JNuEn7Lt+6BHds2+zXxSZ7EoQCL3GcKR7avuBy734BH8g+nwhR3 +1mq4g+VoO5mwgEFo458NUcXhfXXtTyRjqyR3aIH5YzmZVIkeUrvlbp7hxXzjE9CtyVI 0RqzUKYRfRntTzT1/sQGMit/hu+27YzzX4uk3YL8mv5Ms/uS3Xfm01f+4xU6JlEDHZ4B IH0sSzT/+ocb/9sZwOnTy0Ojq2xDpOEyKuY87g0cloRd1R/KBOfyKN8gkiotneLfNFLQ FUozMtViQIRka3Z8ugpFqxDntsWi8syM+X4GF+T55ElOYlrfw9T2pOX0dx55ye3Si1Oi rKpg== 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=iA27a1ppec5ZD8EremgMclYD79WzBFAB08hjgZhWfAg=; fh=x3v0/GoXJuL1oFKziP5cRNs3+Fqz1zxSh3t+0A/5jr0=; b=evV4ZxewqNuQX8GXWhFmHzY1oIkeSDLD1ZvXRPRQ9Z482LsODSPFtbJt8T04lKXMOk qmGsNIIWvefC61phfweWev431LajZDkqQ5r2ezWpnMBOH0GGqJ+97nGYHvsj/uTZ6iGq yZ5ViEraDRjb1O2MD5CcAf+TrJAzN3Kc00Ga3Z/GSYsMC+dRCRYtKH+TBjXEHAmGgBtq 1RMXKJXrxj+hB8KxHB5mITCx8jjNiopGcQRgclhyDER9TbyFZpi7+Ezn09pjaUXrLDTg n/bUbbM7WTGS5hCuqsaRmTNP5jX4u2SktESod0B+npA7CkkXd9nFBLGUowScFNr9vygF ZmGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=MZKaz2O7; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id e9-20020a056000120900b003178f2b876fsi3919450wrx.191.2023.08.07.08.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 08:19:22 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=MZKaz2O7; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E3EF9865B5; Mon, 7 Aug 2023 17:19:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.ibm.com 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=ibm.com header.i=@ibm.com header.b="MZKaz2O7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AC26280834; Mon, 7 Aug 2023 17:19:02 +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=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A83D380726 for ; Mon, 7 Aug 2023 17:18:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eajames@linux.ibm.com Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 377F8W52031248; Mon, 7 Aug 2023 15:18:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=iA27a1ppec5ZD8EremgMclYD79WzBFAB08hjgZhWfAg=; b=MZKaz2O7wac+m8aVE5AnQMKHNwFJM1PZUjydhH1Iboy6X7KenEX1AH9bcHhu+q2Cq4E7 Pw3HxeZz6I6TvpqtutCeQKyyAmluAeN0v98OmeQ6kuSdesfGB6UfkE+dutbiDwpnHAxB nJtvpFF8w+vkJU3ec3rM37KSnxioQzr4pneVjocIyNYCSQfLAbI2/zFXs8DZyNEtKbF+ wqbkSzU5XjFoRWbiP7NU7zXZvweMjmfubGdXlIhoyftDNY7ErvXdRfiOmOVuiri0Z4qh A3N2DpXUBBy44a4pRd2WUdBRInxWVmIdR+vv7gJ+Uj5IufFvRrzacg3MYnPSac4Of9Kb /Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3sb2r98rpp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:18:54 +0000 Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 377FIqNo016332; Mon, 7 Aug 2023 15:18:54 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3sb2r98rpa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:18:54 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 377EWPmO001777; Mon, 7 Aug 2023 15:18:53 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([172.16.1.7]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3sa3f1dk67-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Aug 2023 15:18:53 +0000 Received: from smtpav02.dal12v.mail.ibm.com (smtpav02.dal12v.mail.ibm.com [10.241.53.101]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 377FHcex6095432 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Aug 2023 15:17:38 GMT Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 84F395805A; Mon, 7 Aug 2023 15:17:38 +0000 (GMT) Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 47ED45805C; Mon, 7 Aug 2023 15:17:38 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.130.18]) by smtpav02.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 7 Aug 2023 15:17:38 +0000 (GMT) From: Eddie James To: u-boot@lists.denx.de Cc: ilias.apalodimas@linaro.org, sjg@chromium.org, xypron.glpk@gmx.de, joel@jms.id.au, eajames@linux.ibm.com Subject: [PATCH v10 10/10] fix armv7 compilation warning Date: Mon, 7 Aug 2023 10:17:35 -0500 Message-Id: <20230807151735.84093-11-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230807151735.84093-1-eajames@linux.ibm.com> References: <20230807151735.84093-1-eajames@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: c42mJZjad5axNjqEi6kAhRZtlRx3gOZS X-Proofpoint-ORIG-GUID: tvHqP-Pp5bXOecnx1mtgj77jPohU5FqG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-07_16,2023-08-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 impostorscore=0 adultscore=0 spamscore=0 malwarescore=0 mlxlogscore=879 mlxscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308070135 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 From: Ilias Apalodimas Signed-off-by: Ilias Apalodimas --- lib/tpm-v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tpm-v2.c b/lib/tpm-v2.c index d22e21985b..bd0fb078dc 100644 --- a/lib/tpm-v2.c +++ b/lib/tpm-v2.c @@ -671,7 +671,7 @@ __weak int tcg2_platform_get_log(struct udevice *dev, void **addr, u32 *size) } else { struct ofnode_phandle_args args; phys_addr_t a; - phys_size_t s; + fdt_size_t s; if (dev_read_phandle_with_args(dev, "memory-region", NULL, 0, 0, &args))