27 Apr, 2012

1 commit

  • Merge fixes from Andrew Morton:
    "13 fixes. The acerhdf patches aren't (really) fixes. But they've
    been stuck in my tree for up to two years, sent to Matthew multiple
    times and the developers are unhappy."

    * emailed from Andrew Morton : (13 patches)
    mm: fix NULL ptr dereference in move_pages
    mm: fix NULL ptr dereference in migrate_pages
    revert "proc: clear_refs: do not clear reserved pages"
    drivers/rtc/rtc-ds1307.c: fix BUG shown with lock debugging enabled
    arch/arm/mach-ux500/mbox-db5500.c: world-writable sysfs fifo file
    hugetlbfs: lockdep annotate root inode properly
    acerhdf: lowered default temp fanon/fanoff values
    acerhdf: add support for new hardware
    acerhdf: add support for Aspire 1410 BIOS v1.3314
    fs/buffer.c: remove BUG() in possible but rare condition
    mm: fix up the vmscan stat in vmstat
    epoll: clear the tfile_check_list on -ELOOP
    mm/hugetlb: fix warning in alloc_huge_page/dequeue_huge_page_vma

    Linus Torvalds
     

26 Apr, 2012

3 commits

  • Due to new supported hardware, of which the actual temperature limits of
    processor, harddisk and other components are unknown, it feels safer with
    lower fanon / fanoff settings.

    It won't change much for most people, already using acerhdf, as they use
    their own fanon/fanoff variable settings when loading the module.

    Furthermore seems like kernel and userspace tools have been improved to
    work more efficient and netbooks don't get so hot anymore.

    Signed-off-by: Peter Feuerer
    Acked-by: Borislav Petkov
    Cc: Matthew Garrett
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Feuerer
     
  • Add support for new hardware:
    Acer Aspire LT-10Q/531/751/1810/1825,
    Acer Travelmate 7730,
    Packard Bell ENBFT/DOTVR46

    Signed-off-by: Peter Feuerer
    Acked-by: Borislav Petkov
    Cc: Matthew Garrett
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Feuerer
     
  • Add support for Aspire 1410 BIOS v1.3314. Fixes the following error:

    acerhdf: unknown (unsupported) BIOS version Acer/Aspire 1410/v1.3314,
    please report, aborting!

    Signed-off-by: Clay Carpenter
    Signed-off-by: Peter Feuerer
    Cc: Matthew Garrett
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Clay Carpenter
     

17 Apr, 2012

2 commits


31 Mar, 2012

2 commits

  • Pull ACPI & Power Management changes from Len Brown:
    - ACPI 5.0 after-ripples, ACPICA/Linux divergence cleanup
    - cpuidle evolving, more ARM use
    - thermal sub-system evolving, ditto
    - assorted other PM bits

    Fix up conflicts in various cpuidle implementations due to ARM cpuidle
    cleanups (ARM at91 self-refresh and cpu idle code rewritten into
    "standby" in asm conflicting with the consolidation of cpuidle time
    keeping), trivial SH include file context conflict and RCU tracing fixes
    in generic code.

    * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: (77 commits)
    ACPI throttling: fix endian bug in acpi_read_throttling_status()
    Disable MCP limit exceeded messages from Intel IPS driver
    ACPI video: Don't start video device until its associated input device has been allocated
    ACPI video: Harden video bus adding.
    ACPI: Add support for exposing BGRT data
    ACPI: export acpi_kobj
    ACPI: Fix logic for removing mappings in 'acpi_unmap'
    CPER failed to handle generic error records with multiple sections
    ACPI: Clean redundant codes in scan.c
    ACPI: Fix unprotected smp_processor_id() in acpi_processor_cst_has_changed()
    ACPI: consistently use should_use_kmap()
    PNPACPI: Fix device ref leaking in acpi_pnp_match
    ACPI: Fix use-after-free in acpi_map_lsapic
    ACPI: processor_driver: add missing kfree
    ACPI, APEI: Fix incorrect APEI register bit width check and usage
    Update documentation for parameter *notrigger* in einj.txt
    ACPI, APEI, EINJ, new parameter to control trigger action
    ACPI, APEI, EINJ, limit the range of einj_param
    ACPI, APEI, Fix ERST header length check
    cpuidle: power_usage should be declared signed integer
    ...

    Linus Torvalds
     
  • On a system on the thermal limit these are quite noisy and flood the logs.
    Better would be a counter anyways. But given that we don't even have
    anything for normal throttling this doesn't seem to be urgent either.

    Reviewed-by: Jesse Barnes
    Signed-off-by: Andi Kleen
    Signed-off-by: Len Brown

    Andi Kleen
     

