From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web12.1612.1624484563131294751 for ; Wed, 23 Jun 2021 14:42:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=KVPv867o; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: eric.nelson@intel.com) IronPort-SDR: Q7GmhwUwo3Ugzozkk1aiIS/ecalZYxj2QTF0MFoLiplzTR6+Nl2cLs8nki2PSkNZDVJ/lFzy+Q KtWUixoGEyBg== X-IronPort-AV: E=McAfee;i="6200,9189,10024"; a="207289347" X-IronPort-AV: E=Sophos;i="5.83,295,1616482800"; d="scan'208,217";a="207289347" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2021 14:42:41 -0700 IronPort-SDR: 8bVlu5rhEEnc35nLIuYvRmg3yHMXnJAbmxVZcUglJHPBAt3VaWijeDMPlhnQRfLUZI51BolPJb ZWoNHyVV1nlA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,295,1616482800"; d="scan'208,217";a="445097440" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga007.jf.intel.com with ESMTP; 23 Jun 2021 14:42:41 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) 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.2242.4; Wed, 23 Jun 2021 14:42:41 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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.2242.4 via Frontend Transport; Wed, 23 Jun 2021 14:42:41 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175) 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.2242.4; Wed, 23 Jun 2021 14:42:39 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TlWgblCZLo4KaPKJIGdjlf1a9PtHwRBpkKmQ0MM0vr/Ju+uvP0oF0reRDRahQ+9oHE/pqOA22fzr6a/Bn+tSh4ErCLBNY/FQHuh0GRpSH3XaL1awOE404BVQla1k5kKLHN2LNy0tHVC0Jem+4urmt2ZL4utl9WbpQaGKNVbK7PxvSVnEUTMXSfgy1YQPm8mEuutZE8rVze/G36/hGFhOlgTNJ740rSlfPmdAvgFpnG/5X0C13xDG+xF2L/TeJz39cDDh57S2YKNczvb9XoAyE9nhJMNGMbc2E8M5oXQbTFg1I0JgngAtVcX8otYnTaYOXO7FWBSvHIrek8BwCqLhVg== 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-SenderADCheck; bh=uy9gE07eNQxOsEuONcggFh+TVb9oXqOBD+OHfL1FMcw=; b=axjCK/rjSfnVemA0IbfB+PnfhAOw/CQ7RRJs4QDH7lwI/0VH3JapYy0aJlCfA/rZg5kmO92BOkgI0ObIcZhlWdXlbArakJ6jt9z1LQ2KwWbFj1J30pEh1GVVvyVr8Ht/Xj7SXnVb07blZM0CseUhWR4tgrKB65mWTTd0Srs1dkF8cLD2nw7IhT+nPskQ7LctzGeAxHDVbqXwnum0qJHxtBEhy2Z6xYBhruR5dcNL/g4jHDLxjy5CCVEnuZrSX/9bNu/FgzN/Xrt2r2o0Sidwd0+FTDIruSVZ/0zoHEIEhgqmkkSjfhfMlrGqS65BYWIQDTWw2s1t+rCTgvT6/CYf6w== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uy9gE07eNQxOsEuONcggFh+TVb9oXqOBD+OHfL1FMcw=; b=KVPv867oXagtAvnjEsqVFWDpN0DtybiP6rRwbh9cgvWBjY0z6vJt9r0XSGKHVlqF8jY0yf5tD6LRbVNnj4mEuVjA5vSr/2vU7OczlIHUgmnlcXHyGJleTRwOoamx4NT9ncfWo5maWY8VD6ovCgQcEagNSuIaT+eopCr9XuRmNP4= Received: from BY5PR11MB3943.namprd11.prod.outlook.com (2603:10b6:a03:185::17) by BYAPR11MB2663.namprd11.prod.outlook.com (2603:10b6:a02:ca::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.23; Wed, 23 Jun 2021 21:42:37 +0000 Received: from BY5PR11MB3943.namprd11.prod.outlook.com ([fe80::9035:26ab:2b66:d679]) by BY5PR11MB3943.namprd11.prod.outlook.com ([fe80::9035:26ab:2b66:d679%5]) with mapi id 15.20.4242.023; Wed, 23 Jun 2021 21:42:37 +0000 From: "Nelson, Eric" To: Samer El-Haj-Mahmoud , G Edhaya Chandran , "gaojie@byosoft.com.cn" , "devel@edk2.groups.io" , "Kinney, Michael D" Subject: Re: Proposing a new area of the edk2-test repository Thread-Topic: Proposing a new area of the edk2-test repository Thread-Index: AddhbD/jx+sU+OEET2KEtVurFZp1QgAMtQmQAB1RQDABk5dlwAADbvTAAAGI+IA= Date: Wed, 23 Jun 2021 21:42:37 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [73.181.153.172] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 11f4ad83-c08f-42a6-8cea-08d9368fd1dc x-ms-traffictypediagnostic: BYAPR11MB2663: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nvdkpM3k8DObPhCC0fjBsV/IhjSBYPdhuLEIRr59qez8QOQdnFLMz7cqwCYTpOPry/5nnzFr0lhIpdX9O3o6LOkfZlUvDeL4pOiAT0XNgQlStr2Oji4dpQdDakN9B8T/z3LCRqHkpcBgvmG3wE4xU0K5G/jNP661CMzmZ1CG7gYp1gLAt3VWjEOFgITpm0ktPai+BILCpj7x09kt8eu3FC35z9U/qh70FuHY9L//SsimaX4xBjXZ54ty8l5N7I7bzyCL6F8bb6lPgoM6G0PaDTv3EntrvGS73ogSN7VHgTtQvh0op9a+rztdxo3s/5ByiyJrapq74zHcrkEnfFBDCrwfn4pDsYjbYY2X3gzvhWlbmN8ItQ02J5+xOAhhGllZExmDquZetY2N9pkyulHhFScfZVbcRjo224h7bfOFLRisqSrV517ewVehSfiMuR8WL+B7iSjEiOBO/bYRdBc6UMFHonLrE0cxhzlg0vmBL+xvPxyHI+xzI1H6gLAy1qQSbxZl01nn8xz89LwxLRGgC/YZqx+f2ngerJPqLqo2hbS8TuJVp/qrT3gzkabGGDi5w7GBxwIO2CgdvOhI2s7H6kMzTshBjOMPTqZ1WFXFnBFCmtKTxulivsUGjT/VaQ2ArUUPBRLM80TfD1XiHSweikJVU0EXWBl729mRc/gZDr+iM4tmqAaZA68qTIqVHE6giOI70SrcIfRDRV75gZUDqZOzvu3UP7OSQ4SgXSjZgEiBQCRqojB0T0I15xPa30n6aazAt22lZrAiMa22i0El9Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR11MB3943.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(396003)(376002)(39860400002)(136003)(346002)(71200400001)(83380400001)(2906002)(6636002)(166002)(122000001)(478600001)(33656002)(966005)(186003)(316002)(26005)(19627235002)(52536014)(7696005)(8676002)(66446008)(110136005)(66556008)(55016002)(64756008)(38100700002)(66476007)(66946007)(53546011)(9686003)(8936002)(86362001)(6506007)(76116006)(5660300002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?lFKSyfPYP6Yffc3VxtvZtRqC/EJSrLNjB/zPIlMXpdqqL1nqNTxggPZQ03UJ?= =?us-ascii?Q?Nb4Me2RFkIwAPUDFmZDE1T0X7B2rejyymRRu2IIfO6ZwtetXzCMOu1fRybd2?= =?us-ascii?Q?bfSOYDjjOmyPz4B4uD+Y9YikVQnbGUYHTBA1SZLXMpxgHH5zz6TxdPRJyD25?= =?us-ascii?Q?wvE1wb4h7BmGeVYtP6QnNBwbZeCAdm/AWcVxX9B+t//5SVkwlcGNskHeJhY8?= =?us-ascii?Q?Uf/0PVLiR1CAaHw6Mp18N5ymVQRpbFOKTCdoLQz055twlkHo7gAwFFC56kPe?= =?us-ascii?Q?xSNtXLJGrMN9rF1Zfm3SvIU8lZrNIJKAlVda5IFgLELjto7CuiW1IqV/5Ysf?= =?us-ascii?Q?V08TA8/Hz2hk076uPE5KVvGeqVLg7AoCjCLQaZFNWFDw/ID8RccfHUczwtIW?= =?us-ascii?Q?LvHjP1LO7Bfs9UWl+TsceS3h1B0XkNULiUkW4LtPQFyKaLnJphIa6dKL01bs?= =?us-ascii?Q?TOYVhlV76aNOlYzxxfyJsTfZvT2hG0a4kp8bmCP9sV2OUiXBEmUNSx8Iat4t?= =?us-ascii?Q?Phg9J2izhn/ZzS89XOvWvd9bEUY5JglCxad6KxaaDwuCrX7pz/8OIkm/HIYW?= =?us-ascii?Q?RF7ezZBhc1y932O1FNAUIEr2BLNQszHGgnKQuSFg/HbeQGv8rqrqfcXcMBW0?= =?us-ascii?Q?m10ECL+mtVWrNoBpF77hn13oFZzQHWA8qSEeShVuHsZuxegoDeerD8eWFBxT?= =?us-ascii?Q?e0jBE6CKzY6BjAXV6QRtQh7YXIrtSkXomuQaYIuRXbXV4zzKlAFtyvH4UDVC?= =?us-ascii?Q?lq/g55QQHwnHwEypVFEcLV9aQngKELJkN7ihFeQHDNa79n/zB6xyWOfd1zCH?= =?us-ascii?Q?y+IWbmG1+xjylG9pNiKWqI9Aw+ygpDAqFZJLT4kYzmswzHDeW47Jg8i1stJZ?= =?us-ascii?Q?0EgnbJAJo6udYdVwohIeZioceJbzli+BKDS+K+6UXIA09gA7+tGkjwyxLCAR?= =?us-ascii?Q?U2G9ZyGSQAiAUNeUhg4w+YzSEQPjXEA6NrSc7tps7CBAyrkR1WI7P2uKn2JY?= =?us-ascii?Q?fy/NJM914scClZED59FaBvyEkQDW7GgqCS+uLr9Otl2QjSOV45SYJUVUXKhe?= =?us-ascii?Q?ARwGtgG8lPZCXIRJeTzno46TemWthl64L+0GAwUv1Ji2hyUuN+7VG1FBvBgr?= =?us-ascii?Q?xiN7tfSewZVQLAb/proqkHRCVrHIZsA86Hmz6u0jskyU5p+A0ljD/MfvUvJV?= =?us-ascii?Q?08j3ERegiwnWQibQbIv8wIHTwGPZRJBv9dWRpQfXRzRE1c4yQoipS8jgBsr9?= =?us-ascii?Q?PotpPm/0fTybFNuWutGJFjlnYw9SIibbafKlSLdN9qeaaJIh0JIJxzL82eVq?= =?us-ascii?Q?LkKl8pobh/2krXd+OlQI0yTJ?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR11MB3943.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11f4ad83-c08f-42a6-8cea-08d9368fd1dc X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2021 21:42:37.7991 (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: owIBB14l4nGs1phJCKDDzdpWpxDV7Wdy05Nq5bJEcxFcEJHVWloJxbPJ8UvSAQ2nP/7yXkn2ckOkFyimShfB8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2663 Return-Path: eric.nelson@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_BY5PR11MB394310719CD8704A73A69B11E9089BY5PR11MB3943namp_" --_000_BY5PR11MB394310719CD8704A73A69B11E9089BY5PR11MB3943namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have created a few other internal apps that build under WinTestPkg, altho= ugh ResumeOK.efi is the only one I have received permissions to release sou= rces for at this time. And yes, they are primarily intended for validating Windows requirements. I had some issues with my apps, needing to use different libraries than Mde= ModulePkg, and found it easier to create my own package, and use the libs I= want. __e From: Samer El-Haj-Mahmoud Sent: Wednesday, June 23, 2021 1:56 PM To: Nelson, Eric ; G Edhaya Chandran ; gaojie@byosoft.com.cn; devel@edk2.groups.io Cc: Samer El-Haj-Mahmoud Subject: RE: Proposing a new area of the edk2-test repository +edk2 list I am not against adding additional test tools to edk2-test. Just feel like = there is a need to organize and have a strategy, rather than just use edk2-= test as a dumping group of miscellaneous tools. There is already a place for apps under https://github.com/tianocore/edk2/t= ree/master/MdeModulePkg/Application We also have a number of EDK2 misc applications that use edk2-libc in https= ://github.com/tianocore/edk2-libc/tree/master/AppPkg/Applications A couple of questions: * Do you expect more apps from WinTestPkg to be contributed to TianoCor= e? And are they all around testing specific Windows requirements? If so, th= en having an edk2-test/WinTestPkg makes sense to me, as you will have a col= lection of useful testing app targeting specific area. * But what about other OSes? * If this is a one-off test app and other WinTestPkg apps are not going= to be contributed, then does it make sense to put this under MdeModulePkg/= Application ? From: Nelson, Eric > Sent: Wednesday, June 23, 2021 3:10 PM To: G Edhaya Chandran >; gaojie@byosoft.com.cn Cc: Samer El-Haj-Mahmoud > Subject: RE: Proposing a new area of the edk2-test repository Hi Edhay, Do you have any more questions? What do you think of creating another directory in edk2-test, for other tes= t apps, in addition to uefi-sct, such as ResumeOK.efi? Thanks, __e From: Nelson, Eric Sent: Tuesday, June 15, 2021 12:00 PM To: G Edhaya Chandran >; gaojie@byosoft.com.cn Cc: Samer El-Haj-Mahmoud > Subject: RE: Proposing a new area of the edk2-test repository Hi Edhay, ResumeOK.efi is a tool I wrote from the HelloWorld example, that validates = Windows resume from S4 requirements, specifically that the memory-map run-t= ime memory regions don't change, and secondly that PCI devices don't disapp= ear from the system, both conditions would cause Windows to fail to resume = from S4. You install the tool to the root of the ESP, and set it as the default/top = entry in the boot manager, and launch it. (Disable Secure Boot.) It runs warm, cold, and 60s ACPI RTC wake cycles, infinitely looking for er= rors. ResumeOK.efi writes a file to the root of the ESP, ResumeOK.map, which cont= ains the ACPI Facs->HardwareSignature, a list of the PCI devices in the sys= tem, and a copy of its memory map, from the first time it runs. During each test pass, it runs a barrage of tests: 1. Free memory test - does the available memory match the memory map sav= ed in ResumeOK.map 2. HW signature check - does the system still have the same HW signature= as saved in the ResumeOK.map 3. Allocation test - all the available memory is allocated, and then the= memory map is checked if the run-time regions match ResumeOK.map. If any of the tests fail, then the new/missing PCI devices are listed (HW s= ignature fail case), or the memory descriptor that changed, it's location, = and current and previous type and size. I have received permission from Intel to *try* to release the source under = Edk2-test. I've included a 64-bit binary, if you want to give it a test drive. Make sure Secure Boot is off. Also, it is required to manually delete any ResumeOK.map on the ESP, before= beginning a new test pass. The tool also supports a host of EFI Shell commands: Resumeok.efi MEMMAP - displays Windows coalesced view of the current memory= map ResumeOK.efi ROKMAP - displays Windows coalesced view of the memory saved i= n ResumeOK.map ResumeOK.efi RTDATA - displays an analysis of RT_Data pool usage ResumeOK.efi NORESET - run one test pass, but suppress automatic SX cycling These are the files that build it: Edk2\WinTestPkg\Application Edk2\WinTestPkg\WinTestPkg.dec Edk2\WinTestPkg\WinTestPkg.dsc Edk2\WinTestPkg\Application\ResumeOK Edk2\WinTestPkg\Application\ResumeOK\AcpiTbl.c Edk2\WinTestPkg\Application\ResumeOK\AcpiTbl.h Edk2\WinTestPkg\Application\ResumeOK\AppSupport.c Edk2\WinTestPkg\Application\ResumeOK\BitMap.c Edk2\WinTestPkg\Application\ResumeOK\BitMap.h Edk2\WinTestPkg\Application\ResumeOK\EfiFileLib.c Edk2\WinTestPkg\Application\ResumeOK\EfiFileLib.h Edk2\WinTestPkg\Application\ResumeOK\pci.c Edk2\WinTestPkg\Application\ResumeOK\Pci.h Edk2\WinTestPkg\Application\ResumeOK\ResumeOK.c Edk2\WinTestPkg\Application\ResumeOK\ResumeOK.h Edk2\WinTestPkg\Application\ResumeOK\ResumeOK.inf Edk2\WinTestPkg\Application\ResumeOK\ResumeOK.uni Edk2\WinTestPkg\Application\ResumeOK\ResumeOKExtra.uni Edk2\WinTestPkg\Application\ResumeOK\RtData.c Edk2\WinTestPkg\Application\ResumeOK\TimeBaseLib.c Thanks, __e From: G Edhaya Chandran > Sent: Monday, June 14, 2021 9:36 PM To: Nelson, Eric >; gao= jie@byosoft.com.cn Cc: Samer El-Haj-Mahmoud > Subject: RE: Proposing a new area of the edk2-test repository Hi Eric, Thanks for reaching out to us. Can we get more details of the tool? Is this tool already open sourced or could you send us the basic documentat= ion pertaining to it. With Warm Regards, Edhay From: Nelson, Eric > Sent: 15 June 2021 04:23 To: gaojie@byosoft.com.cn; G Edhaya Chandran = > Subject: Proposing a new area of the edk2-test repository Hello SCT maintainers, I'm looking to release source to a UEFI validation tool that has been a big= hit with platform BIOS validation teams, so it can help other PC vendors. My coworker Michael Kinney suggested I reach out to you directly about the = idea of creating a new top level directory in the edk2-test repro for other= test apps, and I could be maintainer. What do you think of creating another directory in edk2-test, for other tes= t apps, in addition to uefi-sct? Thanks! __e IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you. IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you. --_000_BY5PR11MB394310719CD8704A73A69B11E9089BY5PR11MB3943namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

