Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge: with linus tree on 25-August #1

Merged
merged 450 commits into from
Aug 25, 2015
Merged

merge: with linus tree on 25-August #1

merged 450 commits into from
Aug 25, 2015
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Aug 9, 2015

  1. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/dtor/input
    
    Pull input subsystem fixes from Dmitry Torokhov:
     "Just small ALPS and Elan touchpads, and other driver fixups"
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
      Input: elantech - add special check for fw_version 0x470f01 touchpad
      Input: twl4030-vibra - fix ERROR: Bad of_node_put() warning
      Input: alps - only Dell laptops have separate button bits for v2 dualpoint sticks
      Input: axp20x-pek - add module alias
      Input: turbografx - fix potential out of bound access
    torvalds committed Aug 9, 2015
    Configuration menu
    Copy the full SHA
    a230e95 View commit details
    Browse the repository at this point in the history
  2. Linux 4.2-rc6

    torvalds committed Aug 9, 2015
    Configuration menu
    Copy the full SHA
    f7644cb View commit details
    Browse the repository at this point in the history
  3. NTB: Fix ntb_transport out-of-order RX update

    It was possible for a synchronous update of the RX index in the error
    case to get ahead of the asynchronous RX index update in the normal
    case.  Change the RX processing to preserve an RX completion order.
    
    There were two error cases.  First, if a buffer is not present to
    receive data, there would be no queue entry to preserve the RX
    completion order.  Instead of dropping the RX frame, leave the RX frame
    in the ring.  Schedule RX processing when RX entries are enqueued, in
    case there are RX frames waiting in the ring to be received.
    
    Second, if a buffer is too small to receive data, drop the frame in the
    ring, mark the RX entry as done, and indicate the error in the RX entry
    length.  Check for a negative length in the receive callback in
    ntb_netdev, and count occurrences as rx_length_errors.
    
    Signed-off-by: Allen Hubbe <Allen.Hubbe@emc.com>
    Signed-off-by: Jon Mason <jdmason@kudzu.us>
    Allen Hubbe authored and jonmason committed Aug 9, 2015
    Configuration menu
    Copy the full SHA
    da2e5ae View commit details
    Browse the repository at this point in the history
  4. NTB: Fix transport stats for multiple devices

    Currently the debugfs does not have files for all NTB transport queue
    pairs.  When there are multiple NTBs present in a system, the QP names
    of the last transport clobber the names of previously added transport
    QPs.  Only the last added QPs can be observed via debugfs.
    
    Create a directory per NTB transport to associate the QPs with that
    transport.  Name the directory the same as the PCI device.
    
    Signed-off-by: Dave Jiang <dave.jiang@intel.com>
    Signed-off-by: Jon Mason <jdmason@kudzu.us>
    davejiang authored and jonmason committed Aug 9, 2015
    Configuration menu
    Copy the full SHA
    c8650fd View commit details
    Browse the repository at this point in the history
  5. NTB: ntb_netdev not covering all receive errors

    ntb_netdev is allowing the link to come up even when -ENOMEM is returned
    from ntb_transport_rx_enqueue.  Fix to cover all possible errors.
    
    Signed-off-by: Dave Jiang <dave.jiang@intel.com>
    Signed-off-by: Jon Mason <jdmason@kudzu.us>
    davejiang authored and jonmason committed Aug 9, 2015
    Configuration menu
    Copy the full SHA
    da4eb27 View commit details
    Browse the repository at this point in the history
  6. NTB: Fix oops in debugfs when transport is half-up

    When the remote side is not up, we do not have all the context for the
    transport, and that causes NULL ptr access. Have the debugfs reads check
    to see if transport is up before we make access.
    
    Signed-off-by: Dave Jiang <dave.jiang@intel.com>
    Signed-off-by: Jon Mason <jdmason@kudzu.us>
    davejiang authored and jonmason committed Aug 9, 2015
    Configuration menu
    Copy the full SHA
    260bee9 View commit details
    Browse the repository at this point in the history
  7. NTB: Schedule to receive on QP link up

    Schedule to receive on QP link up, to make sure that the doorbell is
    properly cleared for interrupts.
    
    Signed-off-by: Allen Hubbe <Allen.Hubbe@emc.com>
    Signed-off-by: Jon Mason <jdmason@kudzu.us>
    Allen Hubbe authored and jonmason committed Aug 9, 2015
    Configuration menu
    Copy the full SHA
    8b5a22d View commit details
    Browse the repository at this point in the history
  8. NTB: Fix zero size or integer overflow in ntb_set_mw

    A plain 32 bit integer will overflow for values over 4GiB.
    
    Change the plain integer size to the appropriate size type in
    ntb_set_mw.  Change the type of the size parameter and two local
    variables used for size.
    
    Even if there is no overflow, a size of zero is invalid here.
    
    Reported-by: Juyoung Jung <jjung@micron.com>
    Signed-off-by: Allen Hubbe <Allen.Hubbe@emc.com>
    Signed-off-by: Jon Mason <jdmason@kudzu.us>
    Allen Hubbe authored and jonmason committed Aug 9, 2015
    Configuration menu
    Copy the full SHA
    8c9edf6 View commit details
    Browse the repository at this point in the history
  9. NTB: Fix dereference before check

    Remove early dereference of a pointer that is checked later in the code.
    
    Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Allen Hubbe <Allen.Hubbe@emc.com>
    Signed-off-by: Jon Mason <jdmason@kudzu.us>
    Allen Hubbe authored and jonmason committed Aug 9, 2015
    Configuration menu
    Copy the full SHA
    30a4bb1 View commit details
    Browse the repository at this point in the history
  10. ntb: avoid format string in dev_set_name

    Avoid any chance of format string expansion when calling dev_set_name.
    
    Signed-off-by: Kees Cook <keescook@chromium.org>
    Signed-off-by: Jon Mason <jdmason@kudzu.us>
    kees authored and jonmason committed Aug 9, 2015
    Configuration menu
    Copy the full SHA
    e15f940 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2015

  1. fbdev: select versatile helpers for the integrator

    Commit 11c32d7
    "video: move Versatile CLCD helpers" missed the fact
    that the Integrator/CP is also using the helper, and
    as a result the platform got only stubs and no graphics.
    Add this as a default selection to Kconfig so we have
    graphics again.
    
    Fixes: 11c32d7 (video: move Versatile CLCD helpers)
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
    linusw authored and tomba committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    2701fa0 View commit details
    Browse the repository at this point in the history
  2. OMAPDSS: Fix node refcount leak in omapdss_of_get_next_port()

    Fix node refcount leak in omapdss_of_get_next_port().
    
    Signed-off-by: Jyri Sarha <jsarha@ti.com>
    Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
    Jyri Sarha authored and tomba committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    2b55cb3 View commit details
    Browse the repository at this point in the history
  3. OMAPDSS: Fix omap_dss_find_output_by_port_node() port refcount decrement

    Fix omap_dss_find_output_by_port_node() port parameter refcount
    decrementation. The only user of dss_of_port_get_parent_device()
    function is omap_dss_find_output_by_port_node() and it assumes the
    refcount of the port parameter is not decremented by the call.
    
    Signed-off-by: Jyri Sarha <jsarha@ti.com>
    Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
    Jyri Sarha authored and tomba committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    6266f4b View commit details
    Browse the repository at this point in the history
  4. video: fbdev: pxa3xx_gcu: prepare the clocks

    The clocks need to be prepared before being enabled. Without it a
    warning appears in the drivers probe path :
    
    WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:707 clk_core_enable+0x84/0xa0()
    Modules linked in:
    CPU: 0 PID: 1 Comm: swapper Not tainted 4.2.0-rc3-cm-x300+ #804
    Hardware name: CM-X300 module
    [<c000ed50>] (unwind_backtrace) from [<c000ce08>] (show_stack+0x10/0x14)
    [<c000ce08>] (show_stack) from [<c0017eb4>] (warn_slowpath_common+0x7c/0xb4)
    [<c0017eb4>] (warn_slowpath_common) from [<c0017f88>] (warn_slowpath_null+0x1c/0x24)
    [<c0017f88>] (warn_slowpath_null) from [<c02d30dc>] (clk_core_enable+0x84/0xa0)
    [<c02d30dc>] (clk_core_enable) from [<c02d3118>] (clk_enable+0x20/0x34)
    [<c02d3118>] (clk_enable) from [<c0200dfc>] (pxa3xx_gcu_probe+0x148/0x338)
    [<c0200dfc>] (pxa3xx_gcu_probe) from
    [<c022eccc>] (platform_drv_probe+0x30/0x94)
    
    Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
    Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
    rjarzmik authored and tomba committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    9e6e35e View commit details
    Browse the repository at this point in the history
  5. [media] vb2: Fix compilation breakage when !CONFIG_BUG

    Commit 77a3c6f ("[media] vb2: Don't WARN when v4l2_buffer.bytesused
    is 0 for multiplanar buffers") uses the __WARN() macro which isn't
    defined when CONFIG_BUG isn't set. This introduces a compilation
    breakage. Fix it by using WARN_ON() instead.
    
    The commit was also broken in that it merged v1 of the patch while a new
    v2 version had been submitted, reviewed and acked. Fix it by
    incorporating the changes from v1 to v2.
    
    Fixes: 77a3c6f ("[media] vb2: Don't WARN when v4l2_buffer.bytesused is 0 for multiplanar buffers")
    
    Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    pinchartl authored and mchehab committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    2fa3dc4 View commit details
    Browse the repository at this point in the history
  6. netfilter: ip6t_SYNPROXY: fix NULL pointer dereference

    This happens when networking namespaces are enabled.
    
    Suggested-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: Phil Sutter <phil@nwl.cc>
    Acked-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    Phil Sutter authored and ummakynes committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    96fffb4 View commit details
    Browse the repository at this point in the history
  7. netfilter: SYNPROXY: fix sending window update to client

    Upon receipt of SYNACK from the server, ipt_SYNPROXY first sends back an ACK to
    finish the server handshake, then calls nf_ct_seqadj_init() to initiate
    sequence number adjustment of forwarded packets to the client and finally sends
    a window update to the client to unblock it's TX queue.
    
    Since synproxy_send_client_ack() does not set synproxy_send_tcp()'s nfct
    parameter, no sequence number adjustment happens and the client receives the
    window update with incorrect sequence number. Depending on client TCP
    implementation, this leads to a significant delay (until a window probe is
    being sent).
    
    Signed-off-by: Phil Sutter <phil@nwl.cc>
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    Phil Sutter authored and ummakynes committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    3c16241 View commit details
    Browse the repository at this point in the history
  8. video: Fix possible leak in of_get_videomode()

    In case videomode_from_timings() fails in function of_get_videomode(), the
    allocated display timing data is not freed in the exit path. Make sure that
    display_timings_release() is called in any case. Detected by Coverity CID
    1309681.
    
    Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
    Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
    Christian Engelmayer authored and tomba committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    37b617f View commit details
    Browse the repository at this point in the history
  9. fbcon: unconditionally initialize cursor blink interval

    A sun7i-a20-olinuxino-micro fails to boot when kernel parameter
    vt.global_cursor_default=0. The value is copied to vc->vc_deccm
    causing the initialization of ops->cur_blink_jiffies to be skipped.
    Unconditionally initialize it.
    
    Reported-and-tested-by: Jonathan Liu <net147@gmail.com>
    Signed-off-by: Scot Doyle <lkml14@scotdoyle.com>
    Acked-by: Pavel Machek <pavel@ucw.cz>
    Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
    Scot Doyle authored and tomba committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    2a17d7e View commit details
    Browse the repository at this point in the history
  10. x86/xen: build "Xen PV" APIC driver for domU as well

    It turns out that a PV domU also requires the "Xen PV" APIC
    driver. Otherwise, the flat driver is used and we get stuck in busy
    loops that never exit, such as in this stack trace:
    
    (gdb) target remote localhost:9999
    Remote debugging using localhost:9999
    __xapic_wait_icr_idle () at ./arch/x86/include/asm/ipi.h:56
    56              while (native_apic_mem_read(APIC_ICR) & APIC_ICR_BUSY)
    (gdb) bt
     #0  __xapic_wait_icr_idle () at ./arch/x86/include/asm/ipi.h:56
     #1  __default_send_IPI_shortcut (shortcut=<optimized out>,
    dest=<optimized out>, vector=<optimized out>) at
    ./arch/x86/include/asm/ipi.h:75
     #2  apic_send_IPI_self (vector=246) at arch/x86/kernel/apic/probe_64.c:54
     #3  0xffffffff81011336 in arch_irq_work_raise () at
    arch/x86/kernel/irq_work.c:47
     #4  0xffffffff8114990c in irq_work_queue (work=0xffff88000fc0e400) at
    kernel/irq_work.c:100
     #5  0xffffffff8110c29d in wake_up_klogd () at kernel/printk/printk.c:2633
     #6  0xffffffff8110ca60 in vprintk_emit (facility=0, level=<optimized
    out>, dict=0x0 <irq_stack_union>, dictlen=<optimized out>,
    fmt=<optimized out>, args=<optimized out>)
        at kernel/printk/printk.c:1778
     #7  0xffffffff816010c8 in printk (fmt=<optimized out>) at
    kernel/printk/printk.c:1868
     #8  0xffffffffc00013ea in ?? ()
     #9  0x0000000000000000 in ?? ()
    
    Mailing-list-thread: https://lkml.org/lkml/2015/8/4/755
    Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: David Vrabel <david.vrabel@citrix.com>
    zx2c4 authored and David Vrabel committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    fc5fee8 View commit details
    Browse the repository at this point in the history
  11. arm64: VDSO: fix coarse clock monotonicity regression

    Since 906c555 ("timekeeping: Copy the shadow-timekeeper over the
    real timekeeper last") it has become possible on arm64 to:
    
    - Obtain a CLOCK_MONOTONIC_COARSE or CLOCK_REALTIME_COARSE timestamp
      via syscall.
    - Subsequently obtain a timestamp for the same clock ID via VDSO which
      predates the first timestamp (by one jiffy).
    
    This is because arm64's update_vsyscall is deriving the coarse time
    using the __current_kernel_time interface, when it should really be
    using the timekeeper object provided to it by the timekeeping core.
    It happened to work before only because __current_kernel_time would
    access the same timekeeper object which had been passed to
    update_vsyscall.  This is no longer the case.
    
    Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
    Acked-by: Will Deacon <will.deacon@arm.com>
    Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
    nlynch-mentor authored and ctmarinas committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    878854a View commit details
    Browse the repository at this point in the history
  12. crypto: authencesn - Fix breakage with new ESP code

    The ESP code has been updated to generate a completely linear
    AD SG list.  This unfortunately broke authencesn which expects
    the AD to be divided into at least three parts.
    
    This patch fixes it to cope with the new format.  Later we will
    fix it properly to accept arbitrary input and not rely on the
    input being linear as part of the AEAD conversion.
    
    Fixes: 7021b2e ("esp4: Switch to new AEAD interface")
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    herbertx committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    443c0d7 View commit details
    Browse the repository at this point in the history
  13. cpuset: use trialcs->mems_allowed as a temp variable

    The comment says it's using trialcs->mems_allowed as a temp variable but
    it didn't match the code. Change the code to match the comment.
    
    This fixes an issue when writing in cpuset.mems when a sub-directory
    exists: we need to write several times for the information to persist:
    
    | root@alban:/sys/fs/cgroup/cpuset# mkdir footest9
    | root@alban:/sys/fs/cgroup/cpuset# cd footest9
    | root@alban:/sys/fs/cgroup/cpuset/footest9# mkdir aa
    | root@alban:/sys/fs/cgroup/cpuset/footest9# cat cpuset.mems
    |
    | root@alban:/sys/fs/cgroup/cpuset/footest9# echo 0 > cpuset.mems
    | root@alban:/sys/fs/cgroup/cpuset/footest9# cat cpuset.mems
    |
    | root@alban:/sys/fs/cgroup/cpuset/footest9# echo 0 > cpuset.mems
    | root@alban:/sys/fs/cgroup/cpuset/footest9# cat cpuset.mems
    | 0
    | root@alban:/sys/fs/cgroup/cpuset/footest9# cat aa/cpuset.mems
    |
    | root@alban:/sys/fs/cgroup/cpuset/footest9# echo 0 > aa/cpuset.mems
    | root@alban:/sys/fs/cgroup/cpuset/footest9# cat aa/cpuset.mems
    | 0
    | root@alban:/sys/fs/cgroup/cpuset/footest9#
    
    This should help to fix the following issue in Docker:
    opencontainers/runc#133
    In some conditions, a Docker container needs to be started twice in
    order to work.
    
    Signed-off-by: Alban Crequy <alban@endocode.com>
    Tested-by: Iago López Galeiras <iago@endocode.com>
    Cc: <stable@vger.kernel.org> # 3.17+
    Acked-by: Li Zefan <lizefan@huawei.com>
    Signed-off-by: Tejun Heo <tj@kernel.org>
    alban authored and htejun committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    24ee3cf View commit details
    Browse the repository at this point in the history
  14. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/viro/vfs
    
    Pull RCU pathwalk fix from Al Viro:
     "Another racy use of nd->path.dentry in RCU mode"
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
      may_follow_link() should use nd->inode
    torvalds committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    a3ca013 View commit details
    Browse the repository at this point in the history
  15. Merge tag 'ntb-4.2-rc7' of git://github.com/jonmason/ntb

    Pull NTB bugfixes from Jon Mason:
     "NTB bug fixes to address transport receive issues, stats, link
      negotiation issues, and string formatting"
    
    * tag 'ntb-4.2-rc7' of git://github.com/jonmason/ntb:
      ntb: avoid format string in dev_set_name
      NTB: Fix dereference before check
      NTB: Fix zero size or integer overflow in ntb_set_mw
      NTB: Schedule to receive on QP link up
      NTB: Fix oops in debugfs when transport is half-up
      NTB: ntb_netdev not covering all receive errors
      NTB: Fix transport stats for multiple devices
      NTB: Fix ntb_transport out-of-order RX update
    torvalds committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    016a9f5 View commit details
    Browse the repository at this point in the history
  16. Merge tag 'mfd-fixes-4.2' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/lee/mfd
    
    Pull MFD fixes from Lee Jones:
     - fix dependency issues on ChromeOS platforms
     - fix runtime PM issues on Arizona
     - fix IRQ/suspend race on Arizona
    
    * tag 'mfd-fixes-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd:
      mfd: Remove MFD_CROS_EC_SPI depends on OF
      platform/chrome: Don't make CHROME_PLATFORMS depends on X86 || ARM
      mfd: arizona: Fix initialisation of the PM runtime
      mfd: arizona: Fix race between runtime suspend and IRQs
    torvalds committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    2b9bea0 View commit details
    Browse the repository at this point in the history
  17. net: mvpp2: remove excessive spinlocks from driver initialization

    Using spinlocks protection during one-time driver initialization is not
    necessary. Moreover it resulted in invalid GFP_KERNEL allocation under the lock.
    
    This commit removes redundant spinlocks from buffer manager part of mvpp2
    initialization.
    
    Signed-off-by: Marcin Wojtas <mw@semihalf.com>
    Reported-by: Alexandre Fournier <alexandre.fournier@wisp-e.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    wojtas-marcin authored and davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    d53793c View commit details
    Browse the repository at this point in the history
  18. net: mvpp2: enable proper per-CPU TX buffers unmapping

    mvpp2 driver allows usage of per-CPU TX processing. Once the packets are
    prepared independetly on each CPU, the hardware enqueues the descriptors in
    common TX queue. After they are sent, the buffers and associated sk_buffs
    should be released on the corresponding CPU.
    
    This is why a special index is maintained in order to point to the right data to
    be released after transmission takes place. Each per-CPU TX queue comprise an
    array of sent sk_buffs, freed in mvpp2_txq_bufs_free function. However, the
    index was used there also for obtaining a descriptor (and therefore a buffer to
    be DMA-unmapped) from common TX queue, which was wrong, because it was not
    referring to the current CPU.
    
    This commit enables proper unmapping of sent data buffers by indexing them in
    per-CPU queues using a dedicated array for keeping their physical addresses.
    
    Signed-off-by: Marcin Wojtas <mw@semihalf.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    wojtas-marcin authored and davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    71ce391 View commit details
    Browse the repository at this point in the history
  19. net: mvpp2: replace TX coalescing interrupts with hrtimer

    The PP2 controller is capable of per-CPU TX processing, which means there are
    per-CPU banked register sets and queues. Current version of the driver supports
    TX packet coalescing - once on given CPU sent packets amount reaches a threshold
    value, an IRQ occurs. However, there is a single interrupt line responsible for
    CPU0/1 TX and RX events (the latter is not per-CPU, the hardware does not
    support RSS).
    
    When the top-half executes the interrupt cause is not known. This is why in
    NAPI poll function, along with RX processing, IRQ cause register on both
    CPU's is accessed in order to determine on which of them the TX coalescing
    threshold might have been reached. Thus the egress processing and releasing the
    buffers is able to take place on the corresponding CPU. Hitherto approach lead
    to an illegal usage of on_each_cpu function in softirq context.
    
    The problem is solved by resigning from TX coalescing interrupts and separating
    egress finalization from NAPI processing. For that purpose a method of using
    hrtimer is introduced. In main transmit function (mvpp2_tx) buffers are released
    once a software coalescing threshold is reached. In case not all the data is
    processed a timer is set on this CPU - in its interrupt context a tasklet is
    scheduled in which all queues are processed. At once only one timer per-CPU can
    be running, which is controlled by a dedicated flag.
    
    This commit removes TX processing from NAPI polling function, disables hardware
    coalescing and enables hrtimer with tasklet, using new per-CPU port structure
    (mvpp2_port_pcpu).
    
    Signed-off-by: Marcin Wojtas <mw@semihalf.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    wojtas-marcin authored and davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    edc660f View commit details
    Browse the repository at this point in the history
  20. Merge branch 'mvpp2-fixes'

    Marcin Wojtas says:
    
    ====================
    Fixes for the network driver of Marvell Armada 375 SoC
    
    This is a set of three patches that fix long-lasting problems implemented in
    the initial support for the Armada 375 network controller.
    
    Due to an inappropriate concept of handling the per-CPU sent packets'
    processing on TX path the driver numerous problems occured, such as RCU
    stalls. Those have been fixed, of which details you can find in the commit
    logs. The patches were intensively tested on top of v4.2-rc5.
    
    I'm looking forward to any comments or remarks.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    ea70858 View commit details
    Browse the repository at this point in the history
  21. bna: fix interrupts storm caused by erroneous packets

    The commit "e29aa33 bna: Enable Multi Buffer RX" moved packets counter
    increment from the beginning of the NAPI processing loop after the check
    for erroneous packets so they are never accounted. This counter is used
    to inform firmware about number of processed completions (packets).
    As these packets are never acked the firmware fires IRQs for them again
    and again.
    
    Fixes: e29aa33 ("bna: Enable Multi Buffer RX")
    Signed-off-by: Ivan Vecera <ivecera@redhat.com>
    Acked-by: Rasesh Mody <rasesh.mody@qlogic.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Ivan Vecera authored and davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    ade4dc3 View commit details
    Browse the repository at this point in the history
  22. netlink: make sure -EBUSY won't escape from netlink_insert

    Linus reports the following deadlock on rtnl_mutex; triggered only
    once so far (extract):
    
    [12236.694209] NetworkManager  D 0000000000013b80     0  1047      1 0x00000000
    [12236.694218]  ffff88003f902640 0000000000000000 ffffffff815d15a9 0000000000000018
    [12236.694224]  ffff880119538000 ffff88003f902640 ffffffff81a8ff84 00000000ffffffff
    [12236.694230]  ffffffff81a8ff88 ffff880119c47f00 ffffffff815d133a ffffffff81a8ff80
    [12236.694235] Call Trace:
    [12236.694250]  [<ffffffff815d15a9>] ? schedule_preempt_disabled+0x9/0x10
    [12236.694257]  [<ffffffff815d133a>] ? schedule+0x2a/0x70
    [12236.694263]  [<ffffffff815d15a9>] ? schedule_preempt_disabled+0x9/0x10
    [12236.694271]  [<ffffffff815d2c3f>] ? __mutex_lock_slowpath+0x7f/0xf0
    [12236.694280]  [<ffffffff815d2cc6>] ? mutex_lock+0x16/0x30
    [12236.694291]  [<ffffffff814f1f90>] ? rtnetlink_rcv+0x10/0x30
    [12236.694299]  [<ffffffff8150ce3b>] ? netlink_unicast+0xfb/0x180
    [12236.694309]  [<ffffffff814f5ad3>] ? rtnl_getlink+0x113/0x190
    [12236.694319]  [<ffffffff814f202a>] ? rtnetlink_rcv_msg+0x7a/0x210
    [12236.694331]  [<ffffffff8124565c>] ? sock_has_perm+0x5c/0x70
    [12236.694339]  [<ffffffff814f1fb0>] ? rtnetlink_rcv+0x30/0x30
    [12236.694346]  [<ffffffff8150d62c>] ? netlink_rcv_skb+0x9c/0xc0
    [12236.694354]  [<ffffffff814f1f9f>] ? rtnetlink_rcv+0x1f/0x30
    [12236.694360]  [<ffffffff8150ce3b>] ? netlink_unicast+0xfb/0x180
    [12236.694367]  [<ffffffff8150d344>] ? netlink_sendmsg+0x484/0x5d0
    [12236.694376]  [<ffffffff810a236f>] ? __wake_up+0x2f/0x50
    [12236.694387]  [<ffffffff814cad23>] ? sock_sendmsg+0x33/0x40
    [12236.694396]  [<ffffffff814cb05e>] ? ___sys_sendmsg+0x22e/0x240
    [12236.694405]  [<ffffffff814cab75>] ? ___sys_recvmsg+0x135/0x1a0
    [12236.694415]  [<ffffffff811a9d12>] ? eventfd_write+0x82/0x210
    [12236.694423]  [<ffffffff811a0f9e>] ? fsnotify+0x32e/0x4c0
    [12236.694429]  [<ffffffff8108cb70>] ? wake_up_q+0x60/0x60
    [12236.694434]  [<ffffffff814cba09>] ? __sys_sendmsg+0x39/0x70
    [12236.694440]  [<ffffffff815d4797>] ? entry_SYSCALL_64_fastpath+0x12/0x6a
    
    It seems so far plausible that the recursive call into rtnetlink_rcv()
    looks suspicious. One way, where this could trigger is that the senders
    NETLINK_CB(skb).portid was wrongly 0 (which is rtnetlink socket), so
    the rtnl_getlink() request's answer would be sent to the kernel instead
    to the actual user process, thus grabbing rtnl_mutex() twice.
    
    One theory would be that netlink_autobind() triggered via netlink_sendmsg()
    internally overwrites the -EBUSY error to 0, but where it is wrongly
    originating from __netlink_insert() instead. That would reset the
    socket's portid to 0, which is then filled into NETLINK_CB(skb).portid
    later on. As commit d470e3b ("[NETLINK]: Fix two socket hashing bugs.")
    also puts it, -EBUSY should not be propagated from netlink_insert().
    
    It looks like it's very unlikely to reproduce. We need to trigger the
    rhashtable_insert_rehash() handler under a situation where rehashing
    currently occurs (one /rare/ way would be to hit ht->elasticity limits
    while not filled enough to expand the hashtable, but that would rather
    require a specifically crafted bind() sequence with knowledge about
    destination slots, seems unlikely). It probably makes sense to guard
    __netlink_insert() in any case and remap that error. It was suggested
    that EOVERFLOW might be better than an already overloaded ENOMEM.
    
    Reference: http://thread.gmane.org/gmane.linux.network/372676
    Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
    Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
    Acked-by: Thomas Graf <tgraf@suug.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    borkmann authored and davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    4e7c133 View commit details
    Browse the repository at this point in the history
  23. ipv6: don't reject link-local nexthop on other interface

    48ed7b2 ("ipv6: reject locally assigned nexthop addresses") is too
    strict; it rejects following corner-case:
    
    ip -6 route add default via fe80::1:2:3 dev eth1
    
    [ where fe80::1:2:3 is assigned to a local interface, but not eth1 ]
    
    Fix this by restricting search to given device if nh is linklocal.
    
    Joint work with Hannes Frederic Sowa.
    
    Fixes: 48ed7b2 ("ipv6: reject locally assigned nexthop addresses")
    Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
    Signed-off-by: Florian Westphal <fw@strlen.de>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Florian Westphal authored and davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    330567b View commit details
    Browse the repository at this point in the history
  24. net-timestamp: Update skb_complete_tx_timestamp comment

    After "62bccb8 net-timestamp: Make the clone operation stand-alone from phy
    timestamping" the hwtstamps parameter of skb_complete_tx_timestamp() may no
    longer be NULL.
    
    Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
    Cc: Alexander Duyck <alexander.h.duyck@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    gobenji authored and davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    7a76a02 View commit details
    Browse the repository at this point in the history
  25. cxgb4: missing curly braces in t4_setup_debugfs()

    There were missing curly braces so it means we call add_debugfs_mem()
    unintentionally.
    
    Fixes: 3ccc6cf ('cxgb4: Adds support for T6 adapter')
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Dan Carpenter authored and davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    21a4476 View commit details
    Browse the repository at this point in the history
  26. bnx2x: Prevent null pointer dereference on SKB release

    On error flows its possible to free an SKB even if it was not allocated.
    
    Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
    Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Yuval Mintz authored and davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    e161590 View commit details
    Browse the repository at this point in the history
  27. bnx2x: Free NVRAM lock at end of each page

    Writing each 4Kb page into flash might take up-to ~100 miliseconds,
    during which time management firmware cannot acces the nvram for its
    own uses.
    
    Firmware upgrade utility use the ethtool API to burn new flash images
    for the device via the ethtool API, doing so by writing several page-worth
    of data on each command. Such action might create problems for the
    management firmware, as the nvram might not be accessible for a long time.
    
    This patch changes the write implementation, releasing the nvram lock on
    the completion of each page, allowing the management firmware time to
    claim it and perform its own required actions.
    
    Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
    Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Yuval Mintz authored and davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    0ea853d View commit details
    Browse the repository at this point in the history
  28. Merge branch 'bnx2x-fixes'

    Yuval Mintz says:
    
    ====================
    bnx2x: small fixes
    
    This adds 2 small fixes, one to error flows during memory release
    and the other to flash writes via ethtool API.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    875a74b View commit details
    Browse the repository at this point in the history
  29. HID: wacom: Report correct device resolution when using the wireless …

    …adapater
    
    The 'wacom_wireless_work' function does not recalculate the tablet's
    resolution, causing the value contained in the 'features' struct to
    always be reported to userspace. This value is valid only for the pen
    interface, meaning that the value will be incorrect for the touchpad (if
    present). This in particular causes problems for libinput which relies
    on the reported resolution being correct.
    
    This patch adds the necessary calls to recalculate the resolution for
    each interface. This requires a little bit of code shuffling since both
    the 'wacom_set_default_phy' and 'wacom_calculate_res' are declared below
    their new first point of use in 'wacom_wireless_work'.
    
    Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
    Signed-off-by: Jiri Kosina <jkosina@suse.cz>
    jigpu authored and Jiri Kosina committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    0be0171 View commit details
    Browse the repository at this point in the history
  30. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/jikos/hid
    
    Pull HID fixes from Jiri Kosina:
    
     - fix for bounds limit calculation in uclogic driver, by Dan Carpenter
    
     - fix for use-after-free during device removal, by Krzysztof Kozlowski
    
     - fix for userspace regression (that became apparent only with shiny
       new libinput, so it's not that bad, but I still consider it 4.2
       material), in wacom driver, by Jason Gerecke
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
      HID: wacom: Report correct device resolution when using the wireless adapater
      HID: hid-input: Fix accessing freed memory during device disconnect
      HID: uclogic: fix limit in uclogic_tablet_enable()
    torvalds committed Aug 10, 2015
    Configuration menu
    Copy the full SHA
    7a834ba View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2015

  1. Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf

    Pablo Neira Ayuso says:
    
    ====================
    Netfilter fixes for net
    
    The following patchset contains five Netfilter fixes for your net tree,
    they are:
    
    1) Silence a warning on falling back to vmalloc(). Since 88eab47, we can
       easily hit this warning message, that gets users confused. So let's get rid
       of it.
    
    2) Recently when porting the template object allocation on top of kmalloc to
       fix the netns dependencies between x_tables and conntrack, the error
       checks where left unchanged. Remove IS_ERR() and check for NULL instead.
       Patch from Dan Carpenter.
    
    3) Don't ignore gfp_flags in the new nf_ct_tmpl_alloc() function, from
       Joe Stringer.
    
    4) Fix a crash due to NULL pointer dereference in ip6t_SYNPROXY, patch from
       Phil Sutter.
    
    5) The sequence number of the Syn+ack that is sent from SYNPROXY to clients is
       not adjusted through our NAT infrastructure, as a result the client may
       ignore this TCP packet and TCP flow hangs until the client probes us.  Also
       from Phil Sutter.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    1825545 View commit details
    Browse the repository at this point in the history
  2. mkiss: Fix error handling in mkiss_open()

    If register_netdev() fails we are not propagating the error and
    we return success because ax_open() succeeded previously.
    
    Fix this by checking the return value of ax_open() and
    register_netdev() and propagate the error in case of failure.
    
    Reported-by: RUC_Soft_Sec <zy900702@163.com>
    Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Fabio Estevam authored and davem330 committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    9d332d9 View commit details
    Browse the repository at this point in the history
  3. inet: fix races with reqsk timers

    reqsk_queue_destroy() and reqsk_queue_unlink() should use
    del_timer_sync() instead of del_timer() before calling reqsk_put(),
    otherwise we could free a req still used by another cpu.
    
    But before doing so, reqsk_queue_destroy() must release syn_wait_lock
    spinlock or risk a dead lock, as reqsk_timer_handler() might
    need to take this same spinlock from reqsk_queue_unlink() (called from
    inet_csk_reqsk_queue_drop())
    
    Fixes: fa76ce7 ("inet: get rid of central tcp/dccp listener timer")
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Eric Dumazet authored and davem330 committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    2235f2a View commit details
    Browse the repository at this point in the history
  4. inet: fix possible request socket leak

    In commit b357a36 ("inet: fix possible panic in
    reqsk_queue_unlink()"), I missed fact that tcp_check_req()
    can return the listener socket in one case, and that we must
    release the request socket refcount or we leak it.
    
    Tested:
    
     Following packetdrill test template shows the issue
    
    0     socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
    +0    setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
    +0    bind(3, ..., ...) = 0
    +0    listen(3, 1) = 0
    
    +0    < S 0:0(0) win 2920 <mss 1460,sackOK,nop,nop>
    +0    > S. 0:0(0) ack 1 <mss 1460,nop,nop,sackOK>
    +.002 < . 1:1(0) ack 21 win 2920
    +0    > R 21:21(0)
    
    Fixes: b357a36 ("inet: fix possible panic in reqsk_queue_unlink()")
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Eric Dumazet authored and davem330 committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    3257d8b View commit details
    Browse the repository at this point in the history
  5. drm/exynos: gsc: fix wrong bitwise operation for swap detection

    The bits for rotation are not used as exclusively. So GSC_IN_ROT_270 can
    not be used for swap detection. The definition of it is same with
    GSC_IN_ROT_MASK. It is enough to check GSC_IN_ROT_90 bit is set or not to
    check whether width / height size swapping is needed.
    
    Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Hyungwon Hwang authored and daeinki committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    f2d0160 View commit details
    Browse the repository at this point in the history
  6. drm/exynos/hdmi: fix edid memory leak

    edid returned by drm_get_edid should be freed.
    The patch fixes it.
    
    Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
    Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Andrzej Hajda authored and daeinki committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    e6e771d View commit details
    Browse the repository at this point in the history
  7. drm/exynos/mixer: fix interrupt clearing

    The driver used incorrect flags to clear interrupt status.
    The patch fixes it.
    
    Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
    Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Andrzej Hajda authored and daeinki committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    9859e20 View commit details
    Browse the repository at this point in the history
  8. drm/exynos/mixer: correct vsync configuration sequence

    Specification advises to clear vsync indicator before configuring vsync.
    
    Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
    Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Andrzej Hajda authored and daeinki committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    4f98f94 View commit details
    Browse the repository at this point in the history
  9. drm/exynos/mixer: always update INT_EN cache

    INT_EN cache field was updated only by mixer_enable_vblank.
    The patch adds update also by mixer_disable_vblank function.
    
    Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
    Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Andrzej Hajda authored and daeinki committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    2c5f70e View commit details
    Browse the repository at this point in the history
  10. drm/exynos/fimc: fix runtime pm support

    Once pm_runtime_set_active() gets called, the kernel assumes that given
    device has already enabled runtime pm and will call pm_runtime_suspend()
    without matching pm_runtime_resume(). In case of DRM FIMC IPP driver,
    this will result in calling clk_disable() without respective call to
    clk_enable(). This patch removes call to pm_runtime_set_active() to
    ensure that pm_runtime_suspend/resume calls will match.
    
    Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    mszyprow authored and daeinki committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    9992349 View commit details
    Browse the repository at this point in the history
  11. drm/dp/mst: Remove port after removing connector.

    The port is removed synchronously, but the connector delayed.
    This causes a use after free which can cause a kernel BUG with
    slug_debug=FPZU. This is fixed by freeing the port after the
    connector.
    
    This fixes a regression introduced with
    6b8eeca
    "drm/dp/mst: close deadlock in connector destruction."
    
    Cc: stable@vger.kernel.org
    Cc: Dave Airlie <airlied@redhat.com>
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    mlankhorst authored and jnikula committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    4772ff0 View commit details
    Browse the repository at this point in the history
  12. Revert "xen/events/fifo: Handle linked events when closing a port"

    This reverts commit fcdf31a.
    
    This was causing a WARNING whenever a PIRQ was closed since
    shutdown_pirq() is called with irqs disabled.
    
    Signed-off-by: David Vrabel <david.vrabel@citrix.com>
    Cc: <stable@vger.kernel.org>
    David Vrabel committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    ad6cd7b View commit details
    Browse the repository at this point in the history
  13. xen/xenbus: Don't leak memory when unmapping the ring on HVM backend

    The commit ccc9d90 "xenbus_client:
    Extend interface to support multi-page ring" removes the call to
    free_xenballooned_pages() in xenbus_unmap_ring_vfree_hvm(), leaking a
    page for every shared ring.
    
    Only with backends running in HVM domains were affected.
    
    Signed-off-by: Julien Grall <julien.grall@citrix.com>
    Cc: <stable@vger.kernel.org>
    Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
    Reviewed-by: Wei Liu <wei.liu2@citrix.com>
    Signed-off-by: David Vrabel <david.vrabel@citrix.com>
    Julien Grall authored and David Vrabel committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    c22fe51 View commit details
    Browse the repository at this point in the history
  14. ARM: 8410/1: VDSO: fix coarse clock monotonicity regression

    Since 906c555 ("timekeeping: Copy the shadow-timekeeper over the
    real timekeeper last") it has become possible on ARM to:
    
    - Obtain a CLOCK_MONOTONIC_COARSE or CLOCK_REALTIME_COARSE timestamp
      via syscall.
    - Subsequently obtain a timestamp for the same clock ID via VDSO which
      predates the first timestamp (by one jiffy).
    
    This is because ARM's update_vsyscall is deriving the coarse time
    using the __current_kernel_time interface, when it should really be
    using the timekeeper object provided to it by the timekeeping core.
    It happened to work before only because __current_kernel_time would
    access the same timekeeper object which had been passed to
    update_vsyscall.  This is no longer the case.
    
    Cc: stable@vger.kernel.org
    Fixes: 906c555 ("timekeeping: Copy the shadow-timekeeper over the real timekeeper last")
    Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
    Acked-by: Will Deacon <will.deacon@arm.com>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    nlynch-mentor authored and Russell King committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    09edea4 View commit details
    Browse the repository at this point in the history
  15. Merge tag 'omap-for-v4.2/fixes-rc5' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tmlind/linux-omap into fixes
    
    Few trivial omap MMC regression fixes for card voltages where
    the syscon areas for PBIAS regulator were missing "simple-bus"
    that prevents probing of the children in the mapped region.
    
    This probably was not noticed earlier as the bootloader has
    already configured the regulator for the card in the slot.
    
    * tag 'omap-for-v4.2/fixes-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
      ARM: dts: dra7: Fix broken pbias device creation
      ARM: dts: OMAP5: Fix broken pbias device creation
      ARM: dts: OMAP4: Fix broken pbias device creation
      ARM: dts: omap243x: Fix broken pbias device creation
    
    Signed-off-by: Olof Johansson <olof@lixom.net>
    olofj committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    e2e927c View commit details
    Browse the repository at this point in the history
  16. crypto: nx - respect sg limit bounds when building sg lists for SHA

    Commit 0008511 changed sha256/512 update functions to
    pass more data to nx_build_sg_list(), which ends with
    sg list overflows and usually with update functions failing
    for data larger than max_sg_len * NX_PAGE_SIZE.
    
    This happens because:
    - both "total" and "to_process" are updated, which leads to
      "to_process" getting overflowed for some data lengths
      For example:
        In first iteration "total" is 50, and let's assume "to_process"
        is 30 due to sg limits. At the end of first iteration "total" is
        set to 20. At start of 2nd iteration "to_process" overflows on:
          to_process = total - to_process;
    - "in_sg" is not reset to nx_ctx->in_sg after each iteration
    - nx_build_sg_list() is hitting overflow because the amount of data
      passed to it would require more than sgmax elements
    - as consequence of previous item, data stored in overflowed sg list
      may no longer be aligned to SHA*_BLOCK_SIZE
    
    This patch changes sha256/512 update functions so that "to_process"
    respects sg limits and never tries to pass more data to
    nx_build_sg_list() to avoid overflows. "to_process" is calculated
    as minimum of "total" and sg limits at start of every iteration.
    
    Fixes: 0008511 ("crypto: nx - Fix SHA concurrence issue and sg
    		      limit bounds")
    Signed-off-by: Jan Stancek <jstancek@redhat.com>
    Cc: stable@vger.kernel.org
    Cc: Leonidas Da Silva Barbosa <leosilva@linux.vnet.ibm.com>
    Cc: Marcelo Henrique Cerri <mhcerri@linux.vnet.ibm.com>
    Cc: Fionnuala Gunter <fin@linux.vnet.ibm.com>
    Cc: "David S. Miller" <davem@davemloft.net>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    jstancek authored and herbertx committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    d3392f4 View commit details
    Browse the repository at this point in the history
  17. Merge tag 'fbdev-fixes-4.2' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/tomba/linux
    
    Pull fbdev fixes from Tomi Valkeinen:
     - fix display regression on Versatile boards
     - fix OF node refcount bugs on omapdss
     - fix WARN about clock prepare on pxa3xx_gcu
     - fix mem leak in videomode helpers
     - fix fbconsole related boot problem on sun7i-a20-olinuxino-micro
    
    * tag 'fbdev-fixes-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux:
      fbcon: unconditionally initialize cursor blink interval
      video: Fix possible leak in of_get_videomode()
      video: fbdev: pxa3xx_gcu: prepare the clocks
      OMAPDSS: Fix omap_dss_find_output_by_port_node() port refcount decrement
      OMAPDSS: Fix node refcount leak in omapdss_of_get_next_port()
      fbdev: select versatile helpers for the integrator
    torvalds committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    edf15b4 View commit details
    Browse the repository at this point in the history
  18. net: fs_enet: explicitly remove I flag on TX partial frames

    We are not interested in interrupts for partially transmitted frames,
    we have to clear BD_ENET_TX_INTR explicitly otherwise it may remain
    from a previously used descriptor.
    
    Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    chleroy authored and davem330 committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    8961822 View commit details
    Browse the repository at this point in the history
  19. net: fs_enet: mask interrupts for TX partial frames.

    We are not interested in interrupts for partially transmitted frames.
    Unlike SCC and FCC, the FEC doesn't handle the I bit in buffer
    descriptors, instead it defines two interrupt bits, TXB and TXF.
    
    We have to mask TXB in order to only get interrupts once the
    frame is fully transmitted.
    
    Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    chleroy authored and davem330 committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    c68875f View commit details
    Browse the repository at this point in the history
  20. Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/bluetooth/bluetooth
    
    Johan Hedberg says:
    
    ====================
    pull request: bluetooth 2015-08-11
    
    Here's an important regression fix for the 4.2-rc series that ensures
    user space isn't given invalid LTK values. The bug essentially prevents
    the encryption of subsequent LE connections, i.e. makes it impossible to
    pair devices over LE.
    
    Let me know if there are any issues pulling. Thanks.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    28eaad7 View commit details
    Browse the repository at this point in the history
  21. localmodconfig: Use Kbuild files too

    In kbuild it is allowed to define objects in files named "Makefile"
    and "Kbuild".
    Currently localmodconfig reads objects only from "Makefile"s and misses
    modules like nouveau.
    
    Link: http://lkml.kernel.org/r/1437948415-16290-1-git-send-email-richard@nod.at
    
    Cc: stable@vger.kernel.org
    Reported-and-tested-by: Leonidas Spyropoulos <artafinde@gmail.com>
    Signed-off-by: Richard Weinberger <richard@nod.at>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
    richardweinberger authored and rostedt committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    c0ddc8c View commit details
    Browse the repository at this point in the history
  22. Merge tag 'localmodconfig-v4.2-rc6' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/rostedt/linux-kconfig
    
    Pull localmodconfig fix from Steven Rostedt:
     "Leonidas Spyropoulos found that modules like nouveau were being
      unselected by make localmodconfig even though their configs were set
      and the module was loaded and visible by lsmod.
    
      The reason for this was because streamline-config.pl only looks at
      Makefiles, and not Kbuild files.  As these modules use Kbuild for
      their names, they too need to be checked by localmodconfig.  This was
      fixed by Richard Weinberger"
    
    * tag 'localmodconfig-v4.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-kconfig:
      localmodconfig: Use Kbuild files too
    torvalds committed Aug 11, 2015
    Configuration menu
    Copy the full SHA
    58ccab9 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2015

  1. memory: omap-gpmc: Don't try to save uninitialized GPMC context

    If for some reason the GPMC device hasn't been probed yet, gpmc_base is
    going to be NULL. Because there's no context yet to be saved, just turn
    these functions into no-ops until that device gets probed.
    
    Unable to handle kernel NULL pointer dereference at virtual address 00000010
    pgd = c0204000
    [00000010] *pgd=00000000
    Internal error: Oops: 5 [#1] SMP ARM
    Modules linked in:
    CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.2.0-rc5-next-20150804-05947-g23f38fe8eda9 #1
    Hardware name: Generic OMAP3-GP (Flattened Device Tree)
    task: c0e623e8 ti: c0e5c000 task.ti: c0e5c000
    PC is at omap3_gpmc_save_context+0x8/0xc4
    LR is at omap_sram_idle+0x154/0x23c
    pc : [<c087c7ac>]    lr : [<c023262c>]    psr: 60000193
    sp : c0e5df40  ip : c0f92a80  fp : c0999eb0
    r10: c0e57364  r9 : c0e66f14  r8 : 00000003
    r7 : 00000000  r6 : 00000003  r5 : 00000000  r4 : c0f5f174
    r3 : c0fa4fe8  r2 : 00000000  r1 : 00000000  r0 : fa200280
    Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
    Control: 10c5387d  Table: 80204019  DAC: 00000015
    Process swapper/0 (pid: 0, stack limit = 0xc0e5c220)
    Stack: (0xc0e5df40 to 0xc0e5e000)
    df40: 00000000 c0e66ef8 c0f5f1a4 00000000 00000003 c02333a4 c3813822 00000000
    df60: 00000000 c0e5a5c8 cfb8a5d0 c07f0c44 0e4f1d7e 00000000 00000000 00000000
    df80: c3813822 00000000 cfb8a5d0 c0e5e4e4 cfb8a5d0 c0e66f14 c0e5a5c8 c0e5e54c
    dfa0: c0e5e544 c0e57364 c0999eb0 c0277758 000000fa c0f5d000 00000000 c0d61c18
    dfc0: ffffffff ffffffff 00000000 c0d61674 00000000 c0df7a48 00000000 c0f5d5d4
    dfe0: c0e5e4c0 c0df7a44 c0e634f8 80204059 00000000 8020807c 00000000 00000000
    [<c087c7ac>] (omap3_gpmc_save_context) from [<c023262c>] (omap_sram_idle+0x154/0x23c)
    [<c023262c>] (omap_sram_idle) from [<c02333a4>] (omap3_enter_idle_bm+0xec/0x1a8)
    [<c02333a4>] (omap3_enter_idle_bm) from [<c07f0c44>] (cpuidle_enter_state+0xbc/0x284)
    [<c07f0c44>] (cpuidle_enter_state) from [<c0277758>] (cpu_startup_entry+0x174/0x24c)
    [<c0277758>] (cpu_startup_entry) from [<c0d61c18>] (start_kernel+0x358/0x3c0)
    [<c0d61c18>] (start_kernel) from [<8020807c>] (0x8020807c)
    Code: c0ccace8 c0ccacc0 e59f30b e5932000 (e5921010)
    
    Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
    Suggested-by: Javier Martinez Canillas <javier@dowhile0.org>
    Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Acked-by: Roger Quadros <rogerq@ti.com>
    [tony@atomide.com: updated description as suggested by Javier]
    Signed-off-by: Tony Lindgren <tony@atomide.com>
    tomeuv authored and tmlind committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    e984a17 View commit details
    Browse the repository at this point in the history
  2. perf: Fix double-free of the AUX buffer

    If rb->aux_refcount is decremented to zero before rb->refcount,
    __rb_free_aux() may be called twice resulting in a double free of
    rb->aux_pages.  Fix this by adding a check to __rb_free_aux().
    
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: stable@vger.kernel.org
    Fixes: 57ffc5c ("perf: Fix AUX buffer refcounting")
    Link: http://lkml.kernel.org/r/1437953468.12842.17.camel@decadent.org.uk
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    bwhacks authored and Ingo Molnar committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    ee9397a View commit details
    Browse the repository at this point in the history
  3. perf: Fix PERF_EVENT_IOC_PERIOD migration race

    I ran the perf fuzzer, which triggered some WARN()s which are due to
    trying to stop/restart an event on the wrong CPU.
    
    Use the normal IPI pattern to ensure we run the code on the correct CPU.
    
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Vince Weaver <vincent.weaver@maine.edu>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Fixes: bad7192 ("perf: Fix PERF_EVENT_IOC_PERIOD to force-reset the period")
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Peter Zijlstra authored and Ingo Molnar committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    c7999c6 View commit details
    Browse the repository at this point in the history
  4. perf/x86/intel: Fix memory leak on hot-plug allocation fail

    We fail to free the shared_regs allocation if the constraint_list
    allocation fails.
    
    Cure this and be more consistent in NULL-ing the pointers after free.
    
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Peter Zijlstra authored and Ingo Molnar committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    dbc72b7 View commit details
    Browse the repository at this point in the history
  5. perf/x86/intel/cqm: Do not access cpu_data() from CPU_UP_PREPARE handler

    Tony reports that booting his 144-cpu machine with maxcpus=10 triggers
    the following WARN_ON():
    
    [   21.045727] WARNING: CPU: 8 PID: 647 at arch/x86/kernel/cpu/perf_event_intel_cqm.c:1267 intel_cqm_cpu_prepare+0x75/0x90()
    [   21.045744] CPU: 8 PID: 647 Comm: systemd-udevd Not tainted 4.2.0-rc4 #1
    [   21.045745] Hardware name: Intel Corporation BRICKLAND/BRICKLAND, BIOS BRHSXSD1.86B.0066.R00.1506021730 06/02/2015
    [   21.045747]  0000000000000000 0000000082771b09 ffff880856333ba8 ffffffff81669b67
    [   21.045748]  0000000000000000 0000000000000000 ffff880856333be8 ffffffff8107b02a
    [   21.045750]  ffff88085b789800 ffff88085f68a020 ffffffff819e2470 000000000000000a
    [   21.045750] Call Trace:
    [   21.045757]  [<ffffffff81669b67>] dump_stack+0x45/0x57
    [   21.045759]  [<ffffffff8107b02a>] warn_slowpath_common+0x8a/0xc0
    [   21.045761]  [<ffffffff8107b15a>] warn_slowpath_null+0x1a/0x20
    [   21.045762]  [<ffffffff81036725>] intel_cqm_cpu_prepare+0x75/0x90
    [   21.045764]  [<ffffffff81036872>] intel_cqm_cpu_notifier+0x42/0x160
    [   21.045767]  [<ffffffff8109a33d>] notifier_call_chain+0x4d/0x80
    [   21.045769]  [<ffffffff8109a44e>] __raw_notifier_call_chain+0xe/0x10
    [   21.045770]  [<ffffffff8107b538>] _cpu_up+0xe8/0x190
    [   21.045771]  [<ffffffff8107b65a>] cpu_up+0x7a/0xa0
    [   21.045774]  [<ffffffff8165e920>] cpu_subsys_online+0x40/0x90
    [   21.045777]  [<ffffffff81433b37>] device_online+0x67/0x90
    [   21.045778]  [<ffffffff81433bea>] online_store+0x8a/0xa0
    [   21.045782]  [<ffffffff81430e78>] dev_attr_store+0x18/0x30
    [   21.045785]  [<ffffffff8126b6ba>] sysfs_kf_write+0x3a/0x50
    [   21.045786]  [<ffffffff8126ad40>] kernfs_fop_write+0x120/0x170
    [   21.045789]  [<ffffffff811f0b77>] __vfs_write+0x37/0x100
    [   21.045791]  [<ffffffff811f38b8>] ? __sb_start_write+0x58/0x110
    [   21.045795]  [<ffffffff81296d2d>] ? security_file_permission+0x3d/0xc0
    [   21.045796]  [<ffffffff811f1279>] vfs_write+0xa9/0x190
    [   21.045797]  [<ffffffff811f2075>] SyS_write+0x55/0xc0
    [   21.045800]  [<ffffffff81067300>] ? do_page_fault+0x30/0x80
    [   21.045804]  [<ffffffff816709ae>] entry_SYSCALL_64_fastpath+0x12/0x71
    [   21.045805] ---[ end trace fe228b836d8af405 ]---
    
    The root cause is that CPU_UP_PREPARE is completely the wrong notifier
    action from which to access cpu_data(), because smp_store_cpu_info()
    won't have been executed by the target CPU at that point, which in turn
    means that ->x86_cache_max_rmid and ->x86_cache_occ_scale haven't been
    filled out.
    
    Instead let's invoke our handler from CPU_STARTING and rename it
    appropriately.
    
    Reported-by: Tony Luck <tony.luck@intel.com>
    Signed-off-by: Matt Fleming <matt.fleming@intel.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Ashok Raj <ashok.raj@intel.com>
    Cc: Kanaka Juvva <kanaka.d.juvva@intel.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Vikas Shivappa <vikas.shivappa@intel.com>
    Link: http://lkml.kernel.org/r/1438863163-14083-1-git-send-email-matt@codeblueprint.co.uk
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Matt Fleming authored and Ingo Molnar committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    d7a702f View commit details
    Browse the repository at this point in the history
  6. dm thin metadata: delete btrees when releasing metadata snapshot

    The device details and mapping trees were just being decremented
    before.  Now btree_del() is called to do a deep delete.
    
    Signed-off-by: Joe Thornber <ejt@redhat.com>
    Signed-off-by: Mike Snitzer <snitzer@redhat.com>
    Cc: stable@vger.kernel.org
    jthornber authored and snitm committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    7f518ad View commit details
    Browse the repository at this point in the history
  7. dm btree: add ref counting ops for the leaves of top level btrees

    When using nested btrees, the top leaves of the top levels contain
    block addresses for the root of the next tree down.  If we shadow a
    shared leaf node the leaf values (sub tree roots) should be incremented
    accordingly.
    
    This is only an issue if there is metadata sharing in the top levels.
    Which only occurs if metadata snapshots are being used (as is possible
    with dm-thinp).  And could result in a block from the thinp metadata
    snap being reused early, thus corrupting the thinp metadata snap.
    
    Signed-off-by: Joe Thornber <ejt@redhat.com>
    Signed-off-by: Mike Snitzer <snitzer@redhat.com>
    Cc: stable@vger.kernel.org
    jthornber authored and snitm committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    b0dc3c8 View commit details
    Browse the repository at this point in the history
  8. dm cache policy smq: move 'dm-cache-default' module alias to SMQ

    When creating dm-cache with the default policy, it will call
    request_module("dm-cache-default") to register the default policy.
    But the "dm-cache-default" alias was left referring to the MQ policy.
    Fix this by moving the module alias to SMQ.
    
    Fixes: bccab6a (dm cache: switch the "default" cache replacement policy from mq to smq)
    Signed-off-by: Yi Zhang <yizhan@redhat.com>
    Signed-off-by: Mike Snitzer <snitzer@redhat.com>
    Yi Zhang authored and snitm committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    34dd051 View commit details
    Browse the repository at this point in the history
  9. Merge tag 'regmap-fix-v4.2-rc6' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/broonie/regmap
    
    Pull regmap fix from Mark Brown:
     "regmap: Fix handling of present bits on rbtree cache block resize
    
      When expanding a cache block we use krealloc() to resize the register
      present bitmap without initialising the newly allocated data (the
      original code was written for kzalloc()).  Add an appropraite memset()
      to fix that"
    
    * tag 'regmap-fix-v4.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
      regmap: regcache-rbtree: Clean new present bits on present bitmap resize
    torvalds committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    cec45d9 View commit details
    Browse the repository at this point in the history
  10. drm/amdgpu: add context buffer size check for HEVC

    Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
    Reviewed-by: Christian König <christian.koenig@amd.com>
    Boyz-Radeon authored and alexdeucher committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    8c8bac5 View commit details
    Browse the repository at this point in the history
  11. Revert "drm/amdgpu: Configure doorbell to maximum slots"

    This reverts commit 78ad5cd.
    This commit breaks dpm and suspend/resume on CZ.
    alexdeucher committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    b8826b0 View commit details
    Browse the repository at this point in the history
  12. drm/radeon: add new OLAND pci id

    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Cc: stable@vger.kernel.org
    alexdeucher committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    e037239 View commit details
    Browse the repository at this point in the history
  13. libiscsi: Fix host busy blocking during connection teardown

    In case of hw iscsi offload, an host can have N-number of active
    connections. There can be IO's running on some connections which
    make host->host_busy always TRUE. Now if logout from a connection
    is tried then the code gets into an infinite loop as host->host_busy
    is always TRUE.
    
     iscsi_conn_teardown(....)
     {
       .........
        /*
         * Block until all in-progress commands for this connection
         * time out or fail.
         */
         for (;;) {
          spin_lock_irqsave(session->host->host_lock, flags);
          if (!atomic_read(&session->host->host_busy)) { /* OK for ERL == 0 */
    	      spin_unlock_irqrestore(session->host->host_lock, flags);
                  break;
          }
         spin_unlock_irqrestore(session->host->host_lock, flags);
         msleep_interruptible(500);
         iscsi_conn_printk(KERN_INFO, conn, "iscsi conn_destroy(): "
                     "host_busy %d host_failed %d\n",
    	          atomic_read(&session->host->host_busy),
    	          session->host->host_failed);
    
    	................
    	...............
         }
      }
    
    This is not an issue with software-iscsi/iser as each cxn is a separate
    host.
    
    Fix:
    Acquiring eh_mutex in iscsi_conn_teardown() before setting
    session->state = ISCSI_STATE_TERMINATE.
    
    Signed-off-by: John Soni Jose <sony.john@avagotech.com>
    Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
    Reviewed-by: Chris Leech <cleech@redhat.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: James Bottomley <JBottomley@Odin.com>
    John Soni Jose authored and James Bottomley committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    660d083 View commit details
    Browse the repository at this point in the history
  14. Merge branch 'drm-fixes-4.2' of git://people.freedesktop.org/~agd5f/l…

    …inux
    
    Pull amd drm fixes from Alex Deucher:
     "Dave is on vacation at the moment, so please pull these radeon and
      amdgpu fixes directly.
    
      Just a few minor things for 4.2:
    
       - add a new radeon pci id
       - fix a power management regression in amdgpu
       - fix HEVC command buffer validation in amdgpu"
    
    * 'drm-fixes-4.2' of git://people.freedesktop.org/~agd5f/linux:
      drm/radeon: add new OLAND pci id
      Revert "drm/amdgpu: Configure doorbell to maximum slots"
      drm/amdgpu: add context buffer size check for HEVC
    torvalds committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    04da002 View commit details
    Browse the repository at this point in the history
  15. libfc: Fix fc_exch_recv_req() error path

    Due to patch "libfc: Do not invoke the response handler after
    fc_exch_done()" (commit ID 7030fd6) the lport_recv() call
    in fc_exch_recv_req() is passed a dangling pointer. Avoid this
    by moving the fc_frame_free() call from fc_invoke_resp() to its
    callers. This patch fixes the following crash:
    
    general protection fault: 0000 [#3] PREEMPT SMP
    RIP: fc_lport_recv_req+0x72/0x280 [libfc]
    Call Trace:
     fc_exch_recv+0x642/0xde0 [libfc]
     fcoe_percpu_receive_thread+0x46a/0x5ed [fcoe]
     kthread+0x10a/0x120
     ret_from_fork+0x42/0x70
    
    Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
    Cc: stable <stable@vger.kernel.org>
    Signed-off-by: Vasu Dev <vasu.dev@intel.com>
    Signed-off-by: James Bottomley <JBottomley@Odin.com>
    Bart Van Assche authored and James Bottomley committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    f6979ad View commit details
    Browse the repository at this point in the history
  16. libfc: Fix fc_fcp_cleanup_each_cmd()

    Since fc_fcp_cleanup_cmd() can sleep this function must not
    be called while holding a spinlock. This patch avoids that
    fc_fcp_cleanup_each_cmd() triggers the following bug:
    
    BUG: scheduling while atomic: sg_reset/1512/0x00000202
    1 lock held by sg_reset/1512:
     #0:  (&(&fsp->scsi_pkt_lock)->rlock){+.-...}, at: [<ffffffffc0225cd5>] fc_fcp_cleanup_each_cmd.isra.21+0xa5/0x150 [libfc]
    Preemption disabled at:[<ffffffffc0225cd5>] fc_fcp_cleanup_each_cmd.isra.21+0xa5/0x150 [libfc]
    Call Trace:
     [<ffffffff816c612c>] dump_stack+0x4f/0x7b
     [<ffffffff810828bc>] __schedule_bug+0x6c/0xd0
     [<ffffffff816c87aa>] __schedule+0x71a/0xa10
     [<ffffffff816c8ad2>] schedule+0x32/0x80
     [<ffffffffc0217eac>] fc_seq_set_resp+0xac/0x100 [libfc]
     [<ffffffffc0218b11>] fc_exch_done+0x41/0x60 [libfc]
     [<ffffffffc0225cff>] fc_fcp_cleanup_each_cmd.isra.21+0xcf/0x150 [libfc]
     [<ffffffffc0225f43>] fc_eh_device_reset+0x1c3/0x270 [libfc]
     [<ffffffff814a2cc9>] scsi_try_bus_device_reset+0x29/0x60
     [<ffffffff814a3908>] scsi_ioctl_reset+0x258/0x2d0
     [<ffffffff814a2650>] scsi_ioctl+0x150/0x440
     [<ffffffff814b3a9d>] sd_ioctl+0xad/0x120
     [<ffffffff8132f266>] blkdev_ioctl+0x1b6/0x810
     [<ffffffff811da608>] block_ioctl+0x38/0x40
     [<ffffffff811b4e08>] do_vfs_ioctl+0x2f8/0x530
     [<ffffffff811b50c1>] SyS_ioctl+0x81/0xa0
     [<ffffffff816cf8b2>] system_call_fastpath+0x16/0x7a
    
    Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
    Cc: stable <stable@vger.kernel.org>
    Signed-off-by: Vasu Dev <vasu.dev@intel.com>
    Signed-off-by: James Bottomley <JBottomley@Odin.com>
    Bart Van Assche authored and James Bottomley committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    8f2777f View commit details
    Browse the repository at this point in the history
  17. Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/arm64/linux
    
    Pull arm64 fix from Catalin Marinas:
     "Fix coarse clock monotonicity (VDSO timestamp off by one jiffy
      compared to the syscall one)"
    
    * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
      arm64: VDSO: fix coarse clock monotonicity regression
    torvalds committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    30065bf View commit details
    Browse the repository at this point in the history
  18. sd: Fix maximum I/O size for BLOCK_PC requests

    Commit bcdb247 ("sd: Limit transfer length") clamped the maximum
    size of an I/O request to the MAXIMUM TRANSFER LENGTH field in the BLOCK
    LIMITS VPD. This had the unfortunate effect of also limiting the maximum
    size of non-filesystem requests sent to the device through sg/bsg.
    
    Avoid using blk_queue_max_hw_sectors() and set the max_sectors queue
    limit directly.
    
    Also update the comment in blk_limits_max_hw_sectors() to clarify that
    max_hw_sectors defines the limit for the I/O controller only.
    
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Reported-by: Brian King <brking@linux.vnet.ibm.com>
    Tested-by: Brian King <brking@linux.vnet.ibm.com>
    Cc: stable@vger.kernel.org # 3.17+
    Signed-off-by: James Bottomley <JBottomley@Odin.com>
    martinkpetersen authored and James Bottomley committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    4f258a4 View commit details
    Browse the repository at this point in the history
  19. net: dsa: Do not override PHY interface if already configured

    In case we need to divert reads/writes using the slave MII bus, we may have
    already fetched a valid PHY interface property from Device Tree, and that
    mode is used by the PHY driver to make configuration decisions.
    
    If we could not fetch the "phy-mode" property, we will assign p->phy_interface
    to PHY_INTERFACE_MODE_NA, such that we can actually check for that condition as
    to whether or not we should override the interface value.
    
    Fixes: 1933492 ("net: dsa: Set valid phy interface type")
    Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    ffainelli authored and davem330 committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    211c504 View commit details
    Browse the repository at this point in the history
  20. bonding: Gratuitous ARP gets dropped when first slave added

    When the first slave is added (such as during bootup) the first
    gratuitous ARP gets dropped. We don't see this drop during a failover.
    The packet gets dropped in qdisc (noop_enqueue).
    
    The fix is to delay the sending of gratuitous ARPs till the bond dev's
    carrier is present.
    
    It can also be worked around by setting num_grat_arp to more than 1.
    
    Signed-off-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Venkat Venkatsubra authored and davem330 committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    b02e3e9 View commit details
    Browse the repository at this point in the history
  21. gianfar: correct filer table writing

    MAX_FILER_IDX is the last usable index.  Using less-than
    will already guarantee that one entry for catch-all rule
    will be left, no need to subtract 1 here.
    
    Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    kuba-moo authored and davem330 committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    a898fe0 View commit details
    Browse the repository at this point in the history
  22. gianfar: correct list membership accounting

    At a cost of one line let's make sure .count is correct
    when calling gfar_process_filer_changes().
    
    Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    kuba-moo authored and davem330 committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    b5c8c89 View commit details
    Browse the repository at this point in the history
  23. gianfar: remove faulty filer optimizer

    Current filer rule optimization is broken in several ways:
     (1) Can perform reads/writes beyond end of allocated tables.
         (gianfar_ethtool.c:1326).
    
    (2) It breaks badly for rules with more than 2 specifiers
         (e.g. matching ip, port, tos).
    
    Example:
    # ethtool -N eth2 flow-type udp4 dst-ip 10.0.0.1 dst-port 1 tos 1 action 1
    Added rule with ID 254
    # ethtool -N eth2 flow-type udp4 dst-ip 10.0.0.2 dst-port 2 tos 2 action 9
    Added rule with ID 253
    # ethtool -N eth2 flow-type udp4 dst-ip 10.0.0.3 dst-port 3 tos 3 action 17
    Added rule with ID 252
    # ./filer_decode /sys/kernel/debug/gfar1/filer_raw
    00: MASK == 00000210 AND         Q:00           ctrl:00000080 prop:00000210
    01: FPR  == 00000210 AND CLE     Q:00           ctrl:00000281 prop:00000210
    02: MASK == ffffffff AND         Q:00           ctrl:00000080 prop:ffffffff
    03: DPT  == 00000003 AND         Q:00           ctrl:0000008e prop:00000003
    04: TOS  == 00000003 AND         Q:00           ctrl:0000008a prop:00000003
    05: DIA  == 0a000003 AND         Q:11           ctrl:0000448c prop:0a000003
    06: DPT  == 00000002 AND         Q:00           ctrl:0000008e prop:00000002
    07: TOS  == 00000002 AND         Q:00           ctrl:0000008a prop:00000002
    08: DIA  == 0a000002 AND         Q:09           ctrl:0000248c prop:0a000002
    09: DIA  == 0a000001 AND         Q:00           ctrl:0000008c prop:0a000001
    0a: DPT  == 00000001 AND         Q:00           ctrl:0000008e prop:00000001
    0b: TOS  == 00000001     CLE     Q:01           ctrl:0000060a prop:00000001
    ff: MASK >= 00000000             Q:00           ctrl:00000020 prop:00000000
    
    (Entire cluster gets AND-ed together).
    
     (3) We observed that the masking rules it generates do not
         play well with clustering on P2020.  Only first rule
         of the cluster would ever fire.  Given that optimizer
         relies heavily on masking this is very hard to fix.
    
    Example:
    # ethtool -N eth2 flow-type udp4 dst-ip 10.0.0.1 dst-port 1  action 1
    Added rule with ID 254
    # ethtool -N eth2 flow-type udp4 dst-ip 10.0.0.2 dst-port 2  action 9
    Added rule with ID 253
    # ethtool -N eth2 flow-type udp4 dst-ip 10.0.0.3 dst-port 3  action 17
    Added rule with ID 252
    # ./filer_decode /sys/kernel/debug/gfar1/filer_raw
    00: MASK == 00000210 AND         Q:00           ctrl:00000080 prop:00000210
    01: FPR  == 00000210 AND CLE     Q:00           ctrl:00000281 prop:00000210
    02: MASK == ffffffff AND         Q:00           ctrl:00000080 prop:ffffffff
    03: DPT  == 00000003 AND         Q:00           ctrl:0000008e prop:00000003
    04: DIA  == 0a000003             Q:11           ctrl:0000440c prop:0a000003
    05: DPT  == 00000002 AND         Q:00           ctrl:0000008e prop:00000002
    06: DIA  == 0a000002             Q:09           ctrl:0000240c prop:0a000002
    07: DIA  == 0a000001 AND         Q:00           ctrl:0000008c prop:0a000001
    08: DPT  == 00000001     CLE     Q:01           ctrl:0000060e prop:00000001
    ff: MASK >= 00000000             Q:00           ctrl:00000020 prop:00000000
    
    Which looks correct according to the spec but only the first
    (eth id 252)/last added rule for 10.0.0.3 will ever trigger.
    As if filer did not treat the AND CLE as cluster start but
    also kept AND-ing the rules.  We found no errata covering this.
    
    The fact that nobody noticed (2) or (3) makes me think
    that this feature is not very widely used and we should just
    remove it.
    
    Reported-by: Aleksander Dutkowski <adutkowski@gmail.com>
    Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
    Acked-by: Claudiu Manoil <claudiu.manoil@freescale.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    kuba-moo authored and davem330 committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    1f2b729 View commit details
    Browse the repository at this point in the history
  24. Merge branch 'gianfar-fixes'

    Jakub Kicinski says:
    
    ====================
    gianfar: filer changes
    
    respinning with examples as requested.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    e941ba8 View commit details
    Browse the repository at this point in the history
  25. cosa: missing error code on failure in probe()

    If register_hdlc_device() fails, the current code returns 0 but we
    should return an error code instead.
    
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Dan Carpenter authored and davem330 committed Aug 12, 2015
    Configuration menu
    Copy the full SHA
    e6d0069 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2015

  1. EDAC, ppc4xx: Access mci->csrows array elements properly

    The commit
    
      de3910e ("edac: change the mem allocation scheme to
    		 make Documentation/kobject.txt happy")
    
    changed the memory allocation for the csrows member. But ppc4xx_edac was
    forgotten in the patch. Fix it.
    
    Signed-off-by: Michael Walle <michael@walle.cc>
    Cc: <stable@vger.kernel.org>
    Cc: linux-edac <linux-edac@vger.kernel.org>
    Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Link: http://lkml.kernel.org/r/1437469253-8611-1-git-send-email-michael@walle.cc
    Signed-off-by: Borislav Petkov <bp@suse.de>
    mwalle authored and suryasaimadhu committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    5c16179 View commit details
    Browse the repository at this point in the history
  2. ALSA: hda - Fix the white noise on Dell laptop

    Dell laptop causes the white noise by login screen and headphone,
    and the fixup function ALC292_FIXUP_DISABLE_AAMIX can eliminate this
    noise.
    
    Codec: Realtek ALC3235
    Vendor Id: 0x10ec0293
    Subsystem Id: 0x102806db
    
    Cc: <stable@vger.kernel.org>
    BugLink: https://bugs.launchpad.net/bugs/1484334
    Signed-off-by: Woodrow Shen <woodrow.shen@canonical.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Woodrow Shen authored and tiwai committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    7ccb0a9 View commit details
    Browse the repository at this point in the history
  3. crypto: caam - fix memory corruption in ahash_final_ctx

    When doing pointer operation for accessing the HW S/G table,
    a value representing number of entries (and not number of bytes)
    must be used.
    
    Cc: <stable@vger.kernel.org> # 3.6+
    Fixes: 045e367 ("crypto: caam - ahash hmac support")
    Signed-off-by: Horia Geant? <horia.geanta@freescale.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    horiag authored and herbertx committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    b310c17 View commit details
    Browse the repository at this point in the history
  4. drm/i915: Only dither on 6bpc panels

    In
    
    commit d328c9d
    Author: Daniel Vetter <daniel.vetter@ffwll.ch>
    Date:   Fri Apr 10 16:22:37 2015 +0200
    
        drm/i915: Select starting pipe bpp irrespective or the primary plane
    
    we started to select the pipe bpp from sink capabilities and not from
    the primary framebuffer - that one might change (and we don't want to
    incur a modeset) and sprites might contain higher bpp content too.
    
    We also selected dithering on a 8 bpc screen displaying a 24bpp rgb
    primary, because pipe_bpp is 24 for such a typical 8 bpc sink, but since
    the commit mentioned above, base_bpp is always the absolute maximum
    supported by the hardware, e.g., 36 bpp on my Ironlake chip. Iow. the
    only way to not get dithering would have been to connect a deep color 12
    bpc display, so pipe_bpp == 36 == base_bpp.
    
    Hence only enable dithering on 6bpc screens where we difinitely and
    always want it.
    
    Cc: Mario Kleiner <mario.kleiner.de@gmail.com>
    Reported-by: Mario Kleiner <mario.kleiner.de@gmail.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
    Reviewed-and-tested-by: Mario Kleiner <mario.kleiner.de@gmail.com>
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    danvet authored and jnikula committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    e8fa427 View commit details
    Browse the repository at this point in the history
  5. drm/i915: calculate primary visibility changes instead of calling fro…

    …m set_config
    
    This should be much cleaner, with the same effects.
    
    (cherry picked for v4.2 from commit fb9d6cf)
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
    References: https://bugs.freedesktop.org/show_bug.cgi?id=90398
    Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    mlankhorst authored and jnikula committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    f0fdc55 View commit details
    Browse the repository at this point in the history
  6. drm/i915: Commit planes on each crtc separately.

    This patch is based on the upstream commit 5ac1c4b and amended
    for v4.2 to make sure it works as intended.
    
    Repeated calls to begin_crtc_commit can cause warnings like this:
    [  169.127746] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616
    [  169.127835] in_atomic(): 0, irqs_disabled(): 1, pid: 1947, name: kms_flip
    [  169.127840] 3 locks held by kms_flip/1947:
    [  169.127843]  #0:  (&dev->mode_config.mutex){+.+.+.}, at: [<ffffffff814774bc>] __drm_modeset_lock_all+0x9c/0x130
    [  169.127860]  #1:  (crtc_ww_class_acquire){+.+.+.}, at: [<ffffffff814774cd>] __drm_modeset_lock_all+0xad/0x130
    [  169.127870]  #2:  (crtc_ww_class_mutex){+.+.+.}, at: [<ffffffff81477178>] drm_modeset_lock+0x38/0x110
    [  169.127879] irq event stamp: 665690
    [  169.127882] hardirqs last  enabled at (665689): [<ffffffff817ffdb5>] _raw_spin_unlock_irqrestore+0x55/0x70
    [  169.127889] hardirqs last disabled at (665690): [<ffffffffc0197a23>] intel_pipe_update_start+0x113/0x5c0 [i915]
    [  169.127936] softirqs last  enabled at (665470): [<ffffffff8108a766>] __do_softirq+0x236/0x650
    [  169.127942] softirqs last disabled at (665465): [<ffffffff8108ae75>] irq_exit+0xc5/0xd0
    [  169.127951] CPU: 1 PID: 1947 Comm: kms_flip Not tainted 4.1.0-rc4-patser+ #4039
    [  169.127954] Hardware name: LENOVO 2349AV8/2349AV8, BIOS G1ETA5WW (2.65 ) 04/15/2014
    [  169.127957]  ffff8800c49036f0 ffff8800cde5fa28 ffffffff817f6907 0000000080000001
    [  169.127964]  0000000000000000 ffff8800cde5fa58 ffffffff810aebed 0000000000000046
    [  169.127970]  ffffffff81c5d518 0000000000000268 0000000000000000 ffff8800cde5fa88
    [  169.127981] Call Trace:
    [  169.127992]  [<ffffffff817f6907>] dump_stack+0x4f/0x7b
    [  169.128001]  [<ffffffff810aebed>] ___might_sleep+0x16d/0x270
    [  169.128008]  [<ffffffff810aed38>] __might_sleep+0x48/0x90
    [  169.128017]  [<ffffffff817fc359>] mutex_lock_nested+0x29/0x410
    [  169.128073]  [<ffffffffc01635f0>] ? vgpu_write64+0x220/0x220 [i915]
    [  169.128138]  [<ffffffffc017fddf>] ? ironlake_update_primary_plane+0x2ff/0x410 [i915]
    [  169.128198]  [<ffffffffc0190e75>] intel_frontbuffer_flush+0x25/0x70 [i915]
    [  169.128253]  [<ffffffffc01831ac>] intel_finish_crtc_commit+0x4c/0x180 [i915]
    [  169.128279]  [<ffffffffc00784ac>] drm_atomic_helper_commit_planes+0x12c/0x240 [drm_kms_helper]
    [  169.128338]  [<ffffffffc0184264>] __intel_set_mode+0x684/0x830 [i915]
    [  169.128378]  [<ffffffffc018a84a>] intel_crtc_set_config+0x49a/0x620 [i915]
    [  169.128385]  [<ffffffff817fdd39>] ? mutex_unlock+0x9/0x10
    [  169.128391]  [<ffffffff81467b69>] drm_mode_set_config_internal+0x69/0x120
    [  169.128398]  [<ffffffff8119b547>] ? might_fault+0x57/0xb0
    [  169.128403]  [<ffffffff8146bf93>] drm_mode_setcrtc+0x253/0x620
    [  169.128409]  [<ffffffff8145c600>] drm_ioctl+0x1a0/0x6a0
    [  169.128415]  [<ffffffff810b3b41>] ? get_parent_ip+0x11/0x50
    [  169.128424]  [<ffffffff811e9ab8>] do_vfs_ioctl+0x2f8/0x530
    [  169.128429]  [<ffffffff810d0fcd>] ? trace_hardirqs_on+0xd/0x10
    [  169.128435]  [<ffffffff812e7676>] ? selinux_file_ioctl+0x56/0x100
    [  169.128439]  [<ffffffff811e9d71>] SyS_ioctl+0x81/0xa0
    [  169.128445]  [<ffffffff81800697>] system_call_fastpath+0x12/0x6f
    
    Solve it by using the newly introduced drm_atomic_helper_commit_planes_on_crtc.
    
    The problem here was that the drm_atomic_helper_commit_planes() helper
    we were using was basically designed to do
    
        begin_crtc_commit(crtc #1)
        begin_crtc_commit(crtc #2)
        ...
        commit all planes
        finish_crtc_commit(crtc #1)
        finish_crtc_commit(crtc #2)
    
    The problem here is that since our hardware relies on vblank evasion,
    our CRTC 'begin' function waits until we're out of the danger zone in
    which register writes might wind up straddling the vblank, then disables
    interrupts; our 'finish' function re-enables interrupts after the
    registers have been written.  The expectation is that the operations between
    'begin' and 'end' must be performed without sleeping (since interrupts
    are disabled) and should happen as quickly as possible.  By clumping all
    of the 'begin' calls together, we introducing a couple problems:
     * Subsequent 'begin' invocations might sleep (which is illegal)
     * The first 'begin' ensured that we were far enough from the vblank that
       we could write our registers safely and ensure they all fell within
       the same frame.  Adding extra delay waiting for subsequent CRTC's
       wasn't accounted for and could put us back into the 'danger zone' for
       CRTC #1.
    
    This commit solves the problem by using a new helper that allows an
    order of operations like:
    
       for each crtc {
            begin_crtc_commit(crtc)  // sleep (maybe), then disable interrupts
            commit planes for this specific CRTC
            end_crtc_commit(crtc)    // reenable interrupts
       }
    
    so that sleeps will only be performed while interrupts are enabled and
    we can be sure that registers for a CRTC will be written immediately
    once we know we're in the safe zone.
    
    The crtc->config->base.crtc update may seem unrelated, but the helper
    will use it to obtain the crtc for the state. Without the update it
    will dereference NULL and crash.
    
    Changes since v1:
    - Use Matt Roper's commit message.
    
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
    References: https://bugs.freedesktop.org/show_bug.cgi?id=90398
    Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    mlankhorst authored and jnikula committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    d2944cf View commit details
    Browse the repository at this point in the history
  7. Merge tag 'samsung-mach-fixes-4.2' of https://github.com/krzk/linux i…

    …nto fixes
    
    Two fixes for bugs in Exynos power domain error exit path:
    1. kfree() of read-only memory (name of power domain returned
       by kstrdup_const()),
    2. Doubled of_node_put() leading to invalid ref count for OF node.
    
    * tag 'samsung-mach-fixes-4.2' of https://github.com/krzk/linux:
      ARM: EXYNOS: fix double of_node_put() on error path
      ARM: EXYNOS: Fix potentian kfree() of ro memory
    
    Signed-off-by: Olof Johansson <olof@lixom.net>
    olofj committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    07616f0 View commit details
    Browse the repository at this point in the history
  8. Merge tag 'imx-fixes-4.2-3' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/shawnguo/linux into fixes
    
    The i.MX fixes for 4.2, 3rd round:
     - Fix i.MX6 PCIe interrupt routing which gets missed from stacked IRQ
       domain conversion.  The PCIe wakeup support is currently broken
       because of this.
    
    * tag 'imx-fixes-4.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
      ARM: imx6: correct i.MX6 PCIe interrupt routing
    
    Signed-off-by: Olof Johansson <olof@lixom.net>
    olofj committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    db55350 View commit details
    Browse the repository at this point in the history
  9. mac80211: fix invalid read in minstrel_sort_best_tp_rates()

    At the last iteration of the loop, j may equal zero and thus
    tp_list[j - 1] causes an invalid read.
    Change the logic of the loop so that j - 1 is always >= 0.
    
    Cc: stable@vger.kernel.org
    Signed-off-by: Adrien Schildknecht <adrien+dev@schischi.me>
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    schischi authored and jmberg-intel committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    f5eeb5f View commit details
    Browse the repository at this point in the history
  10. Merge tag 'omap-for-v4.2/fixes-rc6' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tmlind/linux-omap into fixes
    
    Fix a NULL pointer exception for omap GPMC bus code if probe fails.
    
    * tag 'omap-for-v4.2/fixes-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
      memory: omap-gpmc: Don't try to save uninitialized GPMC context
    
    Signed-off-by: Olof Johansson <olof@lixom.net>
    olofj committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    659181a View commit details
    Browse the repository at this point in the history
  11. ARM: dts: keystone: fix the clock node for mdio

    Currently the MDIO clock is pointing to clkpa instead of clkcpgmac.
    MDIO is part of the ethss and the clock should be clkcpgmac.
    
    Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
    Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
    Murali Karicheri authored and SantoshShilimkar committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    e61eee7 View commit details
    Browse the repository at this point in the history
  12. ARM: dts: keystone: Fix the mdio bindings by moving it to soc specifi…

    …c file
    
    Currently mdio bindings are defined in keystone.dtsi and this results
    in incorrect unit address for the node on K2E and K2L SoCs. Fix this
    by moving them to SoC specific DTS file.
    
    Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
    Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
    Murali Karicheri authored and SantoshShilimkar committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    85ad3de View commit details
    Browse the repository at this point in the history
  13. Merge tag 'edac_fix_for_4.2' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/bp/bp
    
    Pull EDAC fix from Borislav Petkov:
     "A ppc4xx_edac fix for accessing ->csrows properly.  This driver was
      missed during the conversion a couple of years ago"
    
    * tag 'edac_fix_for_4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
      EDAC, ppc4xx: Access mci->csrows array elements properly
    torvalds committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    2331d30 View commit details
    Browse the repository at this point in the history
  14. Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net

    Pull networking fixes from David Miller:
    
     1) Workaround hw bug when acquiring PCI bos ownership of iwlwifi
        devices, from Emmanuel Grumbach.
    
     2) Falling back to vmalloc in conntrack should not emit a warning, from
        Pablo Neira Ayuso.
    
     3) Fix NULL deref when rtlwifi driver is used as an AP, from Luis
        Felipe Dominguez Vega.
    
     4) Rocker doesn't free netdev on device removal, from Ido Schimmel.
    
     5) UDP multicast early sock demux has route handling races, from Eric
        Dumazet.
    
     6) Fix L4 checksum handling in openvswitch, from Glenn Griffin.
    
     7) Fix use-after-free in skb_set_peeked, from Herbert Xu.
    
     8) Don't advertize NETIF_F_FRAGLIST in virtio_net driver, this can lead
        to fraglists longer than the driver can support.  From Jason Wang.
    
     9) Fix mlx5 on non-4k-pagesize systems, from Carol L Soto.
    
    10) Fix interrupt storm in bna driver, from Ivan Vecera.
    
    11) Don't propagate -EBUSY from netlink_insert(), from Daniel Borkmann.
    
    12) Fix inet request sock leak, from Eric Dumazet.
    
    13) Fix TX interrupt masking and marking in TX descriptors of fs_enet
        driver, from LEROY Christophe.
    
    14) Get rid of rule optimizer in gianfar driver, it's buggy and unlikely
        to get fixed any time soon.  From Jakub Kicinski
    
    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (61 commits)
      cosa: missing error code on failure in probe()
      gianfar: remove faulty filer optimizer
      gianfar: correct list membership accounting
      gianfar: correct filer table writing
      bonding: Gratuitous ARP gets dropped when first slave added
      net: dsa: Do not override PHY interface if already configured
      net: fs_enet: mask interrupts for TX partial frames.
      net: fs_enet: explicitly remove I flag on TX partial frames
      inet: fix possible request socket leak
      inet: fix races with reqsk timers
      mkiss: Fix error handling in mkiss_open()
      bnx2x: Free NVRAM lock at end of each page
      bnx2x: Prevent null pointer dereference on SKB release
      cxgb4: missing curly braces in t4_setup_debugfs()
      net-timestamp: Update skb_complete_tx_timestamp comment
      ipv6: don't reject link-local nexthop on other interface
      netlink: make sure -EBUSY won't escape from netlink_insert
      bna: fix interrupts storm caused by erroneous packets
      net: mvpp2: replace TX coalescing interrupts with hrtimer
      net: mvpp2: enable proper per-CPU TX buffers unmapping
      ...
    torvalds committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    26b552e View commit details
    Browse the repository at this point in the history
  15. Revert x86 sigcontext cleanups

    This reverts commits 9a036b9 ("x86/signal/64: Remove 'fs' and 'gs'
    from sigcontext") and c6f2062 ("x86/signal/64: Fix SS handling for
    signals delivered to 64-bit programs").
    
    They were cleanups, but they break dosemu by changing the signal return
    behavior (and removing 'fs' and 'gs' from the sigcontext struct - while
    not actually changing any behavior - causes build problems).
    
    Reported-and-tested-by: Stas Sergeev <stsp@list.ru>
    Acked-by: Andy Lutomirski <luto@amacapital.net>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: stable@vger.kernel.org
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    torvalds committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    ed596cd View commit details
    Browse the repository at this point in the history
  16. Merge tag 'for-linus-4.2-rc6-tag' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/xen/tip
    
    Pull xen bug fixes from David Vrabel:
    
     - revert a fix from 4.2-rc5 that was causing lots of WARNING spam.
    
     - fix a memory leak affecting backends in HVM guests.
    
     - fix PV domU hang with certain configurations.
    
    * tag 'for-linus-4.2-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
      xen/xenbus: Don't leak memory when unmapping the ring on HVM backend
      Revert "xen/events/fifo: Handle linked events when closing a port"
      x86/xen: build "Xen PV" APIC driver for domU as well
    torvalds committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    6b476e1 View commit details
    Browse the repository at this point in the history
  17. Merge branch 'for-linus' of git://git.kernel.dk/linux-block

    Pull xen block driver fixes from Jens Axboe:
     "A few small bug fixes for xen-blk{front,back} that have been sitting
      over my vacation"
    
    * 'for-linus' of git://git.kernel.dk/linux-block:
      xen-blkback: replace work_pending with work_busy in purge_persistent_gnt()
      xen-blkfront: don't add indirect pages to list when !feature_persistent
      xen-blkfront: introduce blkfront_gather_backend_features()
    torvalds committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    ebcbf16 View commit details
    Browse the repository at this point in the history
  18. Merge tag 'dm-4.2-fixes-5' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/device-mapper/linux-dm
    
    Pull device mapper fixes from Mike Snitzer:
    
     - two stable fixes for corruption seen in a snapshot of thinp metadata;
       metadata snapshots aren't widely used but help provide a consistent
       view of the metadata associated with an active thin-pool.
    
     - a dm-cache fix for the 4.2 "default" policy switch from "mq" to "smq"
    
    * tag 'dm-4.2-fixes-5' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
      dm cache policy smq: move 'dm-cache-default' module alias to SMQ
      dm btree: add ref counting ops for the leaves of top level btrees
      dm thin metadata: delete btrees when releasing metadata snapshot
    torvalds committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    5b3e2e1 View commit details
    Browse the repository at this point in the history
  19. x86: fix error handling for 32-bit compat out-of-range system call nu…

    …mbers
    
    Commit 3f5159a ("x86/asm/entry/32: Update -ENOSYS handling to match
    the 64-bit logic") broke the ENOSYS handling for the 32-bit compat case.
    The proper error return value was never loaded into %rax, except if
    things just happened to go through the audit paths, which ended up
    reloading the return value.
    
    This moves the loading or %rax into the normal system call path, just to
    make sure the error case triggers it.  It's kind of sad, since it adds a
    useless instruction to reload the register to the fast path, but it's
    not like that single load from the stack is going to be noticeable.
    
    Reported-by: David Drysdale <drysdale@google.com>
    Tested-by: Kees Cook <keescook@chromium.org>
    Acked-by: Andy Lutomirski <luto@amacapital.net>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    torvalds committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    cd88ec2 View commit details
    Browse the repository at this point in the history
  20. Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm

    Pull ARM fixes from Russell King:
     "Another few small ARM fixes, mostly addressing some VDSO issues"
    
    * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
      ARM: 8410/1: VDSO: fix coarse clock monotonicity regression
      ARM: 8409/1: Mark ret_fast_syscall as a function
      ARM: 8408/1: Fix the secondary_startup function in Big Endian case
      ARM: 8405/1: VDSO: fix regression with toolchains lacking ld.bfd executable
    torvalds committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    7ddab73 View commit details
    Browse the repository at this point in the history
  21. Merge branch 'exynos-drm-fixes' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/daeinki/drm-exynos into drm-fixes
    
       This pull request fixes memory leak and some issues related to
       mixer and gscaler driver issues.
    
    * 'exynos-drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos:
      drm/exynos/fimc: fix runtime pm support
      drm/exynos/mixer: always update INT_EN cache
      drm/exynos/mixer: correct vsync configuration sequence
      drm/exynos/mixer: fix interrupt clearing
      drm/exynos/hdmi: fix edid memory leak
      drm/exynos: gsc: fix wrong bitwise operation for swap detection
    airlied committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    3c6d45b View commit details
    Browse the repository at this point in the history
  22. drm/vmwgfx: Fix execbuf locking issues

    This addresses two issues that cause problems with viewperf maya-03 in
    situation with memory pressure.
    
    The first issue causes attempts to unreserve buffers if batched
    reservation fails due to, for example, a signal pending. While previously
    the ttm_eu api was resistant against this type of error, it is no longer
    and the lockdep code will complain about attempting to unreserve buffers
    that are not reserved. The issue is resolved by avoid calling
    ttm_eu_backoff_reservation in the buffer reserve error path.
    
    The second issue is that the binding_mutex may be held when user-space
    fence objects are created and hence during memory reclaims. This may cause
    recursive attempts to grab the binding mutex. The issue is resolved by not
    holding the binding mutex across fence creation and submission.
    
    Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
    Reviewed-by: Sinclair Yeh <syeh@vmware.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    thomashvmw authored and airlied committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    3e04e2f View commit details
    Browse the repository at this point in the history
  23. Revert "drm/nouveau/fifo/gk104: kick channels when deactivating them"

    This reverts commit 1addc12
    
    This commit seems to cause crashes in gk104_fifo_intr_runlist() by
    returning 0xbad0da00 when register 0x2a00 is read. Since this commit was
    intended for GM20B which is not completely supported yet, let's revert
    it for the time being.
    
    Reported-by: Eric Biggers <ebiggers3@gmail.com>
    Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
    Tested-by: Afzal Mohammed <afzal.mohd.ma@gmail.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Gnurou authored and airlied committed Aug 13, 2015
    Configuration menu
    Copy the full SHA
    d211d87 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2015

  1. net: fix wrong skb_get() usage / crash in IGMP/MLD parsing code

    The recent refactoring of the IGMP and MLD parsing code into
    ipv6_mc_check_mld() / ip_mc_check_igmp() introduced a potential crash /
    BUG() invocation for bridges:
    
    I wrongly assumed that skb_get() could be used as a simple reference
    counter for an skb which is not the case. skb_get() bears additional
    semantics, a user count. This leads to a BUG() invocation in
    pskb_expand_head() / kernel panic if pskb_may_pull() is called on an skb
    with a user count greater than one - unfortunately the refactoring did
    just that.
    
    Fixing this by removing the skb_get() call and changing the API: The
    caller of ipv6_mc_check_mld() / ip_mc_check_igmp() now needs to
    additionally check whether the returned skb_trimmed is a clone.
    
    Fixes: 9afd85c ("net: Export IGMP/MLD message validation code")
    Reported-by: Brenden Blanco <bblanco@plumgrid.com>
    Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
    Acked-by: Alexei Starovoitov <ast@plumgrid.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    T-X authored and davem330 committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    a516993 View commit details
    Browse the repository at this point in the history
  2. ipv4: off-by-one in continuation handling in /proc/net/route

    When generating /proc/net/route we emit a header followed by a line for
    each route.  When a short read is performed we will restart this process
    based on the open file descriptor.  When calculating the start point we
    fail to take into account that the 0th entry is the header.  This leads
    us to skip the first entry when doing a continuation read.
    
    This can be easily seen with the comparison below:
    
      while read l; do echo "$l"; done </proc/net/route >A
      cat /proc/net/route >B
      diff -bu A B | grep '^[+-]'
    
    On my example machine I have approximatly 10KB of route output.  There we
    see the very first non-title element is lost in the while read case,
    and an entry around the 8K mark in the cat case:
    
      +wlan0 00000000 02021EAC 0003 0 0 400 00000000 0 0 0
      -tun1  00C0AC0A 00000000 0001 0 0 950 00C0FFFF 0 0 0
    
    Fix up the off-by-one when reaquiring position on continuation.
    
    Fixes: 8be33e9 ("fib_trie: Fib walk rcu should take a tnode and key instead of a trie and a leaf")
    BugLink: http://bugs.launchpad.net/bugs/1483440
    Acked-by: Alexander Duyck <alexander.h.duyck@redhat.com>
    Signed-off-by: Andy Whitcroft <apw@canonical.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Andy Whitcroft authored and davem330 committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    25b97c0 View commit details
    Browse the repository at this point in the history
  3. gianfar: Restore link state settings after MAC reset

    There are some MAC registers that need to be kept in sync
    with the link state parameters, see adjust_link().
    However, after a MAC soft reset default values for
    these registers are assumed.  In some cases (excepting
    if down/ if up for example) adjust_link() does not see
    that these values were reset to default because the
    priv->old* link parameters were left unchanged.
    So, reset the priv->old* link params as well during a
    MAC reset to let adjust_link() restore the MAC link
    settings to the actual link state values.
    
    Fixes following case, for example:
    Setting link to 100M, changing MTU (implies MAC reset),
    link state remains unchanged to 100M but MAC registers
    were reset to default (1G) breaking the connectivity w/
    the PHY.  Closing and re-opening the interface would
    restore the MAC link parameters to the correct values.
    
    Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    claudiu-m authored and davem330 committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    2a4eebf View commit details
    Browse the repository at this point in the history
  4. thermal: power_allocator: do not use devm* interfaces

    The code in question is called outside of standard driver
    probe()/remove() callbacks and thus will not benefit from use of devm*
    infrastructure.
    
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    dtor authored and Eduardo Valentin committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    cf736ea View commit details
    Browse the repository at this point in the history
  5. inet: fix potential deadlock in reqsk_queue_unlink()

    When replacing del_timer() with del_timer_sync(), I introduced
    a deadlock condition :
    
    reqsk_queue_unlink() is called from inet_csk_reqsk_queue_drop()
    
    inet_csk_reqsk_queue_drop() can be called from many contexts,
    one being the timer handler itself (reqsk_timer_handler()).
    
    In this case, del_timer_sync() loops forever.
    
    Simple fix is to test if timer is pending.
    
    Fixes: 2235f2a ("inet: fix races with reqsk timers")
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Eric Dumazet authored and davem330 committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    83fccfc View commit details
    Browse the repository at this point in the history
  6. ACPI / video: Fix circular lock dependency issue in the video-detect …

    …code
    
    Before this commit, the following would happen:
    
     a) acpi_video_get_backlight_type() gets called
     b) acpi_video_get_backlight_type() calls acpi_video_init_backlight_type()
     c) acpi_video_init_backlight_type() locks its function static init_mutex
     d) acpi_video_init_backlight_type() calls backlight_register_notifier()
     e) backlight_register_notifier() takes its notifier-chain lock
    
    And when the backlight notifier chain gets called we've:
    
     1) blocking_notifier_call_chain() gets called
     2) blocking_notifier_call_chain() takes the notifier-chain lock
     3) blocking_notifier_call_chain() calls acpi_video_backlight_notify()
     4) acpi_video_backlight_notify() calls acpi_video_get_backlight_type()
     5) acpi_video_get_backlight_type() calls acpi_video_init_backlight_type()
     6) acpi_video_init_backlight_type() locks its function static init_mutex
    
    So in the first call sequence we have:
    
     a) init_mutex gets locked
     b) notifier-chain gets locked
    
    and in the second call sequence we have:
    
     1) notifier-chain gets locked
     2) init_mutex gets locked
    
    And we've a circular locking dependency. This specific locking dependency
    is fixable without using the big hammer otherwise known as a workqueue,
    but further analysis shows a similar problem with the backlight notifier
    chain lock vs register_count_mutex from drivers/acpi/acpi_video.c,
    and fixing that becomes problematic.
    
    So this commit simply fixes this with the big hammer, performance
    wise this is a non issue as we expect the work to get scheduled
    exactly zero or one times during normal system use.
    
    Fixes: 93a291d (ACPI / video: Move backlight notifier to video_detect.c)
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Reported-and-tested-by: Sedat Dilek <sedat.dilek@gmail.com>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    jwrdegoede authored and rafaeljw committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    7231ed1 View commit details
    Browse the repository at this point in the history
  7. cpufreq: exynos: Fix for memory leak in case SoC name does not match

    During probe free the memory allocated to "exynos_info" in case of
    unknown SoC type.
    
    Signed-off-by: Shailendra Verma <shailendra.capricorn@gmail.com>
    Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
    Acked-by: Lukasz Majewski <l.majewski@samsung.com>
    [k.kozlowski: Rebased the patch around if(of_machine_is_compatible)]
    Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    Signed-off-by: Kukjin Kim <kgene@kernel.org>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Shailendra221188 authored and rafaeljw committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    62c3f2f View commit details
    Browse the repository at this point in the history
  8. Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux

    Pull drm fixes from Dave Airlie:
     "Back from holidays, found these in the cracks: one nouveau revert, one
      vmwgfx locking fix and a bunch of exynos fixes"
    
    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
      Revert "drm/nouveau/fifo/gk104: kick channels when deactivating them"
      drm/vmwgfx: Fix execbuf locking issues
      drm/exynos/fimc: fix runtime pm support
      drm/exynos/mixer: always update INT_EN cache
      drm/exynos/mixer: correct vsync configuration sequence
      drm/exynos/mixer: fix interrupt clearing
      drm/exynos/hdmi: fix edid memory leak
      drm/exynos: gsc: fix wrong bitwise operation for swap detection
    torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    c679765 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/s…

    …cm/linux/kernel/git/tip/tip
    
    Pull locking fix from Ingo Molnar:
     "A single fix for a locking self-test crash"
    
    * 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      locking/pvqspinlock: Fix kernel panic in locking-selftest
    torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    5e5013c View commit details
    Browse the repository at this point in the history
  10. Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/tip/tip
    
    Pull perf fixes from Ingo Molnar:
     "Misc fixes: PMU driver corner cases, tooling fixes, and an 'AUX'
      (Intel PT) race related core fix"
    
    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      perf/x86/intel/cqm: Do not access cpu_data() from CPU_UP_PREPARE handler
      perf/x86/intel: Fix memory leak on hot-plug allocation fail
      perf: Fix PERF_EVENT_IOC_PERIOD migration race
      perf: Fix double-free of the AUX buffer
      perf: Fix fasync handling on inherited events
      perf tools: Fix test build error when bindir contains double slash
      perf stat: Fix transaction lenght metrics
      perf: Fix running time accounting
    torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    b25c6ce View commit details
    Browse the repository at this point in the history
  11. Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/sc…

    …m/linux/kernel/git/tip/tip
    
    Pull timer fix from Ingo Molnar:
     "A single clocksource driver suspend/resume fix"
    
    * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      clockevents/drivers/sh_cmt: Only perform clocksource suspend/resume if enabled
    torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    3670901 View commit details
    Browse the repository at this point in the history
  12. mm/hwpoison: fix page refcount of unknown non LRU page

    After trying to drain pages from pagevec/pageset, we try to get reference
    count of the page again, however, the reference count of the page is not
    reduced if the page is still not on LRU list.
    
    Fix it by adding the put_page() to drop the page reference which is from
    __get_any_page().
    
    Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
    Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
    Cc: <stable@vger.kernel.org>	[3.9+]
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Wanpeng Li authored and torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    4f32be6 View commit details
    Browse the repository at this point in the history
  13. mm/hwpoison: fix fail isolate hugetlbfs page w/ refcount held

    Hugetlbfs pages will get a refcount in get_any_page() or
    madvise_hwpoison() if soft offlining through madvise.  The refcount which
    is held by the soft offline path should be released if we fail to isolate
    hugetlbfs pages.
    
    Fix it by reducing the refcount for both isolation success and failure.
    
    Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
    Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
    Cc: <stable@vger.kernel.org>	[3.9+]
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Wanpeng Li authored and torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    0361380 View commit details
    Browse the repository at this point in the history
  14. ipc,sem: fix use after free on IPC_RMID after a task using same semap…

    …hore set exits
    
    The current semaphore code allows a potential use after free: in
    exit_sem we may free the task's sem_undo_list while there is still
    another task looping through the same semaphore set and cleaning the
    sem_undo list at freeary function (the task called IPC_RMID for the same
    semaphore set).
    
    For example, with a test program [1] running which keeps forking a lot
    of processes (which then do a semop call with SEM_UNDO flag), and with
    the parent right after removing the semaphore set with IPC_RMID, and a
    kernel built with CONFIG_SLAB, CONFIG_SLAB_DEBUG and
    CONFIG_DEBUG_SPINLOCK, you can easily see something like the following
    in the kernel log:
    
       Slab corruption (Not tainted): kmalloc-64 start=ffff88003b45c1c0, len=64
       000: 6b 6b 6b 6b 6b 6b 6b 6b 00 6b 6b 6b 6b 6b 6b 6b  kkkkkkkk.kkkkkkk
       010: ff ff ff ff 6b 6b 6b 6b ff ff ff ff ff ff ff ff  ....kkkk........
       Prev obj: start=ffff88003b45c180, len=64
       000: 00 00 00 00 ad 4e ad de ff ff ff ff 5a 5a 5a 5a  .....N......ZZZZ
       010: ff ff ff ff ff ff ff ff c0 fb 01 37 00 88 ff ff  ...........7....
       Next obj: start=ffff88003b45c200, len=64
       000: 00 00 00 00 ad 4e ad de ff ff ff ff 5a 5a 5a 5a  .....N......ZZZZ
       010: ff ff ff ff ff ff ff ff 68 29 a7 3c 00 88 ff ff  ........h).<....
       BUG: spinlock wrong CPU on CPU#2, test/18028
       general protection fault: 0000 [#1] SMP
       Modules linked in: 8021q mrp garp stp llc nf_conntrack_ipv4 nf_defrag_ipv4 ip6t_REJECT nf_reject_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables binfmt_misc ppdev input_leds joydev parport_pc parport floppy serio_raw virtio_balloon virtio_rng virtio_console virtio_net iosf_mbi crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcspkr qxl ttm drm_kms_helper drm snd_hda_codec_generic i2c_piix4 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_seq snd_seq_device snd_pcm snd_timer snd soundcore crc32c_intel virtio_pci virtio_ring virtio pata_acpi ata_generic [last unloaded: speedstep_lib]
       CPU: 2 PID: 18028 Comm: test Not tainted 4.2.0-rc5+ #1
       Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.8.1-20150318_183358- 04/01/2014
       RIP: spin_dump+0x53/0xc0
       Call Trace:
         spin_bug+0x30/0x40
         do_raw_spin_unlock+0x71/0xa0
         _raw_spin_unlock+0xe/0x10
         freeary+0x82/0x2a0
         ? _raw_spin_lock+0xe/0x10
         semctl_down.clone.0+0xce/0x160
         ? __do_page_fault+0x19a/0x430
         ? __audit_syscall_entry+0xa8/0x100
         SyS_semctl+0x236/0x2c0
         ? syscall_trace_leave+0xde/0x130
         entry_SYSCALL_64_fastpath+0x12/0x71
       Code: 8b 80 88 03 00 00 48 8d 88 60 05 00 00 48 c7 c7 a0 2c a4 81 31 c0 65 8b 15 eb 40 f3 7e e8 08 31 68 00 4d 85 e4 44 8b 4b 08 74 5e <45> 8b 84 24 88 03 00 00 49 8d 8c 24 60 05 00 00 8b 53 04 48 89
       RIP  [<ffffffff810d6053>] spin_dump+0x53/0xc0
        RSP <ffff88003750fd68>
       ---[ end trace 783ebb76612867a0 ]---
       NMI watchdog: BUG: soft lockup - CPU#3 stuck for 22s! [test:18053]
       Modules linked in: 8021q mrp garp stp llc nf_conntrack_ipv4 nf_defrag_ipv4 ip6t_REJECT nf_reject_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables binfmt_misc ppdev input_leds joydev parport_pc parport floppy serio_raw virtio_balloon virtio_rng virtio_console virtio_net iosf_mbi crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcspkr qxl ttm drm_kms_helper drm snd_hda_codec_generic i2c_piix4 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_seq snd_seq_device snd_pcm snd_timer snd soundcore crc32c_intel virtio_pci virtio_ring virtio pata_acpi ata_generic [last unloaded: speedstep_lib]
       CPU: 3 PID: 18053 Comm: test Tainted: G      D         4.2.0-rc5+ #1
       Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.8.1-20150318_183358- 04/01/2014
       RIP: native_read_tsc+0x0/0x20
       Call Trace:
         ? delay_tsc+0x40/0x70
         __delay+0xf/0x20
         do_raw_spin_lock+0x96/0x140
         _raw_spin_lock+0xe/0x10
         sem_lock_and_putref+0x11/0x70
         SYSC_semtimedop+0x7bf/0x960
         ? handle_mm_fault+0xbf6/0x1880
         ? dequeue_task_fair+0x79/0x4a0
         ? __do_page_fault+0x19a/0x430
         ? kfree_debugcheck+0x16/0x40
         ? __do_page_fault+0x19a/0x430
         ? __audit_syscall_entry+0xa8/0x100
         ? do_audit_syscall_entry+0x66/0x70
         ? syscall_trace_enter_phase1+0x139/0x160
         SyS_semtimedop+0xe/0x10
         SyS_semop+0x10/0x20
         entry_SYSCALL_64_fastpath+0x12/0x71
       Code: 47 10 83 e8 01 85 c0 89 47 10 75 08 65 48 89 3d 1f 74 ff 7e c9 c3 0f 1f 44 00 00 55 48 89 e5 e8 87 17 04 00 66 90 c9 c3 0f 1f 00 <55> 48 89 e5 0f 31 89 c1 48 89 d0 48 c1 e0 20 89 c9 48 09 c8 c9
       Kernel panic - not syncing: softlockup: hung tasks
    
    I wasn't able to trigger any badness on a recent kernel without the
    proper config debugs enabled, however I have softlockup reports on some
    kernel versions, in the semaphore code, which are similar as above (the
    scenario is seen on some servers running IBM DB2 which uses semaphore
    syscalls).
    
    The patch here fixes the race against freeary, by acquiring or waiting
    on the sem_undo_list lock as necessary (exit_sem can race with freeary,
    while freeary sets un->semid to -1 and removes the same sem_undo from
    list_proc or when it removes the last sem_undo).
    
    After the patch I'm unable to reproduce the problem using the test case
    [1].
    
    [1] Test case used below:
    
        #include <stdio.h>
        #include <sys/types.h>
        #include <sys/ipc.h>
        #include <sys/sem.h>
        #include <sys/wait.h>
        #include <stdlib.h>
        #include <time.h>
        #include <unistd.h>
        #include <errno.h>
    
        #define NSEM 1
        #define NSET 5
    
        int sid[NSET];
    
        void thread()
        {
                struct sembuf op;
                int s;
                uid_t pid = getuid();
    
                s = rand() % NSET;
                op.sem_num = pid % NSEM;
                op.sem_op = 1;
                op.sem_flg = SEM_UNDO;
    
                semop(sid[s], &op, 1);
                exit(EXIT_SUCCESS);
        }
    
        void create_set()
        {
                int i, j;
                pid_t p;
                union {
                        int val;
                        struct semid_ds *buf;
                        unsigned short int *array;
                        struct seminfo *__buf;
                } un;
    
                /* Create and initialize semaphore set */
                for (i = 0; i < NSET; i++) {
                        sid[i] = semget(IPC_PRIVATE , NSEM, 0644 | IPC_CREAT);
                        if (sid[i] < 0) {
                                perror("semget");
                                exit(EXIT_FAILURE);
                        }
                }
                un.val = 0;
                for (i = 0; i < NSET; i++) {
                        for (j = 0; j < NSEM; j++) {
                                if (semctl(sid[i], j, SETVAL, un) < 0)
                                        perror("semctl");
                        }
                }
    
                /* Launch threads that operate on semaphore set */
                for (i = 0; i < NSEM * NSET * NSET; i++) {
                        p = fork();
                        if (p < 0)
                                perror("fork");
                        if (p == 0)
                                thread();
                }
    
                /* Free semaphore set */
                for (i = 0; i < NSET; i++) {
                        if (semctl(sid[i], NSEM, IPC_RMID))
                                perror("IPC_RMID");
                }
    
                /* Wait for forked processes to exit */
                while (wait(NULL)) {
                        if (errno == ECHILD)
                                break;
                };
        }
    
        int main(int argc, char **argv)
        {
                pid_t p;
    
                srand(time(NULL));
    
                while (1) {
                        p = fork();
                        if (p < 0) {
                                perror("fork");
                                exit(EXIT_FAILURE);
                        }
                        if (p == 0) {
                                create_set();
                                goto end;
                        }
    
                        /* Wait for forked processes to exit */
                        while (wait(NULL)) {
                                if (errno == ECHILD)
                                        break;
                        };
                }
        end:
                return 0;
        }
    
    [akpm@linux-foundation.org: use normal comment layout]
    Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
    Acked-by: Manfred Spraul <manfred@colorfullife.com>
    Cc: Davidlohr Bueso <dave@stgolabs.net>
    Cc: Rafael Aquini <aquini@redhat.com>
    CC: Aristeu Rozanski <aris@redhat.com>
    Cc: David Jeffery <djeffery@redhat.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Herton R. Krzesinski authored and torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    602b859 View commit details
    Browse the repository at this point in the history
  15. ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem()

    After we acquire the sma->sem_perm lock in exit_sem(), we are protected
    against a racing IPC_RMID operation.  Also at that point, we are the last
    user of sem_undo_list.  Therefore it isn't required that we acquire or use
    ulp->lock.
    
    Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
    Acked-by: Manfred Spraul <manfred@colorfullife.com>
    Cc: Davidlohr Bueso <dave@stgolabs.net>
    Cc: Rafael Aquini <aquini@redhat.com>
    CC: Aristeu Rozanski <aris@redhat.com>
    Cc: David Jeffery <djeffery@redhat.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Herton R. Krzesinski authored and torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    a979558 View commit details
    Browse the repository at this point in the history
  16. mm/hwpoison: fix panic due to split huge zero page

    Bug:
    
      ------------[ cut here ]------------
      kernel BUG at mm/huge_memory.c:1957!
      invalid opcode: 0000 [#1] SMP
      Modules linked in: snd_hda_codec_hdmi i915 rpcsec_gss_krb5 snd_hda_codec_realtek snd_hda_codec_generic nfsv4 dns_re
      CPU: 2 PID: 2576 Comm: test_huge Not tainted 4.2.0-rc5-mm1+ #27
      Hardware name: Dell Inc. OptiPlex 7020/0F5C5X, BIOS A03 01/08/2015
      task: ffff880204e3d600 ti: ffff8800db16c000 task.ti: ffff8800db16c000
      RIP: split_huge_page_to_list+0xdb/0x120
      Call Trace:
        memory_failure+0x32e/0x7c0
        madvise_hwpoison+0x8b/0x160
        SyS_madvise+0x40/0x240
        ? do_page_fault+0x37/0x90
        entry_SYSCALL_64_fastpath+0x12/0x71
      Code: ff f0 41 ff 4c 24 30 74 0d 31 c0 48 83 c4 08 5b 41 5c 41 5d c9 c3 4c 89 e7 e8 e2 58 fd ff 48 83 c4 08 31 c0
      RIP  split_huge_page_to_list+0xdb/0x120
       RSP <ffff8800db16fde8>
      ---[ end trace aee7ce0df8e44076 ]---
    
    Testcase:
    
        #define _GNU_SOURCE
        #include <stdlib.h>
        #include <stdio.h>
        #include <sys/mman.h>
        #include <unistd.h>
        #include <fcntl.h>
        #include <sys/types.h>
        #include <errno.h>
        #include <string.h>
    
        #define MB 1024*1024
    
        int main(void)
        {
                char *mem;
    
                posix_memalign((void **)&mem, 2 * MB, 200 * MB);
    
                madvise(mem, 200 * MB, MADV_HWPOISON);
    
                free(mem);
    
                return 0;
        }
    
    Huge zero page is allocated if page fault w/o FAULT_FLAG_WRITE flag.
    The get_user_pages_fast() which called in madvise_hwpoison() will get
    huge zero page if the page is not allocated before.  Huge zero page is a
    tranparent huge page, however, it is not an anonymous page.
    memory_failure will split the huge zero page and trigger
    BUG_ON(is_huge_zero_page(page));
    
    After commit 98ed2b0 ("mm/memory-failure: give up error handling
    for non-tail-refcounted thp"), memory_failure will not catch non anon
    thp from madvise_hwpoison path and this bug occur.
    
    Fix it by catching non anon thp in memory_failure in order to not split
    huge zero page in madvise_hwpoison path.
    
    After this patch:
    
      Injecting memory failure for page 0x202800 at 0x7fd8ae800000
      MCE: 0x202800: non anonymous thp
      [...]
    
    [akpm@linux-foundation.org: remove second split, per Wanpeng]
    Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
    Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Wanpeng Li authored and torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    7f6bf39 View commit details
    Browse the repository at this point in the history
  17. ipc/sem.c: update/correct memory barriers

    sem_lock() did not properly pair memory barriers:
    
    !spin_is_locked() and spin_unlock_wait() are both only control barriers.
    The code needs an acquire barrier, otherwise the cpu might perform read
    operations before the lock test.
    
    As no primitive exists inside <include/spinlock.h> and since it seems
    noone wants another primitive, the code creates a local primitive within
    ipc/sem.c.
    
    With regards to -stable:
    
    The change of sem_wait_array() is a bugfix, the change to sem_lock() is a
    nop (just a preprocessor redefinition to improve the readability).  The
    bugfix is necessary for all kernels that use sem_wait_array() (i.e.:
    starting from 3.10).
    
    Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
    Reported-by: Oleg Nesterov <oleg@redhat.com>
    Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
    Cc: Kirill Tkhai <ktkhai@parallels.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Josh Poimboeuf <jpoimboe@redhat.com>
    Cc: Davidlohr Bueso <dave@stgolabs.net>
    Cc: <stable@vger.kernel.org>	[3.10+]
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    manfred-colorfu authored and torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    3ed1f8a View commit details
    Browse the repository at this point in the history
  18. .mailmap: Andrey Ryabinin has moved

    Update my email address.
    
    Signed-off-by: Andrey Ryabinin <ryabinin.a.a@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    aryabinin authored and torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    2baf9e8 View commit details
    Browse the repository at this point in the history
  19. memory-hotplug: fix wrong edge when hot add a new node

    When we add a new node, the edge of memory may be wrong.
    
    e.g. system has 4 nodes, and node3 is movable, node3 mem:[24G-32G],
    
    1. hotremove the node3,
    2. then hotadd node3 with a part of memory, mem:[26G-30G],
    3. call hotadd_new_pgdat()
            free_area_init_node()
                    get_pfn_range_for_nid()
    4. it will return wrong start_pfn and end_pfn, because we have not
    update the memblock.
    
    This patch also fixes a BUG_ON during hot-addition, please see
    http://marc.info/?l=linux-kernel&m=142961156129456&w=2
    
    Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
    Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
    Cc: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Cc: Taku Izumi <izumi.taku@jp.fujitsu.com>
    Cc: Tang Chen <tangchen@cn.fujitsu.com>
    Cc: Gu Zheng <guz.fnst@cn.fujitsu.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Xishi Qiu authored and torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    f9126ab View commit details
    Browse the repository at this point in the history
  20. zram: fix pool name truncation

    zram_meta_alloc() constructs a pool name for zs_create_pool() call as
    
        snprintf(pool_name, sizeof(pool_name), "zram%d", device_id);
    
    However, it defines pool name buffer to be only 8 bytes long (minus
    trailing zero), which means that we can have only 1000 pool names: zram0
    -- zram999.
    
    With CONFIG_ZSMALLOC_STAT enabled an attempt to create a device zram1000
    can fail if device zram100 already exists, because snprintf() will
    truncate new pool name to zram100 and pass it debugfs_create_dir(),
    causing:
    
      debugfs dir <zram100> creation failed
      zram: Error creating memory pool
    
    ... and so on.
    
    Fix it by passing zram->disk->disk_name to zram_meta_alloc() instead of
    divice_id.  We construct zram%d name earlier and keep it as a ->disk_name,
    no need to snprintf() it again.
    
    Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
    Cc: Minchan Kim <minchan@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    sergey-senozhatsky authored and torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    4ce321f View commit details
    Browse the repository at this point in the history
  21. mm: cma: mark cma_bitmap_maxno() inline in header

    cma_bitmap_maxno() was marked as static and not static inline, which can
    cause warnings about this function not being used if this file is included
    in a file that does not call that function, and violates the conventions
    used elsewhere.  The two options are to move the function implementation
    back to mm/cma.c or make it inline here, and it's simple enough for the
    latter to make sense.
    
    Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com>
    Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
    Cc: Sasha Levin <sasha.levin@oracle.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    cha5on authored and torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    f21838e View commit details
    Browse the repository at this point in the history
  22. Update maintainers for DRM STI driver

    Add Vincent Abriou and myself as maintainers.
    
    Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
    Cc: Vincent Abriou <vincent.abriou@st.com>
    Cc: Dave Airlie <airlied@linux.ie>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Benjamin-Gaignard authored and torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    7f11c47 View commit details
    Browse the repository at this point in the history
  23. Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/clk/linux
    
    Pull clock fix from Stephen Boyd:
     "A one-liner for a regression found in the PXA clock driver"
    
    * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
      clk: pxa: pxa3xx: fix CKEN register access
    torvalds committed Aug 14, 2015
    Configuration menu
    Copy the full SHA
    fbd9163 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2015

  1. Merge branch 'akpm' (patches from Andrew)

    Merge fixes from Andrew Morton:
     "11 fixes"
    
    * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
      Update maintainers for DRM STI driver
      mm: cma: mark cma_bitmap_maxno() inline in header
      zram: fix pool name truncation
      memory-hotplug: fix wrong edge when hot add a new node
      .mailmap: Andrey Ryabinin has moved
      ipc/sem.c: update/correct memory barriers
      mm/hwpoison: fix panic due to split huge zero page
      ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem()
      ipc,sem: fix use after free on IPC_RMID after a task using same semaphore set exits
      mm/hwpoison: fix fail isolate hugetlbfs page w/ refcount held
      mm/hwpoison: fix page refcount of unknown non LRU page
    torvalds committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    8394a1b View commit details
    Browse the repository at this point in the history
  2. Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

    Pull KVM fixes from Paolo Bonzini:
     "Just two very small & simple patches"
    
    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
      KVM: x86: Use adjustment in guest cycles when handling MSR_IA32_TSC_ADJUST
      KVM: x86: zero IDT limit on entry to SMM
    torvalds committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    45e38cf View commit details
    Browse the repository at this point in the history
  3. thermal: cpu_cooling: fix lockdep problems in cpu_cooling

    A recent change to the cpu_cooling code introduced a AB-BA deadlock
    scenario between the cpufreq_policy_notifier_list rwsem and the
    cooling_cpufreq_lock.  This is caused by cooling_cpufreq_lock being held
    before the registration/removal of the notifier block (an operation
    which takes the rwsem), and the notifier code itself which takes the
    locks in the reverse order:
    
    ======================================================
    [ INFO: possible circular locking dependency detected ]
    3.18.0+ #1453 Not tainted
    -------------------------------------------------------
    rc.local/770 is trying to acquire lock:
     (cooling_cpufreq_lock){+.+.+.}, at: [<c04abfc4>] cpufreq_thermal_notifier+0x34/0xfc
    
    but task is already holding lock:
     ((cpufreq_policy_notifier_list).rwsem){++++.+}, at: [<c0042f04>]  __blocking_notifier_call_chain+0x34/0x68
    
    which lock already depends on the new lock.
    
    the existing dependency chain (in reverse order) is:
    
    -> #1 ((cpufreq_policy_notifier_list).rwsem){++++.+}:
           [<c06bc3b0>] down_write+0x44/0x9c
           [<c0043444>] blocking_notifier_chain_register+0x28/0xd8
           [<c04ad610>] cpufreq_register_notifier+0x68/0x90
           [<c04abe4c>] __cpufreq_cooling_register.part.1+0x120/0x180
           [<c04abf44>] __cpufreq_cooling_register+0x98/0xa4
           [<c04abf8c>] cpufreq_cooling_register+0x18/0x1c
           [<bf0046f8>] imx_thermal_probe+0x1c0/0x470 [imx_thermal]
           [<c037cef8>] platform_drv_probe+0x50/0xac
           [<c037b710>] driver_probe_device+0x114/0x234
           [<c037b8cc>] __driver_attach+0x9c/0xa0
           [<c0379d68>] bus_for_each_dev+0x5c/0x90
           [<c037b204>] driver_attach+0x24/0x28
           [<c037ae7c>] bus_add_driver+0xe0/0x1d8
           [<c037c0cc>] driver_register+0x80/0xfc
           [<c037cd80>] __platform_driver_register+0x50/0x64
           [<bf007018>] 0xbf007018
           [<c0008a5c>] do_one_initcall+0x88/0x1d8
           [<c0095da4>] load_module+0x1768/0x1ef8
           [<c0096614>] SyS_init_module+0xe0/0xf4
           [<c000ec00>] ret_fast_syscall+0x0/0x48
    
    -> #0 (cooling_cpufreq_lock){+.+.+.}:
           [<c00619f8>] lock_acquire+0xb0/0x124
           [<c06ba3b4>] mutex_lock_nested+0x5c/0x3d8
           [<c04abfc4>] cpufreq_thermal_notifier+0x34/0xfc
           [<c0042bf4>] notifier_call_chain+0x4c/0x8c
           [<c0042f20>] __blocking_notifier_call_chain+0x50/0x68
           [<c0042f58>] blocking_notifier_call_chain+0x20/0x28
           [<c04ae62c>] cpufreq_set_policy+0x7c/0x1d0
           [<c04af3cc>] store_scaling_governor+0x74/0x9c
           [<c04ad418>] store+0x90/0xc0
           [<c0175384>] sysfs_kf_write+0x54/0x58
           [<c01746b4>] kernfs_fop_write+0xdc/0x190
           [<c010dcc0>] vfs_write+0xac/0x1b4
           [<c010dfec>] SyS_write+0x44/0x90
           [<c000ec00>] ret_fast_syscall+0x0/0x48
    
    other info that might help us debug this:
    
     Possible unsafe locking scenario:
    
           CPU0                    CPU1
           ----                    ----
      lock((cpufreq_policy_notifier_list).rwsem);
                                   lock(cooling_cpufreq_lock);
                                   lock((cpufreq_policy_notifier_list).rwsem);
      lock(cooling_cpufreq_lock);
    
     *** DEADLOCK ***
    
    7 locks held by rc.local/770:
     #0:  (sb_writers#6){.+.+.+}, at: [<c010dda0>] vfs_write+0x18c/0x1b4
     #1:  (&of->mutex){+.+.+.}, at: [<c0174678>] kernfs_fop_write+0xa0/0x190
     #2:  (s_active#52){.+.+.+}, at: [<c0174680>] kernfs_fop_write+0xa8/0x190
     #3:  (cpu_hotplug.lock){++++++}, at: [<c0026a60>] get_online_cpus+0x34/0x90
     #4:  (cpufreq_rwsem){.+.+.+}, at: [<c04ad3e0>] store+0x58/0xc0
     #5:  (&policy->rwsem){+.+.+.}, at: [<c04ad3f8>] store+0x70/0xc0
     #6:  ((cpufreq_policy_notifier_list).rwsem){++++.+}, at: [<c0042f04>] __blocking_notifier_call_chain+0x34/0x68
    
    stack backtrace:
    CPU: 0 PID: 770 Comm: rc.local Not tainted 3.18.0+ #1453
    Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
    Backtrace:
    [<c00121c8>] (dump_backtrace) from [<c0012360>] (show_stack+0x18/0x1c)
     r6:c0b85a80 r5:c0b75630 r4:00000000 r3:00000000
    [<c0012348>] (show_stack) from [<c06b6c48>] (dump_stack+0x7c/0x98)
    [<c06b6bcc>] (dump_stack) from [<c06b42a4>] (print_circular_bug+0x28c/0x2d8)
     r4:c0b85a80 r3:d0071d40
    [<c06b4018>] (print_circular_bug) from [<c00613b0>] (__lock_acquire+0x1acc/0x1bb0)
     r10:c0b50660 r8:c09e6d80 r7:d0071d40 r6:c11d0f0c r5:00000007 r4:d0072240
    [<c005f8e4>] (__lock_acquire) from [<c00619f8>] (lock_acquire+0xb0/0x124)
     r10:00000000 r9:c04abfc4 r8:00000000 r7:00000000 r6:00000000 r5:c0a06f0c
     r4:00000000
    [<c0061948>] (lock_acquire) from [<c06ba3b4>] (mutex_lock_nested+0x5c/0x3d8)
     r10:ec853800 r9:c0a06ed4 r8:d0071d40 r7:c0a06ed4 r6:c11d0f0c r5:00000000
     r4:c04abfc4
    [<c06ba358>] (mutex_lock_nested) from [<c04abfc4>] (cpufreq_thermal_notifier+0x34/0xfc)
     r10:ec853800 r9:ec85380c r8:d00d7d3c r7:c0a06ed4 r6:d00d7d3c r5:00000000
     r4:fffffffe
    [<c04abf90>] (cpufreq_thermal_notifier) from [<c0042bf4>] (notifier_call_chain+0x4c/0x8c)
     r7:00000000 r6:00000000 r5:00000000 r4:fffffffe
    [<c0042ba8>] (notifier_call_chain) from [<c0042f20>] (__blocking_notifier_call_chain+0x50/0x68)
     r8:c0a072a4 r7:00000000 r6:d00d7d3c r5:ffffffff r4:c0a06fc8 r3:ffffffff
    [<c0042ed0>] (__blocking_notifier_call_chain) from [<c0042f58>] (blocking_notifier_call_chain+0x20/0x28)
     r7:ec98b540 r6:c13ebc80 r5:ed76e600 r4:d00d7d3c
    [<c0042f38>] (blocking_notifier_call_chain) from [<c04ae62c>] (cpufreq_set_policy+0x7c/0x1d0)
    [<c04ae5b0>] (cpufreq_set_policy) from [<c04af3cc>] (store_scaling_governor+0x74/0x9c)
     r7:ec98b540 r6:0000000c r5:ec98b540 r4:ed76e600
    [<c04af358>] (store_scaling_governor) from [<c04ad418>] (store+0x90/0xc0)
     r6:0000000c r5:ed76e6d4 r4:ed76e600
    [<c04ad388>] (store) from [<c0175384>] (sysfs_kf_write+0x54/0x58)
     r8:0000000c r7:d00d7f78 r6:ec98b540 r5:0000000c r4:ec853800 r3:0000000c
    [<c0175330>] (sysfs_kf_write) from [<c01746b4>] (kernfs_fop_write+0xdc/0x190)
     r6:ec98b540 r5:00000000 r4:00000000 r3:c0175330
    [<c01745d8>] (kernfs_fop_write) from [<c010dcc0>] (vfs_write+0xac/0x1b4)
     r10:0162aa70 r9:d00d6000 r8:0000000c r7:d00d7f78 r6:0162aa70 r5:0000000c
     r4:eccde500
    [<c010dc14>] (vfs_write) from [<c010dfec>] (SyS_write+0x44/0x90)
     r10:0162aa70 r8:0000000c r7:eccde500 r6:eccde500 r5:00000000 r4:00000000
    [<c010dfa8>] (SyS_write) from [<c000ec00>] (ret_fast_syscall+0x0/0x48)
     r10:00000000 r8:c000edc4 r7:00000004 r6:000216cc r5:0000000c r4:0162aa70
    
    Solve this by moving to finer grained locking - use one mutex to protect
    the cpufreq_dev_list as a whole, and a separate lock to ensure correct
    ordering of cpufreq notifier registration and removal.
    
    cooling_list_lock is taken within cooling_cpufreq_lock on
    (un)registration to preserve the behavior of the code, i.e. to
    atomically add/remove to the list and (un)register the notifier.
    
    Fixes: 2dcd851 ("thermal: cpu_cooling: Update always cpufreq policy with
    Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    Russell King authored and Eduardo Valentin committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    02373d7 View commit details
    Browse the repository at this point in the history
  4. thermal/cpu_cooling: No need to initialize max_freq to 0

    Its always set before getting used, don't initialize it.
    
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    vireshk authored and Eduardo Valentin committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    76fd38c View commit details
    Browse the repository at this point in the history
  5. thermal/cpu_cooling: quit early after updating policy

    If a valid cpufreq_dev is found for policy->cpu, we should update the
    policy and quit the for loop. There is no need to keep traversing the
    list of cpufreq_dev's.
    
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    vireshk authored and Eduardo Valentin committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    166529c View commit details
    Browse the repository at this point in the history
  6. thermal/cpu_cooling: convert 'switch' block to 'if' block in notifier

    We just need to take care of single event here and there is no need to
    increase indentation level of most of the code (which causes lines
    longer that 80 columns to break).
    
    Kill the switch block.
    
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    vireshk authored and Eduardo Valentin committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    a24af23 View commit details
    Browse the repository at this point in the history
  7. thermal/cpu_cooling: rename cpufreq_val as clipped_freq

    That's what it is for, lets name it properly.
    
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    vireshk authored and Eduardo Valentin committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    59f0d21 View commit details
    Browse the repository at this point in the history
  8. thermal/cpu_cooling: rename max_freq as clipped_freq in notifier

    That's what it is for, lets name it properly.
    
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    vireshk authored and Eduardo Valentin committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    abcbcc2 View commit details
    Browse the repository at this point in the history
  9. thermal/cpu_cooling: update policy limits if clipped_freq < policy->max

    policy->max is the maximum allowed frequency defined by user and
    clipped_freq is the maximum that thermal constraints allow.
    
    If clipped_freq is lower than policy->max, then we need to readjust
    policy->max.
    
    But, if clipped_freq is greater than policy->max, we don't need to do
    anything. We used to call cpufreq_verify_within_limits() in this case,
    but it doesn't change anything in this case.
    
    Lets skip this unnecessary call and write a comment that explains this.
    
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    vireshk authored and Eduardo Valentin committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    1afb9c5 View commit details
    Browse the repository at this point in the history
  10. Merge tag 'drm-intel-fixes-2015-08-14' of git://anongit.freedesktop.o…

    …rg/drm-intel into drm-next
    
    three display fixes for Intel.
    
    * tag 'drm-intel-fixes-2015-08-14' of git://anongit.freedesktop.org/drm-intel:
      drm/i915: Commit planes on each crtc separately.
      drm/i915: calculate primary visibility changes instead of calling from set_config
      drm/i915: Only dither on 6bpc panels
    airlied committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    3acceca View commit details
    Browse the repository at this point in the history
  11. Merge tag 'topic/drm-fixes-2015-08-14' of git://anongit.freedesktop.o…

    …rg/drm-intel into drm-next
    
    single MST fixes from Maarten.
    
    * tag 'topic/drm-fixes-2015-08-14' of git://anongit.freedesktop.org/drm-intel:
      drm/dp/mst: Remove port after removing connector.
    airlied committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    7945dc5 View commit details
    Browse the repository at this point in the history
  12. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fixes from James Bottomley:
     "This has two libfc fixes for bugs causing rare crashes, one iscsi fix
      for a potential hang on shutdown, and a fix for an I/O blocksize issue
      which caused a regression"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      sd: Fix maximum I/O size for BLOCK_PC requests
      libfc: Fix fc_fcp_cleanup_each_cmd()
      libfc: Fix fc_exch_recv_req() error path
      libiscsi: Fix host busy blocking during connection teardown
    torvalds committed Aug 15, 2015
    Configuration menu
    Copy the full SHA
    1efdb5f View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2015

  1. MIPS: Fix seccomp syscall argument for MIPS64

    Commit 4c21b8f ("MIPS: seccomp: Handle indirect system calls (o32)")
    fixed indirect system calls on O32 but it also introduced a bug for MIPS64
    where it erroneously modified the v0 (syscall) register with the assumption
    that the sycall offset hasn't been taken into consideration. This breaks
    seccomp on MIPS64 n64 and n32 ABIs. We fix this by replacing the addition
    with a move instruction.
    
    Fixes: 4c21b8f ("MIPS: seccomp: Handle indirect system calls (o32)")
    Cc: <stable@vger.kernel.org> # 3.15+
    Reviewed-by: James Hogan <james.hogan@imgtec.com>
    Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/10951/
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Markos Chandras authored and ralfbaechle committed Aug 16, 2015
    Configuration menu
    Copy the full SHA
    9f16143 View commit details
    Browse the repository at this point in the history
  2. Merge tag 'keystone-dts-late-fixes-v2' of git://git.kernel.org/pub/sc…

    …m/linux/kernel/git/ssantosh/linux-keystone into fixes
    
    ARM: Couple of Keysyone MDIO DTS fixes for 4.2-rc6+
    
    These are necessary to get the NIC card working on all Keystone
    EVMs. Couple of boards are broken without these two fixes.
    
    * tag 'keystone-dts-late-fixes-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone:
      ARM: dts: keystone: Fix the mdio bindings by moving it to soc specific file
      ARM: dts: keystone: fix the clock node for mdio
    
    Signed-off-by: Olof Johansson <olof@lixom.net>
    olofj committed Aug 16, 2015
    Configuration menu
    Copy the full SHA
    0214951 View commit details
    Browse the repository at this point in the history
  3. fs/fuse: fix ioctl type confusion

    fuse_dev_ioctl() performed fuse_get_dev() on a user-supplied fd,
    leading to a type confusion issue. Fix it by checking file->f_op.
    
    Signed-off-by: Jann Horn <jann@thejh.net>
    Acked-by: Miklos Szeredi <miklos@szeredi.hu>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    thejh authored and torvalds committed Aug 16, 2015
    Configuration menu
    Copy the full SHA
    8ed1f0e View commit details
    Browse the repository at this point in the history
  4. x86/ldt: Further fix FPU emulation

    The previous fix confused a selector with a segment prefix.  Fix it.
    
    Compile-tested only.
    
    Cc: stable@vger.kernel.org
    Cc: Juergen Gross <jgross@suse.com>
    Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
    Fixes: 4809146 ("x86/ldt: Correct FPU emulation access to LDT")
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    amluto authored and torvalds committed Aug 16, 2015
    Configuration menu
    Copy the full SHA
    12e244f View commit details
    Browse the repository at this point in the history
  5. Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tip/tip
    
    Merge x86 fixes from Ingo Molnar:
     "Two followup fixes related to the previous LDT fix"
    
    Also applied a further FPU emulation fix from Andy Lutomirski to the
    branch before actually merging it.
    
    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
      x86/ldt: Further fix FPU emulation
      x86/ldt: Correct FPU emulation access to LDT
      x86/ldt: Correct LDT access in single stepping logic
    torvalds committed Aug 16, 2015
    Configuration menu
    Copy the full SHA
    0156547 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upst…

    …ream-linus
    
    Pull MIPS bugfix from Ralf Baechle:
     "Only a single MIPS fix - the math when invoking syscall_trace_enter
      was wrong"
    
    * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
      MIPS: Fix seccomp syscall argument for MIPS64
    torvalds committed Aug 16, 2015
    Configuration menu
    Copy the full SHA
    0f405bf View commit details
    Browse the repository at this point in the history
  7. Merge tag 'armsoc-for-linus' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/arm/arm-soc
    
    Pull ARM SoC fixes from Olof Johansson:
     "A smallish batch of fixes, a little more than expected this late, but
      all fixes are contained to their platforms and seem reasonably low
      risk:
    
       - a somewhat large SMP fix for ux500 that still seemed warranted to
         include here
       - OMAP DT fixes for pbias regulator specification that broke due to
         some DT reshuffling
       - PCIe IRQ routing bugfix for i.MX
       - networking fixes for keystone
       - runtime PM for OMAP GPMC
       - a couple of error path bug fixes for exynos"
    
    * tag 'armsoc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
      ARM: dts: keystone: Fix the mdio bindings by moving it to soc specific file
      ARM: dts: keystone: fix the clock node for mdio
      memory: omap-gpmc: Don't try to save uninitialized GPMC context
      ARM: imx6: correct i.MX6 PCIe interrupt routing
      ARM: ux500: add an SMP enablement type and move cpu nodes
      ARM: dts: dra7: Fix broken pbias device creation
      ARM: dts: OMAP5: Fix broken pbias device creation
      ARM: dts: OMAP4: Fix broken pbias device creation
      ARM: dts: omap243x: Fix broken pbias device creation
      ARM: EXYNOS: fix double of_node_put() on error path
      ARM: EXYNOS: Fix potentian kfree() of ro memory
    torvalds committed Aug 16, 2015
    Configuration menu
    Copy the full SHA
    8916e0b View commit details
    Browse the repository at this point in the history
  8. Linux 4.2-rc7

    torvalds committed Aug 16, 2015
    Configuration menu
    Copy the full SHA
    2c6625c View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2015

  1. drm/i915: Flag the execlists context object as dirty after every use

    Everytime we use the logical context with execlists it becomes dirty (as
    the hardware will write the new register values afterwards, as well as
    the GPU state that will be used). We need to then flag the context as
    dirty everytime since after a swap-out/swap-in cycle the dirty flag will
    be cleared, and a further swap-out cycle will then loose the most recent
    GPU state.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: stable@vger.kernel.org
    Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    ickle authored and jnikula committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    903ecd0 View commit details
    Browse the repository at this point in the history
  2. Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6

    Pull crypto fixes from Herbert Xu:
     "This fixes the following issues:
    
       - a regression caused by the conversion of IPsec ESP to the new AEAD
         interface: ESN with authencesn no longer works because it relied on
         the AD input SG list having a specific layout which is no longer
         the case.  In linux-next authencesn is fixed properly and no longer
         assumes anything about the SG list format.  While for this release
         a minimal fix is applied to authencesn so that it works with the
         new linear layout.
    
       - fix memory corruption caused by bogus index in the caam hash code.
    
       - fix powerpc nx SHA hashing which could cause module load failures
         if module signature verification is enabled"
    
    * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
      crypto: caam - fix memory corruption in ahash_final_ctx
      crypto: nx - respect sg limit bounds when building sg lists for SHA
      crypto: authencesn - Fix breakage with new ESP code
    torvalds committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    a36304b View commit details
    Browse the repository at this point in the history
  3. dmaengine: fix balance of privatecnt inc/dec operations

    This patch increments privatecnt value and set DMA_PRIVATE in device
    caps in dma_request_slave_channel() function. This is needed to keep
    privatecnt increment/decrement balance.
    
    As function dma_release_channel() decrements privatecnt counter, we need
    to increment it when channel is requested. Otherwise privatecnt drops
    into negatives after few dma_release_channel() calls.
    
    Reported-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    Robert Baldyga authored and Vinod Koul committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    05aa1a7 View commit details
    Browse the repository at this point in the history
  4. Revert "net: limit tcp/udp rmem/wmem to SOCK_{RCV,SND}BUF_MIN"

    Commit 8133534 ("net: limit tcp/udp rmem/wmem to
    SOCK_{RCV,SND}BUF_MIN") modified four sysctls to enforce that the values
    written to them are not less than SOCK_MIN_{RCV,SND}BUF.
    
    That change causes 4096 to no longer be accepted as a valid value for
    'min' in tcp_wmem and udp_wmem_min. 4096 has been the default for both
    of those sysctls for a long time, and unfortunately seems to be an
    extremely popular setting. This change breaks a large number of sysctl
    configurations at Facebook.
    
    That commit referred to b1cb59c ("net: sysctl_net_core: check
    SNDBUF and RCVBUF for min length"), which choose to use the SOCK_MIN
    constants as the lower limits to avoid nasty bugs. But AFAICS, a limit
    of SOCK_MIN_SNDBUF isn't necessary to do that: the BUG_ON cited in the
    commit message seems to have happened because unix_stream_sendmsg()
    expects a minimum of a full page (ie SK_MEM_QUANTUM) and the math broke,
    not because it had less than SOCK_MIN_SNDBUF allocated.
    
    This particular issue doesn't seem to affect TCP however: using a
    setting of "1 1 1" for tcp_{r,w}mem works, although it's obviously
    suboptimal. SK_MEM_QUANTUM would be a nice minimum, but it's 64K on
    some archs, so there would still be breakage.
    
    Since a value of one doesn't seem to cause any problems, we can drop the
    minimum 8133534 added to fix this.
    
    This reverts commit 8133534.
    
    Fixes: 8133534 ("net: limit tcp/udp rmem/wmem to SOCK_MIN...")
    Cc: Eric Dumazet <eric.dumazet@gmail.com>
    Cc: Sorin Dumitru <sorin@returnze.ro>
    Signed-off-by: Calvin Owens <calvinowens@fb.com>
    Acked-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    jcalvinowens authored and davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    5d37852 View commit details
    Browse the repository at this point in the history
  5. net: phy: fix PHY_RUNNING in phy_state_machine

    Currently, if phy state is PHY_RUNNING, we always register a CHANGE
    when phy works in polling or interrupt ignored, this will make the
    adjust_link being called even the phy link did Not changed.
    
    checking the phy link to make sure the link did changed before we
    register a CHANGE, if link did not changed, we do nothing.
    
    Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Shaohui Xie authored and davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    11e122c View commit details
    Browse the repository at this point in the history
  6. ppp: fix device unregistration upon netns deletion

    PPP devices may get automatically unregistered when their network
    namespace is getting removed. This happens if the ppp control plane
    daemon (e.g. pppd) exits while it is the last user of this namespace.
    
    This leads to several races:
    
      * ppp_exit_net() may destroy the per namespace idr (pn->units_idr)
        before all file descriptors were released. Successive ppp_release()
        calls may then cleanup PPP devices with ppp_shutdown_interface() and
        try to use the already destroyed idr.
    
      * Automatic device unregistration may also happen before the
        ppp_release() call for that device gets executed. Once called on
        the file owning the device, ppp_release() will then clean it up and
        try to unregister it a second time.
    
    To fix these issues, operations defined in ppp_shutdown_interface() are
    moved to the PPP device's ndo_uninit() callback. This allows PPP
    devices to be properly cleaned up by unregister_netdev() and friends.
    So checking for ppp->owner is now an accurate test to decide if a PPP
    device should be unregistered.
    
    Setting ppp->owner is done in ppp_create_interface(), before device
    registration, in order to avoid unprotected modification of this field.
    
    Finally, ppp_exit_net() now starts by unregistering all remaining PPP
    devices to ensure that none will get unregistered after the call to
    idr_destroy().
    
    Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guillaume Nault authored and davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    8cb775b View commit details
    Browse the repository at this point in the history
  7. net: ethernet: micrel: fix an error code

    The dma_mapping_error() function returns true or false.  We should
    return -ENOMEM if it there is a dma mapping error.
    
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Dan Carpenter authored and davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    2902bc6 View commit details
    Browse the repository at this point in the history
  8. Merge tag 'mac80211-for-davem-2015-08-14' of git://git.kernel.org/pub…

    …/scm/linux/kernel/git/jberg/mac80211
    
    Johannes Berg says:
    
    ====================
    We have a single bugfix for an invalid memory read.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    a27cc68 View commit details
    Browse the repository at this point in the history
  9. net: phy: workaround for buggy cable detection by LAN8700 after cable…

    … plugging
    
    * Due to HW bug, LAN8700 sometimes does not detect presence of energy in the
      Ethernet cable in Energy Detect Power-Down mode (e.g while EDPWRDOWN bit is
      set, the ENERGYON bit does not asserted sometimes). This is a common bug of
      LAN87xx family of PHY chips.
    * The lan87xx_read_status() was improved to acquire ENERGYON bit. Its previous
      algorythm still not reliable on 100 % and sometimes skip cable plugging.
    
    Signed-off-by: Igor Plyatov <plyatov@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Igor Plyatov authored and davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    776829d View commit details
    Browse the repository at this point in the history
  10. ipv6: Remove un-used argument from ip6_dst_alloc()

    After 4b32b5a ("ipv6: Stop rt6_info from using inet_peer's metrics"),
    ip6_dst_alloc() does not need the 'table' argument.  This patch
    cleans it up.
    
    Signed-off-by: Martin KaFai Lau <kafai@fb.com>
    CC: Hannes Frederic Sowa <hannes@stressinduktion.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    iamkafai authored and davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    ad70686 View commit details
    Browse the repository at this point in the history
  11. ipv6: Add rt6_make_pcpu_route()

    It is a prep work for fixing a potential deadlock when creating
    a pcpu rt.
    
    The current rt6_get_pcpu_route() will also create a pcpu rt if one does not
    exist.  This patch moves the pcpu rt creation logic into another function,
    rt6_make_pcpu_route().
    
    Signed-off-by: Martin KaFai Lau <kafai@fb.com>
    CC: Hannes Frederic Sowa <hannes@stressinduktion.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    iamkafai authored and davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    a73e419 View commit details
    Browse the repository at this point in the history
  12. ipv6: Fix a potential deadlock when creating pcpu rt

    rt6_make_pcpu_route() is called under read_lock(&table->tb6_lock).
    rt6_make_pcpu_route() calls ip6_rt_pcpu_alloc(rt) which then
    calls dst_alloc().  dst_alloc() _may_ call ip6_dst_gc() which takes
    the write_lock(&tabl->tb6_lock).  A visualized version:
    
    read_lock(&table->tb6_lock);
    rt6_make_pcpu_route();
    => ip6_rt_pcpu_alloc();
    => dst_alloc();
    => ip6_dst_gc();
    => write_lock(&table->tb6_lock); /* oops */
    
    The fix is to do a read_unlock first before calling ip6_rt_pcpu_alloc().
    
    A reported stack:
    
    [141625.537638] INFO: rcu_sched self-detected stall on CPU { 27}  (t=60000 jiffies g=4159086 c=4159085 q=2139)
    [141625.547469] Task dump for CPU 27:
    [141625.550881] mtr             R  running task        0 22121  22081 0x00000008
    [141625.558069]  0000000000000000 ffff88103f363d98 ffffffff8106e488 000000000000001b
    [141625.565641]  ffffffff81684900 ffff88103f363db8 ffffffff810702b0 0000000008000000
    [141625.573220]  ffffffff81684900 ffff88103f363de8 ffffffff8108df9f ffff88103f375a00
    [141625.580803] Call Trace:
    [141625.583345]  <IRQ>  [<ffffffff8106e488>] sched_show_task+0xc1/0xc6
    [141625.589650]  [<ffffffff810702b0>] dump_cpu_task+0x35/0x39
    [141625.595144]  [<ffffffff8108df9f>] rcu_dump_cpu_stacks+0x6a/0x8c
    [141625.601320]  [<ffffffff81090606>] rcu_check_callbacks+0x1f6/0x5d4
    [141625.607669]  [<ffffffff810940c8>] update_process_times+0x2a/0x4f
    [141625.613925]  [<ffffffff8109fbee>] tick_sched_handle+0x32/0x3e
    [141625.619923]  [<ffffffff8109fc2f>] tick_sched_timer+0x35/0x5c
    [141625.625830]  [<ffffffff81094a1f>] __hrtimer_run_queues+0x8f/0x18d
    [141625.632171]  [<ffffffff81094c9e>] hrtimer_interrupt+0xa0/0x166
    [141625.638258]  [<ffffffff8102bf2a>] local_apic_timer_interrupt+0x4e/0x52
    [141625.645036]  [<ffffffff8102c36f>] smp_apic_timer_interrupt+0x39/0x4a
    [141625.651643]  [<ffffffff8140b9e8>] apic_timer_interrupt+0x68/0x70
    [141625.657895]  <EOI>  [<ffffffff81346ee8>] ? dst_destroy+0x7c/0xb5
    [141625.664188]  [<ffffffff813d45b5>] ? fib6_flush_trees+0x20/0x20
    [141625.670272]  [<ffffffff81082b45>] ? queue_write_lock_slowpath+0x60/0x6f
    [141625.677140]  [<ffffffff8140aa33>] _raw_write_lock_bh+0x23/0x25
    [141625.683218]  [<ffffffff813d4553>] __fib6_clean_all+0x40/0x82
    [141625.689124]  [<ffffffff813d45b5>] ? fib6_flush_trees+0x20/0x20
    [141625.695207]  [<ffffffff813d6058>] fib6_clean_all+0xe/0x10
    [141625.700854]  [<ffffffff813d60d3>] fib6_run_gc+0x79/0xc8
    [141625.706329]  [<ffffffff813d0510>] ip6_dst_gc+0x85/0xf9
    [141625.711718]  [<ffffffff81346d68>] dst_alloc+0x55/0x159
    [141625.717105]  [<ffffffff813d09b5>] __ip6_dst_alloc.isra.32+0x19/0x63
    [141625.723620]  [<ffffffff813d1830>] ip6_pol_route+0x36a/0x3e8
    [141625.729441]  [<ffffffff813d18d6>] ip6_pol_route_output+0x11/0x13
    [141625.735700]  [<ffffffff813f02c8>] fib6_rule_action+0xa7/0x1bf
    [141625.741698]  [<ffffffff813d18c5>] ? ip6_pol_route_input+0x17/0x17
    [141625.748043]  [<ffffffff81357c48>] fib_rules_lookup+0xb5/0x12a
    [141625.754050]  [<ffffffff81141628>] ? poll_select_copy_remaining+0xf9/0xf9
    [141625.761002]  [<ffffffff813f0535>] fib6_rule_lookup+0x37/0x5c
    [141625.766914]  [<ffffffff813d18c5>] ? ip6_pol_route_input+0x17/0x17
    [141625.773260]  [<ffffffff813d008c>] ip6_route_output+0x7a/0x82
    [141625.779177]  [<ffffffff813c44c8>] ip6_dst_lookup_tail+0x53/0x112
    [141625.785437]  [<ffffffff813c45c3>] ip6_dst_lookup_flow+0x2a/0x6b
    [141625.791604]  [<ffffffff813ddaab>] rawv6_sendmsg+0x407/0x9b6
    [141625.797423]  [<ffffffff813d7914>] ? do_ipv6_setsockopt.isra.8+0xd87/0xde2
    [141625.804464]  [<ffffffff8139d4b4>] inet_sendmsg+0x57/0x8e
    [141625.810028]  [<ffffffff81329ba3>] sock_sendmsg+0x2e/0x3c
    [141625.815588]  [<ffffffff8132be57>] SyS_sendto+0xfe/0x143
    [141625.821063]  [<ffffffff813dd551>] ? rawv6_setsockopt+0x5e/0x67
    [141625.827146]  [<ffffffff8132c9f8>] ? sock_common_setsockopt+0xf/0x11
    [141625.833660]  [<ffffffff8132c08c>] ? SyS_setsockopt+0x81/0xa2
    [141625.839565]  [<ffffffff8140ac17>] entry_SYSCALL_64_fastpath+0x12/0x6a
    
    Fixes: d52d399 ("pv6: Create percpu rt6_info")
    Signed-off-by: Martin KaFai Lau <kafai@fb.com>
    CC: Hannes Frederic Sowa <hannes@stressinduktion.org>
    Reported-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    iamkafai authored and davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    9c7370a View commit details
    Browse the repository at this point in the history
  13. Merge branch 'ipv6_percpu_rt_deadlock'

    Martin KaFai Lau says:
    
    ====================
    ipv6: Fix a potential deadlock when creating pcpu rt
    
    v1 -> v2:
    A minor change in the commit message of patch 2.
    
    This patch series fixes a potential deadlock when creating a pcpu rt.
    It happens when dst_alloc() decided to run gc. Something like this:
    
    read_lock(&table->tb6_lock);
    ip6_rt_pcpu_alloc()
    => dst_alloc()
    => ip6_dst_gc()
    => write_lock(&table->tb6_lock); /* oops */
    
    Patch 1 and 2 are some prep works.
    Patch 3 is the fix.
    
    Original report: https://bugzilla.kernel.org/show_bug.cgi?id=102291
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    1f979b1 View commit details
    Browse the repository at this point in the history
  14. be2net: avoid vxlan offloading on multichannel configs

    VxLAN offloading is not functional if the NIC is running in multichannel
    mode (UMC, FLEX-10, VNIC...). Enabling this additionally kills whole
    connectivity through the NIC and the device needs to be down and up to
    restore it. The firmware should take care about it and does not allow
    the conversion of interface to tunnel type (be_cmd_manage_iface) or should
    support VxLAN offloading if multichannel config is enabled.
    I have tested this on the latest available firmware (10.6.144.21).
    
    Result:
    [root@sm-04 ~]# ip link set enp5s0f0 up[root@sm-04 ~]# ip addr add 172.30.10.50/24 dev enp5s0f0
    [root@sm-04 ~]# ping -c 3 172.30.10.254PING 172.30.10.254 (172.30.10.254) 56(84) bytes of data.
    64 bytes from 172.30.10.254: icmp_seq=1 ttl=64 time=0.317 ms
    64 bytes from 172.30.10.254: icmp_seq=2 ttl=64 time=0.187 ms
    64 bytes from 172.30.10.254: icmp_seq=3 ttl=64 time=0.188 ms
    
     --- 172.30.10.254 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2000ms
    rtt min/avg/max/mdev = 0.187/0.230/0.317/0.063 ms
    [root@sm-04 ~]# ip link add link enp5s0f0 vxlan10 type vxlan id 10 remote 172.30.10.60 dstport 4789
    [root@sm-04 ~]# ip link set vxlan10 up
    [ 7900.442811] be2net 0000:05:00.0: Enabled VxLAN offloads for UDP port 4789
    [ 7900.455722] be2net 0000:05:00.1: Enabled VxLAN offloads for UDP port 4789
    [ 7900.468635] be2net 0000:05:00.2: Enabled VxLAN offloads for UDP port 4789
    [ 7900.481553] be2net 0000:05:00.3: Enabled VxLAN offloads for UDP port 4789
    [root@sm-04 ~]# ping -c 3 172.30.10.254
    PING 172.30.10.254 (172.30.10.254) 56(84) bytes of data.
    
     --- 172.30.10.254 ping statistics ---
    3 packets transmitted, 0 received, 100% packet loss, time 1999ms
    
    [root@sm-04 ~]# ip link set vxlan10 down
    [ 7959.434093] be2net 0000:05:00.0: Disabled VxLAN offloads for UDP port 4789
    [ 7959.444792] be2net 0000:05:00.1: Disabled VxLAN offloads for UDP port 4789
    [ 7959.455592] be2net 0000:05:00.2: Disabled VxLAN offloads for UDP port 4789
    [ 7959.466416] be2net 0000:05:00.3: Disabled VxLAN offloads for UDP port 4789
    [root@sm-04 ~]# ip link del vxlan10
    [root@sm-04 ~]# ping -c 3 172.30.10.254
    PING 172.30.10.254 (172.30.10.254) 56(84) bytes of data.
    
     --- 172.30.10.254 ping statistics ---
    3 packets transmitted, 0 received, 100% packet loss, time 1999ms
    
    [root@sm-04 ~]# ip link set enp5s0f0 down
    [root@sm-04 ~]# ip link set enp5s0f0 up
    [ 8071.019003] be2net 0000:05:00.0 enp5s0f0: Link is Up
    [root@sm-04 ~]# ping -c 3 172.30.10.254
    PING 172.30.10.254 (172.30.10.254) 56(84) bytes of data.
    64 bytes from 172.30.10.254: icmp_seq=1 ttl=64 time=0.318 ms
    64 bytes from 172.30.10.254: icmp_seq=2 ttl=64 time=0.196 ms
    64 bytes from 172.30.10.254: icmp_seq=3 ttl=64 time=0.194 ms
    
     --- 172.30.10.254 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2000ms
    rtt min/avg/max/mdev = 0.194/0.236/0.318/0.057 ms
    
    Cc: Sathya Perla <sathya.perla@avagotech.com>
    Cc: Ajit Khaparde <ajit.khaparde@avagotech.com>
    Cc: Padmanabh Ratnakar <padmanabh.ratnakar@avagotech.com>
    Cc: Sriharsha Basavapatna <sriharsha.basavapatna@avagotech.com>
    Signed-off-by: Ivan Vecera <ivecera@redhat.com>
    Acked-by: Ajit Khaparde <ajit.khaparde@avagotech.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Ivan Vecera authored and davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    af19e68 View commit details
    Browse the repository at this point in the history
  15. net: qmi_wwan: add HP lt4111 LTE/EV-DO/HSPA+ Gobi 4G Module

    This is an HP-branded Sierra Wireless EM7355:
    https://bugzilla.redhat.com/show_bug.cgi?id=1223646#c2
    
    Signed-off-by: David Ward <david.ward@ll.mit.edu>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    dpward authored and davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    a807909 View commit details
    Browse the repository at this point in the history
  16. net: phy: fix semicolon.cocci warnings

    drivers/net/phy/smsc.c:127:3-4: Unneeded semicolon
    
     Remove unneeded semicolon.
    
    Generated by: scripts/coccinelle/misc/semicolon.cocci
    
    CC: Igor Plyatov <plyatov@gmail.com>
    Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    kbuild test robot authored and davem330 committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    ff94c74 View commit details
    Browse the repository at this point in the history
  17. Merge branch 'for-4.2-fixes' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/tj/cgroup
    
    Pull cgroup fix from Tejun Heo:
     "A fix for a subtle bug introduced back during 3.17 cycle which
      interferes with setting configurations under specific conditions"
    
    * 'for-4.2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
      cpuset: use trialcs->mems_allowed as a temp variable
    torvalds committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    e9ab22d View commit details
    Browse the repository at this point in the history
  18. Merge branch 'for-4.2-fixes' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/tj/libata
    
    Pull libata fixes from Tejun Heo:
     "Three minor device-specific fixes and revert of NCQ autosense added
      during this -rc1.
    
      It turned out that NCQ autosense as currently implemented interferes
      with the usual error handling behavior.  It will be revisited in the
      near future"
    
    * 'for-4.2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata:
      ata: ahci_brcmstb: Fix misuse of IS_ENABLED
      sata_sx4: Check return code from pdc20621_i2c_read()
      Revert "libata: Implement NCQ autosense"
      Revert "libata: Implement support for sense data reporting"
      Revert "libata-eh: Set 'information' field for autosense"
      ata: ahci_brcmstb: Fix warnings with CONFIG_PM_SLEEP=n
    torvalds committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    4e7fca0 View commit details
    Browse the repository at this point in the history
  19. Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/dledford/rdma
    
    Pull rdma bugfix from Doug Ledford:
     "Bugfix in iw_cxgb4"
    
    * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma:
      iw_cxgb4: gracefully handle unknown CQE status errors
    torvalds committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    bf67402 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2015

  1. ASoC: topology: Add Kconfig option for topology

    Allow the topology code to be compiled out so that users who don't need
    topology don't need to havve the code compiled in, saving them some
    memory.
    
    Some more configuration could be added to remove some of the hooks into
    the core data structures but that is probably best done with some
    refactoring to use functions to do the updates of the data structures
    rather than ifdefing in the code as we'd need to do at the minute.
    
    Suggested-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    78b50f3 View commit details
    Browse the repository at this point in the history
  2. Revert "sched/x86_64: Don't save flags on context switch"

    This reverts commit:
    
      2c7577a ("sched/x86_64: Don't save flags on context switch")
    
    It was a nice speedup.  It's also not quite correct: SYSENTER
    enables interrupts too early.
    
    We can re-add this optimization once the SYSENTER code is beaten
    into shape, which should happen in 4.3 or 4.4.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: stable@vger.kernel.org # v3.19
    Link: http://lkml.kernel.org/r/85f56651f59f76624e80785a8fd3bdfdd089a818.1439838962.git.luto@kernel.org
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    amluto authored and Ingo Molnar committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    512255a View commit details
    Browse the repository at this point in the history
  3. drm/atmel-hlcdc: Compile suspend/resume for PM_SLEEP only

    If PM is enabled but PM_SLEEP is disabled, the suspend/resume functions
    are still unused and produce a compiler warning.
    
    Signed-off-by: Thierry Reding <treding@nvidia.com>
    Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
    Cc: <stable@vger.kernel.org> # 4.1+
    thierryreding authored and Boris Brezillon committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    dbb3df2 View commit details
    Browse the repository at this point in the history
  4. MIPS: Fix LLVM build issue.

    Matthew Fortune <Matthew.Fortune@imgtec.com> reports:
    
    The genex.S file appears to mix the case of a macro between its definition and
    use. A cut down example of this is below. The macro __build_clear_none has
    lower case 'build' but ends up being instantiated with upper case BUILD. Can
    this be fixed on master. It has been picked up by the LLVM integrated assembler
    which is currently case sensitive. We are likely to fix the assembler as well
    but the code is currently inconsistent in the kernel.
    
     .macro __build_clear_none
     .endm
    
     .macro __BUILD_HANDLER exception handler clear verbose ext
     .align 5
     .globl handle_\exception; .align 2; .type handle_\exception, @function; .ent
    handle_\exception, 0; handle_\exception: .frame $29, 184, $29
     .set noat
     .globl handle_\exception\ext; .type handle_\exception\ext, @function;
    handle_\exception\ext:
     __BUILD_clear_\clear
     .endm
    
     .macro BUILD_HANDLER exception handler clear verbose
     __BUILD_HANDLER \exception \handler \clear \verbose _int
     .endm
    
    BUILD_HANDLER ftlb ftlb none silent
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Reported-by: Matthew Fortune <Matthew.Fortune@imgtec.com>
    ralfbaechle committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    158d3b2 View commit details
    Browse the repository at this point in the history
  5. ARM: 8414/1: __copy_to_user_memcpy: fix mmap semaphore usage

    The mmap semaphore should not be taken when page faults are disabled.
    Since pagefault_disable() no longer disables preemption, we now need
    to use faulthandler_disabled() in place of in_atomic().
    
    Signed-off-by: Nicolas Pitre <nico@linaro.org>
    Tested-by: Mark Salter <msalter@redhat.com>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    Nicolas Pitre authored and Russell King committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    0f64b24 View commit details
    Browse the repository at this point in the history
  6. ARM: 8418/1: add boot image dependencies to not generate invalid images

    U-Boot is often used to boot the kernel on ARM boards, but uImage
    is not built by "make all", so we are often inclined to do
    "make all uImage" to generate DTBs, modules and uImage in a single
    command, but we should notice a pitfall behind it.  In fact,
    "make all uImage" could generate an invalid uImage if it is run with
    the parallel option (-j).
    
    You can reproduce this problem with the following procedure:
    
    [1] First, build "all" and "uImage" separately.
        You will get a valid uImage
    
      $ git clean -f -x -d
      $ export CROSS_COMPILE=<your-tools-prefix>
      $ make -s -j8 ARCH=arm multi_v7_defconfig
      $ make -s -j8 ARCH=arm all
      $ make -j8 ARCH=arm UIMAGE_LOADADDR=0x80208000 uImage
        CHK     include/config/kernel.release
        CHK     include/generated/uapi/linux/version.h
        CHK     include/generated/utsrelease.h
      make[1]: `include/generated/mach-types.h' is up to date.
        CHK     include/generated/timeconst.h
        CHK     include/generated/bounds.h
        CHK     include/generated/asm-offsets.h
        CALL    scripts/checksyscalls.sh
        CHK     include/generated/compile.h
        Kernel: arch/arm/boot/Image is ready
        Kernel: arch/arm/boot/zImage is ready
        UIMAGE  arch/arm/boot/uImage
      Image Name:   Linux-4.2.0-rc5-00156-gdd2384a-d
      Created:      Sat Aug  8 23:21:35 2015
      Image Type:   ARM Linux Kernel Image (uncompressed)
      Data Size:    6138648 Bytes = 5994.77 kB = 5.85 MB
      Load Address: 80208000
      Entry Point:  80208000
        Image arch/arm/boot/uImage is ready
      $ ls -l arch/arm/boot/*Image
      -rwxrwxr-x 1 masahiro masahiro 13766656 Aug  8 23:20 arch/arm/boot/Image
      -rw-rw-r-- 1 masahiro masahiro  6138712 Aug  8 23:21 arch/arm/boot/uImage
      -rwxrwxr-x 1 masahiro masahiro  6138648 Aug  8 23:20 arch/arm/boot/zImage
    
    [2] Update some source file(s)
    
      $ touch init/main.c
    
    [3] Then, re-build "all" and "uImage" simultaneously.
        You will get an invalid uImage at random.
    
      $ make -j8 ARCH=arm UIMAGE_LOADADDR=0x80208000 all uImage
        CHK     include/config/kernel.release
        CHK     include/generated/uapi/linux/version.h
        CHK     include/generated/utsrelease.h
      make[1]: `include/generated/mach-types.h' is up to date.
        CHK     include/generated/timeconst.h
        CHK     include/generated/bounds.h
        CHK     include/generated/asm-offsets.h
        CALL    scripts/checksyscalls.sh
        CC      init/main.o
        CHK     include/generated/compile.h
        LD      init/built-in.o
        LINK    vmlinux
        LD      vmlinux.o
        MODPOST vmlinux.o
        GEN     .version
        CHK     include/generated/compile.h
        UPD     include/generated/compile.h
        CC      init/version.o
        LD      init/built-in.o
        KSYM    .tmp_kallsyms1.o
        KSYM    .tmp_kallsyms2.o
        LD      vmlinux
        SORTEX  vmlinux
        SYSMAP  System.map
        OBJCOPY arch/arm/boot/Image
        Building modules, stage 2.
        Kernel: arch/arm/boot/Image is ready
        GZIP    arch/arm/boot/compressed/piggy.gzip
        AS      arch/arm/boot/compressed/piggy.gzip.o
        Kernel: arch/arm/boot/Image is ready
        LD      arch/arm/boot/compressed/vmlinux
        GZIP    arch/arm/boot/compressed/piggy.gzip
        OBJCOPY arch/arm/boot/zImage
        Kernel: arch/arm/boot/zImage is ready
        UIMAGE  arch/arm/boot/uImage
      Image Name:   Linux-4.2.0-rc5-00156-gdd2384a-d
      Created:      Sat Aug  8 23:23:14 2015
      Image Type:   ARM Linux Kernel Image (uncompressed)
      Data Size:    26472 Bytes = 25.85 kB = 0.03 MB
      Load Address: 80208000
      Entry Point:  80208000
        Image arch/arm/boot/uImage is ready
        MODPOST 192 modules
        AS      arch/arm/boot/compressed/piggy.gzip.o
        LD      arch/arm/boot/compressed/vmlinux
        OBJCOPY arch/arm/boot/zImage
        Kernel: arch/arm/boot/zImage is ready
      $ ls -l arch/arm/boot/*Image
      -rwxrwxr-x 1 masahiro masahiro 13766656 Aug  8 23:23 arch/arm/boot/Image
      -rw-rw-r-- 1 masahiro masahiro    26536 Aug  8 23:23 arch/arm/boot/uImage
      -rwxrwxr-x 1 masahiro masahiro  6138648 Aug  8 23:23 arch/arm/boot/zImage
    
    Please notice the uImage is extremely small when this issue is
    encountered.  Besides, "Kernel: arch/arm/boot/zImage is ready" is
    displayed twice, before and after the uImage log.
    
    The root cause of this is the race condition between zImage and
    uImage.  Actually, uImage depends on zImage, but the dependency
    between the two is only described in arch/arm/boot/Makefile.
    Because arch/arm/boot/Makefile is not included from the top-level
    Makefile, it cannot know the dependency between zImage and uImage.
    
    Consequently, when we run make with the parallel option, Kbuild
    updates vmlinux first, and then two different threads descends into
    the arch/arm/boot/Makefile almost at the same time, one for updating
    zImage and the other for uImage.  While one thread is re-generating
    zImage, the other also tries to update zImage before creating uImage
    on top of that.  zImage is overwritten by the slower thread and then
    uImage is created based on the half-written zImage.
    
    This is the reason why "Kernel: arch/arm/boot/zImage is ready" is
    displayed twice, and a broken uImage is created.
    
    The same problem could happen on bootpImage.
    
    This commit adds dependencies among Image, zImage, uImage, and
    bootpImage to arch/arm/Makefile, which is included from the
    top-level Makefile.
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    masahir0y authored and Russell King committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    3939f33 View commit details
    Browse the repository at this point in the history
  7. timer: Write timer->flags atomically

    lock_timer_base() cannot prevent the following :
    
    CPU1 ( in __mod_timer()
    timer->flags |= TIMER_MIGRATING;
    spin_unlock(&base->lock);
    base = new_base;
    spin_lock(&base->lock);
    // The next line clears TIMER_MIGRATING
    timer->flags &= ~TIMER_BASEMASK;
                                      CPU2 (in lock_timer_base())
                                      see timer base is cpu0 base
                                      spin_lock_irqsave(&base->lock, *flags);
                                      if (timer->flags == tf)
                                           return base; // oops, wrong base
    timer->flags |= base->cpu // too late
    
    We must write timer->flags in one go, otherwise we can fool other cpus.
    
    Fixes: bc7a34b ("timer: Reduce timer migration overhead if disabled")
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Cc: Jon Christopherson <jon@jons.org>
    Cc: David Miller <davem@davemloft.net>
    Cc: xen-devel@lists.xen.org
    Cc: david.vrabel@citrix.com
    Cc: Sander Eikelenboom <linux@eikelenboom.it>
    Link: http://lkml.kernel.org/r/1439831928.32680.11.camel@edumazet-glaptop2.roam.corp.google.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Eric Dumazet authored and KAGA-KOKO committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    d0023a1 View commit details
    Browse the repository at this point in the history
  8. Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux

    Pull drm fixes from Dave Airlie:
     "These came in late last week, I wanted to look over the mst one before
      forwarding, but it seems good.
    
      Just three i915 and one MST fix"
    
    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
      drm/i915: Commit planes on each crtc separately.
      drm/i915: calculate primary visibility changes instead of calling from set_config
      drm/i915: Only dither on 6bpc panels
      drm/dp/mst: Remove port after removing connector.
    torvalds committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    f4566ed View commit details
    Browse the repository at this point in the history
  9. fnic: Use the local variable instead of I/O flag to acquire io_req_lo…

    …ck in fnic_queuecommand() to avoid deadloack
    
    We added changes in fnic driver patch 1.6.0.16 to acquire
    io_req_lock in fnic_queuecommand() before issuing I/O so that io completion
    is serialized. But when releasing the lock we check for the I/O flag and
    this could be modified if IO abort occurs before I/O completion. In this case
    we wont release the lock and causes deadlock in some scenerios. Using the
    local variable to check the IO lock status will resolve the problem.
    
    Fixes: 41df7b0
    Signed-off-by: Hiral Shah <hishah@cisco.com>
    Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com>
    Signed-off-by: Anil Chintalapati <achintal@cisco.com>
    Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: James Bottomley <JBottomley@Odin.com>
    Hiral Shah authored and James Bottomley committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    db19693 View commit details
    Browse the repository at this point in the history
  10. SCSI: Fix NULL pointer dereference in runtime PM

    The routines in scsi_rpm.c assume that if a runtime-PM callback is
    invoked for a SCSI device, it can only mean that the device's driver
    has asked the block layer to handle the runtime power management (by
    calling blk_pm_runtime_init(), which among other things sets q->dev).
    
    However, this assumption turns out to be wrong for things like the ses
    driver.  Normally ses devices are not allowed to do runtime PM, but
    userspace can override this setting.  If this happens, the kernel gets
    a NULL pointer dereference when blk_post_runtime_resume() tries to use
    the uninitialized q->dev pointer.
    
    This patch fixes the problem by calling the block layer's runtime-PM
    routines only if the device's driver really does have a runtime-PM
    callback routine.  Since ses doesn't define any such callbacks, the
    crash won't occur.
    
    This fixes Bugzilla #101371.
    
    Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
    Reported-by: Stanisław Pitucha <viraptor@gmail.com>
    Reported-by: Ilan Cohen <ilanco@gmail.com>
    Tested-by: Ilan Cohen <ilanco@gmail.com>
    Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
    Cc: stable@vger.kernel.org
    Signed-off-by: James Bottomley <JBottomley@Odin.com>
    AlanStern authored and James Bottomley committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    49718f0 View commit details
    Browse the repository at this point in the history
  11. x86/irq: Build correct vector mapping for multiple MSI interrupts

    Alex Deucher, Mark Rustad and Alexander Holler reported a regression
    with the latest v4.2-rc4 kernel, which breaks some SATA controllers.
    With multi-MSI capable SATA controllers, only the first port works,
    all other ports time out when executing SATA commands.
    
    This happens because the first argument to assign_irq_vector_policy()
    is always the base linux irq number of the multi MSI interrupt block,
    so all subsequent vector assignments operate on the base linux irq
    number, so all MSI irqs are handled as the first irq number. Therefor
    the other MSI irqs of a device are never set up correctly and never
    fire.
    
    Add the loop iterator to the base irq number so all vectors are
    assigned correctly.
    
    Fixes: b5dc8e6 "x86/irq: Use hierarchical irqdomain to manage CPU interrupt vectors"
    Reported-and-tested-by: Alex Deucher <alexdeucher@gmail.com>
    Reported-and-tested-by: Mark Rustad <mrustad@gmail.com>
    Reported-and-tested-by: Alexander Holler <holler@ahsoftware.de>
    Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
    Cc: Tony Luck <tony.luck@intel.com>
    Link: http://lkml.kernel.org/r/1439911228-9880-1-git-send-email-jiang.liu@linux.intel.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Jiang Liu authored and KAGA-KOKO committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    527f0a9 View commit details
    Browse the repository at this point in the history
  12. ASoC: topology: Disable use from userspace

    Since the topology API is still in sufficient flux for changes to be
    identified disable the use of the userspace ABI by adding #error
    statements to the code, ensuring that nobody relies on the headers as
    currently defined.  It is expected that this change will be reverted for
    v4.3.
    
    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    8c90503 View commit details
    Browse the repository at this point in the history
  13. Merge tag 'dmaengine-fix-4.2-rc8' of git://git.infradead.org/users/vk…

    …oul/slave-dma
    
    Pull dmaengine fix from Vinod Koul:
     "We recently found issue with dma_request_slave_channel() API causing
      privatecnt value to go bad.  This is fixed by balancing the privatecnt"
    
    * tag 'dmaengine-fix-4.2-rc8' of git://git.infradead.org/users/vkoul/slave-dma:
      dmaengine: fix balance of privatecnt inc/dec operations
    torvalds committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    1b647a1 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2015

  1. batman-adv: Fix memory leak on tt add with invalid vlan

    The object tt_local is allocated with kmalloc and not initialized when the
    function batadv_tt_local_add checks for the vlan. But this function can
    only cleanup the object when the (not yet initialized) reference counter of
    the object is 1. This is unlikely and thus the object would leak when the
    vlan could not be found.
    
    Instead the uninitialized object tt_local has to be freed manually and the
    pointer has to set to NULL to avoid calling the function which would try to
    decrement the reference counter of the not existing object.
    
    CID: 1316518
    Fixes: 354136b ("batman-adv: fix kernel crash due to missing NULL checks")
    Signed-off-by: Sven Eckelmann <sven@narfation.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    ecsv authored and davem330 committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    fd7dec2 View commit details
    Browse the repository at this point in the history
  2. target: Fix handling of small allocation lengths in REPORT LUNS

    REPORT LUNS should not fail just because the allocation length is less
    than 16.  The relevant section of SPC-4 is:
    
      4.2.5.6 Allocation length
    
      The ALLOCATION LENGTH field specifies the maximum number of bytes or
      blocks that an application client has allocated in the Data-In
      Buffer. The ALLOCATION LENGTH field specifies bytes unless a
      different requirement is stated in the command definition.
    
      An allocation length of zero specifies that no data shall be
      transferred. This condition shall not be considered an error.
    
    So we should just truncate our response rather than return an error.
    
    Signed-off-by: Roland Dreier <roland@purestorage.com>
    Signed-off-by: Spencer Baugh <sbaugh@catern.com>
    Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
    rolandd authored and nablio3000 committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    0f69a38 View commit details
    Browse the repository at this point in the history
  3. Revert "drm/i915: Allow parsing of variable size child device entries…

    … from VBT"
    
    This reverts
    
    commit 047fe6e
    Author: David Weinehall <david.weinehall@linux.intel.com>
    Date:   Tue Aug 4 16:55:52 2015 +0300
    
        drm/i915: Allow parsing of variable size child device entries from VBT
    
    That commit is not valid for v4.2, however it will be valid for v4.3. It
    was simply queued too early.
    
    The referenced regressing commit is just fine until the size of struct
    common_child_dev_config changes, and that won't happen until
    v4.3. Indeed, the expected size checks here rely on the increased size
    of the struct, breaking new platforms.
    
    Fixes: 047fe6e ("drm/i915: Allow parsing of variable size child device entries from VBT")
    Cc: Daniel Vetter <daniel@ffwll.ch>
    Cc: David Weinehall <david.weinehall@linux.intel.com>
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    jnikula committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    bf1a5fd View commit details
    Browse the repository at this point in the history
  4. Merge branch 'x86/asm/urgent' to pick up an entry code fix

    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Ingo Molnar committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    b5be5b7 View commit details
    Browse the repository at this point in the history
  5. Revert "drm/i915: Add eDP intermediate frequencies for CHV"

    This reverts
    commit fe51bfb.
    Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Date:   Thu Mar 12 17:10:38 2015 +0200
    
    CHV does not support intermediate frequencies so reverting the
    patch that added it in the first place
    
    Cc: stable@vger.kernel.org # v4.1+
    Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    rtshiva authored and jnikula committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    33747cc View commit details
    Browse the repository at this point in the history
  6. drm/i915: remove HBR2 from chv supported list

    This patch removes 5.4Gbps from supported link rate for CHV since
    it is not supported in it.
    
    v2: change the ordering for better readability (Ville)
    
    Cc: stable@vger.kernel.org # v4.1+
    Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    rtshiva authored and jnikula committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    5e86dfe View commit details
    Browse the repository at this point in the history
  7. drm/i915: Avoid TP3 on CHV

    This patch removes TP3 support on CHV since there is no support
    for HBR2 on this platform.
    
    v2: rename the function to indicate it checks source rates (Jani)
    v3: update comment to indicate TP3 dependency on HBR2 supported
        hardware (Jani)
    
    Cc: stable@vger.kernel.org # v4.1+
    Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
    [Jani: fixed a couple of checkpatch warnings.]
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    rtshiva authored and jnikula committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    ed63baa View commit details
    Browse the repository at this point in the history
  8. Revert "[media] rc: nuvoton-cir: Add support for writing wakeup sampl…

    …es via sysfs filter callback"
    
    This reverts commit da7ee60.
    
    The current code is not mature enough, the API should allow a single
    protocol to be specified. Also, the current code contains heuristics
    that will depend on module load order.
    
    Signed-off-by: David Härdeman <david@hardeman.nu>
    Acked-by: Antti Seppälä <a.seppala@gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Alphix authored and mchehab committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    23f28f2 View commit details
    Browse the repository at this point in the history
  9. Revert "[media] rc: rc-loopback: Add loopback of filter scancodes"

    This reverts commit 2e4ebde.
    
    The current code is not mature enough, the API should allow a single
    protocol to be specified. Also, the current code contains heuristics
    that will depend on module load order.
    
    Signed-off-by: David Härdeman <david@hardeman.nu>
    Acked-by: Antti Seppälä <a.seppala@gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Alphix authored and mchehab committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    8abfebd View commit details
    Browse the repository at this point in the history
  10. Revert "[media] rc: rc-core: Add support for encode_wakeup drivers"

    This reverts commit 0d830b2.
    
    The current code is not mature enough, the API should allow a single
    protocol to be specified. Also, the current code contains heuristics
    that will depend on module load order.
    
    Signed-off-by: David Härdeman <david@hardeman.nu>
    Acked-by: Antti Seppälä <a.seppala@gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Alphix authored and mchehab committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    3a03b86 View commit details
    Browse the repository at this point in the history
  11. Revert "[media] rc: ir-rc6-decoder: Add encode capability"

    This reverts commit cf257e2.
    
    The current code is not mature enough, the API should allow a single
    protocol to be specified. Also, the current code contains heuristics
    that will depend on module load order.
    
    Signed-off-by: David Härdeman <david@hardeman.nu>
    Acked-by: Antti Seppälä <a.seppala@gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Alphix authored and mchehab committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    70e7112 View commit details
    Browse the repository at this point in the history
  12. Revert "[media] rc: ir-rc5-decoder: Add encode capability"

    This reverts commit a0466f1.
    
    The current code is not mature enough, the API should allow a single
    protocol to be specified. Also, the current code contains heuristics
    that will depend on module load order.
    
    Signed-off-by: David Härdeman <david@hardeman.nu>
    Acked-by: Antti Seppälä <a.seppala@gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Alphix authored and mchehab committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    e49b361 View commit details
    Browse the repository at this point in the history
  13. Revert "[media] rc: rc-ir-raw: Add Manchester encoder (phase encoder)…

    … helper"
    
    This reverts commit 1d971d9.
    
    The current code is not mature enough, the API should allow a single
    protocol to be specified. Also, the current code contains heuristics
    that will depend on module load order.
    
    Signed-off-by: David Härdeman <david@hardeman.nu>
    Acked-by: Antti Seppälä <a.seppala@gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Alphix authored and mchehab committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    86f2166 View commit details
    Browse the repository at this point in the history
  14. Revert "[media] rc: rc-ir-raw: Add scancode encoder callback"

    This reverts commit 9869da5.
    
    The current code is not mature enough, the API should allow a single
    protocol to be specified. Also, the current code contains heuristics
    that will depend on module load order.
    
    Signed-off-by: David Härdeman <david@hardeman.nu>
    Acked-by: Antti Seppälä <a.seppala@gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Alphix authored and mchehab committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    72c5b7b View commit details
    Browse the repository at this point in the history
  15. [media] mantis: Fix error handling in mantis_dma_init()

    Current code assigns 0 to variable 'err', which makes mantis_dma_init()
    to return success even if mantis_alloc_buffers() fails.
    
    Fix it by checking the return value from mantis_alloc_buffers() and
    propagating it in the case of error.
    
    Reported-by: RUC_Soft_Sec <zy900702@163.com>
    Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Fabio Estevam authored and mchehab committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    02387b5 View commit details
    Browse the repository at this point in the history
  16. ALSA: usb-audio: Fix runtime PM unbalance

    The fix for deadlock in PM in commit [1ee23fe: ALSA: usb-audio:
    Fix deadlocks at resuming] introduced a new check of in_pm flag.
    However, the brainless patch author evaluated it in a wrong way
    (logical AND instead of logical OR), thus usb_autopm_get_interface()
    is wrongly called at probing, leading to unbalance of runtime PM
    refcount.
    
    This patch fixes it by correcting the logic.
    
    Reported-by: Hans Yang <hansy@nvidia.com>
    Fixes: 1ee23fe ('ALSA: usb-audio: Fix deadlocks at resuming')
    Cc: <stable@vger.kernel.org> [v3.15+]
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    9003ebb View commit details
    Browse the repository at this point in the history
  17. ALSA: hda - Add dock support for Thinkpad W541 (17aa:2211)

    Tested with W541 and Ultra Dock 170w
    
    Signed-off-by: Rick Sherman <rick@shermdog.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    shermdog authored and tiwai committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    59a51a6 View commit details
    Browse the repository at this point in the history
  18. FIRMWARE: bcm47xx_nvram: Fix module license.

    Signed-off-by: Axel Lin <axel.lin@ingics.com>
    Cc: Hauke Mehrtens <hauke@hauke-m.de>
    Cc: Rafał Miłecki <zajec5@gmail.com>
    Cc: Paul Walmsley <paul@pwsan.com>
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/11020/
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    AxelLin authored and ralfbaechle committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    72ccc89 View commit details
    Browse the repository at this point in the history
  19. Merge tag 'asoc-v4.2-disable-topology' of git://git.kernel.org/pub/sc…

    …m/linux/kernel/git/broonie/sound into for-linus
    
    ASoC: Disable topology support for v4.2
    
    The topology code merged in the v4.2 merge window introduced a new ABI
    which was believed to be suitable for use but subsequently additional
    work by the developers of this feature have revealed some problems that
    need to be addressed.  In order to allow this to be done without having
    to support the initial ABI add Kconfig to disable the build and also add
    some #error statements to the UAPI header so users can't use them.
    tiwai committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    e24b6c0 View commit details
    Browse the repository at this point in the history
  20. perf tools: Avoid deadlock when map_groups are broken

    Attempting to clone map groups onto themselves will deadlock.
    
    It only happens because of other bugs, but the code should protect
    itself anyway.
    
    Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
    Tested-by: Jiri Olsa <jolsa@kernel.org>
    Link: http://lkml.kernel.org/r/1439994561-27436-2-git-send-email-adrian.hunter@intel.com
    [ Use pr_debug() instead of dump_fprintf() ]
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    ahunter6 authored and acmel committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    0d7e7ac View commit details
    Browse the repository at this point in the history
  21. perf tools: Make fork event processing more resilient

    When processing a fork event, the tools lookup the parent thread by its
    tid.  In a couple of cases, it is possible for that thread to have the
    wrong pid.
    
    That can happen if the data is being processed out of order, or if the
    (fork) event that would have removed the erroneous thread was lost.
    
    Assume the latter case, print a dump message, remove the erroneous
    thread, create a new one with the correct pid, and keep going.
    
    Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
    Tested-by: Jiri Olsa <jolsa@kernel.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Link: http://lkml.kernel.org/r/1439994561-27436-3-git-send-email-adrian.hunter@intel.com
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    ahunter6 authored and acmel committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    5cb7334 View commit details
    Browse the repository at this point in the history
  22. perf tools: Fix buildid processing

    After recording, 'perf record' post-processes the data to determine
    which buildids are needed.
    
    That processing must process the data in time order, if possible,
    because otherwise dependent events, like forks and mmaps, will not make
    sense.
    
    Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
    Tested-by: Jiri Olsa <jolsa@kernel.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Link: http://lkml.kernel.org/r/1439994561-27436-4-git-send-email-adrian.hunter@intel.com
    [ Moved the sample_id_add to after trying to open the events, use pr_warning ]
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    ahunter6 authored and acmel committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    cca8482 View commit details
    Browse the repository at this point in the history
  23. perf top: Show backtrace when handling a SIGSEGV on --stdio mode

    It was just freezing instead of informing about the SEGV, fix it and
    also print a backtrace, just like in the TUI mode and in 'perf trace'.
    
    Tested by provoking a NULL deref when pressing 'z':
    
         0.31%  libc-2.20.so     [.] malloc_consolidate
         0.31%  ld-2.20.so       [.] _dl_relocate_object
         0.28%  cc1              [.] ht_lookup
         0.28%  cc1              [.] ira_init_register_move_cost
      perf: Segmentation fault
      Obtained 7 stack frames.
      perf(dump_stack+0x32) [0x4d69f2]
      perf(sighandler_dump_stack+0x29) [0x4d6a89]
      /lib64/libc.so.6(+0x34960) [0x7f5064333960]
      perf() [0x438790]
      /lib64/libpthread.so.0(+0x752a) [0x7f50663dd52a]
      /lib64/libc.so.6(clone+0x6d) [0x7f50643ff22d]
      #
    
    Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Borislav Petkov <bp@suse.de>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Stephane Eranian <eranian@google.com>
    Link: http://lkml.kernel.org/n/tip-pewrpzqd29rgmhu2wkk7fhww@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    acmel committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    09f4d78 View commit details
    Browse the repository at this point in the history
  24. PCI: Tolerate hierarchies with no Root Port

    We should not assume any particular hardware topology.  Commit d0751b9
    ("PCI: Add dev->has_secondary_link to track downstream PCIe links") relied
    on the assumption that every PCIe hierarchy is rooted at a Root Port.  But
    we can't rely on any assumption about what hardware we will find; we just
    have to deal with the world as it is.
    
    On some platforms, PCIe devices (endpoints, switch upstream ports, etc.)
    appear directly on the root bus, and there is no Root Port in the PCI bus
    hierarchy.  For example, Meelis observed these top-level devices on a
    Sparc V245:
    
      0000:02:00.0 PCI bridge to [bus 03-0d]    Switch Upstream Port
      0001:02:00.0 PCI bridge to [bus 03]       PCIe to PCI/PCI-X Bridge
    
    These devices *look* like they have links going upstream, but there really
    are no upstream devices.
    
    In set_pcie_port_type(), we used the parent device to figure out which side
    of a switch port has a link, so if the parent device did not exist, we
    dereferenced a NULL parent pointer.
    
    Check whether the parent device exists before dereferencing it.
    
    Meelis observed this oops on Sparc V245 and T2000.  Ben Herrenschmidt says
    this is also possible on IBM PowerVM guests on PowerPC.
    
    [bhelgaas: changelog, comment]
    Link: http://lkml.kernel.org/r/alpine.LRH.2.20.1508122118210.18637@math.ut.ee
    Reported-by: Meelis Roos <mroos@linux.ee>
    Tested-by: Meelis Roos <mroos@linux.ee>
    Signed-off-by: Yijing Wang <wangyijing@huawei.com>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Acked-by: David S. Miller <davem@davemloft.net>
    YijingWang authored and bjorn-helgaas committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    b35b1df View commit details
    Browse the repository at this point in the history
  25. genirq: Don't return ENOSYS in irq_chip_retrigger_hierarchy

    irq_chip_retrigger_hierarchy() returns -ENOSYS if it was not able to
    find at least one .irq_retrigger() callback implemented in the IRQ
    domain hierarchy.
    
    That's wrong, because check_irq_resend() expects a 0 return value from
    the callback in case that the hardware assisted resend was not
    possible. If the return value is non zero the core code assumes
    hardware resend success and the software resend is not invoked.
    
    This results in lost interrupts on platforms where none of the parent
    irq chips in the hierarchy implements the retrigger callback.
    
    This is observable on TI OMAP, where the hierarchy is:
    
     ARM GIC <- OMAP wakeupgen <- TI Crossbar
    
    Return 0 instead so the software resend mechanism gets invoked.
    
    [ tglx: Massaged changelog ]
    
    Fixes: 85f08c1 ('genirq: Introduce helper functions...')
    Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
    Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
    Reviewed-by: Jiang Liu <jiang.liu@linux.intel.com>
    Cc: Sudeep Holla <sudeep.holla@arm.com>
    Cc: <linux@arm.linux.org.uk>
    Cc: <nsekhar@ti.com>
    Cc: <jason@lakedaemon.net>
    Cc: <balbi@ti.com>
    Cc: <linux-arm-kernel@lists.infradead.org>
    Cc: <tony@atomide.com>
    Cc: stable@vger.kernel.org # 4.1
    Link: http://lkml.kernel.org/r/1439554830-19502-2-git-send-email-grygorii.strashko@ti.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    grygoriyS authored and KAGA-KOKO committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    6d4affe View commit details
    Browse the repository at this point in the history
  26. genirq: Introduce irq_chip_set_type_parent() helper

    This helper is required for irq chips which do not implement a
    irq_set_type callback and need to call down the irq domain hierarchy
    for the actual trigger type change.
    
    This helper is required to fix further wreckage caused by the
    conversion of TI OMAP to hierarchical irq domains and therefor tagged
    for stable.
    
    [ tglx: Massaged changelog ]
    
    Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
    Cc: Sudeep Holla <sudeep.holla@arm.com>
    Cc: <linux@arm.linux.org.uk>
    Cc: <nsekhar@ti.com>
    Cc: <jason@lakedaemon.net>
    Cc: <balbi@ti.com>
    Cc: <linux-arm-kernel@lists.infradead.org>
    Cc: <tony@atomide.com>
    Cc: <marc.zyngier@arm.com>
    Cc: stable@vger.kernel.org # 4.1
    Link: http://lkml.kernel.org/r/1439554830-19502-3-git-send-email-grygorii.strashko@ti.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    grygoriyS authored and KAGA-KOKO committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    b7560de View commit details
    Browse the repository at this point in the history
  27. irqchip/crossbar: Restore the irq_set_type() mechanism

    The conversion of the crossbar irqchip to hierarchical irq domains
    failed to provide a mechanism to properly set the trigger type of an
    interrupt.
    
    The crossbar irq chip itself has no mechanism and therefor no
    irq_set_type() callback. The code before the conversion relayed the
    trigger configuration directly to the underlying GIC.
    
    Restore the correct behaviour by setting the crossbar irq_set_type
    callback to irq_chip_set_type_parent(). This propagates the
    set_trigger() call to the underlying GIC irqchip.
    
    [ tglx: Massaged changelog ]
    
    Fixes: 783d318 ('irqchip: crossbar: Convert dra7 crossbar...')
    Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
    Cc: Sudeep Holla <sudeep.holla@arm.com>
    Cc: <linux@arm.linux.org.uk>
    Cc: <nsekhar@ti.com>
    Cc: <jason@lakedaemon.net>
    Cc: <balbi@ti.com>
    Cc: <linux-arm-kernel@lists.infradead.org>
    Cc: <tony@atomide.com>
    Cc: <marc.zyngier@arm.com>
    Cc: stable@vger.kernel.org # 4.1
    Link: http://lkml.kernel.org/r/1439554830-19502-4-git-send-email-grygorii.strashko@ti.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    grygoriyS authored and KAGA-KOKO committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    e269ec4 View commit details
    Browse the repository at this point in the history
  28. ARM: OMAP: wakeupgen: Restore the irq_set_type() mechanism

    The conversion of the wakeupgen irqchip to hierarchical irq domains
    failed to provide a mechanism to properly set the trigger type of an
    interrupt.
    
    The wakeupgen irq chip itself has no mechanism and therefor no
    irq_set_type() callback. The code before the conversion relayed the
    trigger configuration directly to the underlying GIC.
    
    Restore the correct behaviour by setting the wakeupgen irq_set_type
    callback to irq_chip_set_type_parent(). This propagates the
    set_trigger() call to the underlying GIC irqchip.
    
    [ tglx: Massaged changelog ]
    
    Fixes: 7136d45 ('ARM: omap: convert wakeupgen to stacked domains')
    Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
    Acked-by: Tony Lindgren <tony@atomide.com>
    Cc: Sudeep Holla <sudeep.holla@arm.com>
    Cc: <linux@arm.linux.org.uk>
    Cc: <nsekhar@ti.com>
    Cc: <jason@lakedaemon.net>
    Cc: <balbi@ti.com>
    Cc: <linux-arm-kernel@lists.infradead.org>
    Cc: <marc.zyngier@arm.com>
    Cc: stable@vger.kernel.org # 4.1
    Link: http://lkml.kernel.org/r/1439554830-19502-5-git-send-email-grygorii.strashko@ti.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    grygoriyS authored and KAGA-KOKO committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    63059a2 View commit details
    Browse the repository at this point in the history
  29. irqchip/crossbar: Restore the mask on suspend behaviour

    The ARM GIC requires that all interrupts which are not used as a
    wakeup source have to be masked during suspend.
    
    The conversion of the crossbar irqchip to hierarchical irq domains
    failed to mark the crossbar irqchip with the IRQCHIP_MASK_ON_SUSPEND
    flag and therefor broke the suspend requirement of the GIC.
    
    Before the conversion the flags were visible because the GIC was the
    top level irqchip. After the conversion the crossbar irqchip is the
    top level irq chip whose flags are evaluated in suspend_device_irq().
    As the flag is not set the masking of the non-wakeup irqs is not
    invoked which breaks suspend.
    
    Add the IRQCHIP_MASK_ON_SUSPEND flag to the crossbar irqchip, so the
    GIC interrupts get masked properly.
    
    [ tglx: Massaged changelog ]
    
    Fixes: 783d318 ('irqchip: crossbar: Convert dra7 crossbar...')
    Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
    Cc: Sudeep Holla <sudeep.holla@arm.com>
    Cc: <linux@arm.linux.org.uk>
    Cc: <nsekhar@ti.com>
    Cc: <jason@lakedaemon.net>
    Cc: <balbi@ti.com>
    Cc: <linux-arm-kernel@lists.infradead.org>
    Cc: <tony@atomide.com>
    Cc: <marc.zyngier@arm.com>
    Cc: stable@vger.kernel.org # 4.1
    Link: http://lkml.kernel.org/r/1439554830-19502-6-git-send-email-grygorii.strashko@ti.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    grygoriyS authored and KAGA-KOKO committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    4fd8f47 View commit details
    Browse the repository at this point in the history
  30. irqchip/crossbar: Restore set_wake functionality

    The TI crossbar irqchip doesn't provides any facility to configure the
    wakeup sources, but the conversion to hierarchical irqdomains set the
    irq_set_wake callback to irq_chip_set_wake_parent. The parent chip
    (OMAP wakeupgen) has no irq_set_wake function either so the call will
    fail with -ENOSYS. As a result the irq_set_wake() call in the resume
    path will trigger an 'Unbalanced wake disable' warning.
    
    Before the conversion the GIC irqchip was the top level irqchip and
    correctly flagged with IRQCHIP_SKIP_SET_WAKE.
    
    Restore the correct behaviour by removing the irq_set_type callback
    from the crossbar irqchip and set the IRQCHIP_SKIP_SET_WAKE flag which
    lets the irq_set_irq_wake() call from the driver succeed.
    
    [ tglx: Massaged changelog ]
    
    Fixes: 783d318 ('irqchip: crossbar: Convert dra7 crossbar...')
    Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
    Cc: Sudeep Holla <sudeep.holla@arm.com>
    Cc: <linux@arm.linux.org.uk>
    Cc: <nsekhar@ti.com>
    Cc: <jason@lakedaemon.net>
    Cc: <balbi@ti.com>
    Cc: <linux-arm-kernel@lists.infradead.org>
    Cc: <tony@atomide.com>
    Cc: <marc.zyngier@arm.com>
    Cc: stable@vger.kernel.org # 4.1
    Link: http://lkml.kernel.org/r/1439554830-19502-7-git-send-email-grygorii.strashko@ti.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    grygoriyS authored and KAGA-KOKO committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    8200fe4 View commit details
    Browse the repository at this point in the history
  31. Merge branch 'drm-atmel-hlcdc-fixes' of https://github.com/bbrezillon…

    …/linux-at91 into drm-fixes
    
    single atmel hlcdc fix.
    
    * 'drm-atmel-hlcdc-fixes' of https://github.com/bbrezillon/linux-at91:
      drm/atmel-hlcdc: Compile suspend/resume for PM_SLEEP only
    airlied committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    82bd279 View commit details
    Browse the repository at this point in the history
  32. drm/edid: add function to help find SADs

    Add a function to find the start of the SADs in the ELD.  This
    complements the helper to retrieve the SAD count.
    
    [airlied: this fixes a build problem with the alsa eld helper
    which required this].
    
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Russell King authored and airlied committed Aug 19, 2015
    Configuration menu
    Copy the full SHA
    1c73d3b View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2015

  1. Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/acme/linux into perf/urgent
    
    Pull perf/urgent fixes from Arnaldo Carvalho de Melo:
    
      - Fix buildid processing done at the end of a 'perf record' session, a
        problem that happened in workloads involving lots of small short-lived
        processes.  That code was not asking the perf_session layer to order
        the events.
    
        Make the code more robust to handle some of the problems with such
        out-of-order events and fix 'perf record' to ask for ordered events
        on systems where we have perf_event_attr.sample_id_all.  (Adrian Hunter)
    
      - Show backtrace when handling a SIGSEGV in 'perf top --stdio' (Arnaldo Carvalho de Melo)
    
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Ingo Molnar committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    1966764 View commit details
    Browse the repository at this point in the history
  2. x86/xen: make CONFIG_XEN depend on CONFIG_X86_LOCAL_APIC

    Since commit feb44f1 (x86/xen:
    Provide a "Xen PV" APIC driver to support >255 VCPUs) Xen guests need
    a full APIC driver and thus should depend on X86_LOCAL_APIC.
    
    This fixes an i386 build failure with !SMP && !CONFIG_X86_UP_APIC by
    disabling Xen support in this configuration.
    
    Users needing Xen support in a non-SMP i386 kernel will need to enable
    CONFIG_X86_UP_APIC.
    
    Signed-off-by: David Vrabel <david.vrabel@citrix.com>
    Cc: <stable@vger.kernel.org>
    David Vrabel committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    87ffd2b View commit details
    Browse the repository at this point in the history
  3. clocksource/imx: Fix boot with non-DT systems

    Commit 6dd7478 ("ARM: imx: move timer resources into a structure")
    moved initialization parameters into a data structure, but neglected to set
    the irq field in that data structure for non-DT boots. This causes the system
    to hang if a non-DT boot is attempted.
    
    Fixes: 6dd7478 ("ARM: imx: move timer resources into a structure")
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Cc: Shawn Guo <shawn.guo@linaro.org>
    Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
    Link: http://lkml.kernel.org/r/1440066441-13930-1-git-send-email-linux@roeck-us.net
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    groeck authored and KAGA-KOKO committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    be3b0f9 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git…

    …/evalenti/linux-soc-thermal
    
    Pull thermal fixes from Eduardo Valentin:
     "Last minute fixes on the thermal-soc tree.  There is a fix of a long
      lasting bug in cpu cooling device, thanks for RMK for being pushing
      this"
    
    * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal:
      thermal/cpu_cooling: update policy limits if clipped_freq < policy->max
      thermal/cpu_cooling: rename max_freq as clipped_freq in notifier
      thermal/cpu_cooling: rename cpufreq_val as clipped_freq
      thermal/cpu_cooling: convert 'switch' block to 'if' block in notifier
      thermal/cpu_cooling: quit early after updating policy
      thermal/cpu_cooling: No need to initialize max_freq to 0
      thermal: cpu_cooling: fix lockdep problems in cpu_cooling
      thermal: power_allocator: do not use devm* interfaces
    torvalds committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    3bd8f7d View commit details
    Browse the repository at this point in the history
  5. Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending

    Pull SCSI target fixes from Nicholas Bellinger:
     "This contains a v4.2-rc specific RCU module unload regression bug-fix,
      a long-standing iscsi-target bug-fix for duplicate target_xfer_tags
      during NOP processing from Alexei, and two more small REPORT_LUNs
      emulation related patches to make Solaris FC host LUN scanning happy
      from Roland.
    
      There is also one patch not included that allows target-core to limit
      the number of fabric driver SGLs per I/O request using residuals, that
      is currently required as a work-around for FC hosts which don't honor
      EVPD block-limits settings.  At this point, it will most likely become
      for-next material"
    
    * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
      target: Fix handling of small allocation lengths in REPORT LUNS
      target: REPORT LUNS should return LUN 0 even for dynamic ACLs
      target/iscsi: Fix double free of a TUR followed by a solicited NOPOUT
      target: Perform RCU callback barrier before backend/fabric unload
    torvalds committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    3243f50 View commit details
    Browse the repository at this point in the history
  6. Input: gpio_keys_polled - request GPIO pin as input.

    GPIOF_IN flag was lost in:
    Commit 633a21d("input: gpio_keys_polled: Add support for GPIO
    descriptors").
    
    Without this flag, legacy code path (for non-descriptor GPIO declarations)
    would configure GPIO as output (0 meaning GPIOF_DIR_OUT | GPIOF_INIT_LOW).
    
    Cc: stable@vger.kernel.org
    Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>
    Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    vpelletier authored and dtor committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    1ae5ddb View commit details
    Browse the repository at this point in the history
  7. Merge tag 'sound-4.2' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/tiwai/sound
    
    Pull sound fixes from Takashi Iwai:
     "Here are a small collecton of sound fix patches.
    
      The most significant one is the disablement of newly introduced
      topology API.  Its ABI couldn't be stabilized enough, so we decided to
      delay for 4.3 in the end.  Other than that, all oneliner fixes: a
      USB-audio runtime PM fix and a couple of HD-audio quirks"
    
    * tag 'sound-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
      ALSA: hda - Add dock support for Thinkpad W541 (17aa:2211)
      ALSA: usb-audio: Fix runtime PM unbalance
      ASoC: topology: Disable use from userspace
      ASoC: topology: Add Kconfig option for topology
      ALSA: hda - Fix the white noise on Dell laptop
    torvalds committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    a971dbc View commit details
    Browse the repository at this point in the history
  8. Merge tag 'for-linus-4.2-rc7-tag' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/xen/tip
    
    Pull xen build fix from David Vrabel:
     "Fix i386 build with an (uncommon) configuration"
    
    * tag 'for-linus-4.2-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
      x86/xen: make CONFIG_XEN depend on CONFIG_X86_LOCAL_APIC
    torvalds committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    3d3e66b View commit details
    Browse the repository at this point in the history
  9. Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net

    Pull networking fixes from David Miller:
    
     1) Out of bounds array access in 802.11 minstrel code, from Adrien
        Schildknecht.
    
     2) Don't use skb_get() in IGMP/MLD code paths, as this makes
        pskb_may_pull() BUG.  From Linus Luessing.
    
     3) Fix off by one in ipv4 route dumping code, from Andy Whitcroft.
    
     4) Fix deadlock in reqsk_queue_unlink(), from Eric Dumazet.
    
     5) Fix ppp device deregistration wrt.  netns deletion, from Guillaume
        Nault.
    
     6) Fix deadlock when creating per-cpu ipv6 routes, from Martin KaFai
        Lau.
    
     7) Fix memory leak in batman-adv code, from Sven Eckelmann.
    
    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
      batman-adv: Fix memory leak on tt add with invalid vlan
      net: phy: fix semicolon.cocci warnings
      net: qmi_wwan: add HP lt4111 LTE/EV-DO/HSPA+ Gobi 4G Module
      be2net: avoid vxlan offloading on multichannel configs
      ipv6: Fix a potential deadlock when creating pcpu rt
      ipv6: Add rt6_make_pcpu_route()
      ipv6: Remove un-used argument from ip6_dst_alloc()
      net: phy: workaround for buggy cable detection by LAN8700 after cable plugging
      net: ethernet: micrel: fix an error code
      ppp: fix device unregistration upon netns deletion
      net: phy: fix PHY_RUNNING in phy_state_machine
      Revert "net: limit tcp/udp rmem/wmem to SOCK_{RCV,SND}BUF_MIN"
      inet: fix potential deadlock in reqsk_queue_unlink()
      gianfar: Restore link state settings after MAC reset
      ipv4: off-by-one in continuation handling in /proc/net/route
      net: fix wrong skb_get() usage / crash in IGMP/MLD parsing code
      mac80211: fix invalid read in minstrel_sort_best_tp_rates()
    torvalds committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    28e55d0 View commit details
    Browse the repository at this point in the history
  10. x86/idle: Restore trace_cpu_idle to mwait_idle() calls

    Commit b253149 ("sched/idle/x86: Restore mwait_idle() to fix boot
    hangs, to improve power savings and to improve performance") restores
    mwait_idle(), but the trace_cpu_idle related calls are missing. This
    causes powertop on my old desktop powered by Intel Core2 E6550 to
    report zero wakeups and zero events.
    
    Add them back to restore the proper behaviour.
    
    Fixes: b253149 ("sched/idle/x86: Restore mwait_idle() to ...")
    Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
    Cc: <len.brown@intel.com>
    Cc: stable@vger.kernel.org # 4.1
    Link: http://lkml.kernel.org/r/1440046479-4262-1-git-send-email-jszhang@marvell.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Jisheng Zhang authored and KAGA-KOKO committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    e43d018 View commit details
    Browse the repository at this point in the history
  11. PCI: Don't use 64-bit bus addresses on PA-RISC

    Meelis and Helge reported that 3a9ad0b ("PCI: Add pci_bus_addr_t")
    caused HPMCs on A500 and hangs on rp5470.
    
    PA-RISC does not set ARCH_DMA_ADDR_T_64BIT, even for 64-bit kernels, so
    prior to 3a9ad0b, we always used 32-bit PCI addresses.  After
    3a9ad0b, we do use 64-bit PCI addresses in 64-bit kernels, and
    apparently there's some PA-RISC problem related to them.
    
    Fixes: 3a9ad0b ("PCI: Add pci_bus_addr_t")
    Link: http://lkml.kernel.org/r/alpine.LRH.2.11.1507260929000.30065@math.ut.ee
    Reported-by: Meelis Roos <mroos@linux.ee>
    Reported-by: Helge Deller <deller@gmx.de>
    Tested-by: Helge Deller <deller@gmx.de>
    Based-on-idea-by: Yinghai Lu <yinghai@kernel.org>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Acked-by: Yinghai Lu <yinghai@kernel.org>
    CC: stable@vger.kernel.org	# v3.19+
    bjorn-helgaas committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    45ea2a5 View commit details
    Browse the repository at this point in the history
  12. Merge branches 'acpi-video' and 'cpufreq-fixes'

    * acpi-video:
      ACPI / video: Fix circular lock dependency issue in the video-detect code
    
    * cpufreq-fixes:
      cpufreq: exynos: Fix for memory leak in case SoC name does not match
    rafaeljw committed Aug 20, 2015
    Configuration menu
    Copy the full SHA
    b8a1171 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2015

  1. Merge tag 'pm+acpi-4.2-rc8' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/rafael/linux-pm
    
    Pull power management and ACPI fixes from Rafael Wysocki:
     "These fix a recent regression in the ACPI backlight code and a memory
      leak in the Exynos cpufreq driver.
    
      Specifics:
    
       - Fix a recently introduced issue in the ACPI backlight code which
         causes lockdep to complain about a circular lock dependency during
         initialization (Hans de Goede).
    
       - Fix a possible memory during initialization in the Exynos cpufreq
         driver (Shailendra Verma)"
    
    * tag 'pm+acpi-4.2-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
      cpufreq: exynos: Fix for memory leak in case SoC name does not match
      ACPI / video: Fix circular lock dependency issue in the video-detect code
    torvalds committed Aug 21, 2015
    Configuration menu
    Copy the full SHA
    0bad909 View commit details
    Browse the repository at this point in the history
  2. Merge tag 'drm-intel-fixes-2015-08-20' of git://anongit.freedesktop.o…

    …rg/drm-intel into drm-fixes
    
    Revert of a VBT parsing commit that should've been queued for drm-next,
    not v4.2. The revert unbreaks Braswell among other things.
    
    Also on Braswell removal of DP HBR2/TP3 and intermediate eDP frequency
    support. The code was optimistically added based on incorrect
    documentation; the platform does not support them. These are cc: stable.
    
    Finally a gpu state fix from Chris, also cc: stable.
    
    * tag 'drm-intel-fixes-2015-08-20' of git://anongit.freedesktop.org/drm-intel:
      drm/i915: Avoid TP3 on CHV
      drm/i915: remove HBR2 from chv supported list
      Revert "drm/i915: Add eDP intermediate frequencies for CHV"
      Revert "drm/i915: Allow parsing of variable size child device entries from VBT"
      drm/i915: Flag the execlists context object as dirty after every use
    airlied committed Aug 21, 2015
    Configuration menu
    Copy the full SHA
    bef7d19 View commit details
    Browse the repository at this point in the history
  3. drm/radeon: fix hotplug race at startup

    We apparantly get a hotplug irq before we've initialised
    modesetting,
    
    [drm] Loading R100 Microcode
    BUG: unable to handle kernel NULL pointer dereference at   (null)
    IP: [<c125f56f>] __mutex_lock_slowpath+0x23/0x91
    *pde = 00000000
    Oops: 0002 [#1]
    Modules linked in: radeon(+) drm_kms_helper ttm drm i2c_algo_bit backlight pcspkr psmouse evdev sr_mod input_leds led_class cdrom sg parport_pc parport floppy intel_agp intel_gtt lpc_ich acpi_cpufreq processor button mfd_core agpgart uhci_hcd ehci_hcd rng_core snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm usbcore usb_common i2c_i801 i2c_core snd_timer snd soundcore thermal_sys
    CPU: 0 PID: 15 Comm: kworker/0:1 Not tainted 4.2.0-rc7-00015-gbf67402 #111
    Hardware name: MicroLink                               /D850MV                         , BIOS MV85010A.86A.0067.P24.0304081124 04/08/2003
    Workqueue: events radeon_hotplug_work_func [radeon]
    task: f6ca5900 ti: f6d3e000 task.ti: f6d3e000
    EIP: 0060:[<c125f56f>] EFLAGS: 00010282 CPU: 0
    EIP is at __mutex_lock_slowpath+0x23/0x91
    EAX: 00000000 EBX: f5e900fc ECX: 00000000 EDX: fffffffe
    ESI: f6ca5900 EDI: f5e90100 EBP: f5e90000 ESP: f6d3ff0c
     DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
    CR0: 8005003b CR2: 00000000 CR3: 36f61000 CR4: 000006d0
    Stack:
     f5e90100 00000000 c103c4c1 f6d2a5a0 f5e900fc f6df394c c125f162 f8b0faca
     f6d2a5a0 c138ca00 f6df394c f7395600 c1034741 00d40000 00000000 f6d2a5a0
     c138ca00 f6d2a5b8 c138ca10 c1034b58 00000001 f6d40000 f6ca5900 f6d0c940
    Call Trace:
     [<c103c4c1>] ? dequeue_task_fair+0xa4/0xb7
     [<c125f162>] ? mutex_lock+0x9/0xa
     [<f8b0faca>] ? radeon_hotplug_work_func+0x17/0x57 [radeon]
     [<c1034741>] ? process_one_work+0xfc/0x194
     [<c1034b58>] ? worker_thread+0x18d/0x218
     [<c10349cb>] ? rescuer_thread+0x1d5/0x1d5
     [<c103742a>] ? kthread+0x7b/0x80
     [<c12601c0>] ? ret_from_kernel_thread+0x20/0x30
     [<c10373af>] ? init_completion+0x18/0x18
    Code: 42 08 e8 8e a6 dd ff c3 57 56 53 83 ec 0c 8b 35 48 f7 37 c1 8b 10 4a 74 1a 89 c3 8d 78 04 8b 40 08 89 63
    
    Reported-and-Tested-by: Meelis Roos <mroos@linux.ee>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    airlied committed Aug 21, 2015
    Configuration menu
    Copy the full SHA
    7f98ca4 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux

    Pull drm fixes from Dave Airlie:
     "A bunch of i915 fixes, one revert a VBT fix that was a bit premature,
      and some braswell feature removal that the hw actually didn't support.
    
      One radeon race fix at boot, and one hlcdc build fix, one fix from
      Russell that fixes build as well with new audio features.
    
      This is hopefully all I have until -next"
    
    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
      drm/radeon: fix hotplug race at startup
      drm/edid: add function to help find SADs
      drm/i915: Avoid TP3 on CHV
      drm/i915: remove HBR2 from chv supported list
      Revert "drm/i915: Add eDP intermediate frequencies for CHV"
      Revert "drm/i915: Allow parsing of variable size child device entries from VBT"
      drm/atmel-hlcdc: Compile suspend/resume for PM_SLEEP only
      drm/i915: Flag the execlists context object as dirty after every use
    torvalds committed Aug 21, 2015
    Configuration menu
    Copy the full SHA
    dc9c12f View commit details
    Browse the repository at this point in the history
  5. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/dtor/input
    
    Pull input layer fix from Dmitry Torokhov:
     "A small fixup to gpio_keys_polled driver"
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
      Input: gpio_keys_polled - request GPIO pin as input.
    torvalds committed Aug 21, 2015
    Configuration menu
    Copy the full SHA
    7e08117 View commit details
    Browse the repository at this point in the history
  6. Merge tag 'media/v4.2-3' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/mchehab/linux-media
    
    Pull media fixes from Mauro Carvalho Chehab:
    
     - a regression fix at the videobuf2 core driver
    
     - fix error handling at mantis probing code
    
     - revert the IR encode patches, as the API is not mature enough.
       So, better to postpone the changes to a latter Kernel
    
     - fix Kconfig breakages on some randconfig scenarios.
    
    * tag 'media/v4.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
      [media] mantis: Fix error handling in mantis_dma_init()
      Revert "[media] rc: rc-ir-raw: Add scancode encoder callback"
      Revert "[media] rc: rc-ir-raw: Add Manchester encoder (phase encoder) helper"
      Revert "[media] rc: ir-rc5-decoder: Add encode capability"
      Revert "[media] rc: ir-rc6-decoder: Add encode capability"
      Revert "[media] rc: rc-core: Add support for encode_wakeup drivers"
      Revert "[media] rc: rc-loopback: Add loopback of filter scancodes"
      Revert "[media] rc: nuvoton-cir: Add support for writing wakeup samples via sysfs filter callback"
      [media] vb2: Fix compilation breakage when !CONFIG_BUG
      [media] vb2: Only requeue buffers immediately once streaming is started
      [media] media/pci/cobalt: fix Kconfig and build when SND is not enabled
      [media] media/dvb: fix ts2020.c Kconfig and build
    torvalds committed Aug 21, 2015
    Configuration menu
    Copy the full SHA
    00f7641 View commit details
    Browse the repository at this point in the history
  7. Merge tag 'pci-v4.2-fixes-2' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/helgaas/pci
    
    Pull PCI fixes from Bjorn Helgaas:
     "These are fixes for ASPM-related NULL pointer dereference crashes on
      Sparc and PowerPC and 64-bit PCI address-related HPMC crashes on
      PA-RISC.  These are both caused by things we merged in the v4.2 merge
      window.  Details:
    
      Resource management
        - Don't use 64-bit bus addresses on PA-RISC
    
      Miscellaneous
        - Tolerate hierarchies with no Root Port"
    
    * tag 'pci-v4.2-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
      PCI: Don't use 64-bit bus addresses on PA-RISC
      PCI: Tolerate hierarchies with no Root Port
    torvalds committed Aug 21, 2015
    Configuration menu
    Copy the full SHA
    e45fc85 View commit details
    Browse the repository at this point in the history
  8. mm: make page pfmemalloc check more robust

    Commit c48a11c ("netvm: propagate page->pfmemalloc to skb") added
    checks for page->pfmemalloc to __skb_fill_page_desc():
    
            if (page->pfmemalloc && !page->mapping)
                    skb->pfmemalloc = true;
    
    It assumes page->mapping == NULL implies that page->pfmemalloc can be
    trusted.  However, __delete_from_page_cache() can set set page->mapping
    to NULL and leave page->index value alone.  Due to being in union, a
    non-zero page->index will be interpreted as true page->pfmemalloc.
    
    So the assumption is invalid if the networking code can see such a page.
    And it seems it can.  We have encountered this with a NFS over loopback
    setup when such a page is attached to a new skbuf.  There is no copying
    going on in this case so the page confuses __skb_fill_page_desc which
    interprets the index as pfmemalloc flag and the network stack drops
    packets that have been allocated using the reserves unless they are to
    be queued on sockets handling the swapping which is the case here and
    that leads to hangs when the nfs client waits for a response from the
    server which has been dropped and thus never arrive.
    
    The struct page is already heavily packed so rather than finding another
    hole to put it in, let's do a trick instead.  We can reuse the index
    again but define it to an impossible value (-1UL).  This is the page
    index so it should never see the value that large.  Replace all direct
    users of page->pfmemalloc by page_is_pfmemalloc which will hide this
    nastiness from unspoiled eyes.
    
    The information will get lost if somebody wants to use page->index
    obviously but that was the case before and the original code expected
    that the information should be persisted somewhere else if that is
    really needed (e.g.  what SLAB and SLUB do).
    
    [akpm@linux-foundation.org: fix blooper in slub]
    Fixes: c48a11c ("netvm: propagate page->pfmemalloc to skb")
    Signed-off-by: Michal Hocko <mhocko@suse.com>
    Debugged-by: Vlastimil Babka <vbabka@suse.com>
    Debugged-by: Jiri Bohac <jbohac@suse.com>
    Cc: Eric Dumazet <eric.dumazet@gmail.com>
    Cc: David Miller <davem@davemloft.net>
    Acked-by: Mel Gorman <mgorman@suse.de>
    Cc: <stable@vger.kernel.org>	[3.6+]
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Michal Hocko authored and torvalds committed Aug 21, 2015
    Configuration menu
    Copy the full SHA
    2f064f3 View commit details
    Browse the repository at this point in the history
  9. Add hch to .get_maintainer.ignore

    While the idea behind get_maintainer seems highly useful it's
    unfortunately way to trigger happy to grab people that once had a few
    commits to files.  For someone like me who does a lot of tree-wide API
    work that leads to an incredible amount of Cc spam.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Cc: Joe Perches <joe@perches.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Christoph Hellwig authored and torvalds committed Aug 21, 2015
    Configuration menu
    Copy the full SHA
    e525293 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2015

  1. x86/fpu/math-emu: Fix math-emu boot crash

    On a math-emu bootup the following crash occurs:
    
    	Initializing CPU#0
    	------------[ cut here ]------------
    	kernel BUG at arch/x86/kernel/traps.c:779!
    	invalid opcode: 0000 [#1] SMP
    	[...]
    	EIP is at do_device_not_available+0xe/0x70
    	[...]
    	Call Trace:
    	 [<c18238e6>] error_code+0x5a/0x60
    	 [<c1002bd0>] ? math_error+0x140/0x140
    	 [<c100bbd9>] ? fpu__init_cpu+0x59/0xa0
    	 [<c1012322>] cpu_init+0x202/0x330
    	 [<c104509f>] ? __native_set_fixmap+0x1f/0x30
    	 [<c1b56ab0>] trap_init+0x305/0x346
    	 [<c1b548af>] start_kernel+0x1a5/0x35d
    	 [<c1b542b4>] i386_start_kernel+0x82/0x86
    
    The reason is that in the following commit:
    
      b1276c4 ("x86/fpu: Initialize fpregs in fpu__init_cpu_generic()")
    
    I failed to consider math-emu's limitation that it cannot execute the
    FNINIT instruction in kernel mode.
    
    The long term fix might be to allow math-emu to execute (certain) kernel
    mode FPU instructions, but for now apply the safe (albeit somewhat ugly)
    fix: initialize the emulation state explicitly without trapping out to
    the FPU emulator.
    
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Brian Gerst <brgerst@gmail.com>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Ingo Molnar committed Aug 22, 2015
    Configuration menu
    Copy the full SHA
    5fc9603 View commit details
    Browse the repository at this point in the history
  2. x86/fpu/math-emu: Fix crash in fork()

    During later stages of math-emu bootup the following crash triggers:
    
    	 math_emulate: 0060:c100d0a8
    	 Kernel panic - not syncing: Math emulation needed in kernel
    	 CPU: 0 PID: 1511 Comm: login Not tainted 4.2.0-rc7+ #1012
    	 [...]
    	 Call Trace:
    	  [<c181d50d>] dump_stack+0x41/0x52
    	  [<c181c918>] panic+0x77/0x189
    	  [<c1003530>] ? math_error+0x140/0x140
    	  [<c164c2d7>] math_emulate+0xba7/0xbd0
    	  [<c100d0a8>] ? fpu__copy+0x138/0x1c0
    	  [<c1109c3c>] ? __alloc_pages_nodemask+0x12c/0x870
    	  [<c136ac20>] ? proc_clear_tty+0x40/0x70
    	  [<c136ac6e>] ? session_clear_tty+0x1e/0x30
    	  [<c1003530>] ? math_error+0x140/0x140
    	  [<c1003575>] do_device_not_available+0x45/0x70
    	  [<c100d0a8>] ? fpu__copy+0x138/0x1c0
    	  [<c18258e6>] error_code+0x5a/0x60
    	  [<c1003530>] ? math_error+0x140/0x140
    	  [<c100d0a8>] ? fpu__copy+0x138/0x1c0
    	  [<c100c205>] arch_dup_task_struct+0x25/0x30
    	  [<c1048cea>] copy_process.part.51+0xea/0x1480
    	  [<c115a8e5>] ? dput+0x175/0x200
    	  [<c136af70>] ? no_tty+0x30/0x30
    	  [<c1157242>] ? do_vfs_ioctl+0x322/0x540
    	  [<c104a21a>] _do_fork+0xca/0x340
    	  [<c1057b06>] ? SyS_rt_sigaction+0x66/0x90
    	  [<c104a557>] SyS_clone+0x27/0x30
    	  [<c1824a80>] sysenter_do_call+0x12/0x12
    
    The reason is the incorrect assumption in fpu_copy(), that FNSAVE
    can be executed from math-emu kernels as well.
    
    Don't try to copy the registers, the soft state will be copied
    by fork anyway, so the child task inherits the parent task's
    soft math state.
    
    With this fix applied math-emu kernels boot up fine on modern
    hardware and the 'no387 nofxsr' boot options.
    
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Bobby Powers <bobbypowers@gmail.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Brian Gerst <brgerst@gmail.com>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Ingo Molnar committed Aug 22, 2015
    Configuration menu
    Copy the full SHA
    827409b View commit details
    Browse the repository at this point in the history
  3. Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/sc…

    …m/linux/kernel/git/tip/tip
    
    Pull timer fixes from Thomas Gleixner:
     "Two minimalistic fixes for 4.2 regressions:
    
       - Eric fixed a thinko in the timer_list base switching code caused by
         the overhaul of the timer wheel.  It can cause a cpu to see the
         wrong base for a timer while we move the timer around.
    
       - Guenter fixed a regression for IMX if booted w/o device tree, where
         the timer interrupt is not initialized and therefor the machine
         fails to boot"
    
    * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      clocksource/imx: Fix boot with non-DT systems
      timer: Write timer->flags atomically
    torvalds committed Aug 22, 2015
    Configuration menu
    Copy the full SHA
    f8a89fc View commit details
    Browse the repository at this point in the history
  4. Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tip/tip
    
    Pull irq fixes from Thomas Gleixner:
     "A series of small fixlets for a regression visible on OMAP devices
      caused by the conversion of the OMAP interrupt chips to hierarchical
      interrupt domains.  Mostly one liners on the driver side plus a small
      helper function in the core to avoid open coded mess in the drivers"
    
    * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      irqchip/crossbar: Restore set_wake functionality
      irqchip/crossbar: Restore the mask on suspend behaviour
      ARM: OMAP: wakeupgen: Restore the irq_set_type() mechanism
      irqchip/crossbar: Restore the irq_set_type() mechanism
      genirq: Introduce irq_chip_set_type_parent() helper
      genirq: Don't return ENOSYS in irq_chip_retrigger_hierarchy
    torvalds committed Aug 22, 2015
    Configuration menu
    Copy the full SHA
    84f3fe4 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/tip/tip
    
    Pull perf fixes from Ingo Molnar:
     "Tooling fixes: a 'perf record' deadlock fix plus debuggability fixes"
    
    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      perf top: Show backtrace when handling a SIGSEGV on --stdio mode
      perf tools: Fix buildid processing
      perf tools: Make fork event processing more resilient
      perf tools: Avoid deadlock when map_groups are broken
    torvalds committed Aug 22, 2015
    Configuration menu
    Copy the full SHA
    c3a0651 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tip/tip
    
    Pull x86 fixes from Ingo Molnar:
     "Various low level fixes: fix more fallout from the FPU rework and the
      asm entry code rework, plus an MSI rework fix, and an idle-tracing fix"
    
    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/fpu/math-emu: Fix crash in fork()
      x86/fpu/math-emu: Fix math-emu boot crash
      x86/idle: Restore trace_cpu_idle to mwait_idle() calls
      x86/irq: Build correct vector mapping for multiple MSI interrupts
      Revert "sched/x86_64: Don't save flags on context switch"
    torvalds committed Aug 22, 2015
    Configuration menu
    Copy the full SHA
    d0b89bd View commit details
    Browse the repository at this point in the history
  7. Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm

    Pull ARM fixes from Russell King:
     "Another couple of small ARM fixes.
    
      A patch from Masahiro Yamada who noticed that "make -jN all zImage"
      would end up generating bad images where N > 1, and a patch from
      Nicolas to fix the Marvell CPU user access optimisation code when page
      faults are disabled"
    
    * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
      ARM: 8418/1: add boot image dependencies to not generate invalid images
      ARM: 8414/1: __copy_to_user_memcpy: fix mmap semaphore usage
    torvalds committed Aug 22, 2015
    Configuration menu
    Copy the full SHA
    b7dec83 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2015

  1. 9p: ensure err is initialized to 0 in p9_client_read/write

    Some use of those functions were providing unitialized values to those
    functions. Notably, when reading 0 bytes from an empty file on a 9P
    filesystem, the return code of read() was not 0.
    
    Tested with this simple program:
    
        #include <assert.h>
        #include <sys/types.h>
        #include <sys/stat.h>
        #include <fcntl.h>
        #include <unistd.h>
    
        int main(int argc, const char **argv)
        {
            assert(argc == 2);
            char buffer[256];
            int fd = open(argv[1], O_RDONLY|O_NOCTTY);
            assert(fd >= 0);
            assert(read(fd, buffer, 0) == 0);
            return 0;
        }
    
    Cc: stable@vger.kernel.org # v4.1
    Signed-off-by: Vincent Bernat <vincent@bernat.im>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    vincentbernat authored and Al Viro committed Aug 23, 2015
    Configuration menu
    Copy the full SHA
    999b8b8 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/viro/vfs
    
    Pull 9p regression fix from Al Viro:
     "Fix for breakage introduced when switching p9_client_{read,write}() to
      struct iov_iter * (went into 4.1)"
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
      9p: ensure err is initialized to 0 in p9_client_read/write
    torvalds committed Aug 23, 2015
    Configuration menu
    Copy the full SHA
    c4c53ba View commit details
    Browse the repository at this point in the history
  3. Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upst…

    …ream-linus
    
    Pull MIPS bug fixes from Ralf Baechle:
     "Two more fixes for 4.2.
    
      One fixes a build issue with the LLVM assembler - LLVM assembler macro
      names are case sensitive, GNU as macro names are insensitive; the
      other corrects a license string (GPL v2, not GPLv2) such that the
      module loader will recognice the license correctly"
    
    * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
      FIRMWARE: bcm47xx_nvram: Fix module license.
      MIPS: Fix LLVM build issue.
    torvalds committed Aug 23, 2015
    Configuration menu
    Copy the full SHA
    eb63b34 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2015

  1. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fixes from James Bottomley:
     "A couple of major (hang and deadlock) fixes with fortunately fairly
      rare triggering conditions.  The PM oops is only really triggered by
      people using enclosure services (rare) and the fnic driver is mostly
      used in enterprise environments"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      SCSI: Fix NULL pointer dereference in runtime PM
      fnic: Use the local variable instead of I/O flag to acquire io_req_lock in fnic_queuecommand() to avoid deadloack
    torvalds committed Aug 24, 2015
    Configuration menu
    Copy the full SHA
    d683477 View commit details
    Browse the repository at this point in the history
  2. Linux 4.2-rc8

    torvalds committed Aug 24, 2015
    Configuration menu
    Copy the full SHA
    c13dcf9 View commit details
    Browse the repository at this point in the history