From nobody Thu May 2 22:20:17 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+49125+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+49125+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1571269615; cv=none; d=zoho.com; s=zohoarc; b=mPHAQWDGNAdMdrS52IwNoiA9DxeS1HM+xxgHMynqszyEin/NYa71SgcmG36hKEhfTUkmkg/4zEj85aaVGZ3qOuwPGlYhjbHQFbgA08GLjz3hwsI4Oqf+I+z5e40JJsLeLgRzAf3z3z72ldytVOxWM4Q/Lahr/vPx2Gc1igWXGVw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571269615; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To; bh=amb2plCLs6bWZwynjnDFi6V3bglqcqBk3q6hdkzUkNA=; b=UjYN9QTPzHZrDppRSATidGcLrGq2cohH7jzv6pMOVKUlns9rsNm6fiYu5pLITnEFq09fGTlorXze0+LHHa9ydyr0NehlmnGfM8+7rNQrYxRzTfyjoNeq3HWryHe4nW6g02UtajOLXurBczwXhhEXTtsixkxdDuUNXzT0fFywjT0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+49125+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 1571269614937342.9427447535169; Wed, 16 Oct 2019 16:46:54 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id MBXzYY1788612xshcHQKPmVJ; Wed, 16 Oct 2019 16:46:54 -0700 X-Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web12.146.1571269613654428549 for ; Wed, 16 Oct 2019 16:46:53 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Oct 2019 16:46:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,305,1566889200"; d="scan'208";a="279694382" X-Received: from shwde7172.ccr.corp.intel.com ([10.239.158.22]) by orsmga001.jf.intel.com with ESMTP; 16 Oct 2019 16:46:51 -0700 From: "Liming Gao" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Chao Zhang Subject: [edk2-devel] [Patch] SecurityPkg Tcg2Dxe: Add Variable Arch protocol dependency Date: Thu, 17 Oct 2019 07:46:17 +0800 Message-Id: <1571269577-20416-1-git-send-email-liming.gao@intel.com> 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,liming.gao@intel.com X-Gm-Message-State: jeckmrIrTnPbMm6wfdTfhzwUx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1571269614; bh=sI6XZqKgr4KHBaHOc5xBnQGkOYS1K8CvkaqV+BVKrNc=; h=Cc:Date:From:Reply-To:Subject:To; b=Fk3MWeFX60MTlgGdsyj1zphVXjomtLuVRcxwDe4lY44Fc6R+qzxN7WU2qGTAAuX0HKx p5mjW9o67SsBj9YWK6VKZHBsVSdOCPpYXQONIbDu53TZ2zyC/E5GtLvJeBxTHRX1ZFice 9Z/70BOwiLUYYKO6cUssnvnzQe0jN9gW0JU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" commit a7e2d20193e853020a1415c25b53280955055394 introduces the code to get PcdTpm2AcpiTableRev in the driver entry point. This PCD is designed as DynamicHii or DynamicHiiEx PCD. So, this PCD depends on Variable service. To make sure PcdTpm2AcpiTableRev value be got, add Variable service as Depe= x. Cc: Jiewen Yao Cc: Jian J Wang Cc: Chao Zhang Signed-off-by: Liming Gao reviewed-by: jiewen Yao --- SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf b/SecurityPkg/Tcg/Tcg2Dxe/= Tcg2Dxe.inf index c41c50a7a2..0127a31e97 100644 --- a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf +++ b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf @@ -107,7 +107,11 @@ gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableLasa = ## PRODUCES =20 [Depex] - TRUE + # According to PcdTpm2AcpiTableRev definition in SecurityPkg.dec + # This PCD should be configured at DynamicHii or DynamicHiiEx. + # So, this PCD read operation depends on GetVariable service. + # Add VariableArch protocol dependency to make sure PCD read works. + gEfiVariableArchProtocolGuid =20 [UserExtensions.TianoCore."ExtraFiles"] Tcg2DxeExtra.uni --=20 2.13.0.windows.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 (#49125): https://edk2.groups.io/g/devel/message/49125 Mute This Topic: https://groups.io/mt/34666444/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-