01 May, 2008

4 commits

  • acpi_device_dir() is NULL until all files are createst, so everyting is
    created in straight in /proc/ and creation code warns.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (179 commits)
    ACPI: Fix acpi_processor_idle and idle= boot parameters interaction
    acpi: fix section mismatch warning in pnpacpi
    intel_menlo: fix build warning
    ACPI: Cleanup: Remove unneeded, multiple local dummy variables
    ACPI: video - fix permissions on some proc entries
    ACPI: video - properly handle errors when registering proc elements
    ACPI: video - do not store invalid entries in attached_array list
    ACPI: re-name acpi_pm_ops to acpi_suspend_ops
    ACER_WMI/ASUS_LAPTOP: fix build bug
    thinkpad_acpi: fix possible NULL pointer dereference if kstrdup failed
    ACPI: check a return value correctly in acpi_power_get_context()
    #if 0 acpi/bay.c:eject_removable_drive()
    eeepc-laptop: add hwmon fan control
    eeepc-laptop: add backlight
    eeepc-laptop: add base driver
    ACPI: thinkpad-acpi: bump up version to 0.20
    ACPI: thinkpad-acpi: fix selects in Kconfig
    ACPI: thinkpad-acpi: use a private workqueue
    ACPI: thinkpad-acpi: fluff really minor fix
    ACPI: thinkpad-acpi: use uppercase for "LED" on user documentation
    ...

    Fixed conflicts in drivers/acpi/video.c and drivers/misc/intel_menlow.c
    manually.

    Linus Torvalds
     
  • …-9916', 'ec', 'eeepc', 'idle', 'misc', 'pm-legacy', 'sysfs-links-2.6.26', 'thermal', 'thinkpad' and 'video' into release

    Len Brown
     
  • acpi_processor_idle and "idle=" boot parameter interaction is broken.
    The problem is that, at boot time acpi driver is checking for "idle=" boot
    option and not registering the acpi idle handler. But, when there is a CST
    changed callback (typically when switching AC battery or suspend-resume)
    there are no checks for boot_option_idle_override and acpi idle handler tries
    to get installed with nasty side effects.

    With CPU_IDLE configured this issue causes results in a nasty oops on CST
    change callback and without CPU_IDLE there is no oops, but boot option
    of "idle=" gets ignored and acpi idle handler gets installed.

    Change the behavior to not do anything in acpi idle handler when there is a
    "idle=" boot option.

    Note that the problem is only there when "idle=" boot option is used.

    Signed-off-by: Venkatesh Pallipadi
    Signed-off-by: Len Brown

    Venkatesh Pallipadi
     

30 Apr, 2008

1 commit

  • Legacy HP ia64 platforms currently cannot provide
    /proc/cpuinfo/physical_id due to legacy SAL/PAL implementations.
    However, that physical topology information can be obtained
    via ACPI.

    Provide an interface that gives ACPI one last chance to provide
    physical_id for these legacy platforms. This logic only comes
    into play iff:

    - ACPI actually provides slot information for the CPU
    - we lack a valid socket_id

    Otherwise, we don't do anything.

    Since x86 uses the ACPI processor driver as well, we provide a nop
    stub function for arch_fix_phys_package_id() in asm-x86/topology.h

    Signed-off-by: Alex Chiang
    Signed-off-by: Tony Luck

    Alex Chiang
     

29 Apr, 2008

17 commits


28 Apr, 2008

1 commit

  • drivers/acpi/thermal.c: In function 'acpi_thermal_init':
    drivers/acpi/thermal.c:1794: error: 'thermal_dmi_table' undeclared (first use in this function)
    drivers/acpi/thermal.c:1794: error: (Each undeclared identifier is reported only once
    drivers/acpi/thermal.c:1794: error: for each function it appears in.)

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     

27 Apr, 2008

2 commits

  • OK, so 25-mm1 gave a lockdep error which made me look into this.

    The first thing that I noticed was the horrible mess; the second thing I
    saw was hacks like: 71e93d15612c61c2e26a169567becf088e71b8ff

    The problem is that arch idle routines are somewhat inconsitent with
    their IRQ state handling and instead of fixing _that_, we go paper over
    the problem.

    So the thing I've tried to do is set a standard for idle routines and
    fix them all up to adhere to that. So the rules are:

    idle routines are entered with IRQs disabled
    idle routines will exit with IRQs enabled

    Nearly all already did this in one form or another.

    Merge the 32 and 64 bit bits so they no longer have different bugs.

    As for the actual lockdep warning; __sti_mwait() did a plainly un-annotated
    irq-enable.

    Signed-off-by: Peter Zijlstra
    Tested-by: Bob Copeland
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • This path adds validation of the MMCONFIG table against the ACPI reserved
    motherboard resources. If the MMCONFIG table is found to be reserved in
    ACPI, we don't bother checking the E820 table. The PCI Express firmware
    spec apparently tells BIOS developers that reservation in ACPI is required
    and E820 reservation is optional, so checking against ACPI first makes
    sense. Many BIOSes don't reserve the MMCONFIG region in E820 even though
    it is perfectly functional, the existing check needlessly disables MMCONFIG
    in these cases.

    In order to do this, MMCONFIG setup has been split into two phases. If PCI
    configuration type 1 is not available then MMCONFIG is enabled early as
    before. Otherwise, it is enabled later after the ACPI interpreter is
    enabled, since we need to be able to execute control methods in order to
    check the ACPI reserved resources. Presently this is just triggered off
    the end of ACPI interpreter initialization.

    There are a few other behavioral changes here:

    - Validate all MMCONFIG configurations provided, not just the first one.

    - Validate the entire required length of each configuration according to
    the provided ending bus number is reserved, not just the minimum required
    allocation.

    - Validate that the area is reserved even if we read it from the chipset
    directly and not from the MCFG table. This catches the case where the
    BIOS didn't set the location properly in the chipset and has mapped it
    over other things it shouldn't have.

    This also cleans up the MMCONFIG initialization functions so that they
    simply do nothing if MMCONFIG is not compiled in.

    Based on an original patch by Rajesh Shah from Intel.

    [akpm@linux-foundation.org: many fixes and cleanups]
    Signed-off-by: Robert Hancock
    Signed-off-by: Andi Kleen
    Cc: Andrew Morton
    Cc: Greg KH
    Signed-off-by: Thomas Gleixner
    Tested-by: Andi Kleen
    Cc: Rajesh Shah
    Cc: Jesse Barnes
    Acked-by: Linus Torvalds
    Cc: Andi Kleen
    Cc: Greg KH
    Signed-off-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Thomas Gleixner

    Robert Hancock
     

