1. 30 6月, 2006 2 次提交
  2. 29 6月, 2006 1 次提交
  3. 28 6月, 2006 12 次提交
    • B
      f831335d
    • A
      ACPI: restore comment justifying 'extra' P_LVLx access · b488f021
      Andreas Mohr 提交于
      While trying to look for superfluous I/O accesses that can be optimized
      away, I stumbled upon this ACPI sleep I/O access and couldn't figure out
      why the hell this dummy op was necessary.
      After more than one hour of internet research, I had collected a sufficient
      number of documents (among those very old kernel versions) that finally
      told me what this dummy read was about: STPCLK# doesn't get asserted in time
      on (some) chipsets, which is why we need to have a dummy I/O read to delay
      further instruction processing until the CPU is fully stopped.
      Signed-off-by: NAndreas Mohr <andi@lisas.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      b488f021
    • D
      ACPI: C-States: only demote on current bus mastering activity · c4a001b1
      Dominik Brodowski 提交于
      Only if bus master activity is going on at the present, we should avoid
      entering C3-type sleep, as it might be a faulty transition.  As long as the
      bm_activity bitmask was based on the number of calls to the ACPI idle
      function, looking at previous moments made sense.  Now, with it being based on
      what happened this jiffy, looking at this jiffy should be sufficient.
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      c4a001b1
    • D
      ACPI: C-States: bm_activity improvements · c5ab81ca
      Dominik Brodowski 提交于
      Do not assume there was bus mastering activity if the idle handler didn't get
      called, as there's only reason to not enter C3-type sleep if there is bus
      master activity going on.  Only for the "promotion" into C3-type sleep bus
      mastering activity is taken into account, and there only current bus mastering
      activity, and not pure guessing should lead to the decision on whether to
      enter C3-type sleep or not.
      
      Also, as bm_activity is a jiffy-based bitmask (bit 0: bus mastering activity
      during this juffy, bit 31: bus mastering activity 31 jiffies ago), fix the
      setting of bit 0, as it might be called multiple times within one jiffy.
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      c5ab81ca
    • D
      ACPI: C-States: accounting of sleep states · a3c6598f
      Dominik Brodowski 提交于
      Track the actual time spent in C-States (C2 upwards, we can't determine this
      for C1), not only the number of invocations.  This is especially useful for
      dynamic ticks / "tickless systems", but is also of interest on normal systems,
      as any interrupt activity leads to C-States being exited, not only the timer
      interrupt.
      
      The time is being measured in PM timer ticks, so an increase by one equals 279
      nanoseconds.
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      a3c6598f
    • 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
    • K
      ACPI: dock driver · a5e1b940
      Kristen Accardi 提交于
      Create a driver which lives in the acpi subsystem to handle dock events.
      This driver is not an "ACPI" driver, because acpi drivers require that the
      object be present when the driver is loaded.
      Signed-off-by: NKristen Carlson Accardi <kristen.c.accardi@intel.com>
      Cc: Dave Hansen <haveblue@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      a5e1b940
    • Y
      [PATCH] pgdat allocation for new node add (get node id by acpi) · 1e3590e2
      Yasunori Goto 提交于
      This is to find node id from acpi's handle of memory_device in DSDT.  _PXM for
      the new node can be found by acpi_get_pxm() by using new memory's handle.  So,
      node id can be found by pxm_to_nid_map[].
      
        This patch becomes simpler than v2 of node hot-add patch.
        Because old add_memory() function doesn't have node id parameter.
        So, kernel must find its handle by physical address via DSDT again.
        But, v3 just give node id to add_memory() now.
      Signed-off-by: NYasunori Goto <y-goto@jp.fujitsu.com>
      Cc: Dave Hansen <haveblue@us.ibm.com>
      Cc: "Brown, Len" <len.brown@intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      1e3590e2
    • Y
      [PATCH] pgdat allocation for new node add (specify node id) · bc02af93
      Yasunori Goto 提交于
      Change the name of old add_memory() to arch_add_memory.  And use node id to
      get pgdat for the node at NODE_DATA().
      
      Note: Powerpc's old add_memory() is defined as __devinit. However,
            add_memory() is usually called only after bootup.
            I suppose it may be redundant. But, I'm not well known about powerpc.
            So, I keep it. (But, __meminit is better at least.)
      Signed-off-by: NYasunori Goto <y-goto@jp.fujitsu.com>
      Cc: Dave Hansen <haveblue@us.ibm.com>
      Cc: "Brown, Len" <len.brown@intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      bc02af93
    • Y
      [PATCH] Catch notification of memory add event of ACPI via container driver.... · dd56a8e3
      Yasunori Goto 提交于
      [PATCH] Catch notification of memory add event of ACPI via container driver. (avoid redundant call add_memory)
      
      When acpi_memory_device_init() is called at boottime to register struct
      memory acpi_memory_device, acpi_bus_add() are called via
      acpi_driver_attach().
      
      But it also calls ops->start() function.  It is called even if the memory
      blocks are initialized at early boottime.  In this case add_memory() return
      -EEXIST, and the memory blocks becomes INVALID state even if it is normal.
      
      This is patch to avoid calling add_memory() for already available memory.
      
      [akpm@osdl.org: coding cleanups]
      Signed-off-by: NYasunori Goto <y-goto@jp.fujitsu.com>
      Cc: "Brown, Len" <len.brown@intel.com>
      Cc: Dave Hansen <haveblue@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      dd56a8e3
    • Y
      [PATCH] Catch notification of memory add event of ACPI via container driver.... · 1f425994
      Yasunori Goto 提交于
      [PATCH] Catch notification of memory add event of ACPI via container driver. (register start func for memory device)
      
      This is a patch to call add_memroy() when notify reaches for new node's add
      event.
      
      When new node is added, notify of ACPI reaches container device which means
      the node.
      
      Container device driver calls acpi_bus_scan() to find and add belonging
      devices (which means cpu, memory and so on).  Its function calls add and
      start function of belonging devices's driver.
      
      Howevever, current memory hotplug driver just register add function to
      create sysfs file for its memory.  But, acpi_memory_enable_device() is not
      called because it is considered just the case that notify reaches memory
      device directly.  So, if notify reaches container device nothing can call
      add_memory().
      
      This is a patch to create start function which calls add_memory().
      add_memory() can be called by this when notify reaches container device.
      
      [akpm@osdl.org: coding cleanups]
      Signed-off-by: NYasunori Goto <y-goto@jp.fujitsu.com>
      Cc: "Brown, Len" <len.brown@intel.com>
      Cc: Dave Hansen <haveblue@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      1f425994
    • K
      [PATCH] acpi memory hotplug cannot manage _CRS with plural resoureces · 9ac02398
      KAMEZAWA Hiroyuki 提交于
      Current acpi memory hotplug just looks into the first entry of resources in
      _CRS.  But, _CRS can contain plural resources.  So, if _CRS contains plural
      resoureces, acpi memory hot add cannot add all memory.
      
      With this patch, acpi memory hotplug can deal with Memory Device, whose
      _CRS contains plural resources.
      
      Tested on ia64 memory hotplug test envrionment (not emulation, uses alpha
      version firmware which supports dynamic reconfiguration of NUMA.)
      
      Note: Microsoft's Windows Server 2003 requires big (>4G)resoureces to be
            divided into small (<4G) resources. looks crazy, but not invalid.
            (See http://www.microsoft.com/whdc/system/pnppwr/hotadd/hotaddmem.mspx)
            For this reason, a firmware vendor who supports Windows writes plural
            resources in a _CRS even if they are contiguous.
      Signed-off-by: NKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: NKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: "Brown, Len" <len.brown@intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9ac02398
  4. 27 6月, 2006 11 次提交
  5. 26 6月, 2006 1 次提交
  6. 24 6月, 2006 1 次提交
  7. 23 6月, 2006 2 次提交
  8. 20 6月, 2006 1 次提交
  9. 16 6月, 2006 2 次提交
  10. 14 6月, 2006 7 次提交
    • 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
    • A
      ACPI: execute Notify() handlers on new thread · b8d35192
      Alexey Starikovskiy 提交于
      http://bugzilla.kernel.org/show_bug.cgi?id=5534
      
      Thanks to Peter Wainwright for isolating the issue.
      Thanks to Andi Kleen and Bob Moore for feedback.
      Thanks to Richard Mace and others for testing.
      Updates by Konstantin Karasyov.
      Signed-off-by: NKonstantin Karasyov <konstantin.a.karasyov@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      b8d35192
    • 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
    • B
      ACPI: ACPICA 20060331 · 793c2388
      Bob Moore 提交于
      Implemented header file support for the following
      additional ACPI tables: ASF!, BOOT, CPEP, DBGP, MCFG, SPCR,
      SPMI, TCPA, and WDRT. With this support, all current and
      known ACPI tables are now defined in the ACPICA headers and
      are available for use by device drivers and other software.
      
      Implemented support to allow tables that contain ACPI
      names with invalid characters to be loaded. Previously,
      this would cause the table load to fail, but since
      there are several known cases of such tables on
      existing machines, this change was made to enable
      ACPI support for them. Also, this matches the
      behavior of the Microsoft ACPI implementation.
      https://bugzilla.novell.com/show_bug.cgi?id=147621
      
      Fixed a couple regressions introduced during the memory
      optimization in the 20060317 release. The namespace
      node definition required additional reorganization and
      an internal datatype that had been changed to 8-bit was
      restored to 32-bit. (Valery Podrezov)
      
      Fixed a problem where a null pointer passed to
      acpi_ut_delete_generic_state() could be passed through
      to acpi_os_release_object which is unexpected. Such
      null pointers are now trapped and ignored, matching
      the behavior of the previous implementation before the
      deployment of acpi_os_release_object().  (Valery Podrezov,
      Fiodor Suietov)
      
      Fixed a memory mapping leak during the deletion of
      a SystemMemory operation region where a cached memory
      mapping was not deleted. This became a noticeable problem
      for operation regions that are defined within frequently
      used control methods. (Dana Meyers)
      
      Reorganized the ACPI table header files into two main
      files: one for the ACPI tables consumed by the ACPICA core,
      and another for the miscellaneous ACPI tables that are
      consumed by the drivers and other software. The various
      FADT definitions were merged into one common section and
      three different tables (ACPI 1.0, 1.0+, and 2.0)
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      793c2388
    • B
      [ACPI] ACPICA 20060317 · 61686124
      Bob Moore 提交于
      Implemented the use of a cache object for all internal
      namespace nodes. Since there are about 1000 static nodes
      in a typical system, this will decrease memory use for
      cache implementations that minimize per-allocation overhead
      (such as a slab allocator.)
      
      Removed the reference count mechanism for internal
      namespace nodes, since it was deemed unnecessary. This
      reduces the size of each namespace node by about 5%-10%
      on all platforms. Nodes are now 20 bytes for the 32-bit
      case, and 32 bytes for the 64-bit case.
      
      Optimized several internal data structures to reduce
      object size on 64-bit platforms by packing data within
      the 64-bit alignment. This includes the frequently used
      ACPI_OPERAND_OBJECT, of which there can be ~1000 static
      instances corresponding to the namespace objects.
      
      Added two new strings for the predefined _OSI method:
      "Windows 2001.1 SP1" and "Windows 2006".
      
      Split the allocation tracking mechanism out to a separate
      file, from utalloc.c to uttrack.c. This mechanism appears
      to be only useful for application-level code. Kernels may
      wish to not include uttrack.c in distributions.
      
      Removed all remnants of the obsolete ACPI_REPORT_* macros
      and the associated code. (These macros have been replaced
      by the ACPI_ERROR and ACPI_WARNING macros.)
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      61686124
新手
引导
客服 返回
顶部