1. 11 7月, 2014 11 次提交
    • L
      Merge tag 'pm+acpi-3.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · b67db9d5
      Linus Torvalds 提交于
      Pull ACPI and power management fixes from Rafael Wysocki:
       "These are a few regression fixes for ACPI device enumeration and
        resources management, intel_pstate and cpufreq, a revert of an ACPI
        commit removing user space interfaces in /proc that we incorrectly
        thought were not used any more, fixes for some long-standing
        concurrency issues in the ACPI EC driver, two ACPI battery driver
        fixes, stable-candidate fixes for intel_pstate, an ACPI-related fix
        for i915 and two new ACPI video blacklist entries for Win8-oriented
        BIOSes.
      
        Specifics:
      
         - Missing device ID for ACPI enumeration of PNP devices that we
           overlooked during the recent rework of that code from Zhang Rui.
      
         - Fix for a problem introduced during the 3.14 cycle in the ACPI
           device resources management code and causing it to reject all
           resources of length 0 although some of them are actually valid
           which affects serial ports detection on a number of systems.  From
           Andy Whitcroft.
      
         - intel_pstate fix for a boot problem on some BayTrail-based systems
           introduced by a previous fix related to that platform during the
           3.13 cycle from Dirk Brandewie.
      
         - Revert of a 3.13 commit that removed the ACPI AC /proc interface
           which turns out to be still needed by some old utilities
           (kpowersave from kde 3.5.10 in particular) from Lan Tianyu.
      
         - cpufreq build fix for the davinci ARM platform from Prabhakar Lad
           (the breakage was introduced during the 3.10 cycle).
      
         - ACPI-related i915 fix preventing firmware on some Thinkpad laptops
           from setting backlight levels incorrectly during AC plug/unplug.
           From Aaron Lu.
      
         - Fixes for two nasty race conditions in the ACPI embedded controller
           driver that may be responsible for a number of past bug reports
           related to the EC from Lv Zhang and a fix for two memory leaks in
           error code paths in that driver from Colin Ian King.
      
         - Fixes for a couple of corner-case issues in the intel_pstate driver
           (all candidates for -stable) from Dirk Brandewie and Vincent Minet.
      
         - Fixes for two corner-case issues in the ACPI battery driver from
           Josef Gajdusek and Lan Tianyu.
      
         - Two new ACPI video blacklist entries for Acer TravelMate B113 and
           Dell Inspiron 5737 from Edward Lin and Martin Kepplinger"
      
      * tag 'pm+acpi-3.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI / PNP: add soc_button_array device ID to PNP IDs list
        cpufreq: Makefile: fix compilation for davinci platform
        ACPI / video: Add Acer TravelMate B113 to native backlight blacklist
        ACPI / video: Add Dell Inspiron 5737 to the blacklist
        ACPI / i915: ignore firmware requests for backlight change
        ACPI / battery: fix wrong value of capacity_now reported when fully charged
        ACPI / resources: only reject zero length resources based at address zero
        ACPI / battery: Retry to get battery information if failed during probing
        ACPI / EC: Free saved_ec on error exit path
        ACPI / EC: Add detailed fields debugging support of EC_SC(R).
        ACPI / EC: Update revision due to recent changes
        ACPI / EC: Fix race condition in ec_transaction_completed()
        ACPI / EC: Remove duplicated ec_wait_ibf0() waiter
        ACPI / EC: Add asynchronous command byte write support
        ACPI / EC: Avoid race condition related to advance_transaction()
        intel_pstate: Set CPU number before accessing MSRs
        intel_pstate: Update documentation of {max,min}_perf_pct sysfs files
        intel_pstate: don't touch turbo bit if turbo disabled or unavailable.
        intel_pstate: Fix setting VID
        Revert "ACPI / AC: Remove AC's proc directory."
      b67db9d5
    • R
      Merge branch 'pm-cpufreq' · 20910442
      Rafael J. Wysocki 提交于
      * pm-cpufreq:
        cpufreq: Makefile: fix compilation for davinci platform
        intel_pstate: Set CPU number before accessing MSRs
        intel_pstate: Update documentation of {max,min}_perf_pct sysfs files
        intel_pstate: don't touch turbo bit if turbo disabled or unavailable.
        intel_pstate: Fix setting VID
      20910442
    • R
      Merge branch 'acpi-video' · ff253d3d
      Rafael J. Wysocki 提交于
      * acpi-video:
        ACPI / video: Add Acer TravelMate B113 to native backlight blacklist
        ACPI / video: Add Dell Inspiron 5737 to the blacklist
        ACPI / i915: ignore firmware requests for backlight change
      ff253d3d
    • R
      Merge branch 'acpi-ec' · 0b80a8ff
      Rafael J. Wysocki 提交于
      * acpi-ec:
        ACPI / EC: Free saved_ec on error exit path
        ACPI / EC: Add detailed fields debugging support of EC_SC(R).
        ACPI / EC: Update revision due to recent changes
        ACPI / EC: Fix race condition in ec_transaction_completed()
        ACPI / EC: Remove duplicated ec_wait_ibf0() waiter
        ACPI / EC: Add asynchronous command byte write support
        ACPI / EC: Avoid race condition related to advance_transaction()
      0b80a8ff
    • R
      Merge branches 'acpi-resources', 'acpi-ac', 'acpi-scan' and 'acpi-battery' · 4488c99b
      Rafael J. Wysocki 提交于
      * acpi-resources:
        ACPI / resources: only reject zero length resources based at address zero
      
      * acpi-ac:
        Revert "ACPI / AC: Remove AC's proc directory."
      
      * acpi-scan:
        ACPI / PNP: add soc_button_array device ID to PNP IDs list
      
      * acpi-battery:
        ACPI / battery: fix wrong value of capacity_now reported when fully charged
        ACPI / battery: Retry to get battery information if failed during probing
      4488c99b
    • L
      Merge branch 'for-3.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata · 4c718423
      Linus Torvalds 提交于
      Pull libata fixes from Tejun Heo:
       "Nothing too interesting.  All fixes are ahci_platform related"
      
      * 'for-3.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata:
        ahci_xgene: fix the dma state machine lockup for the IDENTIFY DEVICE PIO mode command.
        libahci: export ahci_qc_issue() and ahci_start_fix_rx()
        ata: ahci_imx: warn when disabling ahci link
        ahci: disable ncq feature for hisilicon sata
        ahci: imx: manage only sata_ref_clk in imx_sata_enable[disable]
        libahci_platform: Fail when PHY required but PHY support disabled
      4c718423
    • L
      Merge branch 'for-3.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · 40f61237
      Linus Torvalds 提交于
      Pull cgroup fixes from Tejun Heo:
       "Mostly fixes for the fallouts from the recent cgroup core changes.
      
        The decoupled nature of cgroup dynamic hierarchy management
        (hierarchies are created dynamically on mount but may or may not be
        reused once unmounted depending on remaining usages) led to more
        ugliness being added to kernfs.
      
        Hopefully, this is the last of it"
      
      * 'for-3.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cpuset: break kernfs active protection in cpuset_write_resmask()
        cgroup: fix a race between cgroup_mount() and cgroup_kill_sb()
        kernfs: introduce kernfs_pin_sb()
        cgroup: fix mount failure in a corner case
        cpuset,mempolicy: fix sleeping function called from invalid context
        cgroup: fix broken css_has_online_children()
      40f61237
    • L
      Merge branch 'for-3.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · a805cbf4
      Linus Torvalds 提交于
      Pull workqueue fixes from Tejun Heo:
       "Two workqueue fixes.  Both are one liners.  One fixes missing uevent
        for workqueue files on sysfs.  The other one fixes missing zeroing of
        NUMA cpu masks which can lead to oopses among other things"
      
      * 'for-3.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
        workqueue: zero cpumask of wq_numa_possible_cpumask on init
        workqueue: fix dev_set_uevent_suppress() imbalance
      a805cbf4
    • L
      Merge branch 'for-3.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu · b3e87bdd
      Linus Torvalds 提交于
      Pull percpu fix from Tejun Heo:
       "One patch to fix a typo in percpu section name.  Given how long the
        bug has been there and that there hasn't been any report of brekage,
        it's unlikely to cause actual issues"
      
      * 'for-3.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
        core: fix typo in percpu read_mostly section
      b3e87bdd
    • L
      Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 8de74717
      Linus Torvalds 提交于
      Pull i2c build fix and cleanup from Wolfram Sang:
       "One buildfix for the i2c subsystem.  While here, I decided to add the
        header cleanup as well"
      
      * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: sun6i-p2wi: Remove duplicate inclusion of module.h
        i2c: mux: pca954x: fix dependencies
      8de74717
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 9ab6e6e7
      Linus Torvalds 提交于
      Pull crypto fixes from Herbert Xu:
       "This push fixes an error in sha512_ssse3 that leads to incorrect
        output as well as a memory leak in caam_jr when the module is
        unloaded"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: caam - fix memleak in caam_jr module
        crypto: sha512_ssse3 - fix byte count to bit count conversion
      9ab6e6e7
  2. 10 7月, 2014 3 次提交
  3. 09 7月, 2014 10 次提交
  4. 08 7月, 2014 11 次提交
  5. 07 7月, 2014 5 次提交
    • G
      hwmon: (emc2103) Clamp limits instead of bailing out · f6c2dd20
      Guenter Roeck 提交于
      It is customary to clamp limits instead of bailing out with an error
      if a configured limit is out of the range supported by the driver.
      This simplifies limit configuration, since the user will not typically
      know chip and/or driver specific limits.
      Reviewed-by: NJean Delvare <jdelvare@suse.de>
      Cc: stable@vger.kernel.org
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      f6c2dd20
    • Y
      workqueue: zero cpumask of wq_numa_possible_cpumask on init · 5a6024f1
      Yasuaki Ishimatsu 提交于
      When hot-adding and onlining CPU, kernel panic occurs, showing following
      call trace.
      
        BUG: unable to handle kernel paging request at 0000000000001d08
        IP: [<ffffffff8114acfd>] __alloc_pages_nodemask+0x9d/0xb10
        PGD 0
        Oops: 0000 [#1] SMP
        ...
        Call Trace:
         [<ffffffff812b8745>] ? cpumask_next_and+0x35/0x50
         [<ffffffff810a3283>] ? find_busiest_group+0x113/0x8f0
         [<ffffffff81193bc9>] ? deactivate_slab+0x349/0x3c0
         [<ffffffff811926f1>] new_slab+0x91/0x300
         [<ffffffff815de95a>] __slab_alloc+0x2bb/0x482
         [<ffffffff8105bc1c>] ? copy_process.part.25+0xfc/0x14c0
         [<ffffffff810a3c78>] ? load_balance+0x218/0x890
         [<ffffffff8101a679>] ? sched_clock+0x9/0x10
         [<ffffffff81105ba9>] ? trace_clock_local+0x9/0x10
         [<ffffffff81193d1c>] kmem_cache_alloc_node+0x8c/0x200
         [<ffffffff8105bc1c>] copy_process.part.25+0xfc/0x14c0
         [<ffffffff81114d0d>] ? trace_buffer_unlock_commit+0x4d/0x60
         [<ffffffff81085a80>] ? kthread_create_on_node+0x140/0x140
         [<ffffffff8105d0ec>] do_fork+0xbc/0x360
         [<ffffffff8105d3b6>] kernel_thread+0x26/0x30
         [<ffffffff81086652>] kthreadd+0x2c2/0x300
         [<ffffffff81086390>] ? kthread_create_on_cpu+0x60/0x60
         [<ffffffff815f20ec>] ret_from_fork+0x7c/0xb0
         [<ffffffff81086390>] ? kthread_create_on_cpu+0x60/0x60
      
      In my investigation, I found the root cause is wq_numa_possible_cpumask.
      All entries of wq_numa_possible_cpumask is allocated by
      alloc_cpumask_var_node(). And these entries are used without initializing.
      So these entries have wrong value.
      
      When hot-adding and onlining CPU, wq_update_unbound_numa() is called.
      wq_update_unbound_numa() calls alloc_unbound_pwq(). And alloc_unbound_pwq()
      calls get_unbound_pool(). In get_unbound_pool(), worker_pool->node is set
      as follow:
      
      3592         /* if cpumask is contained inside a NUMA node, we belong to that node */
      3593         if (wq_numa_enabled) {
      3594                 for_each_node(node) {
      3595                         if (cpumask_subset(pool->attrs->cpumask,
      3596                                            wq_numa_possible_cpumask[node])) {
      3597                                 pool->node = node;
      3598                                 break;
      3599                         }
      3600                 }
      3601         }
      
      But wq_numa_possible_cpumask[node] does not have correct cpumask. So, wrong
      node is selected. As a result, kernel panic occurs.
      
      By this patch, all entries of wq_numa_possible_cpumask are allocated by
      zalloc_cpumask_var_node to initialize them. And the panic disappeared.
      Signed-off-by: NYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
      Reviewed-by: NLai Jiangshan <laijs@cn.fujitsu.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: stable@vger.kernel.org
      Fixes: bce90380 ("workqueue: add wq_numa_tbl_len and wq_numa_possible_cpumask[]")
      5a6024f1
    • W
      HID: use multi input quirk for 22b9:2968 · 3179e8e6
      Wen-chien Jesse Sung 提交于
      This device generates ABS_Z and ABS_RX events instead of ABS_X and
      ABS_Y.
      Signed-off-by: NWen-chien Jesse Sung <jesse.sung@canonical.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      3179e8e6
    • G
      hwmon: (adm1031) Fix writes to limit registers · 145e74a4
      Guenter Roeck 提交于
      Upper limit for write operations to temperature limit registers
      was clamped to a fractional value. However, limit registers do
      not support fractional values. As a result, upper limits of 127.5
      degrees C or higher resulted in a rounded limit of 128 degrees C.
      Since limit registers are signed, this was stored as -128 degrees C.
      Clamp limits to (-55, +127) degrees C to solve the problem.
      
      Value on writes to auto_temp[12]_min and auto_temp[12]_max were not
      clamped at all, but masked. As a result, out-of-range writes resulted
      in a more or less arbitrary limit. Clamp those attributes to (0, 127)
      degrees C for more predictable results.
      
      Cc: Axel Lin <axel.lin@ingics.com>
      Cc: stable@vger.kernel.org
      Reviewed-by: NJean Delvare <jdelvare@suse.de>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      145e74a4
    • L
      ACPI / battery: Retry to get battery information if failed during probing · 75646e75
      Lan Tianyu 提交于
      Some machines (eg. Lenovo Z480) ECs are not stable during boot up
      and causes battery driver fails to be loaded due to failure of getting
      battery information from EC sometimes. After several retries, the
      operation will work. This patch is to retry to get battery information 5
      times if the first try fails.
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=75581Reported-and-tested-by: Nnaszar <naszar@ya.ru>
      Cc: All applicable <stable@vger.kernel.org>
      Signed-off-by: NLan Tianyu <tianyu.lan@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      75646e75