From nobody Tue May 7 22:07:30 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail(p=none dis=none) header.from=outlook.com Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1525684091687985.307276057398; Mon, 7 May 2018 02:08:11 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 5C06020961075; Mon, 7 May 2018 02:08:10 -0700 (PDT) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-oln040092064065.outbound.protection.outlook.com [40.92.64.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E24BB2096106F for ; Mon, 7 May 2018 02:08:08 -0700 (PDT) Received: from DB5EUR01FT051.eop-EUR01.prod.protection.outlook.com (10.152.4.52) by DB5EUR01HT043.eop-EUR01.prod.protection.outlook.com (10.152.5.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.735.16; Mon, 7 May 2018 09:08:06 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com (10.152.4.55) by DB5EUR01FT051.mail.protection.outlook.com (10.152.5.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.735.16 via Frontend Transport; Mon, 7 May 2018 09:08:06 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7c79:584b:2e12:783e]) by VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7c79:584b:2e12:783e%17]) with mapi id 15.20.0715.024; Mon, 7 May 2018 09:08:06 +0000 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.92.64.65; helo=eur01-db5-obe.outbound.protection.outlook.com; envelope-from=marvin.haeuser@outlook.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=p7LKzeAj371W2LrLJlZP5feGSEMvD41GwNl0EK0oQHg=; b=Fg4LdrAZqZaEHsLEBln6sNFUtrJLhZrpDkFGnXEcpsfafgpChFyYk7ar8G/5gXGI9amv9J0iQyRlLTGOapXHoqCxzzMhARyRVuqwHGEdOpxU6cvfFi2w0WjD4R28sINZtixTxbmZiuVhXiNxXN8+9SCtdvm8QWqQQapco/D3PKxyO+/2vfUFuctdFgBJK4k4tX9fcYZ49+Jxdk0MhqrznvIiozcOufImdMlHfYxPgGSSijst368gWfaf/jSq5pxCGgERbBkOllVzW2pDol4aGGcuSMsMWBaTwrICUDmyL57Hq/FY5JdXW7LyI9I72YehgI45apjk2YUg57D+ABm71A== From: =?iso-8859-1?Q?Marvin_H=E4user?= To: "edk2-devel@lists.01.org" Thread-Topic: [PATCH v2] MdeModulePkg/AcpiPlatformDxe: Unload after execution. Thread-Index: AQHT5eLp/srD+WHt3kqq/3pldPOMEQ== Date: Mon, 7 May 2018 09:08:06 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR0102CA0042.eurprd01.prod.exchangelabs.com (2603:10a6:208::19) To VI1PR0801MB1790.eurprd08.prod.outlook.com (2603:10a6:800:5b::15) x-incomingtopheadermarker: OriginalChecksum:133E81D201AF6149AC6156CC30F0BE6285506D5ECDCC5642A01160E334C36EB6; UpperCasedChecksum:A23C8608A640E3ED62C06DABB5FEA43AFF3A6E3A4DAB21C6FFA6FA2B3991A93F; SizeAsReceived:7510; Count:48 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [fTGb6oZX0Wa8ZfenTlafPcTmSpDUbtFi] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5EUR01HT043; 7:CyxLgNHFDhe63Q8JeFHKx6UW8EA1W6PhuxmIjaiG5RDADPXsUye8BaIT5Wn2lmyfwoWgq0tj0fEtbxdBcBTTZHUrvv4h5HKMXJEM8qR0hCyDqhmlCfRB4OjUIUVSy4ErVCSekwXHFpecIIRnvIPrJnrTJ4UUVJiCIB4xCFRb9ZCDBogypHnlXhMhiVMfcnJ0SZHV/QCQfXIfa8rW5K/CS6ViIE7jIvwIv45QwoiXIZTtbH62As5h/2D5NnIGkQyl x-incomingheadercount: 48 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045); SRVR:DB5EUR01HT043; x-ms-traffictypediagnostic: DB5EUR01HT043: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:DB5EUR01HT043; BCL:0; PCL:0; RULEID:; SRVR:DB5EUR01HT043; x-forefront-prvs: 066517B35B x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:DB5EUR01HT043; H:VI1PR0801MB1790.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:; x-microsoft-antispam-message-info: I0K8r7auD4eUy63o4NXtn8SLxUxWfJJkpQqYRMtha/nMoneiZbHyLjYADSfFwUDFT1icdpqZ4vudaZ81/r1XlXvmmYSlidBSEZ9Co7rrcJnJ5V/s+CQST2RqNZNOIZ2bhPs9kscEaflO3JZQtO+nfm7jp0Kvq90FsC5yWBgYhNUG+IfYibM0PmUkSAi4EjxV MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 3718b5b1-8d5e-46f1-cf2e-08d5b3fa0b58 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-Network-Message-Id: 3718b5b1-8d5e-46f1-cf2e-08d5b3fa0b58 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-originalarrivaltime: 07 May 2018 09:08:06.4015 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT043 Subject: [edk2] [PATCH v2] MdeModulePkg/AcpiPlatformDxe: Unload after execution. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "ruiyu.ni@intel.com" , "eric.dong@intel.com" , "star.zeng@intel.com" Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" AcpiPlatformDxe solely performs one-time tasks and does not expose any services or create any events. Hence it can safely be unloaded after the Entry Point execution by returning an error code. V2: Return EFI_REQUEST_UNLOAD_IMAGE. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser Reviewed-by: Star Zeng and pushed at d9476a7ef1476621= c14a7e632b8b8fc3ca419f61. --- MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatform.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatform.c b/M= deModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatform.c index 44bdd94fa8db..8f335bde0d46 100644 --- a/MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatform.c +++ b/MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatform.c @@ -1,7 +1,7 @@ /** @file Sample ACPI Platform Driver =20 - Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License which accompanies this distribution. The full text of the license may b= e found at @@ -255,6 +255,9 @@ AcpiPlatformEntryPoint ( } } =20 - return EFI_SUCCESS; + // + // The driver does not require to be kept loaded. + // + return EFI_REQUEST_UNLOAD_IMAGE; } =20 --=20 2.17.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel