From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.15247.1678439948601016835 for ; Fri, 10 Mar 2023 01:19:09 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=PAKTZ+FX; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: jiaxin.wu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678439948; x=1709975948; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=AGMLzQUKzph1C5GEo6u7oMHuVhIBrQSP6ZbP8/nf+j4=; b=PAKTZ+FXXe3iZII5HUDbr0dnzIYer6NT0SmDLZzH4qPRBWudXw1CIY98 7pkQd7ELJH4ZvK2Ido4GyNRiM7Ckxtc8XqDz8dlAVERBIrhcjWKJREbTJ MJlQl6jEvPibuinxfsOKRRt/GvyHTg/Cb8UA+Pen5zMl9iDZb1DSTES0q 5qUvwpm5pnVpnmMVl+GN6q84JhVlz1G0z06Gamw/lxhYQ+UIaOmiKOVra 0VyN4WSgO2C7wdY1gFcmXmnE3oMGanL8RdhlJy9faIsFvu8XS0L3mjDhi 8f1ldUk3RR7RB2ekkjih4L3cIgpiIii6EqFbnSl+9VJSbk++M6JBrg7+U Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="401548437" X-IronPort-AV: E=Sophos;i="5.98,249,1673942400"; d="scan'208";a="401548437" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2023 01:19:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="923587775" X-IronPort-AV: E=Sophos;i="5.98,249,1673942400"; d="scan'208";a="923587775" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga006.fm.intel.com with ESMTP; 10 Mar 2023 01:19:07 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 10 Mar 2023 01:19:07 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 10 Mar 2023 01:19:07 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Fri, 10 Mar 2023 01:19:07 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Fri, 10 Mar 2023 01:19:06 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bNnmQjbpli70ADvipeNCoLhLrfnRljR1DlzTnPi5PDLybKE9YwXXlHZwzXH9tQsB5csUmEwijGaJII3RZXcRTof3khma9WnJoOvrknU7uetErGMhSbImFgbLhf9nSmmKu0Cc112ZU5uRnMoHbSMTDiWB7TuZGQ6uEIdbp6PADXS14Ns/QUfmcZ+KpzefWYBuYZTIyJt5UZ1YMgJzfRWeX/ShdbT4kBHQz3iKNWkFsLwMm67SxOHefEcycnv0qPCZ+HhYWD6GdUdPCXeFE04kJ9ijq09fKRCirRxrNjN8Ti+2LqjtpPYKeLKNUsJg4afyKltSOQQsG7q3KqZ6iir4Kw== 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=xDAFfzO7WeG2a/9gOI4tlj7i8matlz9KuXbLftny9ic=; b=RzwRdtZlaAVyvgE0lupcYNyJUiynM+pMOebGVTDlyPfUmGBbIKZPLG6hjYcq2mny/f1rrW2fCT5KD+Av619R0pkP5KM6W0pCW9oxF7hXPpOBPSnJHSaKuH49nvZ86u0n5BSujyzcBstvjq4mZ0rguorEEDNmaMjHbzXqiZRzEZyJoVscMQJ3nARjD6KmzjNQG/p7uhNYdQ9eJezGIuf0bm95HwK4MqWNDOV91Avx8UGAjo0dtmQ3R3DAOe2XMieQQ9N47B7JTzROD+6s9Gr+MBi3oLYXeXz557wxvRSxdnH2gv50VzvIZSHpsWDvE7boB1c8ISI2g1BNj1X8ugMIdA== 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 MN0PR11MB6158.namprd11.prod.outlook.com (2603:10b6:208:3ca::18) by SJ0PR11MB4880.namprd11.prod.outlook.com (2603:10b6:a03:2af::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.20; Fri, 10 Mar 2023 09:19:04 +0000 Received: from MN0PR11MB6158.namprd11.prod.outlook.com ([fe80::63ee:208e:c3f4:9d22]) by MN0PR11MB6158.namprd11.prod.outlook.com ([fe80::63ee:208e:c3f4:9d22%5]) with mapi id 15.20.6178.019; Fri, 10 Mar 2023 09:19:04 +0000 From: "Wu, Jiaxin" To: "devel@edk2.groups.io" , "kraxel@redhat.com" , "Ni, Ray" CC: "Dong, Eric" , "Zeng, Star" , Laszlo Ersek , "Kumar, Rahul R" Subject: Re: [edk2-devel] [PATCH v9 0/6] Simplify SMM Relocation Process Thread-Topic: [edk2-devel] [PATCH v9 0/6] Simplify SMM Relocation Process Thread-Index: AQHZQc5EcXLoCsJN4UeWtoW8JeFW+q7XCm8AgAACvWCAAhHfAIAUlqOAgAAH/1CAABuXgIAGArGw Date: Fri, 10 Mar 2023 09:19:04 +0000 Message-ID: References: <17443983D6ED8995.20300@groups.io> <20230221084854.ckcwtl4tt3onq623@sirius.home.kraxel.org> <20230306111315.pmglh65rd42llsue@sirius.home.kraxel.org> <20230306132037.seboq5tdsouqgrs4@sirius.home.kraxel.org> In-Reply-To: <20230306132037.seboq5tdsouqgrs4@sirius.home.kraxel.org> Accept-Language: zh-CN, 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: MN0PR11MB6158:EE_|SJ0PR11MB4880:EE_ x-ms-office365-filtering-correlation-id: bc0b3c28-88bb-4601-365f-08db21487e83 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: l03zM8JtNwtHZBBAWwkqfcLpXOYesLxkcx+CDd9wI/HmjxmA4Ooy3hGFhLyWDMEsfZR4fJ/wJafdpKSKaVc9jw8fFBaaoAqjnhMN4JfnJbinHWwSSXi1BnXr8xaQ/zmWlX/phnHoPhi9hElZ1jQ3+k+JB5ekWIGx8VhQszQbMuZyOJSyfgsB8EngHmR3/MZOr0Fr8M0s0ySzDU3EJcCaL1KfV3VuTs/pOKNRS2jbP/TdkmuKMKjiS8/lu6qc5sGZeV67zrt+EabwQAb8dIVAhl+f2Kix+gJYJR/CWJyL3JUuUwQlMyRLKUo38+fHcV1nPNYGMUhFtc91lJC6a7Yx7/GOy0jPavg9uKDbgOda5NeabL9IaY2DFt4f6B1y4FqeEQK/CCXBx+R0XnkFN7ZrFZrJ8I3xH2gEQ3tJP0CvLQ9hugT/Ex3kD/QOIw/4IAOWanMAs/hQrAj5QFn0kNp98oW/+XacKo8prN+uM7hizkGBxoYbRWoEPnV9bxnoSSUKrMtPXQdWNwkwZKkvNbSticLkWW7NmiPmuhJGTrWWFa3V+ldM7dKTyqcF6YOKtFcAuKAfOS3iyGglu6Q5OKM0uqDs7k5vNBiulW3+VEVy90NQf96AuwFS3+XQRE5Zg/WR6Iw3wUdv7ZqPahFOEYbRsQS4fCtzAknJ6v8QbfrRAz2b0HrEsssdvMNCHPQRE2qY5M4J2scfo7BDjwIXVsrVdHr491QmJZHp/1F963OZ+ag= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR11MB6158.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(136003)(366004)(376002)(346002)(396003)(39860400002)(451199018)(66899018)(82960400001)(107886003)(83380400001)(33656002)(478600001)(110136005)(54906003)(6636002)(122000001)(38070700005)(55016003)(19627235002)(316002)(38100700002)(71200400001)(966005)(6506007)(9686003)(7696005)(186003)(53546011)(26005)(41300700001)(5660300002)(2906002)(8676002)(64756008)(66446008)(66556008)(66946007)(76116006)(66476007)(52536014)(8936002)(4326008)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HEOrqflQ4/GmbZh18C4JOjVi73ZzPPfGc+C4qhuITaiDsqyXJXpAYY1TE1fg?= =?us-ascii?Q?rfvCtqvSuXW75VTXAA+1LdOy8DSAC0JjFFJmsAhtS4zeauhHbCn/iGwQLvo0?= =?us-ascii?Q?k7Ah2imsejWGTOaB5trgCgXADfHPUMWe+Y+T0+zsUFL8PQJTjxlt9OqMlAxh?= =?us-ascii?Q?w2UCAgzXAay/tE1CL7LBWWQuNuiYryHmmHQBU245VfuaHufibC1T89X4ocWK?= =?us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8eSIkwhVBXSfuS82zvA2KaPWa4T9sh5A?= =?us-ascii?Q?ONl+DCbW9e3nrjurz7BkxGdG1r55qT+21K0ZwS3/UE1A9EsGMheI0ZJfkTFq?= =?us-ascii?Q?Xpg6mRRFuznyMxNUGPJ9FilOFNkrgRPfXZJaY4Jixy7VfpJ91gQ/MYlU+svX?= =?us-ascii?Q?9E72iwoAungHtSpDLtMLBktHxJOQpBK0V6w8XHIjMfcd046OAdUuEqJ07lcy?= =?us-ascii?Q?QeTxXOcpFRB0McFE51K97xYbofCUU9oOXX+k1ABVEJPDI51rK4soV29JStQb?= =?us-ascii?Q?GSqo7DRyeFAnSU6yb/tgX/2knTKMB7XMPoeaDqohTqJ87UWr/PHUYZM3ZCBM?= =?us-ascii?Q?/kC+PDgTV1EWwwfN0iDVqdDirW/aYV1OmNZQCuFz0/bls8n7Tf6T6W2GoUTE?= =?us-ascii?Q?ZqxOeK/78ceYpRk57LuuL1BzZrLPLDB00/e8WS7eMk3JJf65PRml13bJn7FC?= =?us-ascii?Q?XPguMNOaBLj+7y3L3sE5pKic+/DiKjQ/6Dmoa6V8?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN0PR11MB6158.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bc0b3c28-88bb-4601-365f-08db21487e83 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Mar 2023 09:19:04.6478 (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: DrwrptRf217WIMaEvuShNwZneYzGbjUSmGCGBuInSehT9DvENV/7w9ZN2jqJzMiLvmu03nAeyWRxhYd9SNnISw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB4880 Return-Path: jiaxin.wu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is this regression? I remember I tried the S3 on real silicon with the patc= h change, don't see the issue in normal boot work flow. The only difference= what I did is to trigger S3 in the BIOS shell, but it does covered the Smm= RestoreCpu test.=20 Now, I'm trying to reproduce the issue on ovmf, and build the OVMF boot on = windows qemu, but I saw below error during boot: SecCoreStartupWithStack(0xFFFCC000, 0x820000) ASSERT [SecMain] c:\dev\code\edk2\MdePkg\Library\BasePcdLibNull\PcdLib.c(95= ): ((BOOLEAN)(0=3D=3D1)) Build command is: build -p OvmfPkg\OvmfPkgIa32X64.dsc -a X64 -D SMM_REQUIRE -D DEBUG_ON_SERIA= L_PORT -D SOURCE_DEBUG_ENABLE Run qemu command is: qemu-system-x86_64 -bios C:\Dev\Code\edk2\Build\Ovmf3264\DEBUG_VS2015x86\F= V\OVMF.fd -hda fat:rw:hda-contents -serial file:log001.log -net none Anything need to be care to build OvmfPkgIa32X64? BTW, how can I boot linux= guest in windows qemu? Any bkm for this? Thanks, Jiaxin > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Gerd > Hoffmann > Sent: Monday, March 6, 2023 9:21 PM > To: Ni, Ray > Cc: devel@edk2.groups.io; Wu, Jiaxin ; Dong, Eric > ; Zeng, Star ; Laszlo Ersek > ; Kumar, Rahul R > Subject: Re: [edk2-devel] [PATCH v9 0/6] Simplify SMM Relocation Process >=20 > On Mon, Mar 06, 2023 at 11:43:12AM +0000, Ni, Ray wrote: > > Gerd, > > Thanks for reporting. Can you kindly share the reproduce steps? >=20 > (1) build OvmfPkgIa32X64.dsc with SMM_REQUIRE=3DTRUE > (2) boot linux guest using the firmware build. > (3) suspend: use 'echo mem > /sys/power/state' on linux guest > shell prompt. > (4) wakeup: use 'system_wakeup' on qemu monitor. >=20 > take care, > Gerd >=20 >=20 >=20 >=20 >=20