From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B7E47819D9 for ; Thu, 5 Jan 2017 17:51:53 -0800 (PST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP; 05 Jan 2017 17:51:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,323,1477983600"; d="scan'208";a="50075940" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga005.fm.intel.com with ESMTP; 05 Jan 2017 17:51:53 -0800 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 5 Jan 2017 17:51:53 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 5 Jan 2017 17:51:52 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by shsmsx102.ccr.corp.intel.com ([169.254.2.88]) with mapi id 14.03.0248.002; Fri, 6 Jan 2017 09:51:49 +0800 From: "Long, Qin" To: "Zhang, Chao B" , "edk2-devel@lists.01.org" Thread-Topic: [PATCH] SecurityPkg: TcgPei: Sync TCG PP lifetime lock state Thread-Index: AQHSZ7zmjSePvmG6a0OPo/5yyVEDcqEqr1Sw Date: Fri, 6 Jan 2017 01:51:48 +0000 Message-ID: References: <20170106013327.21552-1-chao.b.zhang@intel.com> In-Reply-To: <20170106013327.21552-1-chao.b.zhang@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] SecurityPkg: TcgPei: Sync TCG PP lifetime lock state X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2017 01:51:53 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Qin Long > -----Original Message----- > From: Zhang, Chao B > Sent: Friday, January 06, 2017 9:33 AM > To: edk2-devel@lists.01.org > Cc: Long, Qin; Zhang, Chao B > Subject: [PATCH] SecurityPkg: TcgPei: Sync TCG PP lifetime lock state >=20 > Sync TCG lifetime lock state after performing PP command. > Later logic checks such state. >=20 > Cc: Long Qin > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Chao Zhang > --- > SecurityPkg/Tcg/TcgPei/TcgPei.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/SecurityPkg/Tcg/TcgPei/TcgPei.c > b/SecurityPkg/Tcg/TcgPei/TcgPei.c index 25724a6..63807f4 100644 > --- a/SecurityPkg/Tcg/TcgPei/TcgPei.c > +++ b/SecurityPkg/Tcg/TcgPei/TcgPei.c > @@ -1,7 +1,7 @@ > /** @file > Initialize TPM device and measure FVs before handing off control to DX= E. >=20 > -Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.
> +Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.
> This program and the accompanying materials are licensed and made > available under the terms and conditions of the BSD License which > accompanies this distribution. The full text of the license may be found= at > @@ -591,6 +591,7 @@ PhysicalPresencePpiNotifyCallback ( > // Lock TPM LifetimeLock is required, and LifetimeLock is not locked= yet. > // > PhysicalPresenceValue =3D TPM_PHYSICAL_PRESENCE_LIFETIME_LOCK; > + TpmPermanentFlags.physicalPresenceLifetimeLock =3D TRUE; >=20 > if (PcdGetBool (PcdPhysicalPresenceCmdEnable)) { > PhysicalPresenceValue |=3D TPM_PHYSICAL_PRESENCE_CMD_ENABLE; > -- > 1.9.5.msysgit.1