From patchwork Fri Jul 18 10:02:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 4581971 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EA461C0514 for ; Fri, 18 Jul 2014 10:05:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 239702011E for ; Fri, 18 Jul 2014 10:05:49 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2CAF0200FF for ; Fri, 18 Jul 2014 10:05:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X8514-00005x-BF; Fri, 18 Jul 2014 10:03:50 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X8512-0008Pt-2j for linux-arm-kernel@lists.infradead.org; Fri, 18 Jul 2014 10:03:48 +0000 Received: by mail-pa0-f41.google.com with SMTP id rd3so4645111pab.0 for ; Fri, 18 Jul 2014 03:03:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=o490pwB6M0GhcMBvIkDBz1/ew9JxRi9Sm+HtexJAHkw=; b=J9JNP4q1MJzLpcy1Pk6gUzYNIAJPL5267XuQbf9+VnJjoXiBd3D49Ee7OY5ppvRowY rNQ6LvjCPBN4c9BFF9Dk/33k4dRqSQ8LrMiAb1RDeNSBaypRviS4/+8REAuKcgs5qz5Y Y1Q61jn8nCqv4MerKOoqM+RoZy/kOy2lafZbyrWhx+EM8DWI9tvSlNqOEtMi7hMHLMjQ rPKw/+91cf2Cnz6ZLomGF3/PyzBQ5wpUCGtNoenCpmmrAR9nqITVLf3dDBt7Go96zHnR oiahTNotGOeq66Niua6dtm/wLnGPHyszxT97BiKRPhy4IIzwoa2AxlnkExRpM0ZqkAmd +BPQ== X-Gm-Message-State: ALoCoQkV2/gxQXmQ35RtXhLRbBUYMVLTmtV0sn3/2hdQchs6+vqzhVCak//cJyXcQORAdnnBARBh X-Received: by 10.66.191.9 with SMTP id gu9mr3527831pac.27.1405677804665; Fri, 18 Jul 2014 03:03:24 -0700 (PDT) Received: from localhost ([183.247.163.231]) by mx.google.com with ESMTPSA id v9sm6786780pdp.88.2014.07.18.03.03.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 18 Jul 2014 03:03:24 -0700 (PDT) From: Hanjun Guo To: "Rafael J. Wysocki" Subject: [PATCH v3 1/3] ACPI: ARM64 does not have a BIOS add config for BIOS table scan. Date: Fri, 18 Jul 2014 18:02:52 +0800 Message-Id: <1405677774-16787-2-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1405677774-16787-1-git-send-email-hanjun.guo@linaro.org> References: <1405677774-16787-1-git-send-email-hanjun.guo@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140718_030348_141741_FFB4778E X-CRM114-Status: GOOD ( 13.74 ) X-Spam-Score: -0.7 (/) Cc: Tony Luck , Graeme Gregory , linaro-acpi@lists.linaro.org, Catalin Marinas , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Hanjun Guo , "H. Peter Anvin" , Thomas Gleixner , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Graeme Gregory With the addition of ARM64 that does not have a traditional BIOS to scan, add a config option which is selected on x86 (ia64 doesn't need it either, it is EFI/UEFI based system) to do the traditional BIOS scanning for tables. Signed-off-by: Graeme Gregory Signed-off-by: Hanjun Guo --- arch/x86/Kconfig | 1 + drivers/acpi/Kconfig | 3 +++ drivers/acpi/osl.c | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index a8f749e..6d9f1d8 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -131,6 +131,7 @@ config X86 select HAVE_CC_STACKPROTECTOR select GENERIC_CPU_AUTOPROBE select HAVE_ARCH_AUDITSYSCALL + select ACPI_LEGACY_TABLES_LOOKUP if ACPI config INSTRUCTION_DECODER def_bool y diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index a34a228..970524c 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -42,6 +42,9 @@ menuconfig ACPI if ACPI +config ACPI_LEGACY_TABLES_LOOKUP + bool + config ACPI_SLEEP bool depends on SUSPEND || HIBERNATION diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index bad25b0..3abe9b2 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -259,12 +259,14 @@ acpi_physical_address __init acpi_os_get_root_pointer(void) "System description tables not found\n"); return 0; } - } else { + } else if (IS_ENABLED(CONFIG_ACPI_LEGACY_TABLES_LOOKUP)) { acpi_physical_address pa = 0; acpi_find_root_pointer(&pa); return pa; } + + return 0; } /* Must be called with 'acpi_ioremap_lock' or RCU read lock held. */