From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: liming.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False 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" 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: [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> X-Mailer: git-send-email 2.8.0.windows.1 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 Depex. Cc: Jiewen Yao Cc: Jian J Wang Cc: Chao Zhang Signed-off-by: Liming Gao --- 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 [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 [UserExtensions.TianoCore."ExtraFiles"] Tcg2DxeExtra.uni -- 2.13.0.windows.1