29 Mar, 2012

1 commit

  • Pull x86 platform driver updates from Matthew Garrett:
    "Some significant updates to samsung-laptop, additional hardware
    support for Toshibas, misc updates to various hardware and a new
    backlight driver for some Apple machines."

    Fix up trivial conflicts: geode Geos update happening next to net5501
    support, and MSIC thermal platform support added twice.

    * 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86: (77 commits)
    acer-wmi: add quirk table for video backlight vendor mode
    drivers/platform/x86/amilo-rfkill.c::amilo_rfkill_probe() avoid NULL deref
    samsung-laptop: unregister ACPI video module for some well known laptops
    acer-wmi: No wifi rfkill on Sony machines
    thinkpad-acpi: recognize Lenovo as version string in newer V-series BIOS
    asus-wmi: don't update power and brightness when using scalar
    eeepc-wmi: split et2012 specific hacks
    eeepc-wmi: refine quirks handling
    asus-nb-wmi: set panel_power correctly
    asus-wmi: move WAPF variable into quirks_entry
    asus-wmi: store backlight power status for AIO machine
    asus-wmi: add scalar board brightness adj. support
    samsung-laptop: cleanup return type: mode_t vs umode_t
    drivers, samsung-laptop: fix usage of isalnum
    drivers, samsung-laptop: fix initialization of sabi_data in sabi_set_commandb
    asus-wmi: on/off bit is not set when reading the value
    eeepc-wmi: add extra keymaps for EP121
    asus-nb-wmi: ignore useless keys
    acer-wmi: support Lenovo ideapad S205 Brazos wifi switch
    acer-wmi: fix out of input parameter size when set
    ...

    Linus Torvalds
     

27 Mar, 2012

