From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web10.6970.1684797628713523733 for ; Mon, 22 May 2023 16:20:29 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=aIwXTeDJ; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684797628; x=1716333628; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=vv0cMuiKp6D+hV13zBo+yVkDavQ117oGVtQN9Md8nRY=; b=aIwXTeDJvDc0Ix3jVuVS76EE7R0Sz1j7Y915U7+ruM6+W/dxmWOA8sJm F3Rjpbv2WT7KWkelT5d9OMvOKN+hUb2Me3aW2h/7pZZGeTXx8xQjVeu+l p8+TqpiBDouA1pBEPLojDCOviCamTYSKCKwY3oyHH3Ct9RLUrSm/REtzM 3uK8k5CBuHk9CEc0EFCf3c8m6CkwVGkQW8M2V5eTP5En29zDuIDY7qKyj oJ05ST3J4WIEU3tavcNywV4/THrKNdeLfbAM7IJaOjFDE+b4YLu0gk5Xa 76aAaVJan2btjuh9Ddddl047Xy9INQDpPx+5vlo6qFLiDmcTh0bi6zO4a g==; X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="350580260" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208,217";a="350580260" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 16:20:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="768726371" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208,217";a="768726371" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga008.fm.intel.com with ESMTP; 22 May 2023 16:20:19 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 22 May 2023 16:20:19 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Mon, 22 May 2023 16:20:19 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.108) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Mon, 22 May 2023 16:20:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d/Nz3GTT1Ijf0k95SvHt6BQ6aWgCtVnYOG3vAcFpMgQ3+fGAo3wLf2jCCoiXGbIua9DTf+zNY9fTkjBlkmVirMTe5NFT3x1uev9S24NO0TaP2FBIiOLXtdGS8/d4vqIFzSebQquYMacmT+KzKtsxHkkhnUJ/WJzoHyDKSHM+qWyFzeObw0WyCs1ghIM/oQF3LHtrddPb7k2QvuO9y15BzQ6fps8sRVrktx3kFirNByZ2g0FNqyjMx7mJ35FpMzBfNv+ermqp3TYuPxY5/Y89N6BRw0xPOwXswUv1zj3+cW3ayU5Rf6aNhtVcrX+OMz3dnqltnPQkPw4Dff8sZNFgCw== 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=m1kz9fm1q2pkfK52F1iM9LOeVBBwdo+r/DXv/TWVsoU=; b=Bch/dnQi16UYTnnaBAUpA2PHbRXRvWD9GIAOMSOhAcab503zhwUQm6OwOfGu7klqjYC700XNK68vlVGF+wK9Av8FJwsvy56LwvKgWrZTzeaOb/FgHEWfUgg0G9LOq4TZnvePt5HILVeZaz/878EAZZBNPFfKLjIzzEF8tibV7YJbAgx9D2O9E3vIL60BCDB/Le1NAjonrvs5dto+7AIOMY3SrzLvgR20EsfJJHe8ygyp6c/fJ7vEQh3GLKtUh13MGJH0s/4IhXpLDR2F6LAGbs1XGJmgfaIN48BsCk8W60Zow5JR9m9xL+YdAnMJXIW0Zgmw/UnPJSYA85KVdqRxZQ== 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 Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by MW4PR11MB6716.namprd11.prod.outlook.com (2603:10b6:303:20d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Mon, 22 May 2023 23:20:16 +0000 Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::892b:b8e6:bab7:635d]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::892b:b8e6:bab7:635d%5]) with mapi id 15.20.6411.028; Mon, 22 May 2023 23:20:16 +0000 From: "Ni, Ray" To: Gerd Hoffmann , Ard Biesheuvel CC: edk2-devel-groups-io , "Yao, Jiewen" , Laszlo Ersek , Taylor Beebe , Oliver Smith-Denny Subject: Re: managing memory attributes in PEI Thread-Topic: managing memory attributes in PEI Thread-Index: AQHZjKEAhT8RYGAL2EqPb3XXfQTbN69mMoAAgAC7Zc4= Date: Mon, 22 May 2023 23:20:16 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|MW4PR11MB6716:EE_ x-ms-office365-filtering-correlation-id: 170cd23c-cce0-443b-8455-08db5b1b1a32 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: L36VzQX4SpBoxrl4aDVoeYwxaqA+Dz3Uia++JTPc6v0pWzkDaDw0p/IXKVzsWW+UzEf3w4IBn667y03wHciPrMqW8Sp1F6BJEdxeAilpYQGwlxCEB/um/3fkkW1GuIDRYmv9aE88Ls5UoOTKG+xerQH6NSMMfIRbITgIUp+/bcOyfsyEyBShghlmwIfmGs140b772LFcjBapVi751ab6Gg/lRy41wc4ofg9uflmtQ1Nw31/Yu5SjzxrB9Hmi+vD5DJKAWOxgGmxrZRDcayImZeCEjdd/AgMSwEcjsuL5skXWzKij/PQQZA6+I6f0M8c96luqhpAYXw4IqeSufbqz9vqaI94upWmTdtwHHan18YqIPgKl8odf2ydAh/kvaqXTLw7SX37LZkGtF0qzSp3OxJ+0jzkp+PoTOYImXuelRHGgx7bq78yyiwffG8e8ABG6/3lm9cTNiByUqquAunhjGDDAhb3/NqHcfM0jh9P0TF5e0B3jFNn2+hitauGLnyKqrove8TtkqR/X63Ild8n5+++Pbt4IG3pCwG4cv1iYAO4Xsh47fdc/iBV205Ch4MI244rnKtiilv1GCYdpsMHoQfHnxqbBMRHQNmV/rxEo2KShp5qTVzSz9rWk8QE7vJOc x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN6PR11MB8244.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(346002)(396003)(39860400002)(366004)(136003)(376002)(451199021)(2906002)(52536014)(5660300002)(53546011)(186003)(9686003)(122000001)(82960400001)(38070700005)(86362001)(26005)(6506007)(38100700002)(83380400001)(8936002)(8676002)(71200400001)(7696005)(478600001)(316002)(55016003)(33656002)(4326008)(64756008)(66446008)(66476007)(66556008)(66946007)(76116006)(41300700001)(91956017)(54906003)(110136005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?F/M2aSrgMFob/pT1TmJOHab4QzDCXoO+bHLHa3gt3MfLX3dkkr4nQXFgBgFC?= =?us-ascii?Q?U0pibJambJQEN4vPmcRW8TI+McAZkWzALlC2W3druQZJ9ELATY93T0X1Kvub?= =?us-ascii?Q?sf0pnee3A8A36uqAtY+Ace/lda8Gc2MYuKnqrAq2TyrYt+GBknECW00RafvP?= =?us-ascii?Q?C0yMd+uYMsmUy0f3oaZPHxOlcDR7Thn+WuIWkbE/CuNwjvYubEDElzGyhNsh?= =?us-ascii?Q?D0CgdffayNkBGSRWmAYGDmItXv2eDKvIVeJQAzigur/gNE/xPb3V7g32OK0I?= =?us-ascii?Q?qHfWyYLTKr5Ll9wLiAdCZP47AMieI+M7ieq+l2h+nGjERl3ZwAxfl0vyiadn?= =?us-ascii?Q?Nm5XtYaV4VL3oAw+F1YzpDzmU9YTDnL0ADGParcEuKYgfNxWTA8zYi82mHCd?= =?us-ascii?Q?FlEYpFJbyZq8C0tZTsPyF4IdWMRd1FP//Hx7OGT62NaS1Ux+e7z9XEsg6usf?= =?us-ascii?Q?W3+J9QhTYauoDOJ6N1KRCvkHtQt+hVW0aOz0Es8SdFzfEJVptQqncTZ8EGKM?= =?us-ascii?Q?Bm6TiW2kBJwGdceEShyO0izo2j5TB9qWI39/SQEdiY00TlgKkiYmIPc2NTiW?= =?us-ascii?Q?rc/rIYTe98KyUve2zCFJdj6SO+9NsbRmciibMw/VDBzqSUh7/ZKJPO+6O9zk?= =?us-ascii?Q?nWyYh1PG4mNlKaDUwd9P847PR8g7iilf08Ug41tDCOvnAVoSsEn90zfUZd1H?= =?us-ascii?Q?POb1MetrpHd1jqcx+a0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-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8244.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 170cd23c-cce0-443b-8455-08db5b1b1a32 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 May 2023 23:20:16.4405 (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: vVoixlqOp5Ap4gV4uPY8nZoJzlt2eMyAl4M/LFZ/HcDGxla4Xlum0WtqmTEBZVKDvvhvIaAoEU+sO20LE+NzYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB6716 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MN6PR11MB8244511DC17E4F9569EED20D8C439MN6PR11MB8244namp_" --_000_MN6PR11MB8244511DC17E4F9569EED20D8C439MN6PR11MB8244namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Gerd, The S3 path has been 64bit ready. Can you check if OVMF pei64 image can do s3? At least internally in some real platform we tested s3 flow with 64bit PEI. Thanks, Ray thanks, ray ________________________________ From: Gerd Hoffmann Sent: Monday, May 22, 2023 8:06:46 PM To: Ard Biesheuvel Cc: edk2-devel-groups-io ; Ni, Ray = ; Yao, Jiewen ; Laszlo Ersek ; Tay= lor Beebe ; Oliver Smith-Denny Subject: Re: managing memory attributes in PEI > So my questions are: > - do we need to retain mixed IA32 / X64 support, and if so, why? (I > think it is related to SMM emulation but I need someone to confirm > this) Yes, it's SMM related. S3 suspend in SMM-enabled builds requires 32bit PEI. Intel seems to be working on removing the IA32 dependency, by adding full X64 support to various places in the code base. There have been numerous patch sets on the list over the last months, some of them are merged meanwhile. As far I know the patch series addressing the suspend problem is not yet merged (Ray, Jiewen, please correct me if I'm wrong). So, right now we still need that, but I expect that to change in near future. take care, Gerd --_000_MN6PR11MB8244511DC17E4F9569EED20D8C439MN6PR11MB8244namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Gerd,
The S3 path has been 64bit ready.
Can you check if OVMF pei64 image can do s3?

At least internally in some real platform we tested s3 flo= w with 64bit PEI.

Thanks,
Ray

thanks,
ray

From: Gerd Hoffmann <kra= xel@redhat.com>
Sent: Monday, May 22, 2023 8:06:46 PM
To: Ard Biesheuvel <ardb@kernel.org>
Cc: edk2-devel-groups-io <devel@edk2.groups.io>; Ni, Ray <r= ay.ni@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>; Laszlo Ersek= <lersek@redhat.com>; Taylor Beebe <t@taylorbeebe.com>; Oliver = Smith-Denny <osd@smith-denny.com>
Subject: Re: managing memory attributes in PEI
 
> So my questions are:
> - do we need to retain mixed IA32 / X64 support, and if so, why? (I > think it is related to SMM emulation but I need someone to confirm
> this)

Yes, it's SMM related.  S3 suspend in SMM-enabled builds requires
32bit PEI.

Intel seems to be working on removing the IA32 dependency, by adding
full X64 support to various places in the code base.  There have been<= br> numerous patch sets on the list over the last months, some of them
are merged meanwhile.  As far I know the patch series addressing the suspend problem is not yet merged (Ray, Jiewen, please correct me if
I'm wrong).

So, right now we still need that, but I expect that to change in near
future.

take care,
  Gerd

--_000_MN6PR11MB8244511DC17E4F9569EED20D8C439MN6PR11MB8244namp_--