1
linux/include/acpi
Thomas Renninger df92e69599 ACPI: track opregion names to avoid driver resource conflicts.
Small ACPICA extension to be able to store the name of operation regions in osl.c later

In ACPI, AML can define accesses to IO ports and System Memory by Operation
Regions.  Those are not registered as done by PNPACPI using resource templates
(and _CRS/_SRS methods).

The IO ports and System Memory regions may get accessed by arbitrary AML code.
 When native drivers are accessing the same resources bad things can happen
(e.g.  a critical shutdown temperature of 3000 C every 2 months or so).

It is not really possible to register the operation regions via
request_resource, as they often overlap with pnp or other resources (e.g.
statically setup IO resources below 0x100).

This approach stores all Operation Region declarations (IO and System Memory
only) at ACPI table parse time.  It offers a similar functionality like
request_region and let drivers which are known to possibly use the same IO
ports and Memory which are also often used by ACPI (hwmon and i2c) check for
ACPI interference.

A boot parameter acpi_enforce_resources=strict/lax/no is provided, which
is default set to lax:
  - strict: let conflicting drivers fail to load with an error message
  - lax:    let conflicting driver work normal with a warning message
  - no:     no functional change at all
Depending on the feedback and the kind of interferences we see, this
should be set to strict at later time.

Goal of this patch set is:
  - Identify ACPI interferences in bug reports (very hard to reproduce
    and to identify)
  - Find BIOSes for that an ACPI driver should exist for specific HW
    instead of a native one.
  - stability in general

Provide acpi_check_{mem_}region.

Drivers can additionally check against possible ACPI interference by also
invoking this shortly before they call request_region.
If -EBUSY is returned, the driver must not load.
Use acpi_enforce_resources=strict/lax/no options to:
  - strict: let conflicting drivers fail to load with an error message
  - lax:    let conflicting driver work normal with a warning message
  - no:     no functional change at all

Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Len Brown <lenb@kernel.org>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-02-07 00:59:18 -05:00
..
platform ACPICA: Changes for Cygwin compatibility 2007-07-03 01:55:36 -04:00
acconfig.h ACPICA: Update version to 20070126 2007-02-02 21:14:32 -05:00
acdebug.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
acdisasm.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
acdispat.h ACPICA: Lindent 2007-05-09 23:34:35 -04:00
acevents.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
acexcep.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
acglobal.h ACPICA: Lindent 2007-05-09 23:34:35 -04:00
achware.h ACPICA: hw: remove use_lock flag from acpi_hw_register_{read, write} 2007-10-10 01:00:26 -04:00
acinterp.h Revert "ACPICA: fix AML mutex re-entrancy" 2007-05-09 23:01:59 -04:00
aclocal.h ACPICA: Lindent 2007-05-09 23:34:35 -04:00
acmacros.h Pull misc into release branch 2007-07-22 02:27:40 -04:00
acnames.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
acnamesp.h ACPICA: Lindent 2007-05-09 23:34:35 -04:00
acobject.h ACPICA: Lindent 2007-05-09 23:34:35 -04:00
acopcode.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
acoutput.h ACPI: create CONFIG_ACPI_DEBUG_FUNC_TRACE 2007-07-22 02:20:07 -04:00
acparser.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
acpi_bus.h kobject: convert /sys/firmware/acpi/ to use kobject_create 2008-01-24 20:40:23 -08:00
acpi_drivers.h ACPI: CONFIG_ACPI_SLEEP=n power off regression in 2.6.23-rc8 (NOT in rc7) 2007-09-25 17:58:52 -04:00
acpi_numa.h x86_64: fake pxm-to-node mapping for fake numa 2007-07-21 18:37:10 -07:00
acpi.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
acpiosxf.h ACPI: track opregion names to avoid driver resource conflicts. 2008-02-07 00:59:18 -05:00
acpixf.h include/acpi/: Spelling fixes 2008-02-03 17:07:16 +02:00
acresrc.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
acstruct.h ACPI: Fix a warning of discarding qualifiers from pointer target type 2007-08-25 01:38:40 -04:00
actables.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
actbl1.h Intel IOMMU: DMAR detection and parsing logic 2007-10-22 08:13:18 -07:00
actbl.h ACPI: Disable MSI on request of FADT 2007-04-25 01:13:47 -04:00
actypes.h ACPI: autoload modules - ACPICA modifications 2007-07-23 13:56:00 -04:00
acutils.h ACPI: autoload modules - ACPICA modifications 2007-07-23 13:56:00 -04:00
amlcode.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
amlresrc.h ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
container.h [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
pdc_intel.h ACPI: Processor native C-states using MWAIT 2006-10-14 00:35:39 -04:00
processor.h include/acpi/: Spelling fixes 2008-02-03 17:07:16 +02:00
reboot.h x86: dummy placeholder for acpi/reboot.h 2008-01-30 13:31:17 +01:00