1. 21 4月, 2009 1 次提交
  2. 03 4月, 2009 1 次提交
  3. 16 3月, 2009 1 次提交
  4. 23 2月, 2009 1 次提交
  5. 09 2月, 2009 1 次提交
    • Y
      acpi/x86: introduce __apci_map_table, v4 · 7d97277b
      Yinghai Lu 提交于
      to prevent wrongly overwriting fixmap that still want to use.
      
      ACPI used to rely on low mappings being all linearly mapped and
      grew a habit: it never really unmapped certain kinds of tables
      after use.
      
      This can cause problems - for example the hypothetical case
      when some spurious access still references it.
      
      v2: remove prev_map and prev_size in __apci_map_table
      v3: let acpi_os_unmap_memory() call early_iounmap too, so remove extral calling to
      early_acpi_os_unmap_memory
      v4: fix typo in one acpi_get_table_with_size calling
      Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
      Acked-by: NLen Brown <len.brown@intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      7d97277b
  6. 07 2月, 2009 1 次提交
  7. 04 2月, 2009 1 次提交
  8. 31 12月, 2008 1 次提交
  9. 27 11月, 2008 1 次提交
  10. 23 10月, 2008 1 次提交
  11. 11 10月, 2008 1 次提交
  12. 24 9月, 2008 1 次提交
    • Z
      ACPI: fix hotplug race · 19cd847a
      Zhang Rui 提交于
      The hotplug notification handler and drivers' notification handler all
      run in one workqueue.  Before hotplug removes an acpi device, the
      device driver's notification handler is already be recorded to run just
      after global notification handler.  After hotplug notification handler
      runs, acpica will notice a NULL notification handler and crash.
      
      So now we run run hotplug in another workqueue and wait
      for all acpi notication handlers finish.
      This was found in battery hotplug, but actually all
      hotplug can be affected.
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NShaohua Li <shaohua.li@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      19cd847a
  13. 29 4月, 2008 1 次提交
  14. 17 4月, 2008 1 次提交
  15. 16 3月, 2008 1 次提交
    • L
      ACPI: Remove ACPI_CUSTOM_DSDT_INITRD option · 9a9e0d68
      Linus Torvalds 提交于
      This essentially reverts commit 71fc47a9
      ("ACPI: basic initramfs DSDT override support"), because the code simply
      isn't ready.
      
      It did ugly things to the init sequence to populate the rootfs image
      early, but that just ended up showing other problems with the whole
      approach.  The fact is, the VFS layer simply isn't initialized this
      early, and the relevant ACPI code should either run much later, or this
      shouldn't be done at all.
      
      For 2.6.25, we'll just pick the latter option.  We can revisit this
      concept later if necessary.
      
      Cc: Dave Hansen <haveblue@us.ibm.com>
      Cc: Tilman Schmidt <tilman@imap.cc>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Thomas Renninger <trenn@suse.de>
      Cc: Eric Piel <eric.piel@tremplin-utc.net>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: Markus Gaugusch <dsdt@gaugusch.at>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9a9e0d68
  16. 11 3月, 2008 1 次提交
  17. 14 2月, 2008 4 次提交
  18. 11 2月, 2008 1 次提交
  19. 08 2月, 2008 1 次提交
  20. 07 2月, 2008 8 次提交
    • L
      ACPI: update intrd DSDT override console messages · 04d94886
      Len Brown 提交于
      also, address some checkpatch.pl violations
      Signed-off-by: NLen Brown <len.brown@intel.com>
      04d94886
    • É
      ACPI: Add "acpi_no_initrd_override" kernel parameter · 9cbc7960
      Éric Piel 提交于
      The acpi_no_initrd_override parameter permits to disable the load of an ACPI
      table from the initramfs.
      Signed-off-by: NEric Piel <eric.piel@tremplin-utc.net>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      9cbc7960
    • A
      ACPI: misc cleanups · e5685b9d
      Adrian Bunk 提交于
          This patch contains the following possible cleanups:
          - make the following needlessly global code static:
            - drivers/acpi/bay.c:dev_attr_eject
            - drivers/acpi/bay.c:dev_attr_present
            - drivers/acpi/dock.c:dev_attr_docked
            - drivers/acpi/dock.c:dev_attr_flags
            - drivers/acpi/dock.c:dev_attr_uid
            - drivers/acpi/dock.c:dev_attr_undock
            - drivers/acpi/pci_bind.c:acpi_pci_unbind()
            - drivers/acpi/pci_link.c:acpi_link_lock
            - drivers/acpi/sbs.c:acpi_sbs_callback()
            - drivers/acpi/sbshc.c:acpi_smbus_transaction()
            - drivers/acpi/sleep/main.c:acpi_sleep_prepare()
          - #if 0 the following unused global functions:
            - drivers/acpi/numa.c:acpi_unmap_pxm_to_node()
          - remove the following unused EXPORT_SYMBOL's:
            - acpi_register_gsi
            - acpi_unregister_gsi
            - acpi_strict
            - acpi_bus_receive_event
            - register_acpi_bus_type
            - unregister_acpi_bus_type
            - acpi_os_printf
            - acpi_os_sleep
            - acpi_os_stall
            - acpi_os_read_pci_configuration
            - acpi_os_create_semaphore
            - acpi_os_delete_semaphore
            - acpi_os_wait_semaphore
            - acpi_os_signal_semaphore
            - acpi_os_signal
            - acpi_pci_irq_enable
            - acpi_get_pxm
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Acked-by: NAlexey Starikovskiy <astarikovskiy@suse.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      e5685b9d
    • T
      ACPI: Export acpi_check_resource_conflict · 443dea72
      Thomas Renninger 提交于
      Export acpi_check_resource_conflict(), sometimes drivers already have
      a struct resource at hand so no need to use the wrappers to build a new
      one.
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      443dea72
    • T
      ACPI: track opregion names to avoid driver resource conflicts. · df92e695
      Thomas Renninger 提交于
      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: NThomas Renninger <trenn@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      df92e695
    • L
      ACPI: create /sys/firmware/acpi/interrupts · 5229e87d
      Len Brown 提交于
      See Documentation/ABI/testing/sysfs-firmware-acpi
      Based-on-original-patch-by: NLuming Yu <luming.yu@intel.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      5229e87d
    • É
      ACPI: Taint kernel on ACPI table override (format corrected) · 6ed31e92
      Éric Piel 提交于
      When an ACPI table is overridden (for now this can happen only for DSDT)
      display a big warning and taint the kernel with flag A.
      Signed-off-by: NEric Piel <eric.piel@tremplin-utc.net>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      6ed31e92
    • M
      ACPI: basic initramfs DSDT override support · 71fc47a9
      Markus Gaugusch 提交于
      The basics of DSDT from initramfs. In case this option is selected,
      populate_rootfs() is called a bit earlier to have the initramfs content
      available during ACPI initialization.
      
      This is a very similar path to the one available at
      http://gaugusch.at/kernel.shtml but with some update in the
      documentation, default set to No and the change of populate_rootfs() the
      "Jeff Mahony way" (which avoids reading the initramfs twice).
      Signed-off-by: NThomas Renninger <trenn@suse.de>
      Signed-off-by: NEric Piel <eric.piel@tremplin-utc.net>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      71fc47a9
  21. 04 2月, 2008 3 次提交
  22. 24 1月, 2008 4 次提交
    • L
      ACPI: make _OSI(Linux) console messages smarter · d4b7dc49
      Len Brown 提交于
      If BIOS invokes _OSI(Linux), the kernel response
      depends on what the ACPI DMI list knows about the system,
      and that is reflectd in dmesg:
      
      1) System unknown to DMI:
      
      ACPI: BIOS _OSI(Linux) query ignored
      ACPI: DMI System Vendor: LENOVO
      ACPI: DMI Product Name: 7661W1P
      ACPI: DMI Product Version: ThinkPad T61
      ACPI: DMI Board Name: 7661W1P
      ACPI: DMI BIOS Vendor: LENOVO
      ACPI: DMI BIOS Date: 10/18/2007
      ACPI: Please send DMI info above to linux-acpi@vger.kernel.org
      ACPI: If "acpi_osi=Linux" works better, please notify linux-acpi@vger.kernel.org
      
      2) System known to DMI, but effect of OSI(Linux) unknown:
      
      ACPI: DMI detected: Lenovo ThinkPad T61
      ...
      ACPI: BIOS _OSI(Linux) query ignored via DMI
      ACPI: If "acpi_osi=Linux" works better, please notify linux-acpi@vger.kernel.org
      
      3) System known to DMI, which disables _OSI(Linux):
      
      ACPI: DMI detected: Lenovo ThinkPad T61
      ...
      ACPI: BIOS _OSI(Linux) query ignored via DMI
      
      4) System known to DMI, which enable _OSI(Linux):
      
      ACPI: DMI detected: Lenovo ThinkPad T61
      ACPI: Added _OSI(Linux)
      ...
      ACPI: BIOS _OSI(Linux) query honored via DMI
      
      cmdline overrides take precidence over the built-in
      default and the DMI prescribed default.
      cmdline "acpi_osi=Linux" results in:
      
      ACPI: BIOS _OSI(Linux) query honored via cmdline
      Signed-off-by: NLen Brown <len.brown@intel.com>
      d4b7dc49
    • L
      ACPI: Delete Intel Customer Reference Board (CRB) from OSI(Linux) DMI list · 7ce95ce5
      Len Brown 提交于
      Linux does not want BIOS writers to invoke _OSI(Linux) -
      for in the field it causes more Windows incompatibility problems
      than it solves.
      
      So when it is seen in the BIOS for an Intel Customer Reference Board,
      Linux should ignore its effect by default, and should complain loudly.
      Otherwise, the reference BIOS will go unfixed, and the bad BIOS
      will spread to the field.
      
      Users of this board can get the old behavior with "acpi_osi=Linux"
      
      As this was the only entry, delete acpi_osl_dmi_table[].
      Signed-off-by: NLen Brown <len.brown@intel.com>
      7ce95ce5
    • L
    • L
      ACPI: create acpi_dmi_dump() · 5a4e1432
      Len Brown 提交于
      A utility routine to print common entries used
      for ACPI-related DMI blacklist entries.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      5a4e1432
  23. 14 12月, 2007 2 次提交
  24. 07 12月, 2007 1 次提交