24 Mar, 2006

2 commits


27 Feb, 2006

2 commits

  • ACPI is initialized very early on x86-64, before the DMI code is
    initialized. This means it would often discover a 0 year and then turn
    off ACPI because it thought the BIOS was too old. Some systems don't
    boot without ACPI so this was a problem.

    I have a full fix by adding new very early DMI detection, but it needs
    more testing before it can be merged. For 2.6.16 let's just turn the
    check off. It never made much sense anyways because there are no x86-64
    systems older than 2002 or so and they generally all have working ACPI.

    Cc: len.brown@intel.com

    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • This makes x86-64 use the common X86_PM_TIMER Kconfig entry in drivers/acpi

    And since PM timer is needed for correct timing on a lot of systems
    now (e.g. AMD dual cores) and we often get bug reports from people
    who forgot to set it make it depend on CONFIG_EMBEDDED. x86-64 had
    this change before and it's a good thing.

    I also fixed the description slightly to make this more clear.

    Cc: len.brown@intel.com

    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     

18 Feb, 2006

1 commit

  • acpi_rs_get_list_length() needs to account for all the vendor-defined data
    bytes. Failing to include these causes buffers to be sized too small,
    which causes slab corruption when we later convert AML to resources and run
    off the end of the buffer.

    This causes slab corruption on machines that use ACPI vendor-defined
    resources. All HP ia64 machines do, and I'm told that some NEC machines
    may as well.

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

    Bjorn Helgaas
     

05 Feb, 2006

2 commits


31 Jan, 2006

1 commit

  • Implemented support in the Resource Manager to allow
    unresolved namestring references within resource package
    objects for the _PRT method. This support is in addition
    to the previously implemented unresolved reference
    support within the AML parser. If the interpreter slack
    mode is enabled (true on Linux unless acpi=strict),
    these unresolved references will be passed through
    to the caller as a NULL package entry.
    http://bugzilla.kernel.org/show_bug.cgi?id=5741

    Implemented and deployed new macros and functions for
    error and warning messages across the subsystem. These
    macros are simpler and generate less code than their
    predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,
    ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_*
    macros.

    Implemented the acpi_cpu_flags type to simplify host OS
    integration of the Acquire/Release Lock OSL interfaces.
    Suggested by Steven Rostedt and Andrew Morton.

    Fixed a problem where Alias ASL operators are sometimes
    not correctly resolved. causing AE_AML_INTERNAL
    http://bugzilla.kernel.org/show_bug.cgi?id=5189
    http://bugzilla.kernel.org/show_bug.cgi?id=5674

    Fixed several problems with the implementation of the
    ConcatenateResTemplate ASL operator. As per the ACPI
    specification, zero length buffers are now treated as a
    single EndTag. One-length buffers always cause a fatal
    exception. Non-zero length buffers that do not end with
    a full 2-byte EndTag cause a fatal exception.

    Fixed a possible structure overwrite in the
    AcpiGetObjectInfo external interface. (With assistance
    from Thomas Renninger)

    Signed-off-by: Bob Moore
    Signed-off-by: Len Brown

    Bob Moore
     

28 Jan, 2006

1 commit


27 Jan, 2006

1 commit


25 Jan, 2006

1 commit


20 Jan, 2006

2 commits

  • Added 2006 copyright.

    At SuSE's suggestion, enabled all error messages
    without enabling function tracing, ie with CONFIG_ACPI_DEBUG=n

    Replaced all instances of the ACPI_DEBUG_PRINT macro invoked at
    the ACPI_DB_ERROR and ACPI_DB_WARN debug levels with
    the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
    respectively. This preserves all error and warning messages
    in the non-debug version of the ACPICA code (this has been
    referred to as the "debug lite" option.) Over 200 cases
    were converted to create a total of over 380 error/warning
    messages across the ACPICA code. This increases the code
    and data size of the default non-debug version by about 13K.
    Added ACPI_NO_ERROR_MESSAGES flag to enable deleting all messages.
    The size of the debug version remains about the same.

    Signed-off-by: Bob Moore
    Signed-off-by: Len Brown

    Bob Moore
     
  • This check, added in ACPICA 20051021, was overly paranoid.

    Signed-off-by: Len Brown

    Len Brown
     