I have created a few other internal apps that build = under WinTestPkg, although ResumeOK.efi is the only one I have received per= missions to release sources for at this time.

And yes, they are primarily intended for validating = Windows requirements.

I had some issues with my apps, needing to use diffe= rent libraries than MdeModulePkg, and found it easier to create my own pack= age, and use the libs I want.

 

__e

 

 

From: Samer El-Haj-Mahmoud <Samer.El-Haj-M= ahmoud@arm.com>
Sent: Wednesday, June 23, 2021 1:56 PM
To: Nelson, Eric <eric.nelson@intel.com>; G Edhaya Chandran &l= t;Edhaya.Chandran@arm.com>; gaojie@byosoft.com.cn; devel@edk2.groups.io<= br> Cc: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
Subject: RE: Proposing a new area of the edk2-test repository

 

+edk2 list

 

I am not against adding additional test tools to edk= 2-test. Just feel like there is a need to organize and have a strategy, rat= her than just use edk2-test as a dumping group of miscellaneous tools.=

 

There is already a place for apps under https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Application<= o:p>

 

We also have a number of EDK2 misc applications that= use edk2-libc in https://github.com/tianocore/edk2-libc/tree/master/AppPkg/Applications<= o:p>

 

A couple of questions:

  • Do you expect more apps from WinTestPkg to be contributed to TianoCor= e? And are they all around testing specific Windows requirements? If so, th= en having an edk2-test/WinTestPkg makes sense to me, as you will have a collection of useful testing app targeting= specific area.
    • But what about other OSes?
  • If this is a one-off test app and other WinTestPkg apps are not going= to be contributed, then does it make sense to put this under MdeModulePkg/= Application ?

 

 

 