25 Apr, 2008

2 commits


24 Apr, 2008

1 commit


23 Apr, 2008

12 commits

  • Fixed a problem with the CreateField, CreateXXXField (Bit, Byte,
    Word, Dword, Qword), Field, BankField, and IndexField operators
    when invoked from inside an executing control method. In this case,
    these operators created namespace nodes that were incorrectly
    left marked as permanent nodes instead of temporary nodes. This
    could cause a problem if there is race condition between an
    exiting control method and a running namespace walk. (Reported
    by Linn Crosetto). Fixed a problem where the CreateField and
    CreateXXXField operators would incorrectly allow duplicate names
    (the name of the field) with no exception generated.

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

    Bob Moore
     
  • Implemented several changes for Notify handling: Added support
    for new Notify values (ACPI 2.0+) and improved the Notify debug
    output. Notify on PowerResource objects is no longer allowed,
    as per the ACPI specification.

    Signed-off-by: Zhang Rui
    Signed-off-by: Bob Moore
    Signed-off-by: Alexey Starikovskiy
    Signed-off-by: Len Brown

    Zhang Rui
     
  • Fixed a couple of size calculation issues with the variable-length
    Start Dependent resource descriptor.

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

    Bob Moore
     
  • Implemented several improvements for the output of the ASL "Debug"
    object to clarify and keep all data for a given object on one
    output line.

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

    Bob Moore
     
  • All Reference Objects returned via the AcpiEvaluteObject interface
    are now marked as type "REFERENCE" instead of "ANY". The type ANY
    is now reservered for NULL objects - either NULL package elements
    or unresolved named references.

    Signed-off-by: Bob Moore
    Signed-off-by: Alexey Starikovskiy
    Signed-off-by: Lin Ming
    Signed-off-by: Len Brown

    Bob Moore
     
  • Fixed problem where NULL package elements were not returned to
    the AcpiEvaluateObject interface correctly. Instead of returning a
    NULL ACPI_OBJECT package element, the element was simply ignored,
    potentially causing a buffer overflow and/or confusing the caller
    who expected a fixed number of elements.

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

    Signed-off-by: Lin Ming
    Signed-off-by: Bob Moore
    Signed-off-by: Alexey Starikovskiy
    Signed-off-by: Len Brown

    Lin Ming
     
  • Fixed a problem where an extraneous debug message was produced for
    package objects (when debugging enabled). The message "Package
    List length larger than NumElements count" is now produced in
    the correct case, and is also an error message rather than a
    debug message. Added a debug message for the opposite case, where
    NumElements is larger than the Package List, and the package has
    been padded out with NULL elements.

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

    Bob Moore
     
  • Fixed a problem where buffer and package objects passed as
    arguments to a control method via the external AcpiEvaluateObject
    interface could cause an AE_AML_INTERNAL exception depending on the
    order and type of operators executed by the target control method.

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

    Bob Moore
     
  • Fixed a problem where a CopyObject to RegionField, BankField, and
    IndexField objects did not perform an implicit conversion as it
    should. These types must retain their initial type permanently as
    per the ACPI specification. However, a CopyObject to all other
    object types should not perform an implicit conversion, as per
    the ACPI specification.

    http://www.acpica.org/bugzilla/show_bug.cgi?id=388

    Signed-off-by: Lin Ming
    Signed-off-by: Bob Moore
    Signed-off-by: Alexey Starikovskiy
    Signed-off-by: Len Brown

    Lin Ming
     
  • Fixed a problem where resource descriptor size optimization
    could cause a problem when a _CRS resource template is passed
    to a _SRS method. The _SRS resource template must use the same
    descriptors (with the same size) as returned from _CRS. This
    change affects the following resource descriptors: IRQ/IRQNoFlags
    and StartDependendentFn/StartDependentFnNoPri.

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

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

    Bob Moore
     
  • New messages for the 2 AE_SUPPORT cases.

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

    Bob Moore
     
  • Added missing va_end statements that should correspond with each
    va_start statement.

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

    Bob Moore