17 Jan, 2006

1 commit


15 Jan, 2006

1 commit


12 Jan, 2006

1 commit

  • Whenever we see that a CPU is capable of C3 (during ACPI cstate init), we
    disable local APIC timer and switch to using a broadcast from external timer
    interrupt (IRQ 0). This is needed because Intel CPUs stop the local
    APIC timer in C3. This is currently only enabled for Intel CPUs.

    Patch below adds the code for i386 and also the ACPI hunk.

    Signed-off-by: Venkatesh Pallipadi
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Venkatesh Pallipadi
     

10 Jan, 2006

1 commit


09 Jan, 2006

1 commit

  • According to the TCG specifications measurements or hashes of the BIOS code
    and data are extended into TPM PCRS and a log is kept in an ACPI table of
    these extensions for later validation if desired. This patch exports the
    values in the ACPI table through a security-fs seq_file.

    Signed-off-by: Seiji Munetoh
    Signed-off-by: Stefan Berger
    Signed-off-by: Reiner Sailer
    Signed-off-by: Kylene Hall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kylene Jo Hall
     

08 Jan, 2006

1 commit


07 Jan, 2006

7 commits


05 Jan, 2006

2 commits

  • In ACPICA 20051117, acpi_walk_resources() started
    sending ACPI_RESOURCE_TYPE_END_TAG to the callback
    routine which wasn't prepared for it, causing
    _CRS to fail and PnPACPI to not recognize any devices:

    pnp: ACPI device : hid PNP0C02
    pnp: PnPACPI: unknown resource type 7
    pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0c02

    Signed-off-by: Len Brown

    Len Brown
     
  • Leave the overloaded "hotplug" word to susbsystems which are handling
    real devices. The driver core does not "plug" anything, it just exports
    the state to userspace and generates events.

    Signed-off-by: Kay Sievers
    Signed-off-by: Greg Kroah-Hartman

    Kay Sievers
     

04 Jan, 2006

3 commits


30 Dec, 2005

1 commit


29 Dec, 2005

1 commit

  • The code used to rely on a certain method to return a NULL buffer, which
    is now hardly possible with the implicit return code on by default. This
    sort of fixes bugs #5067 and #5092 for now.

    Note: this patch makes the driver unusable on said machines (and on said
    machines only) iff acpi=strict is specified, but it seems noone really uses
    that.

    Signed-off-by: Karol Kozimor
    Signed-off-by: Len Brown

    Karol Kozimor
     

28 Dec, 2005

2 commits

  • typecheck complains on i386 that u32 != unsigned long

    Signed-off-by: Len Brown

    Len Brown
     
  • Implemented optional support to allow unresolved names
    within ASL Package objects. A null object is inserted in
    the package when a named reference cannot be located in
    the current namespace. Enabled via the interpreter slack
    flag which Linux has enabled by default (acpi=strict
    to disable slack). This should eliminate AE_NOT_FOUND
    exceptions seen on machines that contain such code.

    Implemented an optimization to the initialization
    sequence that can improve boot time. During ACPI device
    initialization, the _STA method is now run if and only
    if the _INI method exists. The _STA method is used to
    determine if the device is present; An _INI can only be
    run if _STA returns present, but it is a waste of time to
    run the _STA method if the _INI does not exist. (Prototype
    and assistance from Dong Wei)

    Implemented use of the C99 uintptr_t for the pointer
    casting macros if it is available in the current
    compiler. Otherwise, the default (void *) cast is used
    as before.

    Fixed some possible memory leaks found within the
    execution path of the Break, Continue, If, and CreateField
    operators. (Valery Podrezov)

    Fixed a problem introduced in the 20051202 release where
    an exception is generated during method execution if a
    control method attempts to declare another method.

    Signed-off-by: Bob Moore
    Signed-off-by: Len Brown

    Bob Moore
     

23 Dec, 2005

4 commits


21 Dec, 2005

1 commit