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.web10.65729.1597756006343459262 for ; Tue, 18 Aug 2020 06:06:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=RtFpWBm+; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: chasel.chiu@intel.com) IronPort-SDR: P/y3jwyzc+q3ha5dO4jF01tNRkmngy56ji4N0FonQX2al6IYYcSkDwCUgxKP3k47/EcJMmTD6N 3VhdMGmgR6RA== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="154152777" X-IronPort-AV: E=Sophos;i="5.76,327,1592895600"; d="scan'208";a="154152777" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2020 06:06:45 -0700 IronPort-SDR: 33SkghkPsNl4rbO4jj1oCvCebObg4nWsdzOWQ2zVkDA6hQk9JlzaJmiEj69P6VBORn8DujhnSZ aATjTX50z5SQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,327,1592895600"; d="scan'208";a="441215245" Received: from unknown (HELO fmsmsx604.amr.corp.intel.com) ([10.18.84.214]) by orsmga004.jf.intel.com with ESMTP; 18 Aug 2020 06:06:44 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 18 Aug 2020 06:06:44 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 18 Aug 2020 06:06:44 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 18 Aug 2020 06:06:44 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.177) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 18 Aug 2020 06:06:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D7jaEipiQh2DNtBXnognX08oR8DxxGiZEuUWCm7glgV6jmlMQUvutwYXN8GYEX1PRYmiRC6Eazynd00Ndmt0rQ40ZMGWA84ZfjB+DyGdo1Evh74eSMLH1Iuxd2A5ucWjSUuBxL4DnPp851hScJhIJEL4WW4AHmzvuJTl+F/AJ0EqAmx9tv3VY2Wcb84e2TM7F+WNH+1B/Vk7uge+bT5SFGwAWUZvWl7It0iBG6QejYNxpWP6JVdTnqvqKMIN6SzXb6UsAll57KioR5AkpuUC1R/9kg/o8qvz7vbEpTWGz88bAbiGUrUYjXAB8LVG7rb+Guq+c+d29vJBI2lflz5vzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Rj5ZnWSFRvaBEc+GbCBIv1oQHwKFhI3ANfHoyjBNgWo=; b=kAxkQ9cmqvIjAvgxgEq0Ym+wvubQFHzp+QfOWS7okTI6Fkp6i8hMC495vm38zhdxkzAOZ1yW0xOuIBmPXMpCB0R5VqkpMlnqtmKqudSGgzTZNudY4H872J9CxEdTAafGh6P/ZdV0I+tO+zUr3z4q+EiXfS7cZn6GcgUzT2PcIn4B819waa2gjsJP2XsuTaeUrU0H0LpGEbx9S4KBnpWTYFBX5thzMXgeX45PMi2RaCBtfkncLRN+WtOEv2Nu3aSJ8QB7kp/hqotikgm198MQGV5hgLP+NnwfhmQvXfTR8CWHPYSZAp/2HTY5hP0pa9/KAEFzZoT8Vzj9WcT+3nPQlg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Rj5ZnWSFRvaBEc+GbCBIv1oQHwKFhI3ANfHoyjBNgWo=; b=RtFpWBm+BGrEJ9iDMjS860q+NqCgQArAuRZ6+YQVOPwF6tGdVT2aD5s5Au7UdWkwT5EzzrdUawuhQskFpWSOYRlwvQJVsWmq4H3aV4OdALTSAUMP92gXutnRwffVr6uw+ilkHnt84l7BVnxSOwdvEmSYJNm+FOWjciL3nyMzlJ4= Received: from SN6PR11MB2814.namprd11.prod.outlook.com (2603:10b6:805:55::15) by SN6PR11MB2559.namprd11.prod.outlook.com (2603:10b6:805:57::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.25; Tue, 18 Aug 2020 13:06:42 +0000 Received: from SN6PR11MB2814.namprd11.prod.outlook.com ([fe80::4843:7aba:799b:326]) by SN6PR11MB2814.namprd11.prod.outlook.com ([fe80::4843:7aba:799b:326%5]) with mapi id 15.20.3305.024; Tue, 18 Aug 2020 13:06:42 +0000 From: "Chiu, Chasel" To: "Zhang, Qi1" , "devel@edk2.groups.io" CC: "Yao, Jiewen" , "Desimone, Nathaniel L" , "Zeng, Star" Subject: Re: [PATCH v4 2/8] IntelFsp2WrapperPkg/FspMeasurementLib: Add header file. Thread-Topic: [PATCH v4 2/8] IntelFsp2WrapperPkg/FspMeasurementLib: Add header file. Thread-Index: AQHWdSiHGf8ujElJsEe7puwIANWJeak91kyA Date: Tue, 18 Aug 2020 13:06:42 +0000 Message-ID: References: <20200818062618.3698-1-qi1.zhang@intel.com> <20200818062618.3698-3-qi1.zhang@intel.com> In-Reply-To: <20200818062618.3698-3-qi1.zhang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [220.129.108.102] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3536ac3d-4985-422e-508f-08d843778d95 x-ms-traffictypediagnostic: SN6PR11MB2559: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3513; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LHiTFftX18VRiMLrFL42ywWEn5h47jyFfk2AhZjTLrJL9ymQXNM8YOqnPSNntzO9+xtpkKmyMdt05H6JBkncevnpJigTAlAqgo/F//HbvdxvDxjimd/rrTWkhFLaugsjmr9kyBru38jglc71Ir5qzH4pzDM8N2+FALn7toQsrklKMjeTEija0PemzuJvIHADkiVov3Vn8ndT2BWMep4DDC37EWMV+mpGWKp+vRqjfdeLxoUze6bAHK+iduM50HRjybuyo8/IWCelAxD468u1UJIwiTCWmDxdDSEQf9d5vDSSdCCqeX0f72IPhBmTZx7uNrFnan/pGX+57F3nx3jVtTQy0Y2dL/cA8OUONEAhpRhkDLiSOviyz2OcpUMqn1dgv5Eb5onAcMu/m/pRmnR+dw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR11MB2814.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(136003)(396003)(39860400002)(366004)(376002)(966005)(4326008)(186003)(8936002)(478600001)(26005)(64756008)(83380400001)(33656002)(66946007)(66476007)(71200400001)(76116006)(66556008)(66446008)(107886003)(86362001)(5660300002)(9686003)(54906003)(53546011)(8676002)(7696005)(6506007)(110136005)(55016002)(52536014)(316002)(2906002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: krXS1asuVIBA+EfABqRj/7vpgXNCi3bje3aB2gMtfXJPKCiePvE4JMhP4/aY8BSTwUFDA77oTB88QUGTnsBQ+G3iuodR0uBXvj7PMtuxFyGkADpK9lxvLkKdFsQIVvbtMZc+qRXYTa2RF/jUrpok2eWbJtA9hgyWz8Wa5kyNUBe43u6hSAQZWTR+Jz+uLKaLe680Oh28cotOkIsZy4PLeSBBq+Ur05ABLvL1YFeMRAIO0YpAftxx6RXKPiUsHkAPk61dc+0wTsXuV/8yGvah57xJ3VcxUDwpiCDX9loVdlMBvZ2/KfTlPhZlaBu3hy24uaH/0Ibrm0umhK/5COf+ZJK7tkG3490ldOVmxtXL8EtquJDSszvbWqZP+0mb0AgPMNoHFSndLKg+N2H7dXXokXN1Jd+sjr3c+SBv9uLdzPp17EVe4xtnTROcxI1bBzKjKiTP+M1BpGlo1c+kHWCOyT8jWSh9fzFTB37OKIRptDXhXG/Wgan2sNMp92xHnuoF7u6xQdlnX1LS5R7OU5BFQ21WDXdmxqyg9DGkvEekSCfLVzvjjzEau1tyaHmZu2wPXcjWnbMt2Vv/Im9cEWSybSBi9vK2THHnt+jKeJBniNjEJNoYyl9/JUhcB6lnFRdpzFlqQvXXJ1sUSlgR5FNN8w== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2814.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3536ac3d-4985-422e-508f-08d843778d95 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Aug 2020 13:06:42.6738 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ayR37ho7QC7RkSZ80v72zfWROfXVkirIu0DuBEamcVnURr/+ltHcVy1ki6pVqXsGY50jB6FjXYdJOzGdpsHG1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2559 Return-Path: chasel.chiu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Chasel Chiu > -----Original Message----- > From: Zhang, Qi1 > Sent: Tuesday, August 18, 2020 2:26 PM > To: devel@edk2.groups.io > Cc: Yao, Jiewen ; Chiu, Chasel > ; Desimone, Nathaniel L > ; Zeng, Star ; Zhang= , > Qi1 > Subject: [PATCH v4 2/8] IntelFsp2WrapperPkg/FspMeasurementLib: Add > header file. >=20 > From: Jiewen Yao >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2376 >=20 > Cc: Jiewen Yao > Cc: Chasel Chiu > Cc: Nate DeSimone > Cc: Star Zeng > Cc: Qi Zhang > Signed-off-by: Jiewen Yao > --- > .../Include/Library/FspMeasurementLib.h | 39 > +++++++++++++++++++ > 1 file changed, 39 insertions(+) > create mode 100644 > IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h >=20 > diff --git a/IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h > b/IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h > new file mode 100644 > index 0000000000..4620b4b08e > --- /dev/null > +++ b/IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h > @@ -0,0 +1,39 @@ > +/** @file >=20 > + This library is used by FSP modules to measure data to TPM. >=20 > + >=20 > +Copyright (c) 2020, Intel Corporation. All rights reserved.
>=20 > +SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > + >=20 > +**/ >=20 > + >=20 > +#ifndef _FSP_MEASUREMENT_LIB_H_ >=20 > +#define _FSP_MEASUREMENT_LIB_H_ >=20 > + >=20 > +#define FSP_MEASURE_FSP BIT0 >=20 > +#define FSP_MEASURE_FSPT BIT1 >=20 > +#define FSP_MEASURE_FSPM BIT2 >=20 > +#define FSP_MEASURE_FSPS BIT3 >=20 > +#define FSP_MEASURE_FSPUPD BIT31 >=20 > + >=20 > +/** >=20 > + Measure a FSP FirmwareBlob. >=20 > + >=20 > + @param[in] PcrIndex PCR Index. >=20 > + @param[in] Description Description for this > FirmwareBlob. >=20 > + @param[in] FirmwareBlobBase Base address of this > FirmwareBlob. >=20 > + @param[in] FirmwareBlobLength Size in bytes of this > FirmwareBlob. >=20 > + >=20 > + @retval EFI_SUCCESS Operation completed successfully. >=20 > + @retval EFI_UNSUPPORTED TPM device not available. >=20 > + @retval EFI_OUT_OF_RESOURCES Out of memory. >=20 > + @retval EFI_DEVICE_ERROR The operation was unsuccessful. >=20 > +*/ >=20 > +EFI_STATUS >=20 > +EFIAPI >=20 > +MeasureFspFirmwareBlob ( >=20 > + IN UINT32 PcrIndex, >=20 > + IN CHAR8 *Description OPTIONAL, >=20 > + IN EFI_PHYSICAL_ADDRESS FirmwareBlobBase, >=20 > + IN UINT64 FirmwareBlobLength >=20 > + ); >=20 > +#endif >=20 > -- > 2.26.2.windows.1