From patchwork Thu Apr 7 00:06:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Chamberlain X-Patchwork-Id: 8767611 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E17229F372 for ; Thu, 7 Apr 2016 00:09:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 20A10201EC for ; Thu, 7 Apr 2016 00:09:18 +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 3F452201CD for ; Thu, 7 Apr 2016 00:09:17 +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 1anxTe-0002r6-MS; Thu, 07 Apr 2016 00:07:14 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anxTd-0002p7-3B for xen-devel@lists.xensource.com; Thu, 07 Apr 2016 00:07:13 +0000 Received: from [85.158.139.211] by server-3.bemta-5.messagelabs.com id 63/A6-25417-0B4A5075; Thu, 07 Apr 2016 00:07:12 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFLMWRWlGSWpSXmKPExsVybKJsh+76Jaz hBm//Glvcm/Ke3YHRY3vfLvYAxijWzLyk/IoE1oxVG38zFnRzVrSta2VqYHzL3sXIxSEkMJVR 4s2uvYwQzgwmiQ3P97B2MXJwsAnoSty8LdHFyMkhIpAgcffpN2aQGmaBb0wSu08/YwapERZwl lj/QhukhkVAVeLs7XdMIDavgKPE83mLGEFsCQE5iZYfu1lBbE6g+PJTU8FsIQEHicalS6BqMi Tm9cxhhbC9JBbduARlq0lcPbeJeQIj3wJGhlWMGsWpRWWpRbqGBnpJRZnpGSW5iZk5QJ6pXm5 qcXFiempOYlKxXnJ+7iZGYJgwAMEOxjVTnQ8xSnIwKYnyulayhgvxJeWnVGYkFmfEF5XmpBYf YpTh4FCS4A1aDJQTLEpNT61Iy8wBBixMWoKDR0mENwskzVtckJhbnJkOkTrFqCglzqsDkhAAS WSU5sG1waLkEqOslDAvI9AhQjwFqUW5mSWo8q8YxTkYlYR5tUGm8GTmlcBNfwW0mAlocb0wE8 jikkSElFQD4+xzB7Z+0A/95DhxpUfOodT60FXvjJ6ezJnW9f7km/klb4Ndplaver5tmkYaF+c r/YyKln0PJjsZKuvts8qMj/69M0h805uYU/NXpLMISGyT+uvyx5m7casbh+05n42C1wQ7mz6r n7bnrpD69Ffd9/qlzRNOKjIz9K0S+Sb9wvdYjkKf5V/DQCWW4oxEQy3mouJEAPmY5OaNAgAA X-Env-Sender: mcgrof@kernel.org X-Msg-Ref: server-13.tower-206.messagelabs.com!1459987630!33125431!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 53221 invoked from network); 7 Apr 2016 00:07:11 -0000 Received: from mail.kernel.org (HELO mail.kernel.org) (198.145.29.136) by server-13.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 7 Apr 2016 00:07:11 -0000 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CA1FE202A1; Thu, 7 Apr 2016 00:07:09 +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 75BB8202EB; Thu, 7 Apr 2016 00:07:08 +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, 6 Apr 2016 17:06:32 -0700 Message-Id: <1459987594-5434-13-git-send-email-mcgrof@kernel.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1459987594-5434-1-git-send-email-mcgrof@kernel.org> References: <1459987594-5434-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: xen-devel@lists.xensource.com, matt@codeblueprint.co.uk, andrew.cooper3@citrix.com, x86@kernel.org, linux-kernel@vger.kernel.org, luto@amacapital.net, jlee@suse.com, "Luis R. Rodriguez" , lguest@lists.ozlabs.org, glin@suse.com, david.vrabel@citrix.com, boris.ostrovsky@oracle.com, andriy.shevchenko@linux.intel.com Subject: [Xen-devel] [PATCH v4 12/14] 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 5e736e2108a1..3cada5e8505a 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -911,6 +911,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;