From: Nelson, Eric <eric.nelson@intel.com>
Sent: Wednesday, June 23, 2021 3:10 PM
To: G Edhaya Chandran <Edhaya.Chandran@arm.com>; gaojie@byosoft.com.cn
Cc: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
Subject: RE: Proposing a new area of the edk2-test repository

 

 

Hi Edhay,

 

Do you have any more questions?

What do you think of creating another directory in e= dk2-test, for other test apps, in addition to uefi-sct, such as ResumeOK.ef= i?

 

Thanks,

__e

 

 

From: Nelson, Eric
Sent: Tuesday, June 15, 2021 12:00 PM
To: G Edhaya Chandran <Edhaya.Chandran@arm.com>; gaojie@byosoft.com.cn
Cc: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
Subject: RE: Proposing a new area of the edk2-test repository

 

 

Hi Edhay,

 

ResumeOK.efi is a tool I wrote from the HelloWorld e= xample, that validates Windows resume from S4 requirements, specifically th= at the memory-map run-time memory regions don’t change, and secondly = that PCI devices don’t disappear from the system, both conditions would cause Windows to fail to resume from S4.

 

You install the tool to the root of the ESP, and set= it as the default/top entry in the boot manager, and launch it.  (Dis= able Secure Boot.)

 

It runs warm, cold, and 60s ACPI RTC wake cycles, in= finitely looking for errors.

 