22 commits

  • There have some acer laptop have broken _BCM implemenation, the AML
    code wrote value to EC register but firmware didn't change brighenss.

    Fortunately, the brightness control works on those machines with
    vendor mode. So, add quirk table for video backlight vendor mode
    and unregister acpi video interface on those machines.

    Tested on Acer TravelMate 4750

    Cc: Carlos Corbacho
    Cc: Matthew Garrett
    Cc: Dmitry Torokhov
    Cc: Corentin Chary
    Cc: Thomas Renninger
    Signed-off-by: Lee, Chun-Yi
    Signed-off-by: Matthew Garrett

    Lee, Chun-Yi
     
  • In drivers/platform/x86/amilo-rfkill.c::amilo_rfkill_probe() the call
    to dmi_first_match() may fail and return NULL. If it does return NULL,
    then we'll be dereferencing a NULL pointer in the rfkill_alloc() call
    where we do 'system_id->driver_data' --> KABOOM!

    Avoid that problem by testing for a NULL return value from
    dmi_first_match() and bailing out if it fails.

    I was a bit uncertain about what to return in the failure case. In the
    end I settled for -ENXIO as the most logical error to return.

    Signed-off-by: Jesper Juhl
    Signed-off-by: Matthew Garrett

    Jesper Juhl
     
  • On these laptops, the ACPI video is not functional, and very unlikely
    to be fixed by the vendor. Note that intel_backlight works for some
    of these laptops, and the backlight from samsung-laptop always work.

    The good news is that newer laptops have functional ACPI video device
    and won't end up growing this list.

    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Corentin Chary
     
  • The wireless rfkill should charged by sony-laptop but not acer-wmi.
    So, add Sony's SNY5001 acpi device to blacklist in acer-wmi.

    Tested on Sony Vaio

    Cc: Carlos Corbacho
    Cc: Matthew Garrett
    Cc: Mattia Dongili
    Cc: Dimitris N
    Tested-by: Dimitris N
    Signed-off-by: Lee, Chun-Yi
    Signed-off-by: Matthew Garrett

    Lee, Chun-Yi
     
  • The newer V series bios reports product version as 'Lenovo'
    instead of 'ThinkPad'. Recoginze this new string so that
    the module can load.

    Signed-off-by: Manoj Iyer
    Signed-off-by: Matthew Garrett
    Tested-by: James Ferguson
    Tested-by: Dennis Chua
    Tested-by: Ike Pan
    Acked-by: Henrique de Moraes Holschuh

    Manoj Iyer
     
  • But we can still do it on other boards, as this might happen
    if the backlight driver change when update_bl is called.

    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Corentin Chary
     
  • Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Corentin Chary
     
  • Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Corentin Chary
     
  • Even if it's currently unused.

    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Corentin Chary
     
  • Some models work better with different values of wapf, so move the
    variable into quriks_entry to make it more easy to give a specific
    value to different models.

    Based on original patch from AceLan Kao

    Cc: AceLan Kao
    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Corentin Chary
     
  • Due to some implementation reasons, ASUS ET2012 All-in-One machines
    can't report the correct backlight power status, it will always return
    1. To track the backlight power status correctly, we have to store the
    status by ourselves.

    BTW, by the BIOS design, the backlight power will be turn on/off
    sequently, no matter what the value of the parameter will be.
    More over, the brightness adjustment command will turn on the backlight
    power. Those behaviors will make us fail to track the backlight power
    status.
    For example, While we are trying to turn on the backlight power,
    we will send out the brightness adjustment command and then trying to
    figure out if we have to turn on the backlight power, then send out
    the command. But, the real case is that, the backlight power turns on
    while sending the brightness adjustment command, and then we send out
    the command to turn on the backlight power, it actually will turn off
    the backlight power and the backlight power status we recorded becomes
    wrong. So, we have to seperate these two commands by a if statement.

    Signed-off-by: AceLan Kao
    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    AceLan Kao
     
  • Some ASUS ET2012E/I All-in-One machines that use a scalar board
    to control the brightness, and they only accept brightness up and down
    command. So, I introduced a get_scalar_command() function to pass the
    command to the scalar board through WMI.

    Besides, we have to store the brightness value locally, for we need the
    old value to know the brightness value is increasing or decreasing.

    BTW, since there is no way to retrieve the actual brightness(it would be
    a fixed value), and the max brightness value would be fixed to 1, so we
    have to keep passing the brightness up/down command when we reached the
    max brightness value or 0.

    Signed-off-by: AceLan Kao
    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    AceLan Kao
     
  • This function returns a umode_t (unsigned short) instead of mode_t which
    is an unsigned int on some architectures. Cleaning this up silences a
    compile warning:

    drivers/platform/x86/samsung-laptop.c:1108:2: warning: initialization
    from incompatible pointer type [enabled by default]

    Signed-off-by: Dan Carpenter
    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Dan Carpenter
     
  • linux/ctype.h is needed for isalnum() to avoid a build error:

    drivers/platform/x86/samsung-laptop.c: In function ‘samsung_sabi_diag’:
    drivers/platform/x86/samsung-laptop.c:1306: error: implicit declaration of function ‘isalnum’

    Signed-off-by: David Rientjes
    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    David Rientjes
     
  • Fields d0, d1, d2, and d3 are members of an anonymous struct inside an
    anonymous union inside struct sabi_data. Initialization must be done by
    wrapping the anonymous union and structs with brackets to avoid a build
    error:

    drivers/platform/x86/samsung-laptop.c: In function ‘sabi_set_commandb’:
    drivers/platform/x86/samsung-laptop.c:433: error: unknown field ‘d0’ specified in initializer
    drivers/platform/x86/samsung-laptop.c:433: warning: missing braces around initializer
    drivers/platform/x86/samsung-laptop.c:433: warning: (near initialization for ‘in.’)
    ...

    Signed-off-by: David Rientjes
    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    David Rientjes
     
  • Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Corentin Chary
     
  • Signed-off-by: Chih-Wei Huang
    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Chih-Wei Huang
     
  • Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Corentin Chary
     
  • Vaclav found a new ideapad S205 Brazos machine that used the same
    EC register of wireless with S205 but has different product name.

    So, add this machine to quirk for support wireless rfkill.

    Tested on Lenovo ideapad S205 Brazos

    Tested-by: Vaclav Mocek
    Acked-by: Ike Panhc
    Cc: Carlos Corbacho
    Cc: Matthew Garrett
    Cc: Dmitry Torokhov
    Cc: Corentin Chary
    Cc: Thomas Renninger
    Signed-off-by: Lee, Chun-Yi
    Signed-off-by: Matthew Garrett

    Lee, Chun-Yi
     
  • The input parameter of set device status is different with get device
    status. There have volume value element for set status but don't need
    for get action.

    On Acer TravelMate 4750 creates field on volume value element even
    doesn't use it in DSDT. So, add this patch for separate input paramter
    between set device status with get status.

    Tested on Acer TravelMate 4750

    Cc: Carlos Corbacho
    Cc: Matthew Garrett
    Cc: Dmitry Torokhov
    Cc: Corentin Chary
    Cc: Thomas Renninger
    Signed-off-by: Lee, Chun-Yi
    Signed-off-by: Matthew Garrett

    Lee, Chun-Yi
     
  • Currently we set a fixed hot key number to 0x01 for communction button,
    but, actually, the key number is different on each acer laptop and it was
    reported by SMBIOS.

    So, add this patch to get the communication hot key number from Acer
    OEM-specific SMBIOS Type AA.

    Tested on Acer TravelMate 4750

    Cc: Carlos Corbacho
    Cc: Matthew Garrett
    Cc: Dmitry Torokhov
    Cc: Corentin Chary
    Cc: Thomas Renninger
    Signed-off-by: Lee, Chun-Yi
    Signed-off-by: Matthew Garrett

    Lee, Chun-Yi
     
  • Apple laptops with hybrid graphics have a device named gmux that
    controls the muxing of the LVDS panel between the GPUs as well as screen
    brightness. This driver adds support for the gmux device. Only backlight
    control is supported initially.

    Signed-off-by: Seth Forshee
    Signed-off-by: Matthew Garrett
    Tested-by: Grant Likely

    Seth Forshee
     

