1. 17 7月, 2008 3 次提交
  2. 24 4月, 2008 1 次提交
  3. 23 4月, 2008 8 次提交
  4. 24 1月, 2008 1 次提交
  5. 25 8月, 2007 1 次提交
  6. 24 7月, 2007 1 次提交
  7. 10 5月, 2007 2 次提交
  8. 15 3月, 2007 1 次提交
  9. 13 2月, 2007 1 次提交
    • I
      [PATCH] x86: fix laptop bootup hang in init_acpi() · 5d0e600d
      Ingo Molnar 提交于
      During kernel bootup, a new T60 laptop (CoreDuo, 32-bit) hangs about
      10%-20% of the time in acpi_init():
      
       Calling initcall 0xc055ce1a: topology_init+0x0/0x2f()
       Calling initcall 0xc055d75e: mtrr_init_finialize+0x0/0x2c()
       Calling initcall 0xc05664f3: param_sysfs_init+0x0/0x175()
       Calling initcall 0xc014cb65: pm_sysrq_init+0x0/0x17()
       Calling initcall 0xc0569f99: init_bio+0x0/0xf4()
       Calling initcall 0xc056b865: genhd_device_init+0x0/0x50()
       Calling initcall 0xc056c4bd: fbmem_init+0x0/0x87()
       Calling initcall 0xc056dd74: acpi_init+0x0/0x1ee()
      
      It's a hard hang that not even an NMI could punch through!  Frustratingly,
      adding printks or function tracing to the ACPI code made the hangs go away
      ...
      
      After some time an additional detail emerged: disabling the NMI watchdog
      made these occasional hangs go away.
      
      So i spent the better part of today trying to debug this and trying out
      various theories when i finally found the likely reason for the hang: if
      acpi_ns_initialize_devices() executes an _INI AML method and an NMI
      happens to hit that AML execution in the wrong moment, the machine would
      hang.  (my theory is that this must be some sort of chipset setup method
      doing stores to chipset mmio registers?)
      
      Unfortunately given the characteristics of the hang it was sheer
      impossible to figure out which of the numerous AML methods is impacted
      by this problem.
      
      As a workaround i wrote an interface to disable chipset-based NMIs while
      executing _INI sections - and indeed this fixed the hang.  I did a
      boot-loop of 100 separate reboots and none hung - while without the patch
      it would hang every 5-10 attempts.  Out of caution i did not touch the
      nmi_watchdog=2 case (it's not related to the chipset anyway and didnt
      hang).
      
      I implemented this for both x86_64 and i686, tested the i686 laptop both
      with nmi_watchdog=1 [which triggered the hangs] and nmi_watchdog=2, and
      tested an Athlon64 box with the 64-bit kernel as well. Everything builds
      and works with the patch applied.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Len Brown <lenb@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      5d0e600d
  10. 03 2月, 2007 13 次提交
  11. 20 12月, 2006 1 次提交
    • J
      ACPI: Add support for acpi_load_table/acpi_unload_table_id · 0f0fe1a0
      John Keller 提交于
      Make acpi_load_table() available for use by removing it from the #ifdef
      ACPI_FUTURE_USAGE.
      
      Also add a new routine used to unload an ACPI table of a given type and "id" -
      acpi_unload_table_id().  The implementation of this new routine was almost a
      direct copy of existing routine acpi_unload_table() - only difference being
      that it only removes a specific table id instead of ALL tables of a given
      type.  The SN hotplug driver (sgi_hotplug.c) now uses both of these interfaces
      to dynamically load and unload SSDT ACPI tables.
      
      Also, a few other ACPI routines now used by the SN hotplug driver are exported
      (since the driver can be a loadable module):
      
       acpi_ns_map_handle_to_node
       acpi_ns_convert_entry_to_handle
       acpi_ns_get_next_node
      Signed-off-by: NAaron Young <ayoung@sgi.com>
      Cc: Greg KH <greg@kroah.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      0f0fe1a0
  12. 10 7月, 2006 1 次提交
    • B
      ACPI: ACPICA 20060707 · f6dd9221
      Bob Moore 提交于
      Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to
      support C compilers that do not allow the initialization
      of address pointers within packed structures - even though
      the hardware itself may support misaligned transfers. Some
      of the debug data structures are packed by default to
      minimize size.
      
      Added an error message for the case where
      acpi_os_get_thread_id() returns zero. A non-zero value is
      required by the core ACPICA code to ensure the proper
      operation of AML mutexes and recursive control methods.
      
      The DSDT is now the only ACPI table that determines whether
      the AML interpreter is in 32-bit or 64-bit mode. Not really
      a functional change, but the hooks for per-table 32/64
      switching have been removed from the code. A clarification
      to the ACPI specification is forthcoming in ACPI 3.0B.
      
      Fixed a possible leak of an Owner ID in the error
      path of tbinstal.c acpi_tb_init_table_descriptor() and
      migrated all table OwnerID deletion to a single place in
      acpi_tb_uninstall_table() to correct possible leaks when using
      the acpi_tb_delete_tables_by_type() interface (with assistance
      from Lance Ortiz.)
      
      Fixed a problem with Serialized control methods where the
      semaphore associated with the method could be over-signaled
      after multiple method invocations.
      
      Fixed two issues with the locking of the internal
      namespace data structure. Both the Unload() operator and
      acpi_unload_table() interface now lock the namespace during
      the namespace deletion associated with the table unload
      (with assistance from Linn Crosetto.)
      
      Fixed problem reports (Valery Podrezov) integrated: -
      Eliminate unnecessary memory allocation for CreateXxxxField
      http://bugzilla.kernel.org/show_bug.cgi?id=5426
      
      Fixed problem reports (Fiodor Suietov) integrated: -
      Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)
      - On Address Space handler deletion, needless deactivation
      call (BZ 374) - AcpiRemoveAddressSpaceHandler: validate
      Device handle parameter (BZ 375) - Possible memory leak,
      Notify sub-objects of Processor, Power, ThermalZone (BZ
      376) - AcpiRemoveAddressSpaceHandler: validate Handler
      parameter (BZ 378) - Minimum Length of RSDT should be
      validated (BZ 379) - AcpiRemoveNotifyHandler: return
      AE_NOT_EXIST if Processor Obj has no Handler (BZ (380)
      - AcpiUnloadTable: return AE_NOT_EXIST if no table of
      specified type loaded (BZ 381)
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      f6dd9221
  13. 30 6月, 2006 1 次提交
  14. 28 6月, 2006 1 次提交
    • B
      ACPI: ACPICA 20060623 · 967440e3
      Bob Moore 提交于
      Implemented a new acpi_spinlock type for the OSL lock
      interfaces.  This allows the type to be customized to
      the host OS for improved efficiency (since a spinlock is
      usually a very small object.)
      
      Implemented support for "ignored" bits in the ACPI
      registers.  According to the ACPI specification, these
      bits should be preserved when writing the registers via
      a read/modify/write cycle. There are 3 bits preserved
      in this manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9],
      and PM1_STATUS[11].
      http://bugzilla.kernel.org/show_bug.cgi?id=3691
      
      Implemented the initial deployment of new OSL mutex
      interfaces.  Since some host operating systems have
      separate mutex and semaphore objects, this feature was
      requested. The base code now uses mutexes (and the new
      mutex interfaces) wherever a binary semaphore was used
      previously. However, for the current release, the mutex
      interfaces are defined as macros to map them to the
      existing semaphore interfaces.
      
      Fixed several problems with the support for the control
      method SyncLevel parameter. The SyncLevel now works
      according to the ACPI specification and in concert with the
      Mutex SyncLevel parameter, since the current SyncLevel is
      a property of the executing thread. Mutual exclusion for
      control methods is now implemented with a mutex instead
      of a semaphore.
      
      Fixed three instances of the use of the C shift operator
      in the bitfield support code (exfldio.c) to avoid the use
      of a shift value larger than the target data width. The
      behavior of C compilers is undefined in this case and can
      cause unpredictable results, and therefore the case must
      be detected and avoided.  (Fiodor Suietov)
      
      Added an info message whenever an SSDT or OEM table
      is loaded dynamically via the Load() or LoadTable()
      ASL operators. This should improve debugging capability
      since it will show exactly what tables have been loaded
      (beyond the tables present in the RSDT/XSDT.)
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      967440e3
  15. 14 6月, 2006 4 次提交
    • B
      ACPI: ACPICA 20060608 · 4c90ece2
      Bob Moore 提交于
      Converted the locking mutex used for the ACPI hardware
      to a spinlock. This change should eliminate all problems
      caused by attempting to acquire a semaphore at interrupt
      level, and it means that all ACPICA external interfaces
      that directly access the ACPI hardware can be safely
      called from interrupt level.
      
      Fixed a regression introduced in 20060526 where the ACPI
      device initialization could be prematurely aborted with
      an AE_NOT_FOUND if a device did not have an optional
      _INI method.
      
      Fixed an IndexField issue where a write to the Data
      Register should be limited in size to the AccessSize
      (width) of the IndexField itself. (BZ 433, Fiodor Suietov)
      
      Fixed problem reports (Valery Podrezov) integrated: - Allow
      store of ThermalZone objects to Debug object.
      http://bugzilla.kernel.org/show_bug.cgi?id=5369
      http://bugzilla.kernel.org/show_bug.cgi?id=5370
      
      Fixed problem reports (Fiodor Suietov) integrated: -
      acpi_get_table_header() doesn't handle multiple instances
      correctly (BZ 364)
      
      Removed four global mutexes that were obsolete and were
      no longer being used.
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      4c90ece2
    • B
      ACPI: ACPICA 20060526 · 4119532c
      Bob Moore 提交于
      Restructured, flattened, and simplified the internal
      interfaces for namespace object evaluation - resulting
      in smaller code, less CPU stack use, and fewer
      interfaces. (With assistance from Mikhail Kouzmich)
      
      Fixed a problem with the CopyObject operator where the
      first parameter was not typed correctly for the parser,
      interpreter, compiler, and disassembler. Caused various
      errors and unexpected behavior.
      
      Fixed a problem where a ShiftLeft or ShiftRight of
      more than 64 bits produced incorrect results with some
      C compilers. Since the behavior of C compilers when
      the shift value is larger than the datatype width is
      apparently not well defined, the interpreter now detects
      this condition and simply returns zero as expected in all
      such cases. (BZ 395)
      
      Fixed problem reports (Valery Podrezov) integrated: -
      Update String-to-Integer conversion to match ACPI 3.0A spec
      http://bugzilla.kernel.org/show_bug.cgi?id=5329
      Allow interpreter to handle nested method declarations
      http://bugzilla.kernel.org/show_bug.cgi?id=5361
      
      Fixed problem reports (Fiodor Suietov) integrated: -
      acpi_terminate() doesn't free debug memory allocation
      list objects (BZ 355) - After Core Subsystem
      shutdown, acpi_subsystem_status() returns AE_OK (BZ 356) -
      acpi_os_unmap_memory() for RSDP can be invoked inconsistently
      (BZ 357) - Resource Manager should return AE_TYPE for
      non-device objects (BZ 358) - Incomplete cleanup branch
      in AcpiNsEvaluateRelative (BZ 359) - Use acpi_os_free()
      instead of ACPI_FREE in acpi_rs_set_srs_method_data (BZ 360)
      - Incomplete cleanup branch in acpi_ps_parse_aml (BZ 361) -
      Incomplete cleanup branch in acpi_ds_delete_walk_state (BZ 362)
      - acpi_get_table_header returns AE_NO_ACPI_TABLES until DSDT
      is loaded (BZ 365) - Status of the Global Initialization
      Handler call not used (BZ 366) - Incorrect object parameter
      to Global Initialization Handler (BZ 367)
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      4119532c
    • B
      ACPI: ACPICA 20060512 · 958dd242
      Bob Moore 提交于
      Replaced the acpi_os_queue_for_execution() with a new
      interface named acpi_os_execute(). The major difference is
      that the new interface does not have a Priority parameter,
      this appeared to be useless and has been replaced by
      a Type parameter. The Type tells the OS what type of
      execution is being requested, such as global lock handler,
      notify handler, GPE handler, etc. This allows the host
      to queue and execute the request as appropriate for the
      request type, possibly using different work queues and
      different priorities for the various request types. This
      enables fixes for multithreading deadlock problems such as
      http://bugzilla.kernel.org/show_bug.cgi?id=5534
      (Alexey Starikovskiy and Bob Moore)
      
      Fixed a possible memory leak associated with the
      support for the so-called "implicit return" ACPI
      extension. Reported by FreeBSD  (Fiodor Suietov)
      http://bugzilla.kernel.org/show_bug.cgi?id=6514
      
      Fixed a problem with the Load() operator where a table
      load from an operation region could overwrite an internal
      table buffer by up to 7 bytes and cause alignment faults
      on IPF systems. (With assistance from Luming Yu)
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      958dd242
    • B
      ACPI: ACPICA 20060421 · b229cf92
      Bob Moore 提交于
      Removed a device initialization optimization introduced in
      20051216 where the _STA method was not run unless an _INI
      was also present for the same device. This optimization
      could cause problems because it could allow _INI methods
      to be run within a not-present device subtree (If a
      not-present device had no _INI, _STA would not be run,
      the not-present status would not be discovered, and the
      children of the device would be incorrectly traversed.)
      
      Implemented a new _STA optimization where namespace
      subtrees that do not contain _INI are identified and
      ignored during device initialization. Selectively running
      _STA can significantly improve boot time on large machines
      (with assistance from Len Brown.)
      
      Implemented support for the device initialization case
      where the returned _STA flags indicate a device not-present
      but functioning. In this case, _INI is not run, but the
      device children are examined for presence, as per the
      ACPI specification.
      
      Implemented an additional change to the IndexField support
      in order to conform to MS behavior. The value written to
      the Index Register is not simply a byte offset, it is a
      byte offset in units of the access width of the parent
      Index Field. (Fiodor Suietov)
      
      Defined and deployed a new OSL interface,
      acpi_os_validate_address().  This interface is called during
      the creation of all AML operation regions, and allows
      the host OS to exert control over what addresses it will
      allow the AML code to access. Operation Regions whose
      addresses are disallowed will cause a runtime exception
      when they are actually accessed (will not affect or abort
      table loading.)
      
      Defined and deployed a new OSL interface,
      acpi_os_validate_interface().  This interface allows the host OS
      to match the various "optional" interface/behavior strings
      for the _OSI predefined control method as appropriate
      (with assistance from Bjorn Helgaas.)
      
      Restructured and corrected various problems in the
      exception handling code paths within DsCallControlMethod
      and DsTerminateControlMethod in dsmethod (with assistance
      from Takayoshi Kochi.)
      
      Modified the Linux source converter to ignore quoted string
      literals while converting identifiers from mixed to lower
      case. This will correct problems with the disassembler
      and other areas where such strings must not be modified.
      
      The ACPI_FUNCTION_* macros no longer require quotes around
      the function name. This allows the Linux source converter
      to convert the names, now that the converter ignores
      quoted strings.
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      b229cf92