From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 10505D8006B for ; Fri, 25 Aug 2023 05:33:01 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=FszEN+vXqLCiFzWw9kQHCiNyVCVn6ohO5W6/kKHh65Y=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1692941580; v=1; b=HKfI002fv9CJdwzbER5FnOsM50C03B7SfYtxhv2cdydDznwYc8hBKD1lcFVUMDulrC+EgOyF 0p7SJoBgmp6ElmHzyy6mRWjxFYM9TnQ7f02yG6SLyW5k4ZM1N21hijJpUqeyiCmW8G732aDUhEc EZm98E3R5XorJwnNiU9hFKhk= X-Received: by 127.0.0.2 with SMTP id 7Ai8YY7687511xBXRAubXTrF; Thu, 24 Aug 2023 22:33:00 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web10.7370.1692941579691756224 for ; Thu, 24 Aug 2023 22:32:59 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="372032315" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="372032315" X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2023 22:32:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="827456293" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="827456293" X-Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by FMSMGA003.fm.intel.com with ESMTP; 24 Aug 2023 22:32:51 -0700 X-Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 24 Aug 2023 22:32:50 -0700 X-Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 24 Aug 2023 22:32:49 -0700 X-Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Thu, 24 Aug 2023 22:32:49 -0700 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Thu, 24 Aug 2023 22:32:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R+q3M0nU+dv4lpexao1kWM2IooIGEaf/WYVN3Onr3BLGNuXxzaB2KwXe0weOxfGTdfGXOgKmqDtIJhkjEUb9SjfG/Di0j8/ps1/HxGvs0FD+emIoFTX0aLKGvxwmZdn/2HbgBSVjhcUDgfU3f/+TVNQqWoIu3ZQn+LEdRL/bGhJS5kjYiH0gbDjZ3IQR7P6cssrI8p+2lsS12C1XZrATB6P/wx1i9kJT4FkJUjz471yyjADO4ws5An6hqDy3Gu7GcSbFReHRHUyWQjEf+RE9Rn1eW8IB2zLciJJUGWTBVv5ugs2EmEuuXT7g59YPoicFZ/WU+gOW86Z2G1N+9LKuuQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5EFSABgYE2jgbLejXK/kTl1JtKl61DkNvluDeNal5GU=; b=NIUgnRK6jhu0nhCwR3qDrQXlLznzxMnIGz15rI14YHJjbnSswcUqrqP5hiNdidyTAHfjVi10BYtjaEffbDfVQNDKiZnLGreSAwvVwXfYyIrX0U/MjHdCi3DWCF4m8Qems4pu83sZuMWwN43oe9La3B42OS6gQ88hLpnJcZb64JFrAEQRvc2fUDhB9xKR8fnpo5cPJbNDwDfQ8C1PGr+7aZpqhNdxPqHb4zWcZcnxWFCD/K7gY9S4j+N5oCeXcOQXyGoocReNxvT16cMpx5xOOnh/eK07ulyi8PLHnjy4MH2aTZm9jyV8DB07igZoUOANZvYaB+22T1g3VSMqLP1BvQ== 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 X-Received: from DM4PR11MB5280.namprd11.prod.outlook.com (2603:10b6:5:38b::18) by BN0PR11MB5694.namprd11.prod.outlook.com (2603:10b6:408:167::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.29; Fri, 25 Aug 2023 05:32:38 +0000 X-Received: from DM4PR11MB5280.namprd11.prod.outlook.com ([fe80::46f9:334a:633a:bd40]) by DM4PR11MB5280.namprd11.prod.outlook.com ([fe80::46f9:334a:633a:bd40%5]) with mapi id 15.20.6699.027; Fri, 25 Aug 2023 05:32:38 +0000 From: "Ashraf Ali S" To: "Chiu, Chasel" , "Zhang, Hongbin1" , "devel@edk2.groups.io" CC: "Desimone, Nathaniel L" , "Duggapu, Chinni B" , "Ng, Ray Han Lim" , "Zeng, Star" , "Kuo, Ted" , "Mohapatra, Susovan" Subject: Re: [edk2-devel] [PATCH v1] IntelFsp2Pkg: Add get and set FspSmmInit upd data pointer functions Thread-Topic: [PATCH v1] IntelFsp2Pkg: Add get and set FspSmmInit upd data pointer functions Thread-Index: AQHZ1wLkNPDcA8TRpEu619nKoW44ja/6ZSEAgAAX3/A= Date: Fri, 25 Aug 2023 05:32:38 +0000 Message-ID: References: <20230825031522.1241-1-hongbin1.zhang@intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB5280:EE_|BN0PR11MB5694:EE_ x-ms-office365-filtering-correlation-id: 58b9fd4f-9f94-4966-05ed-08dba52cb1bd x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: 7D9mzrbtD5CihmuZxkhMLku6hYanC+zZtV309qflpeev9KsCc33r5tx6Cb04ItYk+/iRkQRm61jGAlBahLpArzE8gN1AtX6FfIr/cPDUxeqhdxidT9cvwxIX3wlTnrl5fecPdmDRg1ndzRGsA/t4bw5oNTTg1azd0fMCXqQUUPfyz8OJx1m9Y8pVfJoF9/0Nik40T6ojJFn/+tOZA3DApkJisNrm2bw9DTkY1Crly4txsIrwhVx2Nfv7PdFv9niHqPC40oEECpLNE5h4WxaFVTcLcrP7+2cj3/PAyJsc48/OMLU7Mmo7Zf/SjBE9KCIidm4uXl4c0R2yQvCBMzXHBUAHcEtr3VuKt30DbLFmvZ823WNBOPiMosYuhVulQh4gSbteL3Q1b+UDwbYcU8lWijrSJooXuV0G6A/rBgFzrT1exHm3ODE7Jb3DilW5yQ6bSQUt5PHB9khh/Mf4/h6Gm7fmZ9y/wH/YKP160gSAyfw80YX0h5JTQ/8ruMmas6Ia5sq8S/kUotmhEzpRNs3cXmNwaIz4iODcY1zvm8g/O9VqDdO6fCGMz7xLtN/uJ8Zp8DEkyFlBJYyiAtxQyzRj8cE0sHAhluvU+8Xq7dI+QPaj0n7A9KnQSfNxGmEEs3RW x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?gOkHabjINsKXGbrDckqOX3ViZU1yk3VeI3FmgFZpRmP7yBU2Pm/5Co+lngom?= =?us-ascii?Q?pntdbhsCXWHmJg+K8sIQOwZLTwcDvIpWwt0vNBtQf285Qjerkrgkl2ANuUxR?= =?us-ascii?Q?DdxerYs4SOb0Ol8lA9JYqM874AgHBB9xGfoV/yGSVAlTRjlEl9wDAQ2j1l+C?= =?us-ascii?Q?7g7GBCx8plNB79IhoFJpxzsDxH/zljEe76ggcBZWC4nyCdpokhY6G1V3tPiZ?= =?us-ascii?Q?Q37DuNP52sadReURpe6C62S60x1xvTt2Iscx0f7JXEZ4Su4GdUjq1ySWsKoS?= =?us-ascii?Q?1jprz3bJnqBJc/akTb9nZMW6AG6ewfEaDcdq7rsHTUSvwQNZLqRnRor/FTNt?= =?us-ascii?Q?HHQrmePkX3Uldn1V0NW8lwJTbp1QKL6gcNvhPfa902SAZF5ygOt/0Mnga5rV?= =?us-ascii?Q?ifACJnySGhNmMa8jtcpd5Ibqxwo09HNVq7WBi6Pr9Bj4k7lun13sWl+KaNRI?= =?us-ascii?Q?kNSG3+XiGeE0qpccsefBf+igPPIjR2bteS8G0SLc7X4voWkWjkyw0LqCThb9?= =?us-ascii?Q?cMCpDrydaxutFB7NJk1CpTgm8xj7inhZZE8lqXvGExEhCR52kx9cmB2fD0ls?= =?us-ascii?Q?XBhWyFtfhPArWYgJb4id8jdXPnvbFA2C4+PKZExcarmQIaGO/WisONjNA7IB?= =?us-ascii?Q?n5CsK04HvqXGVodDQMrVZuDrsawRE3GT/zSN5KXHZh4eZM/3B3xoOPbugpRa?= =?us-ascii?Q?EcFFq8JO5HPZmuzux6zLFKdEHgnw2TQ3IFsLOxeEqLCq8ij6MainS2Lml/Yu?= =?us-ascii?Q?rrCjBoa/QlPrng6w1n25U2Xar+Wx7ZGXAcG6LbMdMmTcvH9Nfg/IVtjtNOWq?= =?us-ascii?Q?Er0OySp3thNlnQsupqGeupRLbIGnGIlprX3Rd6mPq4B2Uqk7PwKStoG2AT1o?= =?us-ascii?Q?oXQffiiRK3cor8TPO423IGyeK+89J0c4YPMQxbm72Ghpcb+47Yp6rzOQUWF2?= =?us-ascii?Q?VDd73IdN39YrdmT9+IlN9cCAo0Nzrgk+O+WDRSi3Vz3kM5OiM+zoeHs6eYu6?= =?us-ascii?Q?9I2uKWU3lw/YFfn2tOLGaa0X1Sb3sF+W8z4I4yBfWPneZSdJsScUT+8WV64h?= =?us-ascii?Q?+RSbbOBFu7oaWsaLWz1cRk9kBYqr3QbTcZvqC6RTfnm+wIqL6nvSL18Qg8kb?= =?us-ascii?Q?4AsBZujtgtR+fW7/ltX3hKbJYPnsGo54nN8hhnDZVvLRrPChO5MPdmGUYtEl?= =?us-ascii?Q?rw6+JA5Hk6b6yupXNztIsLE7rm9HPscBUiL41KsqxlXPhMWe9nflCMKCaqHe?= =?us-ascii?Q?NH42jfSHPDD6WhAdORfixGrtJ5z5oUbxh4M/tTWFrDeaPbw17cJrs7rhJZ5X?= =?us-ascii?Q?qtrUcgZwd00AI8Wk2yHohu0nrPA0Fg24VbMqa+4b311P0eUe5Dt2pn9/leXc?= =?us-ascii?Q?1IpYtqg7g1yRjzOKKc2mARDTz/MsFWuO4gCWAMBSHuJkGJjWIFGCUHmQT+zS?= =?us-ascii?Q?corZU7CqLmeQj96S9PJUl79HFta5NzEXkNKk/d07dRafhv4lRVo4Y3908h49?= =?us-ascii?Q?6gpqwfLZtNRB0Y3u44reigaQFFs+k502fBq4+zhfFeGNnT+atik7sB+FOfUo?= =?us-ascii?Q?SMthCO6DVXpBAbiRLYKKH+iPJYmV8un5Iu3QB0Ln?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5280.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58b9fd4f-9f94-4966-05ed-08dba52cb1bd X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Aug 2023 05:32:38.1676 (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: YFWbWUjT4P7I+x1lAdwwgxszjJzsax2ZbxISlL6iIAZaeu3dBoEvc6RorHIrAtlcktDwre6Kx7mLf64SyTwXGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR11MB5694 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: 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,ashraf.ali.s@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 3nSkbxdVNCCKKgNolfBHQUDAx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=HKfI002f; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Reviewed-by: S, Ashraf Ali Thanks., S, Ashraf Ali -----Original Message----- From: Chiu, Chasel =20 Sent: Friday, August 25, 2023 9:37 AM To: Zhang, Hongbin1 ; devel@edk2.groups.io Cc: Desimone, Nathaniel L ; Duggapu, Chinni= B ; Ng, Ray Han Lim = ; Zeng, Star ; Kuo, Ted ; S, Ashraf= Ali ; Mohapatra, Susovan Subject: RE: [PATCH v1] IntelFsp2Pkg: Add get and set FspSmmInit upd data p= ointer functions Reviewed-by: Chasel Chiu Thanks, Chasel > -----Original Message----- > From: Zhang, Hongbin1 > Sent: Thursday, August 24, 2023 8:15 PM > To: devel@edk2.groups.io > Cc: Zhang, Hongbin1 ; Chiu, Chasel=20 > ; Desimone, Nathaniel L=20 > ; Duggapu, Chinni B=20 > ; Ng, Ray Han Lim=20 > ; Zeng, Star ; Kuo, Ted=20 > ; S, Ashraf Ali ;=20 > Mohapatra, Susovan > Subject: [PATCH v1] IntelFsp2Pkg: Add get and set FspSmmInit upd data=20 > pointer functions >=20 > FSP-SMM module need get and set FspSmmInit upd data pointer functions=20 > to get and set upd settings. >=20 > Signed-off-by: Hongbin1 Zhang > Cc: Chasel Chiu > Cc: Nate DeSimone > Cc: Duggapu Chinni B > Cc: Ray Han Lim Ng > Cc: Star Zeng > Cc: Ted Kuo > Cc: Ashraf Ali S > Cc: Susovan Mohapatra > --- > IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c | 41 > ++++++++++++++++++++ > IntelFsp2Pkg/Include/Library/FspCommonLib.h | 22 +++++++++++ > 2 files changed, 63 insertions(+) >=20 > diff --git a/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c > b/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c > index 6f6a086111..d33d01fe22 100644 > --- a/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c > +++ b/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c > @@ -372,6 +372,47 @@ GetFspSiliconInitUpdDataPointer ( > return FspData->SiliconInitUpdPtr; > } >=20 > +/** > + This function sets the FspSmmInit UPD data pointer. > + > + @param[in] SmmInitUpdPtr FspSmmInit UPD data pointer. > +**/ > +VOID > +EFIAPI > +SetFspSmmInitUpdDataPointer ( > + IN VOID *SmmInitUpdPtr > + ) > +{ > + FSP_GLOBAL_DATA *FspData; > + > + // > + // Get the FSP Global Data Pointer > + // > + FspData =3D GetFspGlobalDataPointer (); > + > + // > + // Set the FspSmmInit UPD data pointer. > + // > + FspData->SmmInitUpdPtr =3D SmmInitUpdPtr; } > + > +/** > + This function gets the FspSmmInit UPD data pointer. > + > + @return FspSmmInit UPD data pointer. > +**/ > +VOID * > +EFIAPI > +GetFspSmmInitUpdDataPointer ( > + VOID > + ) > +{ > + FSP_GLOBAL_DATA *FspData; > + > + FspData =3D GetFspGlobalDataPointer (); > + return FspData->SmmInitUpdPtr; > +} > + > /** > Set FSP measurement point timestamp. >=20 > diff --git a/IntelFsp2Pkg/Include/Library/FspCommonLib.h > b/IntelFsp2Pkg/Include/Library/FspCommonLib.h > index 13b67f8822..12d993b7cc 100644 > --- a/IntelFsp2Pkg/Include/Library/FspCommonLib.h > +++ b/IntelFsp2Pkg/Include/Library/FspCommonLib.h > @@ -192,6 +192,28 @@ GetFspSiliconInitUpdDataPointer ( > VOID > ); >=20 > +/** > + This function sets the smm init UPD data pointer. > + > + @param[in] SmmInitUpdPtr smm init UPD data pointer. > +**/ > +VOID > +EFIAPI > +SetFspSmmInitUpdDataPointer ( > + IN VOID *SmmInitUpdPtr > + ); > + > +/** > + This function gets the smm init UPD data pointer. > + > + @return smm init UPD data pointer. > +**/ > +VOID * > +EFIAPI > +GetFspSmmInitUpdDataPointer ( > + VOID > + ); > + > /** > Set FSP measurement point timestamp. >=20 > -- > 2.37.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 (#108031): https://edk2.groups.io/g/devel/message/108031 Mute This Topic: https://groups.io/mt/100950055/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-