From nobody Tue Feb 10 03:38:37 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+54923+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+54923+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1582743922; cv=none; d=zohomail.com; s=zohoarc; b=nMo+jvS+7JnaSg23tMFC+lOfb2pQUcqyqCKahvyUg2nbXqtEXtcQkA9UGQ0wbSCDwdH+HciZS9m/iCUDoJJ9RakZAXve3sTw16It69QBtf8XnZLtn2ffG7nAdtJIBBOiOBVIYwW91LPXYzkJXDAo4/MqnrLNLEpyneOFwMiaDOU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582743922; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=KRZRkrFofSOYMyx3bn77rs0hTIRJxV+Xf+XHgpt8JcU=; b=KkK5iSiYonW4L7nEqg0KhAs/JsfTUC7VIe8wNnYcOq4likxXJnJ66aFg3Vq0wqW9JTwh4K3u+LuBCMGaoEP6G0QCbWav8SnILUR1+lucOe9OR63RP6VshvqJ+hxisd4pm/cgV76VKWEX9sFKvhfjh4XPN2ugRJSPpDSzWTkdxDA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+54923+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1582743922403391.2862392720748; Wed, 26 Feb 2020 11:05:22 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id bsY3YY1788612xBvtF9ltIKe; Wed, 26 Feb 2020 11:05:21 -0800 X-Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by mx.groups.io with SMTP id smtpd.web12.588.1582743920671785961 for ; Wed, 26 Feb 2020 11:05:21 -0800 X-Received: by mail-wr1-f67.google.com with SMTP id v4so61730wrs.8 for ; Wed, 26 Feb 2020 11:05:20 -0800 (PST) X-Gm-Message-State: 9wv2LFvx9vOrkYn4Zt26i8yHx1787277AA= X-Google-Smtp-Source: APXvYqwSKxCF/0+PNdfKrd9FMwK9cditiyfLj1nT6YHyB/rykuGpFhIPUHlNs7Llc+9LZ63ZFGQzAQ== X-Received: by 2002:adf:f7c6:: with SMTP id a6mr122697wrq.164.1582743918995; Wed, 26 Feb 2020 11:05:18 -0800 (PST) X-Received: from e123331-lin.home ([2a01:cb1d:112:6f00:816e:ff0d:fb69:f613]) by smtp.gmail.com with ESMTPSA id z1sm3932823wmf.42.2020.02.26.11.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 11:05:18 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , lersek@redhat.com, eric.auger@redhat.com, philmd@redhat.com, marcandre.lureau@redhat.com, stefanb@linux.ibm.com, leif@nuviainc.com Subject: [edk2-devel] [PATCH v3 1/9] OvmfPkg/Tcg2ConfigPei: introduce a signalling PPI to depex on Date: Wed, 26 Feb 2020 20:05:06 +0100 Message-Id: <20200226190514.31395-2-ard.biesheuvel@linaro.org> In-Reply-To: <20200226190514.31395-1-ard.biesheuvel@linaro.org> References: <20200226190514.31395-1-ard.biesheuvel@linaro.org> Precedence: Bulk List-Unsubscribe: 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,ard.biesheuvel@linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1582743921; bh=ALci41oZ6YEGJe13nBHz3eWcx5II9qGnzNRQ9EtXOQw=; h=Cc:Date:From:Reply-To:Subject:To; b=nXXqZeGcxZOIgmaCZIohGuevsYA+UsCD6nClEKYg3yrZ7dia4GXAf59R9/6Ppv7+0Up gzLNmlGYF4uLVPnWpaOeleWiPpnXzm0Wbmf5v/XgO4WacMYUfdTtrj54L/lYuhc5hUlKI XbqcYXNdkMdMb766hh5Dx63G8Ym49WX5HkA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" On ARM systems, the TPM does not live at a fixed address, and so we need the platform to discover it first. So introduce a PPI that signals that the TPM address has been discovered and recorded in the appropriate PCD, and make Tcg2ConfigPei depex on it when built for ARM or AARCH64. Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel --- OvmfPkg/OvmfPkg.dec | 5 +++++ OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec index 4c5b6511cb97..30faecb7a5c8 100644 --- a/OvmfPkg/OvmfPkg.dec +++ b/OvmfPkg/OvmfPkg.dec @@ -87,6 +87,11 @@ [Guids] gEfiLegacyBiosGuid =3D {0x2E3044AC, 0x879F, 0x490F, {0x= 97, 0x60, 0xBB, 0xDF, 0xAF, 0x69, 0x5F, 0x50}} gEfiLegacyDevOrderVariableGuid =3D {0xa56074db, 0x65fe, 0x45f7, {0x= bd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52}} =20 +[Ppis] + # PPI whose presence in the PPI database signals that the TPM base addre= ss + # has been discovered and recorded + gOvmfTpmDiscoveredPpiGuid =3D {0xb9a61ad0, 0x2802, 0x41f3, {0x= b5, 0x13, 0x96, 0x51, 0xce, 0x6b, 0xd5, 0x75}} + [Protocols] gVirtioDeviceProtocolGuid =3D {0xfa920010, 0x6785, 0x4941, {0x= b6, 0xec, 0x49, 0x8c, 0x57, 0x9f, 0x16, 0x0a}} gXenBusProtocolGuid =3D {0x3d3ca290, 0xb9a5, 0x11e3, {0x= b7, 0x5d, 0xb8, 0xac, 0x6f, 0x7d, 0x65, 0xe6}} diff --git a/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf b/OvmfPkg/Tcg/Tcg2Con= fig/Tcg2ConfigPei.inf index e34cd6210611..55684ba045b3 100644 --- a/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf +++ b/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf @@ -25,6 +25,7 @@ [Sources] [Packages] MdePkg/MdePkg.dec MdeModulePkg/MdeModulePkg.dec + OvmfPkg/OvmfPkg.dec SecurityPkg/SecurityPkg.dec =20 [LibraryClasses] @@ -43,5 +44,8 @@ [Ppis] [Pcd] gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid ## PROD= UCES =20 -[Depex] +[Depex.IA32, Depex.X64] TRUE + +[Depex.ARM, Depex.AARCH64] + gOvmfTpmDiscoveredPpiGuid --=20 2.17.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 (#54923): https://edk2.groups.io/g/devel/message/54923 Mute This Topic: https://groups.io/mt/71571514/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-