[PATCH 3/3] ACPI: Enable Windows ioport access compatibility on Windows-compatible systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux