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 CF2DD78003C for ; Mon, 28 Aug 2023 21:43:06 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ztDt5cOSeaABEjDHHkMn5F/n45lDNjQXSt2oPgT6jHY=; 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=1693258985; v=1; b=jVMxi+1HloW6GaXhnXE90pnCWRgPYeB12sAuxR+eoF5XisZeqjOWcV1nNs/xxvJbOuaP5RQe 3cnZ+R1pHrwmMcZzYonsBwBAqtf/fuFTPkElGyQaZPooYYr0AQfQQndOS2OkyEPO+at57zj93Zb gk6R07kwate0e02BxRDoqEw8= X-Received: by 127.0.0.2 with SMTP id 6Ld5YY7687511xGi98o1yH6Q; Mon, 28 Aug 2023 14:43:05 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.3999.1693258984216556385 for ; Mon, 28 Aug 2023 14:43:05 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10816"; a="377938859" X-IronPort-AV: E=Sophos;i="6.02,208,1688454000"; d="scan'208";a="377938859" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Aug 2023 14:42:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10816"; a="767830542" X-IronPort-AV: E=Sophos;i="6.02,208,1688454000"; d="scan'208";a="767830542" X-Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga008.jf.intel.com with ESMTP; 28 Aug 2023 14:42:49 -0700 X-Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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; Mon, 28 Aug 2023 14:42:48 -0700 X-Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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; Mon, 28 Aug 2023 14:42:47 -0700 X-Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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 via Frontend Transport; Mon, 28 Aug 2023 14:42:47 -0700 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.169) 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; Mon, 28 Aug 2023 14:42:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jVZs8olDSeeph1mOUsHyepNyUi98WXHIcK3HLr4ytL0vKl/GMRKh6gHcodUAVifu5ycvcPwSLkhjnyA3YAFSRVe67MkkH+/52pgVDTgQS50dY2WMqOyDf8c6Q+UQ8U+xgYKmgD1ULE+hyzhuAHUrev+vA7/nXEmY0C0EH88w+zMtRzC8BJClyBLmAbb1vWfGmQg4IRD5t2rE6AJwT/z+O4DBG6D8T0yMzlon/mzmEheJM5yv1SovDk25ynfLDM4FhCgZHj6Kbacom/JtGc9I/6okTP5WHYKS8rgkpBE6moO+IgCdKU7Fj+Cvnt9xkaRL+dNmWKGv31TXvaZlUxhdIA== 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=UMZ4i0SWPeKXPuah8xf/5+6iqqyh9YYvMcfA0uVOU5Q=; b=bCtBd/k/DyCbp3VQlzyWFPrJ5PulfrELN5nA+JADfoZWj8Tu6Bk8YxZ5IvDOokQJi+flIU9IZh3xSNM2M7mLowCrGrSqsEPV8kOKwaZuVp6jKrfVutknv/HMdNpxbCe4jU7sK2BZoh3zLOAykN8DwHW3ffPtpJtKtCKoM9BXs46v+W1HDxe/YtJiThkmaBSkO0BoHoYAQWuEQum+4RG7dcmqngEBIJ7a5iUcVtv4Ov8g19/KO7AYX6VfeGM90iRyWnxn56eHcWdLlwJibYBybI6JvS3XaR0BnScmT6D8hQaHI7J52ysTGojIbI0L6ZbbsO4dkA9yUD77iGA5f26f7w== 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 BN9PR11MB5483.namprd11.prod.outlook.com (2603:10b6:408:104::10) by IA0PR11MB8304.namprd11.prod.outlook.com (2603:10b6:208:48b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.34; Mon, 28 Aug 2023 21:42:40 +0000 X-Received: from BN9PR11MB5483.namprd11.prod.outlook.com ([fe80::380d:dcf6:c4b:d48b]) by BN9PR11MB5483.namprd11.prod.outlook.com ([fe80::380d:dcf6:c4b:d48b%4]) with mapi id 15.20.6699.034; Mon, 28 Aug 2023 21:42:40 +0000 From: "Chiu, Chasel" 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: [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: AQHZ1wLkkNdXKtOy6U2I5QKIZ/Nx7LAAQv0A Date: Mon, 28 Aug 2023 21:42:39 +0000 Message-ID: References: <20230825031522.1241-1-hongbin1.zhang@intel.com> In-Reply-To: <20230825031522.1241-1-hongbin1.zhang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN9PR11MB5483:EE_|IA0PR11MB8304:EE_ x-ms-office365-filtering-correlation-id: a69b8c5c-3bb6-4cf9-18c5-08dba80fb3ee x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: 4zbh+1IV2R4nhf7S/FTqY1glohc66GVUtshVetcE/AKRma2Us0YdduSY9WP9JWxP4mS8LDo01jhDhYS4w+KqBcU/Y1tqs8R31Au9bYI1hqTsUJweKLP9EphWX3LR2eTKpTMDHr+xRZIvDQNilNtgXkOrFMCpRnoVJJviHphbVlUUse7Q3ivOSv/lI0AyxS7drU6TEpJKw1DetacZCEyck7qp/8sPZfo1EqVrMrwewGRqd2n0XYR3GRzERql6CY5bNYWFlvlQ4wywlqp1ctEW9q66cLmRjJ5LeQOy3PxyDUHGcXlhkqa51St1aT/1BrVdOhRr/uaaii/D5SoOC8zzdXUJADYgpHlZr9SHtczVBIGVltYNGs2zIh3EVOYreQu5Pan/dC9IvdAnbfFKFuXxuPtP4IhVatY4KiaUXE/uvsKqOGh/HNYQlaTUqNy7SYQqsduVEZj8Nkknv+GS8iEZsMJbvveXaufwVUMqaCA9JzQptHquLzp78puc4/56v53fJsozWxm2SHF3sCGunIGsWwgEA4MoGQO87WL1JvUKd/X3fzUMCAXlFqG1KpLbfJMzUPcKHXssSy/t0Cgofwn0HQiEAlN76SxIaZY28fxOCHM= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?aQ7H7Kdll1OmKBeA9zBELYmidBwgLXyAUvv605o9RtQBWsvW4GiyOKidgu27?= =?us-ascii?Q?6qe4Ndq2Ej+dgDm3fucYWG86R/TiERLifqI4kyso2a+u9BtVidcJHZSmxlG+?= =?us-ascii?Q?58BY0HBN+eSOmzOF6XAUvMQkLnafqdHpuI6ogJkkFmrTJA2uaVscpEfFXhiC?= =?us-ascii?Q?qG9SmfNEkSXs+KZG8BEtXZrBwL4b4JZaINnmGfCrW+CZV+q7gPt4BPCxbpD5?= =?us-ascii?Q?3PnrABdPFU66vj/nXRHVlvzl9Vi1N+BfF1JvK7XmPlh6oJsjEOOvn22mi3DB?= =?us-ascii?Q?LILcvmdZxaKSQx2pXqyAp/AuPo2Y+iy7yXvwpknLQaGXQEWtGswX77eYLENU?= =?us-ascii?Q?wqSsB9OaxS1ZtbJge0A/ExLkx0Vgdfuorrl/fpazQSJ5ekra6Q1xPWS1m3rY?= =?us-ascii?Q?ufa7UJXBXQ21ZIrU1wYfegcYJv2Q5n5MrePwrL8xJQFOv44oqZho3y86Xe1+?= =?us-ascii?Q?+ruTV/2rIxHco73BnmcSiu2WceHZzwicWIu+gEjvRiqIZ1Ia8Als/gVqD6wp?= =?us-ascii?Q?9YKOKRq8+QDHUFRcUcJBxdY+A8hFlctt/J9yM2GTxn/HQ5AWPnZhmJPMYxiA?= =?us-ascii?Q?s5eSEtrZSNkkd0S33UEJo002IH2iSfLJdImSc6KVoOYA/OH/oURU5e2kVFkd?= =?us-ascii?Q?cRlP/fqBU1Nlp7G/ucZbxhcm8aQ/Z/iNIvzkSzRj7ZqOZHzlVuryl4VHls0r?= =?us-ascii?Q?f0yRST6rh2r+br+Z+H4epnKrn2FxldwP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s: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5483.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a69b8c5c-3bb6-4cf9-18c5-08dba80fb3ee X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Aug 2023 21:42:39.9577 (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: TBDH5N/5a6/5lXQCNr4gBUPTR8wabpW2uFrgv7XliGxzZ5iKgxs21rMP8qCNd/G8f1H+fmX0O3zeAOBzS68s2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB8304 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,chasel.chiu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: a9VFnyZyMyGhT3acXAsMwrlEx7686176AA= 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=jVMxi+1H; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io merged: https://github.com/tianocore/edk2/commit/b1e558f6369fc85ae053e0c16ffcd60088= 0fe78d 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 > ; Desimone, Nathaniel L > ; Duggapu, Chinni B > ; Ng, Ray Han Lim ; > Zeng, Star ; Kuo, Ted ; S, Ashraf= Ali > ; Mohapatra, Susovan > Subject: [PATCH v1] IntelFsp2Pkg: Add get and set FspSmmInit upd data poi= nter > functions >=20 > FSP-SMM module need get and set FspSmmInit upd data pointer functions 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 (#108069): https://edk2.groups.io/g/devel/message/108069 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-