From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web08.438.1623081924044251797 for ; Mon, 07 Jun 2021 09:05:24 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@linux.microsoft.com header.s=default header.b=iaai+i6A; spf=pass (domain: linux.microsoft.com, ip: 13.77.154.182, mailfrom: mikuback@linux.microsoft.com) Received: from localhost.localdomain (unknown [167.220.2.74]) by linux.microsoft.com (Postfix) with ESMTPSA id 6F90B20B83DF; Mon, 7 Jun 2021 09:05:23 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6F90B20B83DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1623081923; bh=9d5IRzQI8uVMNzwZFvgQL9+9GLYVpZ/kc1uOIzn3O8I=; h=From:To:Cc:Subject:Date:From; b=iaai+i6Aex5G41gi+ytIg4hW4ltLSQIYIJXmuuUuw53T+vUBA07k7JUkjqrPqtsmU MXbdTSc5el0qtxEBdW8BMqZSZleOk3m0oTzQTGjBxi5VKoXEnk2R0e8aqzPK4zGwiW V/eb/sOUvEe6Texp5gXfoRpz+EMt02JZGaHeAIiI= From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Liming Gao , Eric Dong , Jiewen Yao , Jeremiah Cox Subject: [edk2-platforms][PATCH v2 0/4] MinPlatformPkg: Add TPM platform hier disable support Date: Mon, 7 Jun 2021 12:05:02 -0400 Message-Id: <20210607160506.2411-1-mikuback@linux.microsoft.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3411 This patch series adds support in TpmPlatformHierarchyLib to either randomize the platform auth (current behavior) or disable the platform auth (new behavior) based on a new PCD introduced to MinPlatformPkg: PcdRandomizePlatformHierarchy. Some platforms that would like to adopt MinPlatformPkg prefer to disable the platform hierarchy as opposed to the randomization approach. Minor changes are included to eliminate code duplication in impacted code. V2 changes: 1. Update code that randomizes the platform auth in Tcg2PlatformPei to use the TpmPlatformHierarchyLib interface for platform hierarchy configuration. 2. Remove pre-existing redundant code in Tcg2PlatformPei. 3. Add a PCD to allow the platform integrator to choose how to configure the TPM platform hierarchy. =20 Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong Cc: Jiewen Yao Cc: Jeremiah Cox Signed-off-by: Michael Kubacki Michael Kubacki (4): MinPlatformPkg: Add TpmPlatformHierarchyLib to Components in DSC MinPlatformPkg/TpmPlatformHierarchyLib: Add PEI support MinPlatformPkg/Tcg2PlatformPei: Use TpmPlatformHierarchyLib MinPlatformPkg/TpmPlatformHierarchyLib: Add disable support Platform/Intel/MinPlatformPkg/Tcg/Library/{TpmPlatformHierarchyLib/TpmPl= atformHierarchyLib.c =3D> PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatform= HierarchyLib.c} | 72 +++++++++-- Platform/Intel/MinPlatformPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.c = = | 130 +------------------- Platform/Intel/MinPlatformPkg/Include/Library/TpmPlatformHierarchyLib.h = = | 4 +- Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec = = | 1 + Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc = = | 4 +- Platform/Intel/MinPlatformPkg/Tcg/Library/{TpmPlatformHierarchyLib/TpmPl= atformHierarchyLib.inf =3D> PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatfo= rmHierarchyLib.inf} | 22 ++-- Platform/Intel/MinPlatformPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf = = | 2 + 7 files changed, 85 insertions(+), 150 deletions(-) rename Platform/Intel/MinPlatformPkg/Tcg/Library/{TpmPlatformHierarchyLi= b/TpmPlatformHierarchyLib.c =3D> PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmP= latformHierarchyLib.c} (70%) rename Platform/Intel/MinPlatformPkg/Tcg/Library/{TpmPlatformHierarchyLi= b/TpmPlatformHierarchyLib.inf =3D> PeiDxeTpmPlatformHierarchyLib/PeiDxeTp= mPlatformHierarchyLib.inf} (66%) --=20 2.28.0.windows.1