03 Sep, 2014

12 commits

  • Use the new handle_domain_irq method to handle interrupts.

    Signed-off-by: Marc Zyngier
    Link: https://lkml.kernel.org/r/1409047421-27649-13-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     
  • Use the new handle_domain_irq method to handle interrupts.

    Signed-off-by: Marc Zyngier
    Link: https://lkml.kernel.org/r/1409047421-27649-12-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     
  • Use the new handle_domain_irq method to handle interrupts.

    Signed-off-by: Marc Zyngier
    Link: https://lkml.kernel.org/r/1409047421-27649-11-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     
  • Use the new handle_domain_irq method to handle interrupts.

    Signed-off-by: Marc Zyngier
    Acked-by: Shawn Guo
    Link: https://lkml.kernel.org/r/1409047421-27649-10-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     
  • Use the new handle_domain_irq method to handle interrupts.

    Signed-off-by: Marc Zyngier
    Link: https://lkml.kernel.org/r/1409047421-27649-9-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     
  • Use the new handle_domain_irq method to handle interrupts.

    Signed-off-by: Marc Zyngier
    Link: https://lkml.kernel.org/r/1409047421-27649-8-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     
  • Use the new handle_domain_irq method to handle interrupts.

    Signed-off-by: Marc Zyngier
    Link: https://lkml.kernel.org/r/1409047421-27649-7-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     
  • Use the new handle_domain_irq method to handle interrupts.

    Signed-off-by: Marc Zyngier
    Link: https://lkml.kernel.org/r/1409047421-27649-6-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     
  • In order to limit code duplication, convert the architecture specific
    handle_IRQ to use the generic __handle_domain_irq function.

    Signed-off-by: Marc Zyngier
    Acked-by: Stefan Kristiansson
    Link: https://lkml.kernel.org/r/1409047421-27649-5-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     
  • In order to limit code duplication, convert the architecture specific
    handle_IRQ to use the generic __handle_domain_irq function.

    Signed-off-by: Marc Zyngier
    Link: https://lkml.kernel.org/r/1409047421-27649-4-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     
  • In order to limit code duplication, convert the architecture specific
    handle_IRQ to use the generic __handle_domain_irq function.

    Signed-off-by: Marc Zyngier
    Acked-by: Catalin Marinas
    Link: https://lkml.kernel.org/r/1409047421-27649-3-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     
  • Calling irq_find_mapping from outside a irq_{enter,exit} section is
    unsafe and produces ugly messages if CONFIG_PROVE_RCU is enabled:
    If coming from the idle state, the rcu_read_lock call in irq_find_mapping
    will generate an unpleasant warning:

    ===============================
    [ INFO: suspicious RCU usage. ]
    3.16.0-rc1+ #135 Not tainted
    -------------------------------
    include/linux/rcupdate.h:871 rcu_read_lock() used illegally while idle!

    other info that might help us debug this:

    RCU used illegally from idle CPU!
    rcu_scheduler_active = 1, debug_locks = 0
    RCU used illegally from extended quiescent state!
    1 lock held by swapper/0/0:
    #0: (rcu_read_lock){......}, at: []
    irq_find_mapping+0x4c/0x198

    As this issue is fairly widespread and involves at least three
    different architectures, a possible solution is to add a new
    handle_domain_irq entry point into the generic IRQ code that
    the interrupt controller code can call.

    This new function takes an irq_domain, and calls into irq_find_domain
    inside the irq_{enter,exit} block. An additional "lookup" parameter is
    used to allow non-domain architecture code to be replaced by this as well.

    Interrupt controllers can then be updated to use the new mechanism.

    This code is sitting behind a new CONFIG_HANDLE_DOMAIN_IRQ, as not all
    architectures implement set_irq_regs (yes, mn10300, I'm looking at you...).

    Reported-by: Vladimir Murzin
    Signed-off-by: Marc Zyngier
    Link: https://lkml.kernel.org/r/1409047421-27649-2-git-send-email-marc.zyngier@arm.com
    Signed-off-by: Jason Cooper

    Marc Zyngier
     

17 Aug, 2014

1 commit


16 Aug, 2014

27 commits

  • Pull x86 platform driver updates from Matthew Garrett:
    "A moderate number of changes, but nothing awfully significant.

    A lot of const cleanups, some reworking and additions to the rfkill
    quirks in the asus driver, a new driver for generating falling laptop
    events on Toshibas and some misc fixes.

    Maybe vendors have stopped inventing things"

    * 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86: (41 commits)
    platform/x86: Enable build support for toshiba_haps
    Documentation: Add file about toshiba_haps module
    platform/x86: Toshiba HDD Active Protection Sensor
    asus-nb-wmi: Add wapf4 quirk for the U32U
    alienware-wmi: make hdmi_mux enabled on case-by-case basis
    ideapad-laptop: Constify DMI table and other r/o variables
    asus-nb-wmi.c: Rename x401u quirk to wapf4
    compal-laptop: correct invalid hwmon name
    toshiba_acpi: Add Qosmio X75-A to the alt keymap dmi list
    toshiba_acpi: Add extra check to backlight code
    Fix log message about future removal of interface
    ideapad-laptop: Disable touchpad interface on Yoga models
    asus-nb-wmi: Add wapf4 quirk for the X550CC
    intel_ips: Make ips_mcp_limits variables static
    thinkpad_acpi: Mark volume_alsa_control_{vol,mute} as __initdata
    fujitsu-laptop: Mark fujitsu_dmi_table[] DMI table as __initconst
    hp-wmi: Add missing __init annotations to initialization code
    hp_accel: Constify ACPI and DMI tables
    fujitsu-tablet: Mark DMI callbacks as __init code
    dell-laptop: Mark dell_quirks[] DMI table as __initconst
    ...

    Linus Torvalds
     
  • Pull idle update from Len Brown:
    "Two Intel-platform-specific updates to intel_idle, and a cosmetic
    tweak to the turbostat utility"

    * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux:
    tools/power turbostat: tweak whitespace in output format
    intel_idle: Broadwell support
    intel_idle: Disable Baytrail Core and Module C6 auto-demotion

    Linus Torvalds
     
  • Pull module fix from Rusty Russell:
    "Nasty potential bug if someone uses a known module param with an
    invalid value (we don't fail unknown module params any more, just
    warn)"

    * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
    module: Clean up ro/nx after early module load failures

    Linus Torvalds
     
  • Pull virtio-rng update from Amit Shah:
    "Add derating factor for use by hwrng core

    Sending directly to you with the commit log changes Ted Ts'o pointed
    out. Not sure if Rusty's back after his travel, but this already has
    his s-o-b"

    * 'rng-queue' of git://git.kernel.org/pub/scm/linux/kernel/git/amit/virtio:
    virtio: rng: add derating factor for use by hwrng core

    Linus Torvalds
     
  • Pull btrfs updates from Chris Mason:
    "These are all fixes I'd like to get out to a broader audience.

    The biggest of the bunch is Mark's quota fix, which is also in the
    SUSE kernel, and makes our subvolume quotas dramatically more
    accurate.

    I've been running xfstests with these against your current git
    overnight, but I'm queueing up longer tests as well"

    * 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
    btrfs: disable strict file flushes for renames and truncates
    Btrfs: fix csum tree corruption, duplicate and outdated checksums
    Btrfs: Fix memory corruption by ulist_add_merge() on 32bit arch
    Btrfs: fix compressed write corruption on enospc
    btrfs: correctly handle return from ulist_add
    btrfs: qgroup: account shared subtrees during snapshot delete
    Btrfs: read lock extent buffer while walking backrefs
    Btrfs: __btrfs_mod_ref should always use no_quota
    btrfs: adjust statfs calculations according to raid profiles

    Linus Torvalds
     
  • Pull file locking bugfixes from Jeff Layton:
    "Most of these patches are to fix a long-standing regression that crept
    in when the BKL was removed from the file-locking code. The code was
    converted to use a conventional spinlock, but some fl_release_private
    ops can block and you can end up sleeping inside the lock.

    There's also a patch to make /proc/locks show delegations as 'DELEG'"

    * tag 'locks-v3.17-2' of git://git.samba.org/jlayton/linux:
    locks: update Locking documentation to clarify fl_release_private behavior
    locks: move locks_free_lock calls in do_fcntl_add_lease outside spinlock
    locks: defer freeing locks in locks_delete_lock until after i_lock has been dropped
    locks: don't reuse file_lock in __posix_lock_file
    locks: don't call locks_release_private from locks_copy_lock
    locks: show delegations as "DELEG" in /proc/locks

    Linus Torvalds
     
  • Pull aio updates from Ben LaHaise.

    * git://git.kvack.org/~bcrl/aio-next:
    aio: use iovec array rather than the single one
    aio: fix some comments
    aio: use the macro rather than the inline magic number
    aio: remove the needless registration of ring file's private_data
    aio: remove no longer needed preempt_disable()
    aio: kill the misleading rcu read locks in ioctx_add_table() and kill_ioctx()
    aio: change exit_aio() to load mm->ioctx_table once and avoid rcu_read_lock()

    Linus Torvalds
     
  • Makefile and Kconfig build support patch for the newly introduced
    kernel module toshiba_haps.

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

    Azael Avalos
     
  • This patch provides information about the Toshiba HDD
    Active Protection Sensor driver module toshiba_haps.

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

    Azael Avalos
     
  • This driver adds support for the built-in accelereometer found
    on recent Toshiba laptops with HID TOS620A.

    This driver receives ACPI notify events 0x80 when the sensor
    detects a sudden move or a harsh vibration, as well as an
    ACPI notify event 0x81 whenever the movement or vibration has
    been stabilized.

    Also provides sysfs entries to get/set the desired protection
    level and reseting the HDD protection interface.

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

    Azael Avalos
     
  • As reported here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1173681
    the U32U needs wapf=4 too.

    Signed-off-by: Hans de Goede
    Signed-off-by: Matthew Garrett

    Hans de Goede
     
  • Not all HW supporting WMAX method will support the HDMI mux feature.
    Explicitly quirk the HW that does support it.

    Signed-off-by: Mario Limonciello
    Signed-off-by: Matthew Garrett

    Mario Limonciello
     
  • Constify the rfkill_blacklist[] DMI table, the ideapad_rfk_data[] table
    and the ideapad_attribute_group attribute group. There's no need to have
    them writeable during runtime.

    Signed-off-by: Mathias Krause
    Cc: Ike Panhc
    Signed-off-by: Matthew Garrett

    Mathias Krause
     
  • The actual x401u does not use the so named x401u quirk but the x55u quirk.
    All that the x401u quirk does it setting wapf to 4, so rename it to wapf4 to
    stop the confusion.

    Signed-off-by: Hans de Goede
    Signed-off-by: Matthew Garrett

    Hans de Goede
     
  • Change the name of the hwmon interface from "compal-laptop" to "compal".
    A dash is an invalid character for a hwmon name and caused the call to
    hwmon_device_register_with_groups() to fail.

    Signed-off-by: Roald Frederickx
    Signed-off-by: Matthew Garrett

    Roald Frederickx
     
  • The Toshiba Qosmio X75-A series models also come with
    the new keymap layout.

    This patch adds this model to the alt_keymap_dmi list,
    along with an extra key found on these models.

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

    Azael Avalos
     
  • Some Toshiba models (most notably Qosmios) come with an
    incomplete backlight method where the AML code doesn't
    check for write or read commands and always returns
    HCI_SUCCESS and the actual brightness (and in some
    cases the max brightness), thus allowing the backlight
    interface to be registered without write support.

    This patch changes the set_lcd_brightness function,
    checking the returned values for values greater than
    zero to avoid registering a broken backlight interface.

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

    Azael Avalos
     
  • If this is going away, it won't be in 2012.

    Signed-off-by: Martin Kepplinger
    Signed-off-by: Matthew Garrett

    Martin Kepplinger
     
  • Yoga models don't offer touchpad ctrl through the ideapad interface, causing
    ideapad_sync_touchpad_state to send wrong touchpad enable/disable events.

    Signed-off-by: Hans de Goede
    Signed-off-by: Matthew Garrett

    Hans de Goede
     
  • As reported here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1173681
    the X550CC needs wapf=4 too.

    Signed-off-by: Hans de Goede
    Signed-off-by: Matthew Garrett

    Hans de Goede
     
  • These variables don't need to be visible outside of this compilation
    unit, make them static.

    Signed-off-by: Mathias Krause
    Signed-off-by: Matthew Garrett

    Mathias Krause
     
  • Mark volume_alsa_control_vol and volume_alsa_control_mute as __initdata,
    as snd_ctl_new1() will copy the relevant parts, so there is no need to
    keep the master copies around after initialization.

    Signed-off-by: Mathias Krause
    Cc: Henrique de Moraes Holschuh
    Signed-off-by: Matthew Garrett

    Mathias Krause
     
  • The DMI table is only ever used during initialization. Mark it as
    __initconst so its memory can be released afterwards -- roughly 1.5 kB.
    In turn, the callback functions can be marked with __init, too.

    Signed-off-by: Mathias Krause
    Cc: Jonathan Woithe
    Signed-off-by: Matthew Garrett

    Mathias Krause
     
  • These functions are only called from other initialization routines, so
    can be marked __init, too.

    Signed-off-by: Mathias Krause
    Signed-off-by: Matthew Garrett

    Mathias Krause
     
  • Constify the lis3lv02d_device_ids[] ACPI and the lis3lv02d_dmi_ids[] DMI
    tables. There's no need to have them writeable during runtime.

    Signed-off-by: Mathias Krause
    Cc: Eric Piel
    Signed-off-by: Matthew Garrett

    Mathias Krause
     
  • The DMI table is already marked as __initconst, so can be the callback
    functions as they're only used in that context.

    Signed-off-by: Mathias Krause
    Cc: Robert Gerlach
    Signed-off-by: Matthew Garrett

    Mathias Krause
     
  • The dell_quirks[] DMI table is only ever used during initialization.
    Mark it as __initconst so its memory can be released afterwards --
    roughly 5.7 kB. In turn, the callback function can be marked with
    __init, too.

    Also the touchpad_led_init() function can be marked __init as it's only
    referenced from dell_init() -- an __init function.

    Signed-off-by: Mathias Krause
    Signed-off-by: Matthew Garrett

    Mathias Krause