24 Mar, 2012

1 commit

  • Pull PCI changes (including maintainer change) from Jesse Barnes:
    "This pull has some good cleanups from Bjorn and Yinghai, as well as
    some more code from Yinghai to better handle resource re-allocation
    when enabled.

    There's also a new initcall_debug feature from Arjan which will print
    out quirk timing information to help identify slow quirks for fixing
    or refinement (Yinghai sent in a few patches to do just that once the
    new debug code landed).

    Beyond that, I'm handing off PCI maintainership to Bjorn Helgaas.
    He's been a core PCI and Linux contributor for some time now, and has
    kindly volunteered to take over. I just don't feel I have the time
    for PCI review and work that it deserves lately (I've taken on some
    other projects), and haven't been as responsive lately as I'd like, so
    I approached Bjorn asking if he'd like to manage things. He's going
    to give it a try, and I'm confident he'll do at least as well as I
    have in keeping the tree managed, patches flowing, and keeping things
    stable."

    Fix up some fairly trivial conflicts due to other cleanups (mips device
    resource fixup cleanups clashing with list handling cleanup, ppc iseries
    removal clashing with pci_probe_only cleanup etc)

    * 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci: (112 commits)
    PCI: Bjorn gets PCI hotplug too
    PCI: hand PCI maintenance over to Bjorn Helgaas
    unicore32/PCI: move include to asm/pci.h
    sparc/PCI: convert devtree and arch-probed bus addresses to resource
    powerpc/PCI: allow reallocation on PA Semi
    powerpc/PCI: convert devtree bus addresses to resource
    powerpc/PCI: compute I/O space bus-to-resource offset consistently
    arm/PCI: don't export pci_flags
    PCI: fix bridge I/O window bus-to-resource conversion
    x86/PCI: add spinlock held check to 'pcibios_fwaddrmap_lookup()'
    PCI / PCIe: Introduce command line option to disable ARI
    PCI: make acpihp use __pci_remove_bus_device instead
    PCI: export __pci_remove_bus_device
    PCI: Rename pci_remove_behind_bridge to pci_stop_and_remove_behind_bridge
    PCI: Rename pci_remove_bus_device to pci_stop_and_remove_bus_device
    PCI: print out PCI device info along with duration
    PCI: Move "pci reassigndev resource alignment" out of quirks.c
    PCI: Use class for quirk for usb host controller fixup
    PCI: Use class for quirk for ti816x class fixup
    PCI: Use class for quirk for intel e100 interrupt fixup
    ...

    Linus Torvalds
     

