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 ED48CD8003E for ; Tue, 5 Dec 2023 01:40:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=z+s8NlcEb2zp5hcR4h7PG4DzPMUTwKjRA6ePF7ro630=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:Subject:Thread-Topic:Thread-Index:Date:Message-ID: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-ID:Content-Transfer-Encoding; s=20140610; t=1701740448; v=1; b=qmrTs6N+fLOu4BzNiD2zPi4J6kupoth9uWlUBGGGb7bUxMFVWpwuvcLiGs48gm8nJ1FJL5eJ dBLlkIvadJaP8sQ053W0vgoeuNzx+DZVpuFP2uMS1W5C2ylGbCRDxgNxRT00rAkE45+RNJxWTBi lgxKJMiiaWVqadM9c4BAkXPE= X-Received: by 127.0.0.2 with SMTP id pyFUYY7687511xb6yhFDlDJ1; Mon, 04 Dec 2023 17:40:48 -0800 X-Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.84065.1701729003114864744 for ; Mon, 04 Dec 2023 14:30:03 -0800 X-Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3B4LtIwt011164 for ; Mon, 4 Dec 2023 22:30:02 GMT X-Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3uqssxa6we-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 04 Dec 2023 22:30:01 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jao40ZLz2/jGU8ACBpSL9y4I6fO9s9rfydcyJsAZs+6vJnR4qGyx94cbNGmXklVgG7ySK2E9l1J7ZK/pFDveLtcGW4as/Lu8BsGpsit6NojN+mhAYD7FS5Itaym9SeGS5taVnXr0DXqOxaBMrbAzkaeucsmqsQv51zjcKNYmr06yrzZnlPfy4JdvYnftpMA2RCF7J+WDWcPzgutEzRACzwGa0f+LQDADrOVg3dbO/srdE+FpPMHG1m8kxBAgiEvlDwzR3BNk7gcBduWBKxXndfylgaiSGdkxfe2A5Wv3TRX3qpzNCWfoMWfH0nVk8w5t+Fbc6tufwJjAJ6zXqgis7A== 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=y6R6IizxdAOlb43rG06MAympptvLihLHa7F+RXfPU+E=; b=UEHYAs2hpQLEDegoyL1OQ9qGkzHrEAvFhd1gI2r1rwWme0UYOIC/9WnzrF1CwFkra9c6e6Zkq7lF+DqoKYrxv1Ncpr61AnLnx18l/0tyTcZeWq3CtJSuExqANXIiUgm6vYnBNoeSHZeciCZOpTU2rrVcNfOMpKdFSYRVZQ2OzYYVyEkDIGO78lHJgFscqJCv1HpkTNBAUAoBRhQ4X5ct05udortcuNjTk0gGfNa56/Hv8qHLNDzNzmKdZ1jHqdxA8FWAN+YWdHBoDPl0BWLsx35z17GyI98Lp12vhmZDCuGYKBnom+IBEhw5HaofRq3n7nwVs/43tE26L0nrF3LLug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none X-Received: from CO1PR11MB4962.namprd11.prod.outlook.com (2603:10b6:303:99::23) by MW5PR11MB5883.namprd11.prod.outlook.com (2603:10b6:303:19f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 22:29:55 +0000 X-Received: from CO1PR11MB4962.namprd11.prod.outlook.com ([fe80::ca5c:fe8e:bd18:7472]) by CO1PR11MB4962.namprd11.prod.outlook.com ([fe80::ca5c:fe8e:bd18:7472%6]) with mapi id 15.20.7046.032; Mon, 4 Dec 2023 22:29:54 +0000 From: "Paul, Bill via groups.io" To: "devel@edk2.groups.io" Subject: [edk2-devel] UEFI reserving pages of memory in low memory Thread-Topic: UEFI reserving pages of memory in low memory Thread-Index: AQHaJwFnlOxolVK+dECbG/IOtR6PGg== Date: Mon, 4 Dec 2023 22:29:54 +0000 Message-ID: <2300372.Guus662Tzl@core> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO1PR11MB4962:EE_|MW5PR11MB5883:EE_ x-ms-office365-filtering-correlation-id: 349913bb-8432-46f7-9c68-08dbf51889e0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: qd1VKHg+33CVrnHYZsQA9IMRxYxZ+yG5fTsJ//rADOO4KSt060/rdPp+xdpUM6KGsO6U9MnVe2Ih/69Gd8WRyDr5G5Jrelu4xF4pIjAIel3y+a2a4Kid4UdGPqwZFtWMhPsY0M6pJfHo9Cu5W/rM4T8GodBi7uggroQ3eacsaNl1hoFOO5Iu5dV0YCLPKom4phC6WXj6ADQq+PxGr20DsWpDa4XkR4Eqoes0OogCjjRq9JcAV1RbyibxG5TobVx1GfcsZt61tLAEEK3ZqNVFU/5KziXqAjRPgNF9Z34M/41f96DOYr8ioYJ2xVj48KEMwvlIaef4PRDcU6w5Zo+F9hPqMpRkFnMu3hCz6bwwNjUBe8qi8DODrIgSGBegZQfPV+EJjXidyqoLSR2YLGfLVX4k+MA9WnS5krRYb2KLXxCuljB8tiJ0HLq+a1seQr5jW1SVz60uHMz2TJRSsjjgH8J9fTOAyMj92Xf9ZUuLKOP6h480VDp9Lgmx636pHl9VNGmvCDaWu7BNPR/ZTTR+FbmIIjoT6Ofai7BwngxhnRoFkGK1jaAAd19LfZfgHERo091FfrNa+1uBe5MZOF6D8uPPmqpvBO1FhNaKj0KurlHufdUCRee7W2RjhO7SG/IfK51NqeGz9dKcOJs1FAyIIw== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?ifxPu+jIEmlmcS17s0ppFH4Z9Fpj3gAkVFb4hsfE+C6EBAJ9ZYzfY0eZrL?= =?iso-8859-1?Q?z0ITCobtrl/5t2VDBUxdTRNrZ7xAy1XmRIhWyyZB2RF5zUozvxg0BZEc5o?= =?iso-8859-1?Q?fWQzQ1dRG8uWf0gUXi1ntSsVUF+WSV3SndjRnV3nljQzBqhRNFRHTZ8DIL?= =?iso-8859-1?Q?3yMmeJgO2P2oETMByYfcPSU7sySaen1OHXYwZJLDsmQfjx1iqy3aN1LM8A?= =?iso-8859-1?Q?96txE2pl0RXQOwWHxWYR+MffM59nXovrVz97O8yScna56jRwFnMEU+Uj8o?= =?iso-8859-1?Q?1ft+uRqiIJx6BxytaQyOXUq7EbuROb/TEE0eRgk0SfC/dw2G5hJ8fPai6g?= =?iso-8859-1?Q?+vUwlgApW9ZzyvMG+lEYAt/elBCGhThjfkGWwYajXwbLIS/LPYfrdMEUn+?= =?iso-8859-1?Q?cZX74uuadj/RvI9UnNWGsoU6WZpu7/CJs7WwRgsQB4UJZWdTjeITt0/sgJ?= =?iso-8859-1?Q?H3eOWMm224iCqPHn2fpKSDVCRCBP2FeMxjH3/LbJrU91FaSLR2Ur81Ai9x?= =?iso-8859-1?Q?7muiHvu2Nf/efcIxKfWMBUnDAEgQHe3NwKSCyv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fNehbCpQlx0lAJNJr29KTISVKFGohuaObVUY?= =?iso-8859-1?Q?IbO8mRkzoRxbTmyiY3hTmx6w3aaVWcDjBo7f8TpVcm4POV2AvGcBh2hrug?= =?iso-8859-1?Q?WS7E0qKebkfZus2PNcMyVmUy1AcGdp4lhCVbP7jCQTgqHR8qfzC5xE9DDp?= =?iso-8859-1?Q?TMMGlodeG/oyR+8fvpsvdQC94sEfT3BiCQED8APSTcOPtDo+omi1vdzQ?= =?iso-8859-1?Q?=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4962.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 349913bb-8432-46f7-9c68-08dbf51889e0 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2023 22:29:54.3913 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hP7g2a8WWeHnTNW6JXPBMTHfiv7c9JbKnLpATaKVud9mPjAVJzoukpWfMKPmH2fKVCekYE2erF67l+zTrnuY7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR11MB5883 X-Proofpoint-GUID: uTTdUPXunEtYrKeiQwTH863jnzG5efy5 X-Proofpoint-ORIG-GUID: uTTdUPXunEtYrKeiQwTH863jnzG5efy5 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,Bill.Paul@windriver.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: PJhR1ddYwRGl3DfQqyBTItEPx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <49599FA9B91BA1449B73EBF263FE7176@namprd11.prod.outlook.com> 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=qmrTs6N+; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Hello: I have a question which might not be applicable to the stock Tianocore=20 codebase, but I'm hoping maybe someone here might recognize what I'm asking= =20 about and could give me some pointers. I have A Board (tm) with Intel Raptor Lake CPU and a UEFI 2.7-based firmwar= e=20 implementation on it. Out of the box, if I go to the UEFI shell and run the= =20 memmap command, I can see there is a gap in the available RAM starting at t= he=20 2MB mark. That is, I see this: Available 0000000000100000-00000000001FFFFF 0000000000000100 0000000000000= 00F Available 0000000000201000-00000000339A6FFF 00000000000337A6 0000000000000= 00F Near the end of the output, I also see this: Reserved 0000000000200000-0000000000200FFF 0000000000000001 0000000000000= 000 The implication is that the UEFI firmware has, for some reason, decided to= =20 reserve the page of memory at 0x200000 for some nefarious purpose. As it happens, this is extremely inconvenient for my purposes. In the past= =20 I've seen where the OVMF UEFI images for Intel will try to reserve a block = at=20 the 8MB mark for stashing things during S3 hibernation mode, and I've been= =20 able to work around that by using the -global ICH9-LPC.disable_s3=3D1 comma= nd=20 line flag with QEMU. But in this case, I have no idea why the firmware is reserving this page. T= here=20 are ACPI_NVS and ACPI_Reclaim ranges too, but they are further up in RAM an= d=20 not a concern for me. The only clue I have is that if I dump the page at 0x200000 from the shell= =20 using the mem command, I see that it contains the string 'TERR' at the star= t,=20 and a few numbers within the first 32 bytes, and the rest is all zeroes. Th= is=20 suggests some sort of anchor string, but I don't know what it means. Can anybody think of what this reserved page is for, and if maybe the firmw= are=20 setup menu might offer me a way to turn off whatever feature is reserving i= t?=20 (For the record, there is an option to disable S3 sleep support and I did t= ry=20 turning that off, but it made no difference.) Thanks in advance. -Bill --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D -Bill Paul (510) 749-2329 | VxWorks Software Architect, wpaul@windriver.com | Master of Unix-Fu - Wind River Syste= ms =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D "I put a dollar in a change machine. Nothing changed." - George Carlin =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D -=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 (#112057): https://edk2.groups.io/g/devel/message/112057 Mute This Topic: https://groups.io/mt/102984294/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-