From patchwork Fri Nov 22 00:41:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 21673 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2A71C23FF8 for ; Fri, 22 Nov 2013 00:42:16 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id oy12sf1160745veb.5 for ; Thu, 21 Nov 2013 16:42:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=tg9187BOdfG8WKFGSsWndJx/NYCZWpaj2f5e8Rbw3cY=; b=RzdxkfHmacggYCtNpdz9DAuPcMkSOQm66eYMdTKqTEtG4anKac6gdUBxC+XqHF2XU5 EBY6/7kAO/fP99vRi5wh+4TV1JzP4XhbkAcXoFEjHANigrRr+cOXZqgyYHE+5NEO+uRM 8jzDJBVodmohGPq4O+z43tiQH4xkLFZuN7svfl8Y5v0jlS0yRSoeiW/Ndj8nmVAE4xCg BLlPcJeA32y9hYpVYHEK6Vpo+xsZ7ZGhOBorHnyXDRCO4+I5mtA0bLh7mchnFPCIjmLk 975QNjZyix938C6dc4wpuH6yUHxqZ6JWDt1KU1IXPcuc3uWIKkpXLFBInvCOT9vp3sgo Zd/Q== X-Gm-Message-State: ALoCoQnWmApNAhqBkG3yq1Z4meXICRGG8C2WiK7PReMUvwdr8c2FwgrIH7kZyFEHd8GYSGqgGTop X-Received: by 10.58.181.69 with SMTP id du5mr3265201vec.7.1385080935983; Thu, 21 Nov 2013 16:42:15 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.51.40 with SMTP id h8ls779481qeo.28.gmail; Thu, 21 Nov 2013 16:42:15 -0800 (PST) X-Received: by 10.52.165.131 with SMTP id yy3mr7068676vdb.25.1385080935896; Thu, 21 Nov 2013 16:42:15 -0800 (PST) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id cp3si11637009vcb.58.2013.11.21.16.42.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 16:42:15 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hv10so365634vcb.36 for ; Thu, 21 Nov 2013 16:42:15 -0800 (PST) X-Received: by 10.52.97.35 with SMTP id dx3mr7332944vdb.18.1385080935810; Thu, 21 Nov 2013 16:42:15 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp2869vcz; Thu, 21 Nov 2013 16:42:15 -0800 (PST) X-Received: by 10.66.136.101 with SMTP id pz5mr9415036pab.118.1385080934427; Thu, 21 Nov 2013 16:42:14 -0800 (PST) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by mx.google.com with ESMTPS id vs7si18233503pbc.265.2013.11.21.16.42.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 16:42:14 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.53 is neither permitted nor denied by best guess record for domain of al.stone@linaro.org) client-ip=209.85.160.53; Received: by mail-pb0-f53.google.com with SMTP id ma3so537991pbc.12 for ; Thu, 21 Nov 2013 16:42:14 -0800 (PST) X-Received: by 10.66.248.168 with SMTP id yn8mr9395115pac.11.1385080933933; Thu, 21 Nov 2013 16:42:13 -0800 (PST) Received: from fidelio.ahs3.com (74-93-232-46-Colorado.hfc.comcastbusiness.net. [74.93.232.46]) by mx.google.com with ESMTPSA id pl1sm48881461pbb.20.2013.11.21.16.42.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Nov 2013 16:42:13 -0800 (PST) From: al.stone@linaro.org To: linux-acpi@vger.kernel.org Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, linaro-kernel@lists.linaro.org, Al Stone Subject: [PATCH v2 5/6] ACPI: do not reserve memory regions for some FADT entries in HW reduced mode Date: Thu, 21 Nov 2013 17:41:54 -0700 Message-Id: <1385080915-23430-6-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1385080915-23430-1-git-send-email-al.stone@linaro.org> References: <1385080915-23430-1-git-send-email-al.stone@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: al.stone@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Al Stone Since some of the FADT fields reserved are not to be used by the OSPM in the HW reduced mode, do not map in the memory areas that the FADT fields reference. Signed-off-by: Al Stone --- drivers/acpi/osl.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 34cd2c5..3ac5076 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -160,6 +160,9 @@ static u32 acpi_osi_handler(acpi_string interface, u32 supported) return supported; } +#ifdef CONFIG_ACPI_REDUCED_HARDWARE +static int __init acpi_reserve_resources(void) { return 0; } +#else static void __init acpi_request_region (struct acpi_generic_address *gas, unsigned int length, char *desc) { @@ -210,6 +213,7 @@ static int __init acpi_reserve_resources(void) return 0; } device_initcall(acpi_reserve_resources); +#endif void acpi_os_printf(const char *fmt, ...) { @@ -1772,6 +1776,9 @@ static int __init acpi_no_auto_ssdt_setup(char *s) __setup("acpi_no_auto_ssdt", acpi_no_auto_ssdt_setup); +#ifdef CONFIG_ACPI_REDUCED_HARDWARE +acpi_status __init acpi_os_initialize(void) { return AE_OK; } +#else acpi_status __init acpi_os_initialize(void) { acpi_os_map_generic_address(&acpi_gbl_FADT.xpm1a_event_block); @@ -1781,6 +1788,7 @@ acpi_status __init acpi_os_initialize(void) return AE_OK; } +#endif acpi_status __init acpi_os_initialize1(void) {