09 Sep, 2008

1 commit


06 Sep, 2008

1 commit

  • There's been a patch floating around for toshiba_acpi that exports an ad-hoc
    /proc interface to toggle the bluetooth adapter in a large number of Toshiba
    laptops. I'm not sure if it's still relevant for the latest models, but it is
    still required for older models such as my Tecra M3.

    This change pulls in the low level Toshiba-specific code from the old patch and
    sets up an rfkill device and a polled input device to track the state of the
    hardware kill-switch.

    Signed-off-by: Philip Langdale
    Acked-by: Henrique de Moraes Holschuh
    Signed-off-by: John W. Linville

    philipl@overt.org
     

04 Sep, 2008

2 commits


21 Aug, 2008

4 commits


18 Aug, 2008

2 commits


15 Aug, 2008

11 commits

  • …fix', 'wmi' and 'acpi-cleanups' into release-2.6.27

    Andi Kleen
     
  • Do not use unsigned int if there is test for negative number...

    See drivers/acpi/processor_perflib.c
    static unsigned int ignore_ppc = -1;
    ...
    if (event == CPUFREQ_START && ignore_ppc
    Signed-off-by: Andi Kleen

    Milan Broz
     
  • acpi_penalize_isa_irq() should validate irq before using it to
    index the acpi_irq_penalty[] table.

    Here's the path I'm concerned about:

    pnpacpi_parse_allocated_irqresource()
    {
    ...
    irq = acpi_register_gsi(gsi, triggering, polarity);
    if (irq >= 0)
    pcibios_penalize_isa_irq(irq, 1);

    There's no guarantee that acpi_register_gsi() will return an IRQ
    within the bounds of acpi_irq_penalty[].

    I have not seen a failure I can attribute to this. However,
    ACPI_MAX_IRQS is only 256, and I'm pretty sure ia64 can have
    IRQs larger than that.

    I think this should go in 2.6.27.

    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Andi Kleen

    Bjorn Helgaas
     
  • When EC is in Polling mode, OS will check the EC status continually by using
    the following source code:
    clear_bit(EC_FLAGS_WAIT_GPE, &ec->flags);
    while (time_before(jiffies, delay)) {
    if (acpi_ec_check_status(ec, event))
    return 0;
    msleep(1);
    }
    But msleep is realized by the function of schedule_timeout. At the same time
    although one process is already waken up by some events, it won't be scheduled
    immediately. So maybe there exists the following phenomena:
    a. The current jiffies is already after the predefined jiffies.
    But before timeout happens, OS has no chance to check the EC
    status again.
    b. If preemptible schedule is enabled, maybe preempt schedule will happen
    before checking loop. When the process is resumed again, maybe
    timeout already happens, which means that OS has no chance to check
    the EC status.

    In such case maybe EC status is already what OS expects when timeout happens.
    But OS has no chance to check the EC status and regards it as AE_TIME.

    So it will be more appropriate that OS will try to check the EC status again
    when timeout happens. If the EC status is what we expect, it won't be regarded
    as timeout. Only when the EC status is not what we expect, it will be regarded
    as timeout, which means that EC controller can't give a response in time.

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

    Signed-off-by: Zhao Yakui
    Signed-off-by: Zhang Rui
    Signed-off-by: Andi Kleen

    Zhao Yakui
     
  • On some ASUS laptops the ECDT gives the incorrect command/status & Data I/O
    register address.

    AK: it seems like the command/data addresses are exchanged.

    In such case it will cause that EC device can't be
    initialized correctly.
    To add the EC dmi table is to fix this issue. If the laptop falls into the
    EC dmi table, the EC command/data I/O address will be fixed.

    AK: Add comments describing this better

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

    Signed-off-by: Zhao Yakui
    tested-by : Jan Kasprzak
    Signed-off-by: Andi Kleen

    Zhao Yakui
     
  • Some devices emit a ACPI_NOTIFY_DEVICE_CHECK while physically unplugging
    even if the software undock has already been done and dock_present() check
    fails. However, the internal flags need to be cleared (complete_undock()).

    Also, even notify userspace if the dock station suddently went away
    without proper software undocking.

    This happens on a Acer TravelMate 3000

    Signed-off-by: Holger Macht
    Signed-off-by: Andi Kleen

    Holger Macht
     
  • Trivial cleanups for ACPI. Fix misspelling in printk(), fix mismerge,
    add file header.

    AK: removed file header

    Signed-off-by: Pavel Machek
    Signed-off-by: Andi Kleen

    Pavel Machek
     
  • Although the necessary data structure was set up, it was never actually
    passed in, so data block calls have only been working by sheer chance.

    (On Acer laptops. the data block methods we've been calling never look at
    the instance value, hence acer-wmi never triggered this before).

    f3454ae8104efb2dbf0d08ec42c6f5d0fe9225bc brought this to light.

    Signed-off-by: Carlos Corbacho
    Signed-off-by: Andi Kleen

    Carlos Corbacho
     
  • Add error check after all calls to acpi_ns_get_pathname_length.
    Add status return from acpi_ns_build_external_path and check after
    all calls. Add parameter validation to acpi_ut_initialize_buffer.

    Reported by and initial patch by Ingo Molnar.
    http://lkml.org/lkml/2008/7/21/176

    Signed-off-by: Bob Moore
    Signed-off-by: Lin Ming
    Signed-off-by: Andi Kleen

    Bob Moore
     
  • The DdbHandle returned by Load() does not have its reference count
    decremented during unload, leading to a memory leak. Lin Ming.

    Signed-off-by: Lin Ming
    Signed-off-by: Bob Moore
    Signed-off-by: Andi Kleen

    Lin Ming
     
  • Fixes a possible memory leak when thermal and processor objects
    are deleted. Any associated notify handlers (and objects) were
    not being deleted. Fiodor Suietov. BZ 506

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

    Signed-off-by: Fiodor Suietov
    Signed-off-by: Bob Moore
    Signed-off-by: Lin Ming
    Signed-off-by: Andi Kleen

    Bob Moore
     

02 Aug, 2008

1 commit

  • Some module parameters with only one line have the '\n' at the end of the
    description. This is not needed nor wanted as after the description the
    type (i.e. int) is followed by a newline.

    Some modules contain a multi-line description, these are not affected
    by this patch.

    Signed-off-by: Niels de Vos
    Acked-by: Randy Dunlap
    Cc: John W. Linville
    Cc: Ed L. Cashin
    Cc: Dave Airlie
    Cc: Roland Dreier
    Acked-by: Mauro Carvalho Chehab
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Niels de Vos
     

31 Jul, 2008

2 commits


29 Jul, 2008

4 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: (21 commits)
    x86/PCI: use dev_printk when possible
    PCI: add D3 power state avoidance quirk
    PCI: fix bogus "'device' may be used uninitialized" warning in pci_slot
    PCI: add an option to allow ASPM enabled forcibly
    PCI: disable ASPM on pre-1.1 PCIe devices
    PCI: disable ASPM per ACPI FADT setting
    PCI MSI: Don't disable MSIs if the mask bit isn't supported
    PCI: handle 64-bit resources better on 32-bit machines
    PCI: rewrite PCI BAR reading code
    PCI: document pci_target_state
    PCI hotplug: fix typo in pcie hotplug output
    x86 gart: replace to_pages macro with iommu_num_pages
    x86, AMD IOMMU: replace to_pages macro with iommu_num_pages
    iommu: add iommu_num_pages helper function
    dma-coherent: add documentation to new interfaces
    Cris: convert to using generic dma-coherent mem allocator
    Sh: use generic per-device coherent dma allocator
    ARM: support generic per-device coherent dma mem
    Generic dma-coherent: fix DMA_MEMORY_EXCLUSIVE
    x86: use generic per-device dma coherent allocator
    ...

    Linus Torvalds
     
  • I get warnings about 'device' possibly being used uninitialised. While
    I can deduce this is not true, it seems that GCC can't. This patch
    changes `check_slot' to return device on success and -1 on error, which
    shuts GCC up.

    Acked-by: Alex Chiang
    Signed-off-by: Matthew Wilcox
    Signed-off-by: Jesse Barnes

    Matthew Wilcox
     
  • Conflicts:

    kernel/stop_machine.c

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • Ingo Molnar
     

28 Jul, 2008

1 commit

  • pm_idle_save resp. pm_idle_old can be NULL when the restore code in
    acpi_processor_cst_has_changed() resp. cpuidle_uninstall_idle_handler()
    is called. This can set pm_idle unconditinally to NULL, which causes the
    kernel to panic when calling pm_idle in the x86 idle code. This was
    covered by an extra check for !pm_idle in the x86 idle code, which was
    removed during the x86 idle code refactoring.

    Instead of restoring the pm_idle check in the x86 code prevent the
    acpi/cpuidle code to set pm_idle to NULL.

    Reported by: Dhaval Giani http://lkml.org/lkml/2008/7/2/309
    Based on a debug patch from Ingo Molnar

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     

27 Jul, 2008

1 commit


26 Jul, 2008

2 commits


25 Jul, 2008

5 commits

  • * 'release-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-acpi-2.6:
    acpi: fix crash in core ACPI code, triggered by CONFIG_ACPI_PCI_SLOT=y
    ACPI: thinkpad-acpi: don't misdetect in get_thinkpad_model_data() on -ENOMEM
    ACPI: thinkpad-acpi: bump up version to 0.21
    ACPI: thinkpad-acpi: add bluetooth and WWAN rfkill support
    ACPI: thinkpad-acpi: WLSW overrides other rfkill switches
    ACPI: thinkpad-acpi: prepare for bluetooth and wwan rfkill support
    ACPI: thinkpad-acpi: consolidate wlsw notification function
    ACPI: thinkpad-acpi: minor refactor on radio switch init
    Revert "ACPI: don't walk tables if ACPI was disabled"
    Revert "dock: bay: Don't call acpi_walk_namespace() when ACPI is disabled."
    Revert "Fix FADT parsing"
    ACPI : Set FAN device to correct state in boot phase
    ACPI: Ignore _BQC object when registering backlight device
    ACPI: stop complaints about interrupt link End Tags and blank IRQ descriptors

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    PCI: fixup sparse endianness warnings in proc.c
    PCI PM: make more PCI PM core functionality available to drivers
    PCI/DMAR: don't assume presence of RMRRs
    PCI hotplug: fix error path in pci_slot's register_slot

    Linus Torvalds
     
  • There are a few BIOSes that we know of already that need to use the ACPI 1.0
    suspend order. This appears to be only be a small minority of mostly nVidia
    based systems.

    Based on observation of Windows behaviour, it's clear that Windows is also
    doing maintaining its own list of broken hardware that needs this workaround.

    Signed-off-by: Carlos Corbacho
    Signed-off-by: Rafael J. Wysocki
    Cc: Andi Kleen
    Cc: Len Brown
    Acked-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Carlos Corbacho
     
  • ACPI defines a hardware signature. BIOS calculates the signature according to
    hardware configure and if hardware changes while hibernated, the signature
    will change. In that case, S4 resume should fail.

    Still, there may be systems on which this mechanism does not work correctly,
    so it is better to provide a workaround for them. For this reason, add a new
    switch to the acpi_sleep= command line argument allowing one to disable
    hardware signature checking.

    [shaohua.li@intel.com: build fix]
    Signed-off-by: Shaohua Li
    Signed-off-by: Rafael J. Wysocki
    Cc: Andi Kleen
    Cc: Len Brown
    Acked-by: Pavel Machek
    Cc:
    Cc: Shaohua Li
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shaohua Li
     
  • James Bottomley warns that inclusion of linux/fs.h in a low level
    driver was always a danger signal. This patch moves
    memory_read_from_buffer() from fs.h to string.h and fixes includes in
    existing memory_read_from_buffer() users.

    Signed-off-by: Akinobu Mita
    Cc: James Bottomley
    Cc: Geert Uytterhoeven
    Cc: Zhang Rui
    Cc: Bob Moore
    Cc: Thomas Renninger
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     

24 Jul, 2008

1 commit

  • * 'cpus4096-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (31 commits)
    NR_CPUS: Replace NR_CPUS in speedstep-centrino.c
    cpumask: Provide a generic set of CPUMASK_ALLOC macros, FIXUP
    NR_CPUS: Replace NR_CPUS in cpufreq userspace routines
    NR_CPUS: Replace per_cpu(..., smp_processor_id()) with __get_cpu_var
    NR_CPUS: Replace NR_CPUS in arch/x86/kernel/genapic_flat_64.c
    NR_CPUS: Replace NR_CPUS in arch/x86/kernel/genx2apic_uv_x.c
    NR_CPUS: Replace NR_CPUS in arch/x86/kernel/cpu/proc.c
    NR_CPUS: Replace NR_CPUS in arch/x86/kernel/cpu/mcheck/mce_64.c
    cpumask: Optimize cpumask_of_cpu in lib/smp_processor_id.c, fix
    cpumask: Use optimized CPUMASK_ALLOC macros in the centrino_target
    cpumask: Provide a generic set of CPUMASK_ALLOC macros
    cpumask: Optimize cpumask_of_cpu in lib/smp_processor_id.c
    cpumask: Optimize cpumask_of_cpu in kernel/time/tick-common.c
    cpumask: Optimize cpumask_of_cpu in drivers/misc/sgi-xp/xpc_main.c
    cpumask: Optimize cpumask_of_cpu in arch/x86/kernel/ldt.c
    cpumask: Optimize cpumask_of_cpu in arch/x86/kernel/io_apic_64.c
    cpumask: Replace cpumask_of_cpu with cpumask_of_cpu_ptr
    Revert "cpumask: introduce new APIs"
    cpumask: make for_each_cpu_mask a bit smaller
    net: Pass reference to cpumask variable in net/sunrpc/svc.c
    ...

    Fix up trivial conflicts in drivers/cpufreq/cpufreq.c manually

    Linus Torvalds
     

23 Jul, 2008

1 commit

  • Juha Leppnen noticed that an error path in register_slot() wasn't
    returning appropriately, leading to a condition where we might access a
    kfree'ed pointer, so let's fix that.

    Additionally, fix up the copyright information in the file while
    we're in there.

    Signed-off-by: Alex Chiang
    Signed-off-by: Jesse Barnes

    Alex Chiang
     

22 Jul, 2008

1 commit