From patchwork Thu Apr 14 00:13:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Chamberlain X-Patchwork-Id: 8830251 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 760D2C0553 for ; Thu, 14 Apr 2016 00:15:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF7E02021A for ; Thu, 14 Apr 2016 00:15:14 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E17D62020F for ; Thu, 14 Apr 2016 00:15:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqUv5-0001eS-Ol; Thu, 14 Apr 2016 00:14:03 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqUv4-0001e9-7a for xen-devel@lists.xensource.com; Thu, 14 Apr 2016 00:14:02 +0000 Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id D6/83-03010-9C0EE075; Thu, 14 Apr 2016 00:14:01 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRWlGSWpSXmKPExsVybKJsh+6JB3z hBr2vjSzuTXnP7sDosb1vF3sAYxRrZl5SfkUCa8bK05fZCro5K7raHjI2ML5l72Lk5BASmMoo sWI+SxcjF5A9g0lizfbHrF2MHBxsAroSN29LgNSICCRI3H36jRmkhlngGKvEvFVzwWqEBZwlu icEgdSwCKhKtHVcAZvJK2Av8fJTPyOILSEgJ9HyYzcriM0p4CCxYOcKVoi99hL9tw9A1WRIzO uZwwphe0ksunEJylaTuHpuE/MERr4FjAyrGNWLU4vKUot0LfSSijLTM0pyEzNzdA0NjPVyU4u LE9NTcxKTivWS83M3MQJDhAEIdjBeaHc+xCjJwaQkymuyii9ciC8pP6UyI7E4I76oNCe1+BCj DAeHkgTvivtAOcGi1PTUirTMHGCwwqQlOHiURHing6R5iwsSc4sz0yFSpxgVpcR5y0ESAiCJj NI8uDZYhFxilJUS5mUEOkSIpyC1KDezBFX+FaM4B6OSMO9akCk8mXklcNNfAS1mAlpc9o4XZH FJIkJKqoFRaLtgKUftiQLmyxMvX/Rk/8O2y7m1Wn2ZehfPqZlT76/c+uhT5u/i0o9MNtm7lnF 9EQ944PuwOlg5ZsPVfWXRjj23N3wU8zuoGam4U9374NbmuT6rbIyu3S4JvxL8TzhMOqq2yv5o EM/B58/cc3uXzns1x+VGXeG+KSFrNC1mvev9s9DhnreGEktxRqKhFnNRcSIAl/pNMosCAAA= X-Env-Sender: mcgrof@kernel.org X-Msg-Ref: server-15.tower-31.messagelabs.com!1460592839!34311125!1 X-Originating-IP: [198.145.29.136] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked Received: (qmail 64852 invoked from network); 14 Apr 2016 00:14:00 -0000 Received: from mail.kernel.org (HELO mail.kernel.org) (198.145.29.136) by server-15.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 14 Apr 2016 00:14:00 -0000 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6F4392025A; Thu, 14 Apr 2016 00:13:58 +0000 (UTC) Received: from garbanzo.do-not-panic.com (c-73-15-241-2.hsd1.ca.comcast.net [73.15.241.2]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AA7932020F; Thu, 14 Apr 2016 00:13:56 +0000 (UTC) From: "Luis R. Rodriguez" To: bp@alien8.de, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, rusty@rustcorp.com.au Date: Wed, 13 Apr 2016 17:13:55 -0700 Message-Id: <1460592835-450-1-git-send-email-mcgrof@kernel.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1460592286-300-1-git-send-email-mcgrof@kernel.org> References: <1460592286-300-1-git-send-email-mcgrof@kernel.org> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Cc: kozerkov@parallels.com, matt@codeblueprint.co.uk, bigeasy@linutronix.de, lv.zheng@intel.com, ffainelli@freebox.fr, mbizon@freebox.fr, xen-devel@lists.xensource.com, x86@kernel.org, robert.moore@intel.com, linux-acpi@vger.kernel.org, glin@suse.com, lenb@kernel.org, julien.grall@linaro.org, josh@joshtriplett.org, george.dunlap@citrix.com, jlee@suse.com, lguest@lists.ozlabs.org, boris.ostrovsky@oracle.com, andriy.shevchenko@linux.intel.com, jgross@suse.com, toshi.kani@hp.com, andrew.cooper3@citrix.com, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, luto@amacapital.net, "Luis R. Rodriguez" , david.vrabel@citrix.com, tiwai@suse.de Subject: [Xen-devel] [PATCH v6 12/16] x86, ACPI: parse ACPI_FADT_LEGACY_DEVICES X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP ACPI 5.2.9.3 IA-PC Boot Architecture flag ACPI_FADT_LEGACY_DEVICES can be used to determine if a system has legacy devices LPC or ISA devices. The x86 platform already has a struct which lists known associated legacy devices, we start off careful only by disabling root devices we should not regress with. The struct and device list can be expanded with time to cover more root legacy components. Signed-off-by: Luis R. Rodriguez --- arch/x86/kernel/acpi/boot.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 8c9c2bdba092..c9a06e573fa5 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -913,6 +913,11 @@ late_initcall(hpet_insert_resource); static int __init acpi_parse_fadt(struct acpi_table_header *table) { + if (!(acpi_gbl_FADT.boot_flags & ACPI_FADT_LEGACY_DEVICES)) { + pr_debug("ACPI: no legacy devices present\n"); + x86_platform.legacy.devices.pnpbios = 0; + } + if (acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_CMOS_RTC) { pr_debug("ACPI: not registering RTC platform device\n"); x86_platform.legacy.rtc = 0;