23 Mar, 2012

1 commit

  • Pull x86 platform changes from Ingo Molnar.

    Removes the Moorestown platform that nobody ever used.

    * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86/platform: Move APIC ID validity check into platform APIC code
    x86/olpc/xo15/sci: Enable lid close wakeup control
    x86/geode/net5501: Add platform driver for Soekris Engineering net5501
    x86/geode/alix2: Supplement driver to include GPIO button support
    x86/mid/powerbtn: Use MSIC read/write instead of ipc_scu
    x86/mid/thermal: Turn off thermistor
    x86/mid/thermal: Add msic_thermal alias
    x86/mid/thermal: Convert to use Intel MSIC API
    x86/mid/scu_ipc: Remove Moorestown support
    x86/mid: Kill off Moorestown
    x86/mrst: Add msic_thermal platform support
    x86/config: Select MSIC MFD driver on Intel Medfield platform
    x86/mid: Remove Intel Moorestown
    x86/mrst: Set ISA bus type for fake MP IRQs
    x86/ioapic: Use legacy_pic to set correct gsi-irq mapping

    Linus Torvalds
     

22 Mar, 2012

3 commits

  • Several Satellite models have a buggy implementation of the INFO method
    that causes ACPI exceptions when executed:

    ACPI Error: Result stack is empty! State=ffff88012d70f800 (20110413/dswstate-98)
    ACPI Exception: AE_AML_NO_RETURN_VALUE, Missing or null operand (20110413/dsutils-646)
    ACPI Exception: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20110413/dsutils-763)
    ACPI Error: Method parse/execution failed [\_SB_.VALZ.GETE] (Node ffff880131175eb0), AE_AML_NO_RETURN_VALUE (20110413/psparse-536)
    ACPI Error: Method parse/execution failed [\_SB_.VALZ.INFO] (Node ffff880131175ed8), AE_AML_NO_RETURN_VALUE (20110413/psparse-536)
    toshiba_acpi: ACPI INFO method execution failed
    toshiba_acpi: Failed to query hotkey event

    All known machines with this implementation also have a WMI interface
    with event GUID 59142400-C6A3-40FA-BADB-8A2652834100 which is not seen
    on any other models. Refuse to load toshiba_acpi on machines with this
    guid.

    Signed-off-by: Seth Forshee
    Signed-off-by: Matthew Garrett

    Seth Forshee
     
  • These scancodes are used by many of the models now supported with
    the addition of TOS1900 device support.

    Signed-off-by: Azael Avalos
    Signed-off-by: Seth Forshee
    Signed-off-by: Matthew Garrett

    Azael Avalos
     
  • There are two types of problems that prevent hotkeys from working
    on many of the machines supported by toshiba_acpi. The first of
    these is the lack of a functioning SCI for hotkey events. For these
    machines it is possible to filter the Fn keypresses from the
    keyboard and generate a notification by executing the ACPI NTFY
    method.

    The second problem is a lack of support for HCI_SYSTEM_EVENT, which
    is used for reading the hotkey scancodes. On these machines the
    scancodes can be read by executing the ACPI NTFY method.

    This patch fixes both problems by installing an i8042 filter when
    the NTFY method is present to generate notifications and by
    detecting which of INFO or HCI_SYSTEM_EVENT is supported for
    reading scancodes. If neither method of reading scancodes is
    supported, the hotkey input device is not registered.

    Signed-off-by: Azael Avalos
    Signed-off-by: Seth Forshee
    Signed-off-by: Matthew Garrett

    Seth Forshee
     

