From: Matthew Garrett <mjg@redhat.com>
To: linux-acpi@vger.kernel.org
Cc: robert.moore@intel.com, lenb@kernel.org,
Matthew Garrett <mjg@redhat.com>
Subject: [PATCH 3/3] ACPI: Enable Windows ioport access compatibility on Windows-compatible systems
Date: Wed, 19 May 2010 11:43:11 -0400 [thread overview]
Message-ID: <1274283791-3380-3-git-send-email-mjg@redhat.com> (raw)
In-Reply-To: <1274283791-3380-1-git-send-email-mjg@redhat.com>
Windows ignores everything but the lower 16 bits of system io accesses.
Enable compatibility with it if the firmware indicates Windows compatibility
by requesting a version of Windows via the _OSI method.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
---
drivers/acpi/bus.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 743576b..a10144b 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -904,6 +904,14 @@ static int __init acpi_bus_init(void)
goto error1;
}
+ /*
+ * _SB_._INI has been called, so any _OSI requests should now have
+ * been completed - enable any OS-specific workarounds
+ */
+
+ if (acpi_gbl_osi_data >= ACPI_OSI_WIN_2000)
+ acpi_gbl_ignore_high_ioport_bits = TRUE;
+
acpi_early_processor_set_pdc();
/*
--
1.7.0.1
next prev parent reply other threads:[~2010-05-19 15:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-19 15:43 [PATCH 1/3] ACPI: Ignore the upper bits of SystemIO addresses Matthew Garrett
2010-05-19 15:43 ` [PATCH 2/3] ACPI: Add acpi_gbl_osi_data to OS headers Matthew Garrett
2010-06-04 17:36 ` Len Brown
2010-05-19 15:43 ` Matthew Garrett [this message]
2010-05-19 16:25 ` [PATCH 3/3] ACPI: Enable Windows ioport access compatibility on Windows-compatible systems Bjorn Helgaas
2010-05-19 16:38 ` Matthew Garrett
2010-05-19 16:18 ` [PATCH 1/3] ACPI: Ignore the upper bits of SystemIO addresses Bjorn Helgaas
2010-05-19 16:27 ` Matthew Garrett
2010-05-19 16:31 ` Moore, Robert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1274283791-3380-3-git-send-email-mjg@redhat.com \
--to=mjg@redhat.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=robert.moore@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).