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.web11.5675.1603072749932945639 for ; Sun, 18 Oct 2020 18:59:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=jr5QPjwC; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: hao.a.wu@intel.com) IronPort-SDR: DXgl3K+YbT1o0dffMRTbqL+IjPP1HWetjBhlgHH9PMGAyvlaNz5cQYBUKuOj5JsVp4RQG+BFbc cdbznGChmSNw== X-IronPort-AV: E=McAfee;i="6000,8403,9778"; a="167068536" X-IronPort-AV: E=Sophos;i="5.77,393,1596524400"; d="scan'208";a="167068536" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2020 18:59:09 -0700 IronPort-SDR: aacnMOPbtqDWn4ysiP5g55JJEORjtfyBaDOcpQviT9nsWQdOOZx7/JnYzQ8WF2NymITFb3owZ/ pm+Th7iXmM/g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,393,1596524400"; d="scan'208";a="315523204" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga003.jf.intel.com with ESMTP; 18 Oct 2020 18:59:09 -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.1713.5; Sun, 18 Oct 2020 18:59:08 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) 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.1713.5; Sun, 18 Oct 2020 18:59:08 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 18 Oct 2020 18:59:08 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (104.47.45.53) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Sun, 18 Oct 2020 18:59:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Azx54J6dg2r/e298QPfE+L+s+7FQYQ1E9vGhrm58a3VXITvi/eI3dyUHcrKuwcLBtgsCRI07q4/hg51rRCg9jq2rbfRQS99M2TGH4Jqw1Mw13BRJ1MBARcN6wGGLj676ybiJ5YjzbEp0nvF+ta34sejc4tsWRlE2v6WK3vm3lrUAPai5zCx8ImfSYmcK2caoAC3FTpHLM/B2OFpEEbTyKKiquiqlxmPDCXLRtccFiZi9LRD+VlcvEFo072WPyMh8Pb+MvhM9kNtYkWe0gRj22WsnV0kvX1tJF970/Lw/thxvHHTcGLnJ39vPT3FyMyehtML/gNIH8r/iwflxsPNHKA== 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=CXd5buTLNbI0Q7gMcmtz8f5u/hQj9c/vTAYsCmPrqJc=; b=QjPq/TgBwK2safKu11Pe+pO9EbSigKUtNMBUdc436V0Si2DJ6BX6P0x6BjZfmpXcetc47iBU8nUiQXgj3DSlMtC6TAckHTUkOQdXE8uHt4QV3EqtFtx8BFSAzib8bAog6ZXc8vlogKI1YJsRB3C+q88kYPlr1bcPeJwPqN8qxoytZyg2/l2FFE543+WHnqyy6k9wGVUUxavo7s+p3bPVMEvFYrsJZe5WvZe3M5/TjQURHxs2G0aHh4TSKopjcTDXJHfcf6Xxv4L3599/3ci0DlYItKSZEhg2x1i/sxgDIBB0rQTXQYVc+/q6ZFcS2CiAIdZDVx1Kuqh0bO41rHnoPw== 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=CXd5buTLNbI0Q7gMcmtz8f5u/hQj9c/vTAYsCmPrqJc=; b=jr5QPjwCgbg4cnmyEclCA3OU0thpzG9AdtQ4c3tGewzo4qMN31ejFZVqN4Lgite13j8Tl2ZNoxjmOUXguhkCGVe6GsUW6rpdkCftTi6mrrePwLGwp7WVASXM0Gl3IPg8dd7rufTkCz8A3NQX8g47xwoW7ByFic7k/EDM9WuwfN0= Received: from BN8PR11MB3666.namprd11.prod.outlook.com (2603:10b6:408:8c::19) by BN7PR11MB2722.namprd11.prod.outlook.com (2603:10b6:406:b8::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.20; Mon, 19 Oct 2020 01:59:04 +0000 Received: from BN8PR11MB3666.namprd11.prod.outlook.com ([fe80::c123:faac:1da3:f807]) by BN8PR11MB3666.namprd11.prod.outlook.com ([fe80::c123:faac:1da3:f807%5]) with mapi id 15.20.3477.028; Mon, 19 Oct 2020 01:59:04 +0000 From: "Wu, Hao A" To: "devel@edk2.groups.io" , "Wu, Hao A" , "Liming Gao (Byosoft address)" CC: "ard.biesheuvel@arm.com" Subject: Re: [PATCH 0/3] MdeModulePkg: use pool allocations for ACPI tables Thread-Topic: [PATCH 0/3] MdeModulePkg: use pool allocations for ACPI tables Thread-Index: AQHWo9QAsAIBt1sR30WLLu+N1pT/vameJhaQgAAIyWA= Date: Mon, 19 Oct 2020 01:59:04 +0000 Message-ID: References: <20201016154923.21260-1-ard.biesheuvel@arm.com> In-Reply-To: Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.218] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dbfb3523-1fa3-4886-ef97-08d873d28eb4 x-ms-traffictypediagnostic: BN7PR11MB2722: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TnPCWRpBq6S6A9pAXz4zfGhc3ceZuqBUMLtn/T0gDJ1zIwHtliUE9C2QTCVeBIr6zl6yDjbyP+xU1gNWSjZopkxWx0drX6CVEZCosS2FNBWMZNrdxeqtEBUcjOeCPMv/19Zy7qiO7JZ4DVDGYzbOf61+hBGnxYRbJuB4n6FVecwILNQfELy9DTKUxma2b4dkSWUe3WeNCOuSthEIbtMNrHYNhXrKEomTLQ88e8+ubbJrFuHtPAJj0outhespwxXWpKcpnUaa0kmpzr19HCPgKGLfTbtHaPavAzaGLL7NsV1n9VUbL0yldtyvMG9OCJhPRoue0VvJneaFrBIyKJGt7cCk2Wt3DLNGpq/YHoGCGwRXlwGpDQkOjRjboekbMyPcRCZ/V7S4053aC50YJvlXUg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR11MB3666.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(346002)(39860400002)(136003)(376002)(366004)(966005)(8936002)(8676002)(6506007)(53546011)(7696005)(83380400001)(71200400001)(110136005)(2940100002)(316002)(64756008)(186003)(66946007)(76116006)(26005)(66446008)(52536014)(5660300002)(33656002)(9686003)(2906002)(66476007)(55016002)(478600001)(66556008)(86362001)(4326008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: i2PY/GgXBilhTyW867YdWUXzAkpGZMHs+fv3ain5IhbMg9dvkVHK3tNlLzt0WFWkUWrsdgQ3elzFOsIzc5AtZ7PcqV5oGP/fiuntgcnuvnmLv9ZeO6MmvuTYXZ3FPuqdsXdHNEAvL8g4fkM1UXfSCKfsIewaLkw18IIkQ+p2RONDSLc1GRqsu84CX7212g1nHqE5colvI1vhyv7uWFxv3ZnXdxVJWBA3FifhkMytLH5MEeNdbaU1kJekT9Up47cke9cG+dpq2WjISA834/D/m5CUXl7aupdbZ2gjcci8lRylPvfxbH5Ixq8psqtkECAe4PQW4D09PWaQwfAhke04CLNwWlS+BA2z8HF2AOzHYmFRhICKnStensBx2TCiO+nb/8DRF69efRZywSiREswvahIDnKWKo+woq4Rw6caE30zLcJMBnQlLDbuPYTsQ7luN2d7JM5sBmmg6cyhx5KVlVR0uuYIR/gObCjaw2n74WbMd0S1jdZE3mXSsKON7OVIa4Xdlqo8o8xWC5htEx3U8ZS5eNkwKvB9AysOCrFERiLBxY2zoOuh2vkYPUsKBJUKf7njhpAuiiC74nQ3cTMe98RXDv7UrjGckqm9f/oFwvewggvBn8wZeDQUZbuFH0iovwk2kmeumfMqexBbDrKeJDA== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR11MB3666.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dbfb3523-1fa3-4886-ef97-08d873d28eb4 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Oct 2020 01:59:04.5445 (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: a06VFKXc2IoQvYFxm5h1IJ6hxoDL+Zk86L8QjeOfeHOYlvniW1LfET9RrQ1FD3jiLJb9yYCfKSPIRfFI/COU5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2722 Return-Path: hao.a.wu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Just realized that the right mail address was used for Liming. Please ignore the previous mail, really sorry for the noise. Best Regards, Hao Wu > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Wu, Hao A > Sent: Monday, October 19, 2020 9:28 AM > To: Liming Gao (Byosoft address) > Cc: devel@edk2.groups.io; ard.biesheuvel@arm.com > Subject: [edk2-devel] FW: [PATCH 0/3] MdeModulePkg: use pool allocations= for > ACPI tables >=20 > Forward to Liming's latest mail address. >=20 > Best Regards, > Hao Wu >=20 > -----Original Message----- > From: Ard Biesheuvel > Sent: Friday, October 16, 2020 11:49 PM > To: devel@edk2.groups.io > Cc: Ard Biesheuvel ; Bi, Dandan > ; Liming Gao ; Wang, Jian > J ; Wu, Hao A ; Sami Mujawar > ; Laszlo Ersek ; Leif Lindholm > > Subject: [PATCH 0/3] MdeModulePkg: use pool allocations for ACPI tables >=20 > Currently, the AcpiTableDxe memory allocator uses page based allocations= , for > which the only reason seems to be that it permits the use of a memory li= mit, > which is necessary for ACPI 1.0 tables that need to reside in the first = 4 GB of > memory. >=20 > That requirement does not exist on AArch64, and since page based allocat= ions > are rounded up to 64 KB multiples, this wastes some memory in a way that= can > easily be avoided. So let's use the existing 'mAcpiTableAllocType' > policy variable, and switch to pool allocations if it is set to 'Allocat= eAnyPages' >=20 > Example output from Linux booting on ArmVirtQemu: >=20 > Before: > ACPI: RSDP 0x0000000078510000 000024 (v02 BOCHS ) > ACPI: XSDT 0x0000000078500000 00004C (v01 BOCHS BXPCFACP 00000001 > 01000013) > ACPI: FACP 0x00000000784C0000 00010C (v05 BOCHS BXPCFACP 00000001 > BXPC 00000001) > ACPI: DSDT 0x00000000784D0000 0014BB (v02 BOCHS BXPCDSDT 00000001 > BXPC 00000001) > ACPI: APIC 0x00000000784B0000 0000A8 (v03 BOCHS BXPCAPIC 00000001 > BXPC 00000001) > ACPI: GTDT 0x00000000784A0000 000060 (v02 BOCHS BXPCGTDT 00000001 > BXPC 00000001) > ACPI: MCFG 0x0000000078490000 00003C (v01 BOCHS BXPCMCFG 00000001 > BXPC 00000001) > ACPI: SPCR 0x0000000078480000 000050 (v02 BOCHS BXPCSPCR 00000001 > BXPC 00000001) >=20 > After: > ACPI: RSDP 0x000000007C030018 000024 (v02 BOCHS ) > ACPI: XSDT 0x000000007C03FE98 00004C (v01 BOCHS BXPCFACP 00000001 > 01000013) > ACPI: FACP 0x000000007C03FA98 00010C (v05 BOCHS BXPCFACP 00000001 > BXPC 00000001) > ACPI: DSDT 0x000000007C037518 0014BB (v02 BOCHS BXPCDSDT 00000001 > BXPC 00000001) > ACPI: APIC 0x000000007C03FC18 0000A8 (v03 BOCHS BXPCAPIC 00000001 > BXPC 00000001) > ACPI: GTDT 0x000000007C03FD18 000060 (v02 BOCHS BXPCGTDT 00000001 > BXPC 00000001) > ACPI: MCFG 0x000000007C03FE18 00003C (v01 BOCHS BXPCMCFG 00000001 > BXPC 00000001) > ACPI: SPCR 0x000000007C03FF98 000050 (v02 BOCHS BXPCSPCR 00000001 > BXPC 00000001) >=20 > Cc: Dandan Bi > Cc: Liming Gao > Cc: Jian J Wang > Cc: Hao A Wu > Cc: Sami Mujawar > Cc: Laszlo Ersek > Cc: Leif Lindholm >=20 > Ard Biesheuvel (3): > MdeModulePkg/AcpiTableDxe: use pool allocations when possible > MdeModulePkg/AcpiTableDxe: use pool allocation for RSDT/XSDT if > possible > MdeModulePkg/AcpiTableDxe: use pool allocation for RSDP if possible >=20 > .../Universal/Acpi/AcpiTableDxe/AcpiTable.h | 4 +- > .../Universal/Acpi/AcpiTableDxe/AcpiSdt.c | 4 +- > .../Acpi/AcpiTableDxe/AcpiTableProtocol.c | 216 +++++++++++------- > 3 files changed, 143 insertions(+), 81 deletions(-) >=20 > -- > 2.17.1 >=20 >=20 >=20 >=20 >=20