ResumeOK.efi writes a file to the root of the ESP, R= esumeOK.map, which contains the ACPI Facs->HardwareSignature, a list of = the PCI devices in the system, and a copy of its memory map, from the first= time it runs.

 

During each test pass, it runs a barrage of tests:

 

  1. Free memory test – does the available memory match the memory m= ap saved in ResumeOK.map
  2. HW signature check – do= es the system still have the same HW signature as saved in the ResumeOK.map=
  3. Allocation test – all the available memory is a= llocated, and then the memory map is checked if the run-time regions match = ResumeOK.map.

 

If any of the tests fail, then the new/missing PCI d= evices are listed (HW signature fail case), or the memory descriptor that c= hanged, it’s location, and current and previous type and size.

 

I have received permission from Intel to *try= * to release the source under Edk2-test.

 

I’ve included a 64-bit binary, if you want to = give it a test drive.

 

Make sure Secure Boot is off.

Also, it is required to manually delete any ResumeOK= .map on the ESP, before beginning a new test pass.

 

The tool also supports a host of EFI Shell commands:=

 

Resumeok.efi MEMMAP ̵= 1; displays Windows coalesced view of the current memory map

ResumeOK.efi ROKMAP ̵= 1; displays Windows coalesced view of the memory saved in ResumeOK.map=