21 Mar, 2012

4 commits

  • Pull trivial tree from Jiri Kosina:
    "It's indeed trivial -- mostly documentation updates and a bunch of
    typo fixes from Masanari.

    There are also several linux/version.h include removals from Jesper."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (101 commits)
    kcore: fix spelling in read_kcore() comment
    constify struct pci_dev * in obvious cases
    Revert "char: Fix typo in viotape.c"
    init: fix wording error in mm_init comment
    usb: gadget: Kconfig: fix typo for 'different'
    Revert "power, max8998: Include linux/module.h just once in drivers/power/max8998_charger.c"
    writeback: fix fn name in writeback_inodes_sb_nr_if_idle() comment header
    writeback: fix typo in the writeback_control comment
    Documentation: Fix multiple typo in Documentation
    tpm_tis: fix tis_lock with respect to RCU
    Revert "media: Fix typo in mixer_drv.c and hdmi_drv.c"
    Doc: Update numastat.txt
    qla4xxx: Add missing spaces to error messages
    compiler.h: Fix typo
    security: struct security_operations kerneldoc fix
    Documentation: broken URL in libata.tmpl
    Documentation: broken URL in filesystems.tmpl
    mtd: simplify return logic in do_map_probe()
    mm: fix comment typo of truncate_inode_pages_range
    power: bq27x00: Fix typos in comment
    ...

    Linus Torvalds
     
  • In the 2.6.36 kernel we did not have the MSIC driver. Changed
    all ipc_scu_reads/writes to use the MSIC driver and defines.
    Added a fix from the 2.6.36 kernel where the SCU FW could send
    a power button interrupt to the IA32 FW and the kernel was not
    running yet. This resulted in the interrupt not getting cleared
    and the power button was ignored. this fix just clears the
    interrupt on start-up.

    Signed-off-by: Michael Demeter
    Reviewed-by: Mika Westerberg
    Revert style-only changes. Remove unused variable. Fix comment style.]
    Signed-off-by: Kirill A. Shutemov
    Signed-off-by: Alan Cox
    Signed-off-by: Matthew Garrett

    Michael Demeter
     
  • All production devices operate in the Oaktrail configuration with legacy PC
    elements present and an ACPI BIOS. Continue stripping out the Moorestown
    elements from the tree leaving Medfield.

    Signed-off-by: Alan Cox
    Signed-off-by: Matthew Garrett

    Alan Cox
     
  • Trivial fix for some -Wuninitialized compiler warnings.

    Signed-off-by: Danny Kukawka
    Signed-off-by: Matthew Garrett

    Danny Kukawka