From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web11.16027.1678444174949232524 for ; Fri, 10 Mar 2023 02:29:35 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=RKawx0LQ; spf=pass (domain: intel.com, ip: 134.134.136.65, 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=1678444174; x=1709980174; h=from:to:cc:subject:date:message-id:references: content-transfer-encoding:mime-version; bh=tk66uJifnWQoR1Cqt45eQop7HiKzqHr7L/Hlc0/0PXA=; b=RKawx0LQwu24JuOVEMHLLoUTgblQdq0O9FJnY2GFTyFilYUVqXwh1UFT xQtndFfgeqVNK03J/aJhMM/vb/yeiLGhXIIuCq5jqGU2ay7zUSlLjIAgz wftpzWfYOg9bnHjPjSVkAalvbpPs8grz7ka2B3w4uPOHHJ+42oQR2305q 32p5riQxp2D+oO+XlFWYpjg+Y8s5ss+13o1Rr+im23aq+NU2noLBNdCIc u4ss2RIWiurhp2h2tqaNF0E0N7u3bw+FlUEFBHUTmjuG2kPXsq7Vvfm5x os4PnsoX6+GZtQEhGy1SKX0xlCk2ffzu9x8B5zDIv0iyfAjH4TB1BMi2F A==; X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="339063416" X-IronPort-AV: E=Sophos;i="5.98,249,1673942400"; d="scan'208";a="339063416" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2023 02:29:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="923614245" X-IronPort-AV: E=Sophos;i="5.98,249,1673942400"; d="scan'208";a="923614245" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga006.fm.intel.com with ESMTP; 10 Mar 2023 02:29:34 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.21; Fri, 10 Mar 2023 02:29:33 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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; Fri, 10 Mar 2023 02:29:33 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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 02:29:33 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.177) by edgegateway.intel.com (192.55.55.71) 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 02:29:32 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HlJCjMe1wwRIqwYSGWORlAsmimAHcisObTxGTBHW5zfpvaUsupdjLt0o4ezoahc/6TVw1mTOhxnG/7bvJ/BllLBA/CFyqIMQnwWQdCWP64UTumit7Nq76kQ0rSLa2gjw1ta5K7XxPRMe37le56ptaiePzoZEzaBJrhygMHXzaLbCx8biVIu8PKoubF4k6nXvke1IyZJ5oys2Xi4+2REXWAHdha++9OWcXxuMNRanFP2wk2JRKU+On+38+QjGRJtK9EpyWoeijOl6yf4vkE5VNrmPap9oLKEK6nUzwBeOGF78jvdcGQlKJF60rzNVSqn8gFavRUKPGHcWSHXPNGatXA== 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=50/odb3gY5EGkSZTPVa/xOrugUmRsJzAHOOsw6MEbtA=; b=WQCcc2/rvHtu6ALEwt15bCIp+0JjU0aaNz9KfP01pqhLAKJZAJ52G8ehVd5VK+qNXlgmjwzxJxqoKrC2oTw5gTP6JOLfN+LZO2CLtQdZB8QAy4Nstx5bmTabjpejv2pECi/XVko+3RdAuzPqmYTi1KEKzVJyYti/r4tjjZULPRmyKgrkglVJg/hgckbQOwZq3zGEOWUU6KbdSxXK+jmtIErn8b+rcsuZExZk04NlvSvhV4CLzcIwsGyOJl5/APhZIMcCgN+hBgGBdUAA6rUSP1KXgpjCg6AlptK1zlPTlZqKppBu3TJ6nXxNlFdyJmXT0TBannJnOe6nRgfzwKASSw== 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 IA1PR11MB6369.namprd11.prod.outlook.com (2603:10b6:208:3af::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.19; Fri, 10 Mar 2023 10:29:30 +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 10:29:30 +0000 From: "Wu, Jiaxin" To: "kraxel@redhat.com" CC: "devel@edk2.groups.io" , "Ni, Ray" , "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/1CAABuXgIAGArGwgAAO9ACAAAEDcIAABnRQ Date: Fri, 10 Mar 2023 10:29:30 +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> <20230310100120.bfl3wz6qpwh2i5nm@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_|IA1PR11MB6369:EE_ x-ms-office365-filtering-correlation-id: ef910c33-7d23-40c5-abd8-08db21525566 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: G/m5PpvOXXVADBLJisiFpdmq8f0jfm/WedYPOY5YdK+QngLuukmQdzmVvzAGKwKxGin+5DUpOMvOwqJK5LKgD60Oad+YDFiz5SBuUA4GhOwjmoGLYQCXfmgYG9MYEQDkWwX1Zt+QCpLzGydSQHC4tQhqcX08i8U5I2ne5taGGxPV03Aagb/PpiWfOvRGMWKckB/nCBMq2eKz3w3+3imzV5QQRETqvojIdbPIEmXk6PK8XYGDnSRBXwTryk4wu0osc56IxgDjXNGOyNDFfXXBKPuY4jAOiY4tcNOTd3MEu84ITblzmr9G2mhROnbgoRsf3Wxdr7pd0NmYtrPpst0y8hI6VBNNNMiKeZ8aQwqonSKM08onyb+8/rDsiK+OYIVaY6KJyUBgvcCPz+oclCq/lR6EBdKl1QVh1YZcwIVGJ4Wig/sjXOG0A10F/OZ9m3U3CgA9edEU79pBEhEr/cm9y0mtMBz891Qxzb+EqjwNF2qSFsPCp0OSKYD4zd9hj2zAuSC2LBaT4m02mlm8jwWtzZulR3PTvy5T77Z0IPNqXSF8lTh7SBCA9lcY6tVdSufR1jOYCsP4Wr2TcbUCNKR1Iy6+z9tF5xCAmfJHEiyUIO5c+pzgPNbPastdVQjahScX0T5/lCOjFlIoRMPajVaD/4QyUHOV85V0ELvqTiWnlfNcQSObr6WtcS8RfAyS085Pvk1RfZfpmaVNNsKpoQrfuswTx17V+MV4prZSG/cje3U= 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)(366004)(376002)(346002)(396003)(136003)(39860400002)(451199018)(83380400001)(2906002)(38100700002)(66946007)(71200400001)(66446008)(64756008)(66476007)(7696005)(8676002)(186003)(9686003)(76116006)(66556008)(41300700001)(122000001)(53546011)(107886003)(82960400001)(5660300002)(6506007)(52536014)(26005)(54906003)(4326008)(6916009)(33656002)(55016003)(86362001)(478600001)(38070700005)(8936002)(316002)(21314003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FsPxw0i4UIhjkRZdJsu2tVOjrv8NOW5JAyg8KwVSHIt67QXSpZxJeCBX/Rl1?= =?us-ascii?Q?LQ0fc5hwqo4IZZ/EU6i8H6STIE7lsyD+hvQHCSLIbX1liAQBSNywvLee4vr5?= =?us-ascii?Q?scu/qENO1rdnWxsBz1buwxtnT5d2JBvCTKctfjABkMj61mPxzMJ5EGITOVv3?= =?us-ascii?Q?30//hIXZsYlK97UqkIPgl6kDOV23ULCV+5pKrZzLS+9z+i/JQsE89pVcDmbZ?= =?us-ascii?Q?HnLXkRTK1dqWUKXYTysunlny07LEAQKoGjdGTQjEmzutXuUy3a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zD610mx3A1LXhBkmKg1fVUdB86sVwmO3Fw88zhc?= =?us-ascii?Q?Z9nOSuI4ObDUukiq0cAAXYyBgKurTfCAGWg26zFO6aVqxKNJjh0H3bN0SyEh?= =?us-ascii?Q?Qons5lU5w8gKgJ5YKoMNHo0uqqqQp4DADAXlddGPdQzGAVNdJK9sK8mZ9kq2?= =?us-ascii?Q?FXYPLRIjd/01NqjDUfq8lbp8EZvowgxY2PwtJuoM7LteEdNvg+HrgLS6NNcV?= =?us-ascii?Q?EJJ5l52RPflp/s5WwllKKP7LiHqCP7i8EqiOi7XGiSo7+7kuckmf8YHM6UCZ?= =?us-ascii?Q?dEE0OPeBo/PGRQr+xXN2BxDrD/MOUhRYNj1qRAfp/LQlQXYGuUu5P8zFPq/W?= =?us-ascii?Q?V5GLGeaFhcRii0m5LKBcd2m7ZhnC5rbP8MLFlCsTXtK9JFHu6lctSjwjOYUu?= =?us-ascii?Q?RsDZl3pSDfdRVjWqQRA4ltboZTnmrzneWIbFhlBx?= 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: ef910c33-7d23-40c5-abd8-08db21525566 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Mar 2023 10:29:30.6726 (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: GNGR8tFRHHnKZO9L9mslsvCiGkouk+Vp5oLubAToZpSspUY/UYCyAYJGSUAgdfEnS9TdKt/skpnuFDccxtSUEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB6369 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 Gerd, Could you help confirm whether this is regression in OVMF before I set up t= he enviroment? Thanks, Jiaxin > -----Original Message----- > From: Wu, Jiaxin > Sent: Friday, March 10, 2023 6:18 PM > To: kraxel@redhat.com > Cc: devel@edk2.groups.io; Ni, Ray ; Dong, Eric > ; Zeng, Star ; Laszlo Ersek > ; Kumar, Rahul R > Subject: RE: [edk2-devel] [PATCH v9 0/6] Simplify SMM Relocation Process >=20 > I will have a try with the command. >=20 > For BIOS shell trigger S3, it just needs a simple application to provide = the ACPI > FACS waking vector, then write the power management control address at > offset 4. >=20 > Another way is that shell MM command can achieve the trigger action, for > example like: mm -io (xxx+4) 0x3400 -w 4, but I suppose the system will c= rash > since there is no waking vector. >=20 > Thanks, > Jiaxin >=20 > > -----Original Message----- > > From: kraxel@redhat.com > > Sent: Friday, March 10, 2023 6:01 PM > > To: Wu, Jiaxin > > Cc: devel@edk2.groups.io; Ni, Ray ; Dong, Eric > > ; Zeng, Star ; Laszlo Ersek > > ; Kumar, Rahul R > > Subject: Re: [edk2-devel] [PATCH v9 0/6] Simplify SMM Relocation Proces= s > > > > On Fri, Mar 10, 2023 at 09:19:04AM +0000, Wu, Jiaxin wrote: > > > Is this regression? I remember I tried the S3 on real silicon with th= e patch > > change, don't see the issue in normal boot work flow. The only differen= ce > what > > I did is to trigger S3 in the BIOS shell, but it does covered the SmmRe= storeCpu > > test. > > > > > > Now, I'm trying to reproduce the issue on ovmf, and build the OVMF bo= ot > 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_SERIAL_PORT -D SOURCE_DEBUG_ENABLE > > > > > > Run qemu command is: > > > qemu-system-x86_64 -bios > > C:\Dev\Code\edk2\Build\Ovmf3264\DEBUG_VS2015x86\FV\OVMF.fd -hda > > fat:rw:hda-contents -serial file:log001.log -net none > > > > Mine is this: > > > > qemu-system-x86_64 -enable-kvm -machine q35,smm=3Don -m 4G -net none \ > > -drive > > > if=3Dpflash,format=3Draw,file=3DBuild/Ovmf3264/DEBUG_GCC5/FV/OVMF_CODE.fd= ,r > > eadonly=3Don \ > > -drive > > > if=3Dpflash,format=3Draw,file=3DBuild/Ovmf3264/DEBUG_GCC5/FV/OVMF_VARS.fd= ,s > > napshot=3Don \ > > -chardev vc,id=3Dfw.log -device isa- > > debugcon,iobase=3D0x402,chardev=3Dfw.log \ > > -cdrom /vmdisk/iso/Fedora-Workstation-Live-x86_64-37-1.7.iso \ > > -device virtio-tablet-pci \ > > -display gtk,show-tabs=3Don > > > > > Anything need to be care to build OvmfPkgIa32X64? > > > > It must be started with the correct flash configuration, see above. > > The SMM-enabled builds also require the q35 machine type. > > > > I have both SMM_REQUIRE and SECURE_BOOT enabled, that probably > doesn't > > make a difference though. I'm using the isa-debugcon instead of the > > serial port to get the debug log, that should not matter either. > > > > > BTW, how can I boot linux guest in windows qemu? > > > > Just grab some live iso. The fedora image used above is available from > > getfedora.org, but any live image should work. > > > > How do you trigger suspend from efi shell? There seems to be no > > builtin command for that. > > > > take care, > > Gerd