ResumeOK.efi RTDATA ̵= 1; displays an analysis of RT_Data pool usage

ResumeOK.efi NORESET R= 11; run one test pass, but suppress automatic SX cycling

 

These are the files that build it:

 

Edk2\WinTestPkg\Application

Edk2\WinTestPkg\WinTestPkg.dec

Edk2\WinTestPkg\WinTestPkg.dsc

Edk2\WinTestPkg\Application\ResumeOK

Edk2\WinTestPkg\Application\ResumeOK\AcpiTbl.c<= /o:p>

Edk2\WinTestPkg\Application\ResumeOK\AcpiTbl.h<= /o:p>

Edk2\WinTestPkg\Application\ResumeOK\AppSupport.c

Edk2\WinTestPkg\Application\ResumeOK\BitMap.c

Edk2\WinTestPkg\Application\ResumeOK\BitMap.h

Edk2\WinTestPkg\Application\ResumeOK\EfiFileLib.c

Edk2\WinTestPkg\Application\ResumeOK\EfiFileLib.h

Edk2\WinTestPkg\Application\ResumeOK\pci.c

Edk2\WinTestPkg\Application\ResumeOK\Pci.h

Edk2\WinTestPkg\Application\ResumeOK\ResumeOK.c=

Edk2\WinTestPkg\Application\ResumeOK\ResumeOK.h=

