24 Jul, 2007

1 commit

  • Modify modpost (file2alias.c) to add acpi*:XYZ0001: alias in modules.alias
    like:
    grep acpi /lib/modules/2.6.22-rc4-default/modules.alias
    alias acpi*:SNY5001:* sony_laptop
    alias acpi*:SNY6001:* sony_laptop
    for e.g. the sony_laptop module.
    This module matches against all ACPI devices with a HID or CID of SNY5001
    or SNY6001

    Export an uevent and modalias sysfs file containing the string:
    [MODALIAS=]acpi:PNP0C0C:
    additional CIDs are concatenated at the end.

    Signed-off-by: Thomas Renninger
    Signed-off-by: Kay Sievers
    Signed-off-by: Len Brown

    Thomas Renninger
     

22 Jul, 2007

2 commits

  • 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
    Signed-off-by: David Rientjes
    Signed-off-by: Andrew Morton
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    David Rientjes
     
  • In acpi_scan_nodes(), we immediately return -1 if acpi_numa
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    David Rientjes
     

20 Jul, 2007

2 commits

  • Move "debug during resume from s2ram" into the variable we already use
    for real-mode flags to simplify code. It also closes nasty trap for
    the user in acpi_sleep_setup; order of parameters actually mattered there,
    acpi_sleep=s3_bios,s3_mode doing something different from
    acpi_sleep=s3_mode,s3_bios.

    Signed-off-by: Pavel Machek
    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     
  • Add a feature allowing the user to make the system beep during a resume from
    suspend to RAM, on x86_64 and i386.

    This is useful for the users with broken resume from RAM, so that they can
    verify if the control reaches the kernel after a wake-up event.

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nigel Cunningham
     

10 May, 2007

1 commit

  • 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: Lennart Poettering
    Acked-by: Alexey Starikovskiy
    Signed-off-by: Len Brown

    Lennart Poettering
     

13 Feb, 2007

2 commits


03 Feb, 2007

5 commits


05 Jan, 2007

1 commit

  • 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: John Keller
    Signed-off-by: Len Brown

    John Keller
     

14 Oct, 2006

1 commit

  • 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: Lennart Poettering
    Acked-by: Luming Yu
    Signed-off-by: Andrew Morton
    Signed-off-by: Len Brown

    Lennart Poettering
     

28 Jun, 2006

1 commit

  • 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: Yasunori Goto
    Cc: Dave Hansen
    Cc: "Brown, Len"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yasunori Goto
     

23 Jun, 2006

1 commit

  • Consolidate the various arch-specific implementations of pxm_to_node() and
    node_to_pxm() into a single generic version.

    Signed-off-by: Yasunori Goto
    Cc: "Luck, Tony"
    Cc: Andi Kleen
    Cc: Dave Hansen
    Cc: "Brown, Len"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yasunori Goto
     

26 Apr, 2006

1 commit


21 Feb, 2006

1 commit

  • 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: Pavel Machek
    Cc: "Brown, Len"
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     

10 Dec, 2005

1 commit

  • 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: Bob Moore
    Signed-off-by: Len Brown

    Bob Moore
     

26 Aug, 2005

1 commit

  • Delete the ability to build an ACPI kernel that does
    not include PCI support. When such a machine is created
    and it requires a tuned kernel, send a patch.

    http://bugzilla.kernel.org/show_bug.cgi?id=1364

    Signed-off-by: Len Brown

    Len Brown
     

25 Aug, 2005

2 commits


05 Aug, 2005

3 commits

  • Signed-off-by: Len Brown

    Len Brown
     
  • Signed-off-by: Andrew Morton
    Signed-off-by: Len Brown

    Andrew Morton
     
  • Current acpi_register_gsi() function has no way to indicate errors to its
    callers even though acpi_register_gsi() can fail to register gsi because of
    some reasons (out of memory, lack of interrupt vectors, incorrect BIOS, and so
    on). As a result, caller of acpi_register_gsi() cannot handle the case that
    acpi_register_gsi() fails. I think failure of acpi_register_gsi() should be
    handled properly.

    This series of patches changes acpi_register_gsi() to return negative value on
    error, and also changes callers of acpi_register_gsi() to handle failure of
    acpi_register_gsi().

    This patch changes the type of return value of acpi_register_gsi() from
    "unsigned int" to "int" to indicate an error. If acpi_register_gsi() fails to
    register gsi, it returns negative value.

    Signed-off-by: Kenji Kaneshige
    Signed-off-by: Andrew Morton
    Signed-off-by: Len Brown

    Kenji Kaneshige
     

30 Jul, 2005

2 commits


13 Jul, 2005

1 commit


12 Jul, 2005

2 commits


28 Jun, 2005

2 commits

  • 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: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • 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: Kenji Kaneshige
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Kenji Kaneshige
     

07 Jun, 2005

1 commit

  • I'm not sure why this issue is suddenly showing, but without this
    patchlet, the zx1 config won't compile anymore (e.g., to see the
    compilation-error, look for "***" in [1]).

    [1] http://www.gelato.unsw.edu.au/kerncomp/results//2005-06-06-17-00/zx1_defconfig-log.html

    Signed-off-by: David Mosberger-Tang
    Cc: "Brown, Len"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Mosberger
     

27 May, 2005

1 commit

  • Delete quirk_via_bridge(), restore quirk_via_irqpic() -- but now
    improved to be invoked upon device ENABLE, and now only for VIA devices
    -- not all devices behind VIA bridges.

    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Len Brown
     

17 Apr, 2005

1 commit

  • 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!

    Linus Torvalds