1. 22 7月, 2007 2 次提交
    • D
      x86_64: fake pxm-to-node mapping for fake numa · 3484d798
      David Rientjes 提交于
      For NUMA emulation, our SLIT should represent the true NUMA topology of the
      system but our proximity domain to node ID mapping needs to reflect the
      emulated state.
      
      When NUMA emulation has successfully setup fake nodes on the system, a new
      function, acpi_fake_nodes() is called.  This function determines the proximity
      domain (_PXM) for each true node found on the system.  It then finds which
      emulated nodes have been allocated on this true node as determined by its
      starting address.  The node ID to PXM mapping is changed so that each fake
      node ID points to the PXM of the true node that it is located on.
      
      If the machine failed to register a SLIT, then we assume there is no special
      requirement for emulated node affinity so we use the default LOCAL_DISTANCE,
      which is newly exported to this code, as our measurement if the emulated nodes
      appear in the same PXM.  Otherwise, we use REMOTE_DISTANCE.
      
      PXM_INVAL and NID_INVAL are also exported to the ACPI header file so that we
      can compare node_to_pxm() results in generic code (in this case, the SRAT
      code).
      
      Cc: Len Brown <lenb@kernel.org>
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3484d798
    • D
      x86_64: various cleanups in NUMA scan node · ae2c6dcf
      David Rientjes 提交于
      In acpi_scan_nodes(), we immediately return -1 if acpi_numa <= 0, meaning
      we haven't detected any underlying ACPI topology or we have explicitly
      disabled its use from the command-line with numa=noacpi.
      
      acpi_table_print_srat_entry() and acpi_table_parse_srat() are only
      referenced within drivers/acpi/numa.c, so we can mark them as static and
      remove their prototypes from the header file.
      
      Likewise, pxm_to_node_map[] and node_to_pxm_map[] are only used within
      drivers/acpi/numa.c, so we mark them as static and remove their externs
      from the header file.
      
      The automatic 'result' variable is unused in acpi_numa_init(), so it's
      removed.
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ae2c6dcf
  2. 20 7月, 2007 2 次提交
  3. 10 5月, 2007 1 次提交
    • L
      acpi,msi-laptop: Fall back to EC polling mode for MSI laptop specific EC commands · 00eb43a1
      Lennart Poettering 提交于
      The ACPI EC that is used in MSI laptops knows some non-standard
      commands for changing the screen brighntess and a few other things,
      which are used by the msi-laptop.c driver. Unfortunately for these
      commands no GPE events for IBF and OBF are triggered. Since nowadays
      the EC code uses the ec_intr=1 mode by default, this causes these
      operations to timeout, although they don't fail. In result, all
      operations that you can do with the msi-laptop.c driver take more or
      less 1s to complete, which is awfully slow.
      
      In one of the more recent kernels (2.6.20?) the EC subsystem has been
      revamped. With that change the EC timeout has been increased. before
      that increase the MSI EC accesses were slow -- but not *that* slow,
      hence I took notice of this limitation of the MSI EC hardware only very
      recently.
      
      The standard EC operations on the MSI EC as defined in the ACPI spec
      support GPE events properly.
      
      The following patch adds a new argument "force_poll" to the
      ec_transaction() function (and friends). If set to 1, the function
      will poll for IBF/OBF even if ec_intr=1 is enabled. If set to 0 the
      current behaviour is used. The msi-laptop driver is modified to make
      use of this new flag, so that OBF/IBF is polled for the special MSI EC
      transactions -- but only for them.
      Signed-off-by: NLennart Poettering <mzxreary@0pointer.de>
      Acked-by: NAlexey Starikovskiy <aystarik@gmail.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      00eb43a1
  4. 13 2月, 2007 2 次提交
  5. 03 2月, 2007 5 次提交
  6. 05 1月, 2007 1 次提交
    • J
      ACPI: Altix: ACPI _PRT support · 3948ec94
      John Keller 提交于
      Provide ACPI _PRT support for SN Altix systems.
      
      The SN Altix platform does not conform to the
      IOSAPIC IRQ routing model, so a new acpi_irq_model
      (ACPI_IRQ_MODEL_PLATFORM) has been defined. The SN
      platform specific code sets acpi_irq_model to
      this new value, and keys off of it in acpi_register_gsi()
      to avoid the iosapic code path.
      Signed-off-by: NJohn Keller <jpk@sgi.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      3948ec94
  7. 14 10月, 2006 1 次提交
    • L
      ACPI: consolidate functions in acpi ec driver · d7a76e4c
      Lennart Poettering 提交于
      Unify the following functions:
      
          acpi_ec_poll_read()
          acpi_ec_poll_write()
          acpi_ec_poll_query()
          acpi_ec_intr_read()
          acpi_ec_intr_write()
          acpi_ec_intr_query()
      
      into:
      
          acpi_ec_poll_transaction()
          acpi_ec_intr_transaction()
      
      These new functions take as arguments an ACPI EC command, a few bytes
      to write to the EC data register and a buffer for a few bytes to read
      from the EC data register. The old _read(), _write(), _query() are
      just special cases of these functions.
      
      Then unified the code in acpi_ec_poll_transaction() and
      acpi_ec_intr_transaction() a little more. Both functions are now just
      wrappers around the new acpi_ec_transaction_unlocked() function. The
      latter contains the EC access logic, the two original
      function now just do their special way of locking and call the the
      new function for the actual work.
      
      This saves a lot of very similar code. The primary reason for doing
      this, however, is that my driver for MSI 270 laptops needs to issue
      some non-standard EC commands in a safe way. Due to this I added a new
      exported function similar to ec_write()/ec_write() which is called
      ec_transaction() and is essentially just a wrapper around
      acpi_ec_{poll,intr}_transaction().
      Signed-off-by: NLennart Poettering <mzxreary@0pointer.de>
      Acked-by: NLuming Yu <luming.yu@intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      d7a76e4c
  8. 28 6月, 2006 1 次提交
  9. 23 6月, 2006 1 次提交
  10. 26 4月, 2006 1 次提交
  11. 21 2月, 2006 1 次提交
    • P
      [PATCH] suspend-to-ram: allow video options to be set at runtime · c255d844
      Pavel Machek 提交于
      Currently, acpi video options can only be set on kernel command line.  That's
      little inflexible; I'd like userland s2ram application that just works, and
      modifying kernel command line according to whitelist is not fun.  It is better
      to just allow s2ram application to set video options just before suspend
      (according to the whitelist).
      
      This implements sysctl to allow setting suspend video options without reboot.
      
      (akpm: Documentation updates for this new sysctl are pending..)
      Signed-off-by: NPavel Machek <pavel@suse.cz>
      Cc: "Brown, Len" <len.brown@intel.com>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c255d844
  12. 10 12月, 2005 1 次提交
    • B
      [ACPI] ACPICA 20050930 · 50eca3eb
      Bob Moore 提交于
      Completed a major overhaul of the Resource Manager code -
      specifically, optimizations in the area of the AML/internal
      resource conversion code. The code has been optimized to
      simplify and eliminate duplicated code, CPU stack use has
      been decreased by optimizing function parameters and local
      variables, and naming conventions across the manager have
      been standardized for clarity and ease of maintenance (this
      includes function, parameter, variable, and struct/typedef
      names.)
      
      All Resource Manager dispatch and information tables have
      been moved to a single location for clarity and ease of
      maintenance. One new file was created, named "rsinfo.c".
      
      The ACPI return macros (return_ACPI_STATUS, etc.) have
      been modified to guarantee that the argument is
      not evaluated twice, making them less prone to macro
      side-effects. However, since there exists the possibility
      of additional stack use if a particular compiler cannot
      optimize them (such as in the debug generation case),
      the original macros are optionally available.  Note that
      some invocations of the return_VALUE macro may now cause
      size mismatch warnings; the return_UINT8 and return_UINT32
      macros are provided to eliminate these. (From Randy Dunlap)
      
      Implemented a new mechanism to enable debug tracing for
      individual control methods. A new external interface,
      acpi_debug_trace(), is provided to enable this mechanism. The
      intent is to allow the host OS to easily enable and disable
      tracing for problematic control methods. This interface
      can be easily exposed to a user or debugger interface if
      desired. See the file psxface.c for details.
      
      acpi_ut_callocate() will now return a valid pointer if a
      length of zero is specified - a length of one is used
      and a warning is issued. This matches the behavior of
      acpi_ut_allocate().
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      50eca3eb
  13. 26 8月, 2005 1 次提交
  14. 25 8月, 2005 2 次提交
  15. 05 8月, 2005 2 次提交
  16. 30 7月, 2005 1 次提交
  17. 12 7月, 2005 2 次提交
  18. 28 6月, 2005 2 次提交
    • G
      [PATCH] PCI: add proper MCFG table parsing to ACPI core. · 54549391
      Greg Kroah-Hartman 提交于
      This patch is the first step in properly handling the MCFG PCI table.
      It defines the structures properly, and saves off the table so that the
      pci mmconfig code can access it.  It moves the parsing of the table a
      little later in the boot process, but still before the information is
      needed.
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      54549391
    • K
      [PATCH] ACPI based I/O APIC hot-plug: add interfaces · b1bb248a
      Kenji Kaneshige 提交于
      This patch adds the following new interfaces for I/O xAPIC
      hotplug. The implementation of these interfaces depends on each
      architecture.
      
          o int acpi_register_ioapic(acpi_handle handle, u64 phys_addr,
      			       u32 gsi_base);
      
              This new interface is to add a new I/O xAPIC specified by
              phys_addr and gsi_base pair. phys_addr is the physical address
              to which the I/O xAPIC is mapped and gsi_base is global system
              interrupt base of the I/O xAPIC. acpi_register_ioapic returns
              0 on success, or negative value on error.
      
          o int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base);
      
              This new interface is to remove a I/O xAPIC specified by
              gsi_base. acpi_unregister_ioapic returns 0 on success, or
              negative value on error.
      Signed-off-by: NKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b1bb248a
  19. 07 6月, 2005 1 次提交
  20. 27 5月, 2005 1 次提交
  21. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4