From nobody Sun Feb 8 22:34:59 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+84229+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+84229+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1638387066; cv=none; d=zohomail.com; s=zohoarc; b=WAe5qQ6nG1gbysyIBwePzSuWX0cqmkvlS0rE1IXHRxHN1giRYX21U8+C0Y1jwkwD+OPA7yl9xE4YspZARzkiIOebepbRiUzNA5ppxsbewaLv/l/6i54b4TRDfSMD+r+88n5Ry7OJlMf2dAZQiXAcndyWKQxCvzX8BgZAcPPoEKI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1638387066; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=87rlxTw6KvuEOT2oCU2Po7OFhh8F3zhDO/118W0IKVU=; b=Zw7latb2ABiIqmF7vZYIBkTbgY9VmfQcs2YfMiyFGbO3NusaIaAvA4dauSutfaNK2vZlCjxEtsCZtfnn25rv+oT3ZZPlyu9ToQE3nm59jsDtfNuybW09Ncp/J0GSYmq+79QLPvjeKHGCwFhdf/nSOxCV8bf2R/r+q2gslpWn1s0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+84229+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1638387066116764.2695844244191; Wed, 1 Dec 2021 11:31:06 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id BCApYY1788612xW9levvKLpN; Wed, 01 Dec 2021 11:31:05 -0800 X-Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.158.5]) by mx.groups.io with SMTP id smtpd.web11.1679.1638387065024307304 for ; Wed, 01 Dec 2021 11:31:05 -0800 X-Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1B1Ilraw005656 for ; Wed, 1 Dec 2021 19:31:03 GMT X-Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3cpemu8t5j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 01 Dec 2021 19:31:03 +0000 X-Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1B1JGZ5m007037 for ; Wed, 1 Dec 2021 19:31:03 GMT X-Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0b-001b2d01.pphosted.com with ESMTP id 3cpemu8t59-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Dec 2021 19:31:03 +0000 X-Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1B1JCj2G021479; Wed, 1 Dec 2021 19:31:02 GMT X-Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma01dal.us.ibm.com with ESMTP id 3ckcacumn4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Dec 2021 19:30:59 +0000 X-Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1B1JUodJ53805372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Dec 2021 19:30:50 GMT X-Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4D7F76E053; Wed, 1 Dec 2021 19:30:50 +0000 (GMT) X-Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9E6FA6E078; Wed, 1 Dec 2021 19:30:49 +0000 (GMT) X-Received: from sbct-2.pok.ibm.com (unknown [9.47.158.152]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 1 Dec 2021 19:30:49 +0000 (GMT) From: "Stefan Berger" To: devel@edk2.groups.io, kraxel@redhat.com, marcandre.lureau@redhat.com Cc: Stefan Berger Subject: [edk2-devel] [PATCH v3 7/8] OvmfPkg: Enable TPM 1.2 Physical Presence Opcode processing Date: Wed, 1 Dec 2021 14:30:29 -0500 Message-Id: <20211201193030.3932074-8-stefanb@linux.ibm.com> In-Reply-To: <20211201193030.3932074-1-stefanb@linux.ibm.com> References: <20211201193030.3932074-1-stefanb@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 0fHZZVMQCuwG0IqT0Hk77i3cAtbV1988 X-Proofpoint-GUID: OSNgpI31rnr9nkiMsjeyDKxq8ejdzW1R Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,stefanb@linux.ibm.com X-Gm-Message-State: XcfxCiDAhp9vqdQmoreihTyKx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1638387065; bh=CkWyt12BYwOCzVhFE0DmftC8scanFnpT405deuee0l8=; h=Cc:Date:From:Reply-To:Subject:To; b=iyl+TWwCcNPRn6FsEyMNBroN7ksrk+V/ycCu8EK7yPOM73d1s+8uP78ioCLaNrQBTC/ plAsMJ5pLwpzbG8xbkEaDw9QZXC5JQayTyluddKp8SIZ/4EpgWp/UZfyyPZ1JMuTQoqfN 3R+QKMdFZsQHfyL2XJPJukXcTfHcuGqlNvA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1638387067897100001 Content-Type: text/plain; charset="utf-8" Enable the processing of the TPM 1.2 physical presence opcodes. This needs to be done before End-of-Dxe since otherwise the creation of the variables doesn't work. Signed-off-by: Stefan Berger --- OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 2 ++ OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c | 2 ++ OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg= /Library/PlatformBootManagerLib/BdsPlatform.c index 1765026de2..9c96c0cf69 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -379,7 +379,9 @@ PlatformBootManagerBeforeConsole ( =20 // // Process TPM PPI request; this may require keyboard input + // For variable creation and locking to work, this has to be done before= End-of-Dxe. // + TcgPhysicalPresenceLibProcessRequest (); Tcg2PhysicalPresenceLibProcessRequest (NULL); =20 // diff --git a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c b/Ov= mfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c index 950ab12c94..e9b4831bef 100644 --- a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c @@ -372,7 +372,9 @@ PlatformBootManagerBeforeConsole ( =20 // // Process TPM PPI request + // For variable creation and locking to work, this has to be done before= End-of-Dxe. // + TcgPhysicalPresenceLibProcessRequest (); Tcg2PhysicalPresenceLibProcessRequest (NULL); =20 // diff --git a/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c b/Ovm= fPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c index fbc40dcb68..a6a9374505 100644 --- a/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c @@ -335,7 +335,9 @@ PlatformBootManagerBeforeConsole ( =20 // // Process TPM PPI request + // For variable creation and locking to work, this has to be done before= End-of-Dxe. // + TcgPhysicalPresenceLibProcessRequest (); Tcg2PhysicalPresenceLibProcessRequest (NULL); =20 // --=20 2.31.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#84229): https://edk2.groups.io/g/devel/message/84229 Mute This Topic: https://groups.io/mt/87436454/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-