Edk2\WinTestPkg\Application\ResumeOK\ResumeOK.inf

Edk2\WinTestPkg\Application\ResumeOK\ResumeOK.uni

Edk2\WinTestPkg\Application\ResumeOK\ResumeOKExtra.u= ni

Edk2\WinTestPkg\Application\ResumeOK\RtData.c

Edk2\WinTestPkg\Application\ResumeOK\TimeBaseLib.c

 

Thanks,

__e

 

 

From: G Edhaya Chandran <Edhaya.Chandran@arm.com>
Sent: Monday, June 14, 2021 9:36 PM
To: Nelson, Eric <eric.n= elson@intel.com>; gaojie@byosoft.com.cn
Cc: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
Subject: RE: Proposing a new area of the edk2-test repository

 

Hi Eric,

 

    Thanks for reaching out to us.

Can we get more details of the tool?

 

Is this tool already open sourced or could you send = us the basic documentation pertaining to it.

 

With Warm Regards,
Edhay

 

 

From: Nelson, Eric <eric.nelson@intel.com>
Sent: 15 June 2021 04:23
To: gaojie@byosoft.com.cn; G Edhaya Chandran <Edhaya= .Chandran@arm.com>
Subject: Proposing a new area of the edk2-test repository=

 

 

Hello SCT maintainers,

 

I’m looking to release source to a UEFI valida= tion tool that has been a big hit with platform BIOS validation teams, so i= t can help other PC vendors.

 

My coworker Michael Kinney suggested I reach out to = you directly about the idea of creating a new top level directory in the ed= k2-test repro for other test apps, and I could be maintainer.

 

What do you think of creating another directory in e= dk2-test, for other test apps, in addition to uefi-sct?

 

Thanks!

__e

 

IMPORTANT NOTICE: The contents of this email and any= attachments are confidential and may also be privileged. If you are not th= e intended recipient, please notify the sender immediately and do not discl= ose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Th= ank you.

IMPORTANT NOTICE: The contents of this email and any= attachments are confidential and may also be privileged. If you are not th= e intended recipient, please notify the sender immediately and do not discl= ose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Th= ank you.

--_000_BY5PR11MB394310719CD8704A73A69B11E9089BY5PR11MB3943namp_--