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

Hpsa next #2

Closed
wants to merge 893 commits into from
Closed

Hpsa next #2

wants to merge 893 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Nov 10, 2014

  1. drm/radeon: remove invalid pci id

    0x4c6e is a secondary device id so should not be used
    by the driver.
    
    Noticed-by: Mark Kettenis <mark.kettenis@xs4all.nl>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Cc: stable@vger.kernel.org
    alexdeucher authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    86fbda5 View commit details
    Browse the repository at this point in the history
  2. Input: opencores-kbd - fix error handling

    When I was adjusting patch in 848d479 to
    use devm_ioremap_resource() I messed it up.
    
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    dtor authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    7362ee3 View commit details
    Browse the repository at this point in the history
  3. Input: ims-pcu - fix dead code in ims_pcu_ofn_reg_addr_store()

    Coverity pointed out that at return point error is always 0 so the
    conditional is not needed.
    
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    dtor authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    c061433 View commit details
    Browse the repository at this point in the history
  4. Input: vsxxxaa - fix code dropping bytes from queue

    I believe the intent of the code was to drop oldest bytes from the queue,
    not the latest if we drop one byte and both latest and some oldest of we
    are dropping more than one.
    
    Acked-by: Jan-Benedict Glaw <jbglaw@lug-owl.de>
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    dtor authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    480f577 View commit details
    Browse the repository at this point in the history
  5. sparc: Hook up bpf system call.

    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    7bc53a1 View commit details
    Browse the repository at this point in the history
  6. Input: psmouse - remove unneeded check in psmouse_reconnect()

    psmouse_reconnect() will not be called if psmouse driver is not bound to
    the serio port, so there is no point in checking that.  Also, as coded, it
    introduces potential NULL dereference in psmouse_dbg() in case psmouse is
    indeed NULL. Let's just remove it.
    
    Detected by Coverity: CID 146528
    
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    dtor authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    4751a31 View commit details
    Browse the repository at this point in the history
  7. net: dsa: Error out on tagging protocol mismatches

    If there is a mismatch between enabled tagging protocols and the
    protocol the switch supports, error out, rather than continue with a
    situation which is unlikely to work.
    
    Signed-off-by: Andrew Lunn <andrew@lunn.ch>
    cc: alexander.h.duyck@intel.com
    Acked-by: Florian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    lunn authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ae42a74 View commit details
    Browse the repository at this point in the history
  8. dsa: mv88e6171: Fix tagging protocol/Kconfig

    The mv88e6171 can support two different tagging protocols, DSA and
    EDSA. The switch driver structure only allows one protocol to be
    enumerated, and DSA was chosen. However the Kconfig entry ensures the
    EDSA tagging code is built. With a minimal configuration, we then end
    up with a mismatch. The probe is successful, EDSA tagging is used, but
    the switch is configured for DSA, resulting in mangled packets.
    
    Change the switch driver structure to enumerate EDSA, fixing the
    mismatch.
    
    Signed-off-by: Andrew Lunn <andrew@lunn.ch>
    Fixes: 42f2725 ("net: DSA: Marvell mv88e6171 switch driver")
    Acked-by: Florian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    lunn authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    62159ad View commit details
    Browse the repository at this point in the history
  9. drivers: net:cpsw: fix probe_dt when only slave 1 is pinned out

    when slave 0 has no phy and slave 1 connected to phy, driver probe will
    fail as there is no phy id present for slave 0 device tree, so continuing
    even though no phy-id found, also moving mac-id read later to ensure
    mac-id is read from device tree even when phy-id entry in not found.
    
    Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    mugunthanvnm authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    86779f9 View commit details
    Browse the repository at this point in the history
  10. zap_pte_range: update addr when forcing flush after TLB batching faiure

    When unmapping a range of pages in zap_pte_range, the page being
    unmapped is added to an mmu_gather_batch structure for asynchronous
    freeing. If we run out of space in the batch structure before the range
    has been completely unmapped, then we break out of the loop, force a
    TLB flush and free the pages that we have batched so far. If there are
    further pages to unmap, then we resume the loop where we left off.
    
    Unfortunately, we forget to update addr when we break out of the loop,
    which causes us to truncate the range being invalidated as the end
    address is exclusive. When we re-enter the loop at the same address, the
    page has already been freed and the pte_present test will fail, meaning
    that we do not reconsider the address for invalidation.
    
    This patch fixes the problem by incrementing addr by the PAGE_SIZE
    before breaking out of the loop on batch failure.
    
    Signed-off-by: Will Deacon <will.deacon@arm.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    wildea01 authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    1a5853c View commit details
    Browse the repository at this point in the history
  11. rcu: Make rcu_barrier() understand about missing rcuo kthreads

    Commit 35ce7f2 (rcu: Create rcuo kthreads only for onlined CPUs)
    avoids creating rcuo kthreads for CPUs that never come online.  This
    fixes a bug in many instances of firmware: Instead of lying about their
    age, these systems instead lie about the number of CPUs that they have.
    Before commit 35ce7f2, this could result in huge numbers of useless
    rcuo kthreads being created.
    
    It appears that experience indicates that I should have told the
    people suffering from this problem to fix their broken firmware, but
    I instead produced what turned out to be a partial fix.   The missing
    piece supplied by this commit makes sure that rcu_barrier() knows not to
    post callbacks for no-CBs CPUs that have not yet come online, because
    otherwise rcu_barrier() will hang on systems having firmware that lies
    about the number of CPUs.
    
    It is tempting to simply have rcu_barrier() refuse to post a callback on
    any no-CBs CPU that does not have an rcuo kthread.  This unfortunately
    does not work because rcu_barrier() is required to wait for all pending
    callbacks.  It is therefore required to wait even for those callbacks
    that cannot possibly be invoked.  Even if doing so hangs the system.
    
    Given that posting a callback to a no-CBs CPU that does not yet have an
    rcuo kthread can hang rcu_barrier(), It is tempting to report an error
    in this case.  Unfortunately, this will result in false positives at
    boot time, when it is perfectly legal to post callbacks to the boot CPU
    before the scheduler has started, in other words, before it is legal
    to invoke rcu_barrier().
    
    So this commit instead has rcu_barrier() avoid posting callbacks to
    CPUs having neither rcuo kthread nor pending callbacks, and has it
    complain bitterly if it finds CPUs having no rcuo kthread but some
    pending callbacks.  And when rcu_barrier() does find CPUs having no rcuo
    kthread but pending callbacks, as noted earlier, it has no choice but
    to hang indefinitely.
    
    Reported-by: Yanko Kaneti <yaneti@declera.com>
    Reported-by: Jay Vosburgh <jay.vosburgh@canonical.com>
    Reported-by: Meelis Roos <mroos@linux.ee>
    Reported-by: Eric B Munson <emunson@akamai.com>
    Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Tested-by: Eric B Munson <emunson@akamai.com>
    Tested-by: Jay Vosburgh <jay.vosburgh@canonical.com>
    Tested-by: Yanko Kaneti <yaneti@declera.com>
    Tested-by: Kevin Fenzi <kevin@scrye.com>
    Tested-by: Meelis Roos <mroos@linux.ee>
    paulmck authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    f94d786 View commit details
    Browse the repository at this point in the history
  12. MAINTAINERS: Add Soren as reviewer for Zynq

    Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
    Acked-by: Michal Simek <michal.simek@xilinx.com>
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    sorenb-xlnx authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    26ac785 View commit details
    Browse the repository at this point in the history
  13. Btrfs: fix race that makes btrfs_lookup_extent_info miss skinny exten…

    …t items
    
    We have a race that can lead us to miss skinny extent items in the function
    btrfs_lookup_extent_info() when the skinny metadata feature is enabled.
    So basically the sequence of steps is:
    
    1) We search in the extent tree for the skinny extent, which returns > 0
       (not found);
    
    2) We check the previous item in the returned leaf for a non-skinny extent,
       and we don't find it;
    
    3) Because we didn't find the non-skinny extent in step 2), we release our
       path to search the extent tree again, but this time for a non-skinny
       extent key;
    
    4) Right after we released our path in step 3), a skinny extent was inserted
       in the extent tree (delayed refs were run) - our second extent tree search
       will miss it, because it's not looking for a skinny extent;
    
    5) After the second search returned (with ret > 0), we look for any delayed
       ref for our extent's bytenr (and we do it while holding a read lock on the
       leaf), but we won't find any, as such delayed ref had just run and completed
       after we released out path in step 3) before doing the second search.
    
    Fix this by removing completely the path release and re-search logic. This is
    safe, because if we seach for a metadata item and we don't find it, we have the
    guarantee that the returned leaf is the one where the item would be inserted,
    and so path->slots[0] > 0 and path->slots[0] - 1 must be the slot where the
    non-skinny extent item is if it exists. The only case where path->slots[0] is
    zero is when there are no smaller keys in the tree (i.e. no left siblings for
    our leaf), in which case the re-search logic isn't needed as well.
    
    This race has been present since the introduction of skinny metadata (change
    3173a18).
    
    Signed-off-by: Filipe Manana <fdmanana@suse.com>
    Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
    Signed-off-by: Chris Mason <clm@fb.com>
    fdmanana authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    f16c1c5 View commit details
    Browse the repository at this point in the history
  14. net: phy: Add SGMII Configuration for Marvell 88E1145 Initialization

    Marvell phy 88E1145 configuration & initialization was missing a case
    for initializing SGMII mode. This patch adds that case.
    
    Signed-off-by: Vince Bridgers <vbridger@opensource.altera.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Vince Bridgers authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ab7a015 View commit details
    Browse the repository at this point in the history
  15. skbuff.h: fix kernel-doc warning for headers_end

    Fix kernel-doc warning in <linux/skbuff.h> by making both headers_start
    and headers_end private fields.
    
    Warning(..//include/linux/skbuff.h:654): No description found for parameter 'headers_end[0]'
    
    Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    rddunlap authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    2a357a1 View commit details
    Browse the repository at this point in the history
  16. ARM: ixp4xx: remove compilation warnings in io.h

    When arch/arm/mach-ixp4xx/common-pci.c is compiled, two warnings
    occur:
    
    arch/arm/mach-ixp4xx/include/mach/io.h:144: warning: passing argument 1 of '__raw_readb' makes pointer from integer without a cast
    arch/arm/mach-ixp4xx/include/mach/io.h:79: warning: passing argument 2 of '__raw_writeb' makes pointer from integer without a cast
    
    Both functions expect an 'volatile void __iomem *' but get an u32.
    The 'u32 addr' variable is initialized with the address of an
    'volatile void __iomem *' pointer. Passing the pointer
    directly, avoids the warning and semantics are preserved.
    
    This warning was found with vampyr.
    
    Signed-off-by: Stefan Hengelein <stefan.hengelein@fau.de>
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Stefan Hengelein authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    9db98a4 View commit details
    Browse the repository at this point in the history
  17. soc: versatile: Add terminating entry for realview_soc_of_match

    The of_device_id table is supposed to be zero-terminated.
    
    Signed-off-by: Axel Lin <axel.lin@ingics.com>
    Acked-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    AxelLin authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    f5f9eee View commit details
    Browse the repository at this point in the history
  18. net: systemport: enable RX interrupts after NAPI

    There is currently a small window during which the SYSTEMPORT adapter
    enables its RX interrupts without having enabled its NAPI handler, which
    can result in packets to be discarded during interface bringup.
    
    A similar but more serious window exists in bcm_sysport_resume() during
    which we can have the RDMA engine not fully prepared to receive packets
    and yet having RX interrupts enabled.
    
    Fix this my moving the RX interrupt enable down to
    bcm_sysport_netif_start() after napi_enable() for the RX path is called,
    which fixes both call sites: bcm_sysport_open() and
    bcm_sysport_resume().
    
    Fixes: b02e6d9 ("net: systemport: add bcm_sysport_netif_{enable,stop}")
    Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    ffainelli authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    2e23bb9 View commit details
    Browse the repository at this point in the history
  19. net: systemport: reset UniMAC coming out of a suspend cycle

    bcm_sysport_resume() was missing an UniMAC reset which can lead to
    various receive FIFO corruptions coming out of a suspend cycle. If the
    RX FIFO is stuck, it will deliver corrupted/duplicate packets towards
    the host CPU interface.
    
    This could be reproduced on crowded network and when Wake-on-LAN is
    enabled for this particular interface because the switch still forwards
    packets towards the host CPU interface (SYSTEMPORT), and we had to leave
    the UniMAC RX enable bit on to allow matching MagicPackets.
    
    Once we re-enter the resume function, there is a small window during
    which the UniMAC receive is still enabled, and we start queueing
    packets, but the RDMA and RBUF engines are not ready, which leads to
    having packets stuck in the UniMAC RX FIFO, ultimately delivered towards
    the host CPU as corrupted.
    
    Fixes: 40755a0 ("net: systemport: add suspend and resume support")
    Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    ffainelli authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    bd37daa View commit details
    Browse the repository at this point in the history
  20. ARM: multi_v7_defconfig: fix support for APQ8084

    This patch enables configs required to boot IFC6540 board with atleast a
    serial console.
    
    Without this patch there is no serial console.
    
    Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Srinivas-Kandagatla authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    bf64e1c View commit details
    Browse the repository at this point in the history
  21. xfs: bulkstat doesn't release AGI buffer on error

    The recent refactoring of the bulkstat code left a small landmine in
    the code. If a inobt read fails, then the tree walk is aborted and
    returns without releasing the AGI buffer or freeing the cursor. This
    can lead to a subsequent bulkstat call hanging trying to grab the
    AGI buffer again.
    
    cc: <stable@vger.kernel.org>
    Signed-off-by: Dave Chinner <dchinner@redhat.com>
    Reviewed-by: Brian Foster <bfoster@redhat.com>
    Reviewed-by: Eric Sandeen <sandeen@redhat.com>
    Signed-off-by: Dave Chinner <david@fromorbit.com>
    Dave Chinner authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    9b491a4 View commit details
    Browse the repository at this point in the history
  22. usbnet: add a callback for set_rx_mode

    To delegate promiscuous mode and multicast filtering to the subdriver.
    
    Signed-off-by: Olivier Blin <olivier.blin@softathome.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    blino authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    daf93f4 View commit details
    Browse the repository at this point in the history
  23. cdc-ether: extract usbnet_cdc_update_filter function

    This will be used by the set_rx_mode callback.
    
    Also move a comment about multicast filtering in this new function.
    
    Signed-off-by: Olivier Blin <olivier.blin@softathome.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    blino authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    6278a2c View commit details
    Browse the repository at this point in the history
  24. cdc-ether: handle promiscuous mode with a set_rx_mode callback

    Promiscuous mode was not supported anymore with my Lenovo adapters
    (RTL8153) since commit c472ab6
    (cdc-ether: clean packet filter upon probe).
    
    It was not possible to use them in a bridge anymore.
    
    Signed-off-by: Olivier Blin <olivier.blin@softathome.com>
    Also-analyzed-by: Loïc Yhuel <loic.yhuel@softathome.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    blino authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    67aa2cb View commit details
    Browse the repository at this point in the history
  25. staging: android: logger: Fix log corruption regression

    Since commit cd678fc ("switch logger to ->write_iter()"), any
    attempt to write to the log results in the log data being written over
    its own metadata, thus rendering the log unreadable.
    
    The problem was first detected when I ran an Android userspace on the
    v3.18-rc1 kernel. However the issue can also be observed with a
    non-Android userspace by using echo/cat to write to/from /dev/log_main .
    
    This patch resolves the problem by using a temporary to track the status
    of not-yet-committed writes to the log buffer.
    
    Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    daniel-thompson authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    793674f View commit details
    Browse the repository at this point in the history
  26. rcu: Provide counterpart to rcu_dereference() for non-RCU situations

    Although rcu_dereference() and friends can be used in situations where
    object lifetimes are being managed by something other than RCU, the
    resulting sparse and lockdep-RCU noise can be annoying.  This commit
    therefore supplies a lockless_dereference(), which provides the
    protection for dereferences without the RCU-related debugging noise.
    
    Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
    Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    paulmck authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    188203f View commit details
    Browse the repository at this point in the history
  27. overlayfs: barriers for opening upper-layer directory

    make sure that
    	a) all stores done by opening struct file don't leak past storing
    the reference in od->upperfile
    	b) the lockless side has read dependency barrier
    
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Al Viro authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    c56ca28 View commit details
    Browse the repository at this point in the history
  28. ovl: fix check for cursor

    ovl_cache_entry.name is now an array not a pointer, so it makes no sense
    test for it being NULL.
    
    Detected by coverity.
    
    From: Miklos Szeredi <mszeredi@suse.cz>
    Fixes: 68bf861 ("overlayfs: make ovl_cache_entry->name an array instead of
    +pointer")
    Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    szmi authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    941b865 View commit details
    Browse the repository at this point in the history
  29. overlayfs: fix lockdep misannotation

    In an overlay directory that shadows an empty lower directory, say
    /mnt/a/empty102, do:
    
     	touch /mnt/a/empty102/x
     	unlink /mnt/a/empty102/x
     	rmdir /mnt/a/empty102
    
    It's actually harmless, but needs another level of nesting between
    I_MUTEX_CHILD and I_MUTEX_NORMAL.
    
    Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
    Tested-by: David Howells <dhowells@redhat.com>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    szmi authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    0b0f1ae View commit details
    Browse the repository at this point in the history
  30. isofs_cmp(): we'll never see a dentry for . or ..

    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Al Viro authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    2bd3620 View commit details
    Browse the repository at this point in the history
  31. powerpc/numa: use cached value of update->cpu in update_cpu_topology

    There isn't any need to keep referring to update->cpu, as we've already
    checked cpu == update->cpu at this point.
    
    Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
    Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
    Nishanth Aravamudan authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    7db3863 View commit details
    Browse the repository at this point in the history
  32. powerpc/numa: ensure per-cpu NUMA mappings are correct on topology up…

    …date
    
    We received a report of warning in kernel/sched/core.c where the sched
    group was NULL on an LPAR after a topology update. This seems to occur
    because after the topology update has moved the CPUs, cpu_to_node is
    returning the old value still, which ends up breaking the consistency of
    the NUMA topology in the per-cpu maps. Ensure that we update the per-cpu
    fields when we re-map CPUs.
    
    Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
    Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
    Nishanth Aravamudan authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    56ab93f View commit details
    Browse the repository at this point in the history
  33. ARM: enable bpf syscall

    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    Russell King authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    1e6bbda View commit details
    Browse the repository at this point in the history
  34. MIPS: CMA: Do not reserve memory if not required

    Even if CMA is disabled, the for_each_memblock macro expands
    to run reserve_bootmem once. Hence, reserve_bootmem attempts to
    reserve location 0 of size 0.
    
    Add a check to avoid that.
    
    Issue was highlighted during testing with EVA enabled.
    resrve_bootmem used to exit gracefully when passed arguments to
    reserve 0 size location at 0 without EVA.
    
    But with EVA enabled, macros would point to different addresses
    and the code would trigger a BUG.
    
    Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
    Tested-by: Markos Chandras <markos.chandras@imgtec.com>
    Tested-by: Huacai Chen <chenhc@lemote.com>
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/8231/
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Zubair Lutfullah Kakakhel authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    acdd361 View commit details
    Browse the repository at this point in the history
  35. block: Fix merge logic when CONFIG_BLK_DEV_INTEGRITY is not defined

    Commit 4eaf99b switched to returning bool and as a result reversed
    the logic of the integrity merge checks.  However, the empty stubs used
    when the block integrity code is compiled out were still returning
    0. Make these stubs return "true".
    
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Reported-by: Michael L. Semon <mlsemon35@gmail.com>
    Tested-by: Michael L. Semon <mlsemon35@gmail.com>
    Signed-off-by: Jens Axboe <axboe@fb.com>
    martinkpetersen authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    85ce6fe View commit details
    Browse the repository at this point in the history
  36. x86: Don't enable F00F workaround on Intel Quark processors

    The Intel Quark processor is a part of family 5, but does not have the
    F00F bug present in Pentiums of the same family.
    
    Pentiums were models 0 through 8, Quark is model 9.
    
    Signed-off-by: Dave Jones <davej@redhat.com>
    Cc: Bryan O'Donoghue <pure.logic@nexus-software.ie>
    Link: http://lkml.kernel.org/r/20141028175753.GA12743@redhat.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Dave Jones authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ad71d86 View commit details
    Browse the repository at this point in the history
  37. x86, intel-mid: Create IRQs for APB timers and RTC timers

    Intel MID platforms has no legacy interrupts, so no IRQ descriptors
    preallocated. We need to call mp_map_gsi_to_irq() to create IRQ
    descriptors for APB timers and RTC timers, otherwise it may cause
    invalid memory access as:
    [    0.116839] BUG: unable to handle kernel NULL pointer dereference at
    0000003a
    [    0.123803] IP: [<c1071c0e>] setup_irq+0xf/0x4d
    
    Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
    Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: Joerg Roedel <joro@8bytes.org>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: H. Peter Anvin <hpa@linux.intel.com>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
    Cc: Bjorn Helgaas <bhelgaas@google.com>
    Cc: Randy Dunlap <rdunlap@infradead.org>
    Cc: Yinghai Lu <yinghai@kernel.org>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: David Cohen <david.a.cohen@linux.intel.com>
    Cc: <stable@vger.kernel.org> # 3.17
    Link: http://lkml.kernel.org/r/1414387308-27148-3-git-send-email-jiang.liu@linux.intel.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Jiang Liu authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    5d8d949 View commit details
    Browse the repository at this point in the history
  38. ACPI, irq, x86: Return IRQ instead of GSI in mp_register_gsi()

    Function mp_register_gsi() returns blindly the GSI number for the ACPI
    SCI interrupt. That causes a regression when the GSI for ACPI SCI is
    shared with other devices.
    
    The regression was caused by commit 84245af "x86, irq, ACPI:
    Change __acpi_register_gsi to return IRQ number instead of GSI" and
    exposed on a SuperMicro system, which shares one GSI between ACPI SCI
    and PCI device, with following failure:
    
    http://sourceforge.net/p/linux1394/mailman/linux1394-user/?viewmonth=201410
    [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 20 low
    level)
    [    2.699224] firewire_ohci 0000:06:00.0: failed to allocate interrupt
    20
    
    Return mp_map_gsi_to_irq(gsi, 0) instead of the GSI number.
    
    Reported-and-Tested-by: Daniel Robbins <drobbins@funtoo.org>
    Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
    Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: Joerg Roedel <joro@8bytes.org>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
    Cc: Bjorn Helgaas <bhelgaas@google.com>
    Cc: Randy Dunlap <rdunlap@infradead.org>
    Cc: Yinghai Lu <yinghai@kernel.org>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Len Brown <len.brown@intel.com>
    Cc: Pavel Machek <pavel@ucw.cz>
    Cc: <stable@vger.kernel.org> # 3.17
    Link: http://lkml.kernel.org/r/1414387308-27148-4-git-send-email-jiang.liu@linux.intel.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Jiang Liu authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    4a2fec7 View commit details
    Browse the repository at this point in the history
  39. staging: comedi: widen subdevice number argument in ioctl handlers

    For the `COMEDI_LOCK`, `COMEDI_UNLOCK`, `COMEDI_CANCEL`, and
    `COMEDI_POLL` ioctls the third argument is a comedi subdevice number.
    This is passed as an `unsigned long`, but when it is passed down to the
    ioctl command-specific handler functions `do_lock_ioctl()`,
    `do_unlock_ioctl()`, `do_cancel_ioctl()`, and `do_poll_ioctl()`, the
    value has been narrowed to an `unsigned int`.  Pass through the argument
    as an `unsigned long` to avoid truncating the value on 64-bit
    architectures.
    
    Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ian-abbott authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    3942807 View commit details
    Browse the repository at this point in the history
  40. staging: comedi: Kconfig: fix config COMEDI_ADDI_APCI_3120 dependants

    A merge conflict between commits
    fbfd9c8 ("staging: comedi:
    addi_apci_3120: use dma_alloc_coherent()") and
    aff5b1f ("staging: comedi: remove
    comedi_fc module") left the COMEDI_ADDI_APCI_3120 config option
    depending on VIRT_TO_BUS when it no longer needs to do so.  The
    dependency was removed by the first commit and accidentally reinstated
    by the second commit.  Remove the dependency again.
    
    Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ian-abbott authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    aabb1a3 View commit details
    Browse the repository at this point in the history
  41. staging: comedi: fix memory leak / bad pointer freeing for chanlist

    As a follow-up to commit 6cab7a3 ("staging: comedi: (regression)
    channel list must be set for COMEDI_CMD ioctl"), Hartley Sweeten pointed
    out another couple of bugs stemming from commit 6cab7a3 ("staging:
    comedi: comedi_fops: introduce __comedi_get_user_chanlist()").
    
    Firstly, `do_cmdtest_ioctl()` never frees the kernel copy of the user
    chanlist allocated by `__comedi_get_user_chanlist()`, so that memory is
    leaked.  Fix it by freeing the allocated kernel memory pointed to by
    `cmd.chanlist` before that pointer is overwritten with its original
    pointer to user memory before `cmd` is copied back to user-space.
    
    Secondly, if `__comedi_get_user_chanlist()` returns an error,
    `cmd->chanlist` is left unchanged and in fact will be a pointer to user
    memory.  This causes `do_cmd_ioctl()` to `goto cleanup` and call
    `do_become_nonbusy()` which would attempt to free the memory pointed to
    by the user-space pointer.  Fix it by setting `cmd->chanlist` to NULL at
    the start of `__comedi_get_user_chanlist()`.
    
    Fixes: c6cd0ee ("staging: comedi: comedi_fops: introduce __comedi_get_user_chanlist()")
    Reported-by: H Hartley Sweeten <hsweeten@visionengravers.com>
    Cc: <stable@vger.kernel.org> # 3.15.y 3.16.y 3.17.y: 6cab7a3
    Cc: <stable@vger.kernel.org> # 3.15.y 3.16.y 3.17.y
    
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ian-abbott authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    f723f11 View commit details
    Browse the repository at this point in the history
  42. drm/i915: Ignore VBT backlight check on Macbook 2, 1

    commit c675949
    Author: Jani Nikula <jani.nikula@intel.com>
    Date:   Wed Apr 9 11:31:37 2014 +0300
    
        drm/i915: do not setup backlight if not available according to VBT
    
    prevents backlight setup on Macbook 2,1. Apply quirk to ignore the VBT
    check so backlight is set up properly.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81438
    Signed-off-by: Jens Stein Jørgensen <jens.s.stein@gmail.com>
    Cc: stable@vger.kernel.org (3.15+)
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    jensstein authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    d8a452f View commit details
    Browse the repository at this point in the history
  43. x86, pageattr: Prevent overflow in slow_virt_to_phys() for X86_PAE

    pte_pfn() returns a PFN of long (32 bits in 32-PAE), so "long <<
    PAGE_SHIFT" will overflow for PFNs above 4GB.
    
    Due to this issue, some Linux 32-PAE distros, running as guests on Hyper-V,
    with 5GB memory assigned, can't load the netvsc driver successfully and
    hence the synthetic network device can't work (we can use the kernel parameter
    mem=3000M to work around the issue).
    
    Cast pte_pfn() to phys_addr_t before shifting.
    
    Fixes: "commit d765653: x86, mm: Create slow_virt_to_phys()"
    Signed-off-by: Dexuan Cui <decui@microsoft.com>
    Cc: K. Y. Srinivasan <kys@microsoft.com>
    Cc: Haiyang Zhang <haiyangz@microsoft.com>
    Cc: gregkh@linuxfoundation.org
    Cc: linux-mm@kvack.org
    Cc: olaf@aepfle.de
    Cc: apw@canonical.com
    Cc: jasowang@redhat.com
    Cc: dave.hansen@intel.com
    Cc: riel@redhat.com
    Cc: stable@vger.kernel.org
    Link: http://lkml.kernel.org/r/1414580017-27444-1-git-send-email-decui@microsoft.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    dcui authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    582c6c0 View commit details
    Browse the repository at this point in the history
  44. HID: input: Fix TransducerSerialNumber implementation

    The commit which introduced TransducerSerialNumber (368c966) is missing
    two crucial implementation details. Firstly, the commit does not set the
    type/code/bit/max fields as expected later down the code which can cause
    the driver to crash when a tablet with this usage is connected. Secondly,
    the call to 'set_bit' causes MSC_PULSELED to be sent instead of the
    expected MSC_SERIAL. This commit addreses both issues.
    
    Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
    Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
    Reviewed-by: Ping Cheng <pingc@wacom.com>
    Signed-off-by: Jiri Kosina <jkosina@suse.cz>
    jigpu authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    0f9da36 View commit details
    Browse the repository at this point in the history
  45. perf/x86/intel: Revert incomplete and undocumented Broadwell client s…

    …upport
    
    These patches:
    
      86a349a ("perf/x86/intel: Add Broadwell core support")
      c46e665 ("perf/x86: Add INST_RETIRED.ALL workarounds")
      fdda3c4 ("perf/x86/intel: Use Broadwell cache event list for Haswell")
    
    introduced magic constants and unexplained changes:
    
      https://lkml.org/lkml/2014/10/28/1128
      https://lkml.org/lkml/2014/10/27/325
      https://lkml.org/lkml/2014/8/27/546
      https://lkml.org/lkml/2014/10/28/546
    
    Peter Zijlstra has attempted to help out, to clean up the mess:
    
      https://lkml.org/lkml/2014/10/28/543
    
    But has not received helpful and constructive replies which makes
    me doubt wether it can all be finished in time until v3.18 is
    released.
    
    Despite various review feedback the author (Andi Kleen) has answered
    only few of the review questions and has generally been uncooperative,
    only giving replies when prompted repeatedly, and only giving minimal
    answers instead of constructively explaining and helping along the effort.
    
    That kind of behavior is not acceptable.
    
    There's also a boot crash on Intel E5-1630 v3 CPUs reported for another
    commit from Andi Kleen:
    
      e735b9d ("perf/x86/intel/uncore: Add Haswell-EP uncore support")
    
      https://lkml.org/lkml/2014/10/22/730
    
    Which is not yet resolved. The uncore driver is independent in theory,
    but the crash makes me worry about how well all these patches were
    tested and makes me uneasy about the level of interminging that the
    Broadwell and Haswell code has received by the commits above.
    
    As a first step to resolve the mess revert the Broadwell client commits
    back to the v3.17 version, before we run out of time and problematic
    code hits a stable upstream kernel.
    
    ( If the Haswell-EP crash is not resolved via a simple fix then we'll have
      to revert the Haswell-EP uncore driver as well. )
    
    The Broadwell client series has to be submitted in a clean fashion, with
    single, well documented changes per patch. If they are submitted in time
    and are accepted during review then they can possibly go into v3.19 but
    will need additional scrutiny due to the rocky history of this patch set.
    
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
    Cc: eranian@google.com
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Link: http://lkml.kernel.org/r/1409683455-29168-3-git-send-email-andi@firstfloor.org
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Ingo Molnar authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    9615451 View commit details
    Browse the repository at this point in the history
  46. ARM: 8182/1: l2c: Make l2x0_cache_size_of_parse() return 'int'

    Since commit f3354ab ("ARM: 8169/1: l2c: parse cache properties from
    ePAPR definitions") the following error is seen on imx6q:
    
    [    0.000000] PL310 OF: cache setting yield illegal associativity
    [    0.000000] PL310 OF: -2147097556 calculated, only 8 and 16 legal
    
    As imx6q does not pass the "cache-size" and "cache-sets" properties in DT, the function l2x0_cache_size_of_parse() returns early and keep the 'associativity' pointer uninitialized.
    
    To fix this problem, return error codes inside l2x0_cache_size_of_parse() and only use the 'associativity' pointer result if l2x0_cache_size_of_parse() succeeds.
    
    Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
    Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    fabioestevam authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    00bb45b View commit details
    Browse the repository at this point in the history
  47. KVM: emulator: fix error code for __linearize

    The error code for #GP and #SS is zero when the segment is used to
    access an operand or an instruction.  It is only non-zero when
    a segment register is being loaded; for limit checks this means
    cases such as:
    
    * for #GP, when RIP is beyond the limit on a far call (before the first
    instruction is executed).  We do not implement this check, but it
    would be in em_jmp_far/em_call_far.
    
    * for #SS, if the new stack overflows during an inter-privilege-level
    call to a non-conforming code segment.  We do not implement stack
    switching at all.
    
    So use an error code of zero.
    
    Reviewed-by: Nadav Amit <namit@cs.technion.ac.il>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    bonzini authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    701311c View commit details
    Browse the repository at this point in the history
  48. KVM: emulator: fix execution close to the segment limit

    Emulation of code that is 14 bytes to the segment limit or closer
    (e.g. RIP = 0xFFFFFFF2 after reset) is broken because we try to read as
    many as 15 bytes from the beginning of the instruction, and __linearize
    fails when the passed (address, size) pair reaches out of the segment.
    
    To fix this, let __linearize return the maximum accessible size (clamped
    to 2^32-1) for usage in __do_insn_fetch_bytes, and avoid the limit check
    by passing zero for the desired size.
    
    For expand-down segments, __linearize is performing a redundant check.
    (u32)(addr.ea + size - 1) <= lim can only happen if addr.ea is close
    to 4GB; in this case, addr.ea + size - 1 will also fail the check against
    the upper bound of the segment (which is provided by the D/B bit).
    After eliminating the redundant check, it is simple to compute
    the *max_size for expand-down segments too.
    
    Now that the limit check is done in __do_insn_fetch_bytes, we want
    to inject a general protection fault there if size < op_size (like
    __linearize would have done), instead of just aborting.
    
    This fixes booting Tiano Core from emulated flash with EPT disabled.
    
    Cc: stable@vger.kernel.org
    Fixes: 719d5a9
    Reported-by: Borislav Petkov <bp@suse.de>
    Tested-by: Borislav Petkov <bp@suse.de>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    bonzini authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    1a28762 View commit details
    Browse the repository at this point in the history
  49. perf callchain: Use global caching provided by libunwind

    The libunwind provides two caching policy which are global and
    per-thread.  As perf unwinds callchains in a single thread, it'd
    sufficient to use global caching.
    
    This speeds up my perf report from 14s to 7s on a ~260MB data file.
    Although the output sometimes contains a slight difference (~0.01% in
    terms of number of lines printed) on callchains which were not resolved.
    
    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    Acked-by: Jean Pihet <jean.pihet@linaro.org>
    Cc: Arun Sharma <asharma@fb.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Jean Pihet <jean.pihet@linaro.org>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Namhyung Kim <namhyung.kim@lge.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1412556363-26229-4-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    namhyung authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    17b9201 View commit details
    Browse the repository at this point in the history
  50. perf tools: Make CPUINFO_PROC an array to support different kernel ve…

    …rsions
    
    After kernel 3.7 (commit b4b8f77),
    /proc/cpuinfo replaces 'Processor' to 'model name'.
    
    This patch makes CPUINFO_PROC to an array and provides two choices for
    ARM, makes it compatible for different kernel version.
    
    v1 -> v2: minor changes as suggested by Namhyung Kim:
    
     - Doesn't pass @h and @evlist to __write_cpudesc;
     - Coding style fix.
    
    v2 -> v3:
      - Rebase:
        git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git perf/core
    
    Signed-off-by: Wang Nan <wangnan0@huawei.com>
    Acked-by: Namhyung Kim <namhyung@kernel.org>
    Cc: Li Zefan <lizefan@huawei.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Link: http://lkml.kernel.org/r/1414115126-7479-1-git-send-email-wangnan0@huawei.com
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    WangNan0 authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    f0813df View commit details
    Browse the repository at this point in the history
  51. perf tools: Fix report -F abort for data without branch info

    The branch field sorting code assumes hist_entry::branch_info is
    allocated, which is wrong and following perf session ends up with report
    segfault.
    
      $ perf record ls
      $ perf report -F abort
      perf: Segmentation fault
    
    Checking that hist_entry::branch_info is valid and display "N/A" string
    in snprint callback if it's not.
    
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    Acked-by: Namhyung Kim <namhyung@kernel.org>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1413468427-31049-2-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    olsajiri authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    e66f8ec View commit details
    Browse the repository at this point in the history
  52. perf tools: Fix report -F in_tx for data without branch info

    The branch field sorting code assumes hist_entry::branch_info is
    allocated, which is wrong and following perf session ends up with report
    segfault.
    
      $ perf record ls
      $ perf report -F in_tx
      perf: Segmentation fault
    
    Checking that hist_entry::branch_info is valid and display "N/A" string
    in snprint callback if it's not.
    
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    Acked-by: Namhyung Kim <namhyung@kernel.org>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1413468427-31049-3-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    olsajiri authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    6508060 View commit details
    Browse the repository at this point in the history
  53. perf tools: Fix report -F mispredict for data without branch info

    The branch field sorting code assumes hist_entry::branch_info is
    allocated, which is wrong and following perf session ends up with report
    segfault.
    
      $ perf record ls
      $ perf report -F mispredict
      perf: Segmentation fault
    
    Checking that hist_entry::branch_info is valid and display "N/A" string
    in snprint callback if it's not.
    
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    Acked-by: Namhyung Kim <namhyung@kernel.org>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1413468427-31049-4-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    olsajiri authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    51c1aa8 View commit details
    Browse the repository at this point in the history
  54. perf tools: Fix report -F symbol_to for data without branch info

    The branch field sorting code assumes hist_entry::branch_info is
    allocated, which is wrong and following perf session ends up with report
    segfault.
    
      $ perf record ls
      $ perf report -F symbol_to
      perf: Segmentation fault
    
    Checking that hist_entry::branch_info is valid and display "N/A" string
    in snprint callback if it's not.
    
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    Acked-by: Namhyung Kim <namhyung@kernel.org>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1413468427-31049-5-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    olsajiri authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    9066673 View commit details
    Browse the repository at this point in the history
  55. perf tools: Fix report -F symbol_from for data without branch info

    The branch field sorting code assumes hist_entry::branch_info is
    allocated, which is wrong and following perf session ends up with report
    segfault.
    
      $ perf record ls
      $ perf report -F symbol_from
      perf: Segmentation fault
    
    Checking that hist_entry::branch_info is valid and display "N/A" string
    in snprint callback if it's not.
    
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    Acked-by: Namhyung Kim <namhyung@kernel.org>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1413468427-31049-6-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    olsajiri authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    2df6fb1 View commit details
    Browse the repository at this point in the history
  56. perf tools: Fix report -F dso_to for data without branch info

    The branch field sorting code assumes hist_entry::branch_info is
    allocated, which is wrong and following perf session ends up with report
    segfault.
    
      $ perf record ls
      $ perf report -F dso_to
      perf: Segmentation fault
    
    Checking that hist_entry::branch_info is valid and display "N/A" string
    in snprint callback if it's not.
    
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    Acked-by: Namhyung Kim <namhyung@kernel.org>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1413468427-31049-7-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    olsajiri authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    30c4ea3 View commit details
    Browse the repository at this point in the history
  57. perf tools: Fix report -F dso_from for data without branch info

    The branch field sorting code assumes hist_entry::branch_info is
    allocated, which is wrong and following perf session ends up with report
    segfault.
    
      $ perf record ls
      $ perf report -F dso_from
      perf: Segmentation fault
    
    Checking that hist_entry::branch_info is valid and display "N/A" string
    in snprint callback if it's not.
    
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1413468427-31049-8-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    olsajiri authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    6275a82 View commit details
    Browse the repository at this point in the history
  58. perf probe: Trivial typo fix for --demangle

    Replace "Disable" with "Enable", since --demangle option enables symbol
    demangling, not disable it.
    
    perf probe has --demangle and --no-demangle options, but the
    command-line help (--help) shows only --demangle option. So it should
    explain about --demangle.
    
    Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
    Cc: Hemant Kumar <hemant@linux.vnet.ibm.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
    Link: http://lkml.kernel.org/r/20141027203124.21219.68278.stgit@localhost.localdomain
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    mhiramathitachi authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    55c4ef4 View commit details
    Browse the repository at this point in the history
  59. regulator: of: Lower the severity of the error with no container

    Description of regulators should generally be optional so if there is no
    DT node for the regulators container then we shouldn't print an error
    message. Lower the severity of the message to debug level (it might help
    someone work out what went wrong) and while we're at it say what we were
    looking for.
    
    Reported-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    8e14da6 View commit details
    Browse the repository at this point in the history
  60. Documentation/SubmittingPatches: Reported-by tags and permission

    The reported-by text says you have to ask for permission, but that
    should only be if the bug was reported in private.  These days the
    standard is to always give reported-by credit or it's considered a bit
    rude.
    
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Jonathan Corbet <corbet@lwn.net>
    Dan Carpenter authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    22002e5 View commit details
    Browse the repository at this point in the history
  61. ALSA: hda - Add workaround for CMI8888 snoop behavior

    CMI8888 shows the stuttering playback when the snooping is disabled
    on the audio buffer.  Meanwhile, we've got reports that CORB/RIRB
    doesn't work in the snooped mode.  So, as a compromise, disable the
    snoop only for CORB/RIRB and enable the snoop for the stream buffers.
    
    The resultant patch became a bit ugly, unfortunately, but we still can
    live with it.
    
    Reported-and-tested-by: Geoffrey McRae <geoff@spacevs.com>
    Cc: <stable@vger.kernel.org> # 3.17+
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    dc10fe0 View commit details
    Browse the repository at this point in the history
  62. Revert "ACPI / EC: Add support to disallow QR_EC to be issued before …

    …completing previous QR_EC"
    
    It is reported that the following commit breaks Samsung hardware:
     Commit: 558e473.
     Subject: ACPI / EC: Add support to disallow QR_EC to be issued before
              completing previous QR_EC
    
    Which means the Samsung behavior conflicts with the Acer behavior.
    
    1. Samsung may behave like:
       [ +event 1 ] SCI_EVT set
       [ +event 2 ] SCI_EVT set
                                  write QR_EC
                                  read event
       [ -event 1 ] SCI_EVT clear
       Without the above commit, Samsung can work:
       [ +event 1 ] SCI_EVT set
       [ +event 2 ] SCI_EVT set
                                  write QR_EC
                                  CAN prepare next QR_EC as SCI_EVT=1
                                  read event
       [ -event 1 ] SCI_EVT clear
                                  write QR_EC
                                  read event
       [ -event 2 ] SCI_EVT clear
       With the above commit, Samsung cannot work:
       [ +event 1 ] SCI_EVT set
       [ +event 2 ] SCI_EVT set
                                  write QR_EC
                                  read event
       [ -event 1 ] SCI_EVT clear
                                  CANNOT prepare next QR_EC as SCI_EVT=0
    2. Acer may behave like:
       [ +event 1 ] SCI_EVT set
       [ +event 2 ]
                                  write QR_EC
                                  read event
       [ -event 1 ] SCI_EVT clear
       [ +event 2 ] SCI_EVT set
       Without the above commit, Acer cannot work when there is only 1 event:
       [ +event 1 ] SCI_EVT set
                                  write QR_EC
                                  can prepared next QR_EC as SCI_EVT=1
                                  read event
       [ -event 1 ] SCI_EVT clear
                                  CANNOT write QR_EC as SCI_EVT=0
       With the above commit, Acer can work:
       [ +event 1 ] SCI_EVT set
       [ +event 2 ]
                                  write QR_EC
                                  read event
       [ -event 1 ] SCI_EVT set
                                  can prepare next QR_EC because SCI_EVT=0
                                  CAN write QR_EC as SCI_EVT=1
    
    Since Acer can also work with only the following commit applied:
     Commit: 3afcf2e
     Subject: ACPI / EC: Add support to disallow QR_EC to be issued when
              SCI_EVT isn't set
    commit 558e473 can be reverted.
    
    Fixes: 558e473 (ACPI / EC: Add support to disallow QR_EC to be issued ...)
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=44161
    Reported-and-tested-by: Ortwin Glück <odi@odi.ch>
    Signed-off-by: Lv Zheng <lv.zheng@intel.com>
    Cc: 3.17+ <stable@vger.kernel.org> # 3.17+
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Lv Zheng authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a0defd2 View commit details
    Browse the repository at this point in the history
  63. ACPI / EC: Fix regression due to conflicting firmware behavior betwee…

    …n Samsung and Acer.
    
    It is reported that Samsung laptops that need to poll events are broken by
    the following commit:
     Commit 3afcf2e
     Subject: ACPI / EC: Add support to disallow QR_EC to be issued when SCI_EVT isn't set
    
    The behaviors of the 2 vendor firmwares are conflict:
     1. Acer: OSPM shouldn't issue QR_EC unless SCI_EVT is set, firmware
             automatically sets SCI_EVT as long as there is event queued up.
     2. Samsung: OSPM should issue QR_EC whatever SCI_EVT is set, firmware
                returns 0 when there is no event queued up.
    
    This patch is a quick fix to distinguish the behaviors to make Acer
    behavior only effective for Acer EC firmware so that the breakages on
    Samsung EC firmware can be avoided.
    
    Fixes: 3afcf2e (ACPI / EC: Add support to disallow QR_EC to be issued ...)
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=44161
    Reported-and-tested-by: Ortwin Glück <odi@odi.ch>
    Signed-off-by: Lv Zheng <lv.zheng@intel.com>
    Cc: 3.17+ <stable@vger.kernel.org> # 3.17+
    [ rjw : Subject ]
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Lv Zheng authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    612303a View commit details
    Browse the repository at this point in the history
  64. PCI: imx6: Wait for clocks to stabilize after ref_en

    For boards without a reset GPIO we skip the delay between enabling the
    pcie_ref_clk and touching the RC registers for configuration.  This hangs
    the system if there isn't a proper delay to ensure the clocks are settled
    in the DW PCIe core.
    
    Also iMX6Q always needs an additional 10us delay to make sure the reset is
    propagated through the core, as we don't have an explicitly controlled
    reset input on this SoC.
    
    This fixes a problem with 3fce0e8 ("PCI: imx6: Delay enabling
    reference clock for SS until it stabilizes"): the kernel doesn't boot on
    systems that don't pass the PCI GPIO reset in the DTB.  This regression
    affects mx6 nitrogen boards.
    
    [bhelgaas: add regression info in changelog]
    Fixes: 3fce0e8 ("PCI: imx6: Delay enabling reference clock for SS until it stabilizes")
    Reported-by: Fabio Estevam <fabio.estevam@freescale.com>
    Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
    Signed-off-by: Richard Zhu <richard.zhu@freescale.com>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Acked-by: Lucas Stach <l.stach@pengutronix.de>
    Richard Zhu authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    5671b12 View commit details
    Browse the repository at this point in the history
  65. drm/radeon: remove some buggy dead code

    The calculation of "num_shader_engines" has a precedence bug because
    the right shift happens before the mask, but this variable is never used
    so we can just delete it.
    
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Dan Carpenter authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    5917d11 View commit details
    Browse the repository at this point in the history
  66. ARM: 8181/1: Drop extra return statement

    Commit 513510d
    (common: dma-mapping: introduce common remapping functions)
    managed to end up with an extra return statement from the
    original patch. Drop it.
    
    Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    labbott authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ef0e27c View commit details
    Browse the repository at this point in the history
  67. ARM: 8183/1: l2c: Improve l2c310_of_parse() error message

    Russell King suggested [1]:
    
    "I'd ask for one change.  Please make all these messages start with
    "L2C-310 OF" not "PL310 OF:".  The device is described in ARM
    documentation as a L2C-310 not PL310.  (Also note the : is dropped
    too - most of the other messages don't have the : either.)
    
    The:
    
    "PL310 OF: cache setting yield illegal associativity
    PL310 OF: -1073346556 calculated, only 8 and 16 legal"
    
    message could also be changed to something like:
    
    "L2C-310 OF cache associativity %d invalid, only 8 or 16 permittedn"
    
    [1] http://www.spinics.net/lists/arm-kernel/msg372776.html
    
    Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    fabioestevam authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    28826f5 View commit details
    Browse the repository at this point in the history
  68. ARM: 8180/1: mm: implement no-highmem fast path in kmap_atomic_pfn()

    Since CONFIG_HIGHMEM got enabled on ARMv5 Kirkwood, we have noticed a
    very significant drop in networking performance. The test were
    conducted on an OpenBlocks A7 board. Without this patch, the outgoing
    performance measured with iperf are:
    
     - highmem OFF, TSO OFF   544 Mbit/s
     - highmem OFF, TSO ON	  942 Mbit/s
     - highmem ON,  TSO OFF   306 Mbit/s
     - highmem ON,  TSO ON    246 Mbit/s
    
    On this Kirkwood platform, the L2 cache is a Feroceon cache, and with
    this cache, all the range operations have to be done on virtual
    addresses and not physical addresses. Therefore, whenever
    CONFIG_HIGHMEM is enabled, the cache maintenance operations call
    kmap_atomic_pfn() and kunmap_atomic().
    
    However, kmap_atomic_pfn() does not implement the same fast path for
    non-highmem pages as the one implemented in kmap_atomic(), and this is
    one of the reason for the performance drop. While this patch does not
    fully restore the performances, it clearly improves them a lot:
    
          	      	        without patch  with patch
    
     - highmem ON, TSO OFF   306 Mbit/s     387 Mbit/s
     - highmem ON, TSO ON    246 Mbit/s     434 Mbit/s
    
    We're still far from the !CONFIG_HIGHMEM performances, but it does
    improve a bit the situation.
    
    Thanks a lot to Ezequiel Garcia and Gregory Clement for all the
    testing work around this topic.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    tpetazzoni authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    08b24d9 View commit details
    Browse the repository at this point in the history
  69. sch_pie: schedule the timer after all init succeed

    Cc: Vijay Subramanian <vijaynsu@cisco.com>
    Cc: David S. Miller <davem@davemloft.net>
    Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
    Acked-by: Eric Dumazet <edumazet@google.com>
    congwang authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    b9ed1b7 View commit details
    Browse the repository at this point in the history
  70. ipv6: notify userspace when we added or changed an ipv6 token

    NetworkManager might want to know that it changed when the router advertisement
    arrives.
    
    Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
    Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
    Cc: Daniel Borkmann <dborkman@redhat.com>
    Acked-by: Daniel Borkmann <dborkman@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    lkundrak authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    cbea132 View commit details
    Browse the repository at this point in the history
  71. cxgb4vf: Replace repetitive pci device ID's with right ones

    Replaced repetive Device ID's which got added in commit b961f9a
    ("cxgb4vf: Remove superfluous "idx" parameter of CH_DEVICE() macro")
    
    Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Hariprasad Shenai authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ce1ce94 View commit details
    Browse the repository at this point in the history
  72. cnic: Update the rcu_access_pointer() usages

    1. Remove the rcu_read_lock/unlock around rcu_access_pointer
    2. Replace the rcu_dereference with rcu_access_pointer
    
    Signed-off-by: Tej Parkash <tej.parkash@qlogic.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Tej Parkash authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    e20f8fe View commit details
    Browse the repository at this point in the history
  73. ARM: omap2plus_defconfig: Fix errors with NAND BCH

    Looks like we need to have BCH enabled to get NAND
    working and to avoid getting:
    
    nand: error: CONFIG_MTD_NAND_ECC_BCH not enabled
    
    Signed-off-by: Tony Lindgren <tony@atomide.com>
    tmlind authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    5fae441 View commit details
    Browse the repository at this point in the history
  74. ARM: OMAP2+: Warn about deprecated legacy booting mode

    We're moving omaps to use device tree based booting and already have
    omap2, omap4, omap5, am335x and am437x booting in device tree only
    mode.
    
    Only omap3 still has legacy booting still around and we really want
    to make that device tree only. So let's add a warning about deprecated
    legacy booting so we get people to upgrade their boards to use device
    tree based booting and find out about any remaining issues.
    
    Note that for most boards we already have the .dts file and those can
    be booted with without changing the bootloader using the appended
    DTB mode.
    
    Acked-By: Sebastian Reichel <sre@kernel.org>
    Reviewed-by: Aaro Koskinen <aaro.koskinen@iki.fi>
    Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org>
    Signed-off-by: Tony Lindgren <tony@atomide.com>
    tmlind authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    74e8ece View commit details
    Browse the repository at this point in the history
  75. inet: frags: fix a race between inet_evict_bucket and inet_frag_kill

    When the evictor is running it adds some chosen frags to a local list to
    be evicted once the chain lock has been released but at the same time
    the *frag_queue can be running for some of the same queues and it
    may call inet_frag_kill which will wait on the chain lock and
    will then delete the queue from the wrong list since it was added in the
    eviction one. The fix is simple - check if the queue has the evict flag
    set under the chain lock before deleting it, this is safe because the
    evict flag is set only under that lock and having the flag set also means
    that the queue has been detached from the chain list, so no need to delete
    it again.
    An important note to make is that we're safe w.r.t refcnt because
    inet_frag_kill and inet_evict_bucket will sync on the del_timer operation
    where only one of the two can succeed (or if the timer is executing -
    none of them), the cases are:
    1. inet_frag_kill succeeds in del_timer
     - then the timer ref is removed, but inet_evict_bucket will not add
       this queue to its expire list but will restart eviction in that chain
    2. inet_evict_bucket succeeds in del_timer
     - then the timer ref is kept until the evictor "expires" the queue, but
       inet_frag_kill will remove the initial ref and will set
       INET_FRAG_COMPLETE which will make the frag_expire fn just to remove
       its ref.
    In the end all of the queue users will do an inet_frag_put and the one
    that reaches 0 will free it. The refcount balance should be okay.
    
    CC: Florian Westphal <fw@strlen.de>
    CC: Eric Dumazet <eric.dumazet@gmail.com>
    CC: Patrick McLean <chutzpah@gentoo.org>
    
    Fixes: b13d3cb ("inet: frag: move eviction of queues to work queue")
    Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
    Reported-by: Patrick McLean <chutzpah@gentoo.org>
    Tested-by: Patrick McLean <chutzpah@gentoo.org>
    Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
    Reviewed-by: Florian Westphal <fw@strlen.de>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Nikolay Aleksandrov authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    d3cb7bf View commit details
    Browse the repository at this point in the history
  76. inet: frags: remove the WARN_ON from inet_evict_bucket

    The WARN_ON in inet_evict_bucket can be triggered by a valid case:
    inet_frag_kill and inet_evict_bucket can be running in parallel on the
    same queue which means that there has been at least one more ref added
    by a previous inet_frag_find call, but inet_frag_kill can delete the
    timer before inet_evict_bucket which will cause the WARN_ON() there to
    trigger since we'll have refcnt!=1. Now, this case is valid because the
    queue is being "killed" for some reason (removed from the chain list and
    its timer deleted) so it will get destroyed in the end by one of the
    inet_frag_put() calls which reaches 0 i.e. refcnt is still valid.
    
    CC: Florian Westphal <fw@strlen.de>
    CC: Eric Dumazet <eric.dumazet@gmail.com>
    CC: Patrick McLean <chutzpah@gentoo.org>
    
    Fixes: b13d3cb ("inet: frag: move eviction of queues to work queue")
    Reported-by: Patrick McLean <chutzpah@gentoo.org>
    Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Nikolay Aleksandrov authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    250a45d View commit details
    Browse the repository at this point in the history
  77. cgroup/kmemleak: add kmemleak_free() for cgroup deallocations.

    Commit ff7ee93 ("cgroup/kmemleak: Annotate alloc_page() for cgroup
    allocations") introduces kmemleak_alloc() for alloc_page_cgroup(), but
    corresponding kmemleak_free() is missing, which makes kmemleak be
    wrongly disabled after memory offlining.  Log is pasted at the end of
    this commit message.
    
    This patch add kmemleak_free() into free_page_cgroup().  During page
    offlining, this patch removes corresponding entries in kmemleak rbtree.
    After that, the freed memory can be allocated again by other subsystems
    without killing kmemleak.
    
      bash # for x in 1 2 3 4; do echo offline > /sys/devices/system/memory/memory$x/state ; sleep 1; done ; dmesg | grep leak
    
      Offlined Pages 32768
      kmemleak: Cannot insert 0xffff880016969000 into the object search tree (overlaps existing)
      CPU: 0 PID: 412 Comm: sleep Not tainted 3.17.0-rc5+ #86
      Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
      Call Trace:
        dump_stack+0x46/0x58
        create_object+0x266/0x2c0
        kmemleak_alloc+0x26/0x50
        kmem_cache_alloc+0xd3/0x160
        __sigqueue_alloc+0x49/0xd0
        __send_signal+0xcb/0x410
        send_signal+0x45/0x90
        __group_send_sig_info+0x13/0x20
        do_notify_parent+0x1bb/0x260
        do_exit+0x767/0xa40
        do_group_exit+0x44/0xa0
        SyS_exit_group+0x17/0x20
        system_call_fastpath+0x16/0x1b
    
      kmemleak: Kernel memory leak detector disabled
      kmemleak: Object 0xffff880016900000 (size 524288):
      kmemleak:   comm "swapper/0", pid 0, jiffies 4294667296
      kmemleak:   min_count = 0
      kmemleak:   count = 0
      kmemleak:   flags = 0x1
      kmemleak:   checksum = 0
      kmemleak:   backtrace:
            log_early+0x63/0x77
            kmemleak_alloc+0x4b/0x50
            init_section_page_cgroup+0x7f/0xf5
            page_cgroup_init+0xc5/0xd0
            start_kernel+0x333/0x408
            x86_64_start_reservations+0x2a/0x2c
            x86_64_start_kernel+0xf5/0xfc
    
    Fixes: ff7ee93 (cgroup/kmemleak: Annotate alloc_page() for cgroup allocations)
    Signed-off-by: Wang Nan <wangnan0@huawei.com>
    Acked-by: Johannes Weiner <hannes@cmpxchg.org>
    Acked-by: Michal Hocko <mhocko@suse.cz>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: <stable@vger.kernel.org>	[3.2+]
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    WangNan0 authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    984b528 View commit details
    Browse the repository at this point in the history
  78. mm/compaction.c: avoid premature range skip in isolate_migratepages_r…

    …ange
    
    Commit edc2ca6 ("mm, compaction: move pageblock checks up from
    isolate_migratepages_range()") commonizes isolate_migratepages variants
    and make them use isolate_migratepages_block().
    
    isolate_migratepages_block() could stop the execution when enough pages
    are isolated, but, there is no code in isolate_migratepages_range() to
    handle this case.  In the result, even if isolate_migratepages_block()
    returns prematurely without checking all pages in the range,
    
    isolate_migratepages_block() is called repeately on the following
    pageblock and some pages in the previous range are skipped to check.
    Then, CMA is failed frequently due to this fact.
    
    To fix this problem, this patch let isolate_migratepages_range() know
    the situation that enough pages are isolated and stop the isolation in
    that case.
    
    Note that isolate_migratepages() has no such problem, because, it always
    stops the isolation after just one call of isolate_migratepages_block().
    
    Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
    Acked-by: Vlastimil Babka <vbabka@suse.cz>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Minchan Kim <minchan@kernel.org>
    Cc: Michal Nazarewicz <mina86@mina86.com>
    Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
    Cc: Christoph Lameter <cl@linux.com>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Mel Gorman <mgorman@suse.de>
    Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    JoonsooKim authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ec01032 View commit details
    Browse the repository at this point in the history
  79. fsnotify: next_i is freed during fsnotify_unmount_inodes.

    During file system stress testing on 3.10 and 3.12 based kernels, the
    umount command occasionally hung in fsnotify_unmount_inodes in the
    section of code:
    
                    spin_lock(&inode->i_lock);
                    if (inode->i_state & (I_FREEING|I_WILL_FREE|I_NEW)) {
                            spin_unlock(&inode->i_lock);
                            continue;
                    }
    
    As this section of code holds the global inode_sb_list_lock, eventually
    the system hangs trying to acquire the lock.
    
    Multiple crash dumps showed:
    
    The inode->i_state == 0x60 and i_count == 0 and i_sb_list would point
    back at itself.  As this is not the value of list upon entry to the
    function, the kernel never exits the loop.
    
    To help narrow down problem, the call to list_del_init in
    inode_sb_list_del was changed to list_del.  This poisons the pointers in
    the i_sb_list and causes a kernel to panic if it transverse a freed
    inode.
    
    Subsequent stress testing paniced in fsnotify_unmount_inodes at the
    bottom of the list_for_each_entry_safe loop showing next_i had become
    free.
    
    We believe the root cause of the problem is that next_i is being freed
    during the window of time that the list_for_each_entry_safe loop
    temporarily releases inode_sb_list_lock to call fsnotify and
    fsnotify_inode_delete.
    
    The code in fsnotify_unmount_inodes attempts to prevent the freeing of
    inode and next_i by calling __iget.  However, the code doesn't do the
    __iget call on next_i
    
    	if i_count == 0 or
    	if i_state & (I_FREEING | I_WILL_FREE)
    
    The patch addresses this issue by advancing next_i in the above two cases
    until we either find a next_i which we can __iget or we reach the end of
    the list.  This makes the handling of next_i more closely match the
    handling of the variable "inode."
    
    The time to reproduce the hang is highly variable (from hours to days.) We
    ran the stress test on a 3.10 kernel with the proposed patch for a week
    without failure.
    
    During list_for_each_entry_safe, next_i is becoming free causing
    the loop to never terminate.  Advance next_i in those cases where
    __iget is not done.
    
    Signed-off-by: Jerry Hoemann <jerry.hoemann@hp.com>
    Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
    Cc: Ken Helias <kenhelias@firemail.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Jerry Hoemann authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    2a4025c View commit details
    Browse the repository at this point in the history
  80. gcov: add ARM64 to GCOV_PROFILE_ALL

    Following up the arm testing of gcov, turns out gcov on ARM64 works fine
    as well.  Only change needed is adding ARM64 to Kconfig depends.
    
    Tested with qemu and mach-virt
    
    Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
    Acked-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Riku Voipio authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    0a5d65f View commit details
    Browse the repository at this point in the history
  81. mm: free compound page with correct order

    Compound page should be freed by put_page() or free_pages() with correct
    order.  Not doing so will cause tail pages leaked.
    
    The compound order can be obtained by compound_order() or use
    HPAGE_PMD_ORDER in our case.  Some people would argue the latter is
    faster but I prefer the former which is more general.
    
    This bug was observed not just on our servers (the worst case we saw is
    11G leaked on a 48G machine) but also on our workstations running Ubuntu
    based distro.
    
      $ cat /proc/vmstat  | grep thp_zero_page_alloc
      thp_zero_page_alloc 55
      thp_zero_page_alloc_failed 0
    
    This means there is (thp_zero_page_alloc - 1) * (2M - 4K) memory leaked.
    
    Fixes: 97ae174 ("thp: implement refcounting for huge zero page")
    Signed-off-by: Yu Zhao <yuzhao@google.com>
    Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
    Cc: Andrea Arcangeli <aarcange@redhat.com>
    Cc: Mel Gorman <mel@csn.ul.ie>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Bob Liu <lliubbo@gmail.com>
    Cc: <stable@vger.kernel.org>	[3.8+]
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    yuzhaogoogle authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    10d9f82 View commit details
    Browse the repository at this point in the history
  82. drivers: of: add return value to of_reserved_mem_device_init()

    Driver calling of_reserved_mem_device_init() might be interested if the
    initialization has been successful or not, so add support for returning
    error code.
    
    This fixes a build warining caused by commit 7bfa5ab ("drivers:
    dma-coherent: add initialization from device tree"), which has been
    merged without this change and without fixing function return value.
    
    Fixes: 7bfa5ab ("drivers: dma-coherent: add initialization from device tree")
    Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    Acked-by: Arnd Bergmann <arnd@arndb.de>
    Cc: Michal Nazarewicz <mina86@mina86.com>
    Cc: Grant Likely <grant.likely@linaro.org>
    Cc: Laura Abbott <lauraa@codeaurora.org>
    Cc: Josh Cartwright <joshc@codeaurora.org>
    Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
    Cc: Kyungmin Park <kyungmin.park@samsung.com>
    Cc: Russell King <rmk+kernel@arm.linux.org.uk>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    mszyprow authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    0ac319d View commit details
    Browse the repository at this point in the history
  83. mm, thp: fix collapsing of hugepages on madvise

    If an anonymous mapping is not allowed to fault thp memory and then
    madvise(MADV_HUGEPAGE) is used after fault, khugepaged will never
    collapse this memory into thp memory.
    
    This occurs because the madvise(2) handler for thp, hugepage_madvise(),
    clears VM_NOHUGEPAGE on the stack and it isn't stored in vma->vm_flags
    until the final action of madvise_behavior().  This causes the
    khugepaged_enter_vma_merge() to be a no-op in hugepage_madvise() when
    the vma had previously had VM_NOHUGEPAGE set.
    
    Fix this by passing the correct vma flags to the khugepaged mm slot
    handler.  There's no chance khugepaged can run on this vma until after
    madvise_behavior() returns since we hold mm->mmap_sem.
    
    It would be possible to clear VM_NOHUGEPAGE directly from vma->vm_flags
    in hugepage_advise(), but I didn't want to introduce special case
    behavior into madvise_behavior().  I think it's best to just let it
    always set vma->vm_flags itself.
    
    Signed-off-by: David Rientjes <rientjes@google.com>
    Reported-by: Suleiman Souhlal <suleiman@google.com>
    Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
    Cc: Andrea Arcangeli <aarcange@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>
    rientjes authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    50bba69 View commit details
    Browse the repository at this point in the history
  84. drivers/rtc/rtc-pm8xxx.c: rework to support pm8941 rtc

    Adds support for RTC device inside PM8941 PMIC.  The RTC in this PMIC
    have two register spaces.  Thus the rtc-pm8xxx is slightly reworked to
    reflect these differences.
    
    The register set for different PMIC chips are selected on DT compatible
    string base.
    
    [akpm@linux-foundation.org: coding-style fixes]
    [akpm@linux-foundation.org: simplify and fix locking in pm8xxx_rtc_set_time()]
    Signed-off-by: Stanimir Varbanov <svarbanov@mm-sol.com>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Stephen Boyd <sboyd@codeaurora.org>
    Cc: Josh Cartwright <joshc@codeaurora.org>
    Cc: Stanimir Varbanov <svarbanov@mm-sol.com>
    Cc: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Stanimir Varbanov authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    9f497c5 View commit details
    Browse the repository at this point in the history
  85. kernel/kmod: fix use-after-free of the sub_info structure

    Found this in the message log on a s390 system:
    
        BUG kmalloc-192 (Not tainted): Poison overwritten
        Disabling lock debugging due to kernel taint
        INFO: 0x00000000684761f4-0x00000000684761f7. First byte 0xff instead of 0x6b
        INFO: Allocated in call_usermodehelper_setup+0x70/0x128 age=71 cpu=2 pid=648
         __slab_alloc.isra.47.constprop.56+0x5f6/0x658
         kmem_cache_alloc_trace+0x106/0x408
         call_usermodehelper_setup+0x70/0x128
         call_usermodehelper+0x62/0x90
         cgroup_release_agent+0x178/0x1c0
         process_one_work+0x36e/0x680
         worker_thread+0x2f0/0x4f8
         kthread+0x10a/0x120
         kernel_thread_starter+0x6/0xc
         kernel_thread_starter+0x0/0xc
        INFO: Freed in call_usermodehelper_exec+0x110/0x1b8 age=71 cpu=2 pid=648
         __slab_free+0x94/0x560
         kfree+0x364/0x3e0
         call_usermodehelper_exec+0x110/0x1b8
         cgroup_release_agent+0x178/0x1c0
         process_one_work+0x36e/0x680
         worker_thread+0x2f0/0x4f8
         kthread+0x10a/0x120
         kernel_thread_starter+0x6/0xc
         kernel_thread_starter+0x0/0xc
    
    There is a use-after-free bug on the subprocess_info structure allocated
    by the user mode helper.  In case do_execve() returns with an error
    ____call_usermodehelper() stores the error code to sub_info->retval, but
    sub_info can already have been freed.
    
    Regarding UMH_NO_WAIT, the sub_info structure can be freed by
    __call_usermodehelper() before the worker thread returns from
    do_execve(), allowing memory corruption when do_execve() failed after
    exec_mmap() is called.
    
    Regarding UMH_WAIT_EXEC, the call to umh_complete() allows
    call_usermodehelper_exec() to continue which then frees sub_info.
    
    To fix this race the code needs to make sure that the call to
    call_usermodehelper_freeinfo() is always done after the last store to
    sub_info->retval.
    
    Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Reviewed-by: Oleg Nesterov <oleg@redhat.com>
    Cc: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Martin Schwidefsky authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    aac99ba View commit details
    Browse the repository at this point in the history
  86. drivers/rtc/rtc-s3c.c: fix initialization failure without rtc source …

    …clock
    
    Fix unconditional initialization failure on non-exynos3250 SoCs.
    
    Commit df9e26d ("rtc: s3c: add support for RTC of Exynos3250 SoC")
    introduced rtc source clock support, but also added initialization
    failure on SoCs, which doesn't need such clock.
    
    Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    mszyprow authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    094b6fd View commit details
    Browse the repository at this point in the history
  87. memory-hotplug: clear pgdat which is allocated by bootmem in try_offl…

    …ine_node()
    
    When hot adding the same memory after hot removal, the following
    messages are shown:
    
      WARNING: CPU: 20 PID: 6 at mm/page_alloc.c:4968 free_area_init_node+0x3fe/0x426()
      ...
      Call Trace:
        dump_stack+0x46/0x58
        warn_slowpath_common+0x81/0xa0
        warn_slowpath_null+0x1a/0x20
        free_area_init_node+0x3fe/0x426
        hotadd_new_pgdat+0x90/0x110
        add_memory+0xd4/0x200
        acpi_memory_device_add+0x1aa/0x289
        acpi_bus_attach+0xfd/0x204
        acpi_bus_attach+0x178/0x204
        acpi_bus_scan+0x6a/0x90
        acpi_device_hotplug+0xe8/0x418
        acpi_hotplug_work_fn+0x1f/0x2b
        process_one_work+0x14e/0x3f0
        worker_thread+0x11b/0x510
        kthread+0xe1/0x100
        ret_from_fork+0x7c/0xb0
    
    The detaled explanation is as follows:
    
    When hot removing memory, pgdat is set to 0 in try_offline_node().  But
    if the pgdat is allocated by bootmem allocator, the clearing step is
    skipped.
    
    And when hot adding the same memory, the uninitialized pgdat is reused.
    But free_area_init_node() checks wether pgdat is set to zero.  As a
    result, free_area_init_node() hits WARN_ON().
    
    This patch clears pgdat which is allocated by bootmem allocator in
    try_offline_node().
    
    Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
    Cc: Zhang Zhen <zhenzhang.zhang@huawei.com>
    Cc: Wang Nan <wangnan0@huawei.com>
    Cc: Tang Chen <tangchen@cn.fujitsu.com>
    Reviewed-by: Toshi Kani <toshi.kani@hp.com>
    Cc: Dave Hansen <dave.hansen@intel.com>
    Cc: David Rientjes <rientjes@google.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Yasuaki Ishimatsu authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    5ea95ec View commit details
    Browse the repository at this point in the history
  88. drivers/rtc/rtc-bq32k.c: fix register value

    Fix register value in bq32000 trickle charging.
    
    Mike reported that I'm using wrong value in one trickle-charging case,
    and after checking docs, I must admit he's right.
    
    Signed-off-by: Pavel Machek <pavel@denx.de>
    Reported-by: Mike Bremford <mike@bfo.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    pavelmachek authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    8dfefaa View commit details
    Browse the repository at this point in the history
  89. lib/bitmap.c: fix undefined shift in __bitmap_shift_{left|right}()

    If __bitmap_shift_left() or __bitmap_shift_right() are asked to shift by
    a multiple of BITS_PER_LONG, they will try to shift a long value by
    BITS_PER_LONG bits which is undefined.  Change the functions to avoid
    the undefined shift.
    
    Coverity id: 1192175
    Coverity id: 1192174
    Signed-off-by: Jan Kara <jack@suse.cz>
    Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    jankara authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a99860e View commit details
    Browse the repository at this point in the history
  90. mm: page-writeback: inline account_page_dirtied() into single caller

    A follow-up patch would have changed the call signature.  To save the
    trouble, just fold it instead.
    
    Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
    Acked-by: Michal Hocko <mhocko@suse.cz>
    Cc: Vladimir Davydov <vdavydov@parallels.com>
    Cc: <stable@vger.kernel.org>	[3.17.x]
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    hnaz authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    b0c40b4 View commit details
    Browse the repository at this point in the history
  91. mm: memcontrol: fix missed end-writeback page accounting

    Commit 0a31bc9 ("mm: memcontrol: rewrite uncharge API") changed
    page migration to uncharge the old page right away.  The page is locked,
    unmapped, truncated, and off the LRU, but it could race with writeback
    ending, which then doesn't unaccount the page properly:
    
    test_clear_page_writeback()              migration
                                               wait_on_page_writeback()
      TestClearPageWriteback()
                                               mem_cgroup_migrate()
                                                 clear PCG_USED
      mem_cgroup_update_page_stat()
        if (PageCgroupUsed(pc))
          decrease memcg pages under writeback
    
      release pc->mem_cgroup->move_lock
    
    The per-page statistics interface is heavily optimized to avoid a
    function call and a lookup_page_cgroup() in the file unmap fast path,
    which means it doesn't verify whether a page is still charged before
    clearing PageWriteback() and it has to do it in the stat update later.
    
    Rework it so that it looks up the page's memcg once at the beginning of
    the transaction and then uses it throughout.  The charge will be
    verified before clearing PageWriteback() and migration can't uncharge
    the page as long as that is still set.  The RCU lock will protect the
    memcg past uncharge.
    
    As far as losing the optimization goes, the following test results are
    from a microbenchmark that maps, faults, and unmaps a 4GB sparse file
    three times in a nested fashion, so that there are two negative passes
    that don't account but still go through the new transaction overhead.
    There is no actual difference:
    
     old:     33.195102545 seconds time elapsed       ( +-  0.01% )
     new:     33.199231369 seconds time elapsed       ( +-  0.03% )
    
    The time spent in page_remove_rmap()'s callees still adds up to the
    same, but the time spent in the function itself seems reduced:
    
         # Children      Self  Command        Shared Object       Symbol
     old:     0.12%     0.11%  filemapstress  [kernel.kallsyms]   [k] page_remove_rmap
     new:     0.12%     0.08%  filemapstress  [kernel.kallsyms]   [k] page_remove_rmap
    
    Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
    Acked-by: Michal Hocko <mhocko@suse.cz>
    Cc: Vladimir Davydov <vdavydov@parallels.com>
    Cc: <stable@vger.kernel.org>	[3.17.x]
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    hnaz authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    152b6a9 View commit details
    Browse the repository at this point in the history
  92. mm: rmap: split out page_remove_file_rmap()

    page_remove_rmap() has too many branches on PageAnon() and is hard to
    follow.  Move the file part into a separate function.
    
    Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
    Reviewed-by: Michal Hocko <mhocko@suse.cz>
    Cc: Vladimir Davydov <vdavydov@parallels.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    hnaz authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    54b56ee View commit details
    Browse the repository at this point in the history
  93. ocfs2: fix d_splice_alias() return code checking

    d_splice_alias() can return a valid dentry, NULL or an ERR_PTR.
    Currently the code checks not for ERR_PTR and will cuase an oops in
    ocfs2_dentry_attach_lock().  Fix this by using IS_ERR_OR_NULL().
    
    Signed-off-by: Richard Weinberger <richard@nod.at>
    Cc: Mark Fasheh <mfasheh@suse.com>
    Cc: Joel Becker <jlbec@evilplan.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    richardweinberger authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    5bff8f8 View commit details
    Browse the repository at this point in the history
  94. mm/slab_common: don't check for duplicate cache names

    The SLUB cache merges caches with the same size and alignment and there
    was long standing bug with this behavior:
    
     - create the cache named "foo"
     - create the cache named "bar" (which is merged with "foo")
     - delete the cache named "foo" (but it stays allocated because "bar"
       uses it)
     - create the cache named "foo" again - it fails because the name "foo"
       is already used
    
    That bug was fixed in commit 6946174 ("slab_common: fix the check
    for duplicate slab names") by not warning on duplicate cache names when
    the SLUB subsystem is used.
    
    Recently, cache merging was implemented the with SLAB subsystem too, in
    12220de ("mm/slab: support slab merge")).  Therefore we need stop
    checking for duplicate names even for the SLAB subsystem.
    
    This patch fixes the bug by removing the check.
    
    Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
    Acked-by: Christoph Lameter <cl@linux.com>
    Cc: Pekka Enberg <penberg@kernel.org>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Mikulas Patocka authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    596f2fb View commit details
    Browse the repository at this point in the history
  95. zram: avoid NULL pointer access in concurrent situation

    There is a rare NULL pointer bug in mem_used_total_show() and
    mem_used_max_store() in concurrent situation, like this:
    
    zram is not initialized, process A is a mem_used_total reader which runs
    periodically, while process B try to init zram.
    
    	process A 				process B
      access meta, get a NULL value
    						init zram, done
      init_done() is true
      access meta->mem_pool, get a NULL pointer BUG
    
    This patch fixes this issue.
    
    Signed-off-by: Weijie Yang <weijie.yang@samsung.com>
    Acked-by: Minchan Kim <minchan@kernel.org>
    Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Weijie Yang authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    664c977 View commit details
    Browse the repository at this point in the history
  96. sh: fix sh770x SCIF memory regions

    Resources scif1_resources & scif2_resources overlap.  Actual SCIF region
    size is 0x10.
    
    This is regression from commit d850acf ("sh: Declare SCIF register
    base and IRQ as resources")
    
    Signed-off-by: Andriy Skulysh <askulysh@gmail.com>
    Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    askulysh authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    406be4d View commit details
    Browse the repository at this point in the history
  97. mm/balloon_compaction: fix deflation when compaction is disabled

    If CONFIG_BALLOON_COMPACTION=n balloon_page_insert() does not link pages
    with balloon and doesn't set PagePrivate flag, as a result
    balloon_page_dequeue() cannot get any pages because it thinks that all
    of them are isolated.  Without balloon compaction nobody can isolate
    ballooned pages.  It's safe to remove this check.
    
    Fixes: d6d86c0 ("mm/balloon_compaction: redesign ballooned pages management").
    Signed-off-by: Konstantin Khlebnikov <k.khlebnikov@samsung.com>
    Reported-by: Matt Mullins <mmullins@mmlx.us>
    Cc: <stable@vger.kernel.org>	[3.17]
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Konstantin Khlebnikov authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    d8ac93a View commit details
    Browse the repository at this point in the history
  98. xfs: Check error during inode btree iteration in xfs_bulkstat()

    xfs_bulkstat() doesn't check error return from xfs_btree_increment(). In
    case of specific fs corruption that could result in xfs_bulkstat()
    entering an infinite loop because we would be looping over the same
    chunk over and over again. Fix the problem by checking the return value
    and terminating the loop properly.
    
    Coverity-id: 1231338
    cc: <stable@vger.kernel.org>
    Signed-off-by: Jan Kara <jack@suse.cz>
    Reviewed-by: Jie Liu <jeff.u.liu@gmail.com>
    Signed-off-by: Dave Chinner <david@fromorbit.com>
    jankara authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    f876017 View commit details
    Browse the repository at this point in the history
  99. mm: Remove false WARN_ON from pagecache_isize_extended()

    The WARN_ON checking whether i_mutex is held in
    pagecache_isize_extended() was wrong because some filesystems (e.g.
    XFS) use different locks for serialization of truncates / writes. So
    just remove the check.
    
    Signed-off-by: Jan Kara <jack@suse.cz>
    Reviewed-by: Dave Chinner <dchinner@redhat.com>
    Signed-off-by: Dave Chinner <david@fromorbit.com>
    jankara authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a06b3fa View commit details
    Browse the repository at this point in the history
  100. xfs: rework zero range to prevent invalid i_size updates

    The zero range operation is analogous to fallocate with the exception of
    converting the range to zeroes. E.g., it attempts to allocate zeroed
    blocks over the range specified by the caller. The XFS implementation
    kills all delalloc blocks currently over the aligned range, converts the
    range to allocated zero blocks (unwritten extents) and handles the
    partial pages at the ends of the range by sending writes through the
    pagecache.
    
    The current implementation suffers from several problems associated with
    inode size. If the aligned range covers an extending I/O, said I/O is
    discarded and an inode size update from a previous write never makes it
    to disk. Further, if an unaligned zero range extends beyond eof, the
    page write induced for the partial end page can itself increase the
    inode size, even if the zero range request is not supposed to update
    i_size (via KEEP_SIZE, similar to an fallocate beyond EOF).
    
    The latter behavior not only incorrectly increases the inode size, but
    can lead to stray delalloc blocks on the inode. Typically, post-eof
    preallocation blocks are either truncated on release or inode eviction
    or explicitly written to by xfs_zero_eof() on natural file size
    extension. If the inode size increases due to zero range, however,
    associated blocks leak into the address space having never been
    converted or mapped to pagecache pages. A direct I/O to such an
    uncovered range cannot convert the extent via writeback and will BUG().
    For example:
    
    $ xfs_io -fc "pwrite 0 128k" -c "fzero -k 1m 54321" <file>
    ...
    $ xfs_io -d -c "pread 128k 128k" <file>
    <BUG>
    
    If the entire delalloc extent happens to not have page coverage
    whatsoever (e.g., delalloc conversion couldn't find a large enough free
    space extent), even a full file writeback won't convert what's left of
    the extent and we'll assert on inode eviction.
    
    Rework xfs_zero_file_space() to avoid buffered I/O for partial pages.
    Use the existing hole punch and prealloc mechanisms as primitives for
    zero range. This implementation is not efficient nor ideal as we
    writeback dirty data over the range and remove existing extents rather
    than convert to unwrittern. The former writeback, however, is currently
    the only mechanism available to ensure consistency between pagecache and
    extent state. Even a pagecache truncate/delalloc punch prior to hole
    punch has lead to inconsistencies due to racing with writeback.
    
    This provides a consistent, correct implementation of zero range that
    survives fsstress/fsx testing without assert failures. The
    implementation can be optimized from this point forward once the
    fundamental issue of pagecache and delalloc extent state consistency is
    addressed.
    
    Signed-off-by: Brian Foster <bfoster@redhat.com>
    Reviewed-by: Dave Chinner <dchinner@redhat.com>
    Signed-off-by: Dave Chinner <david@fromorbit.com>
    Brian Foster authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    4f57825 View commit details
    Browse the repository at this point in the history
  101. powerpc: Fix section mismatch warning

    Add __init to MMU_setup() which uses __initdata boot_command_line.
    Also MMU_setup() is only called from MMU_init(), which is also __init.
    
    Warning appeared since commit 3e47d14.
    
    Fixes: 3e47d14 ("powerpc: Remove powerpc specific cmd_line")
    Signed-off-by: Fabian Frederick <fabf@skynet.be>
    [mpe: Update changelog]
    Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
    Fabian Frederick authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    c6a6b30 View commit details
    Browse the repository at this point in the history
  102. mtd: omap: fix mtd devices not showing up

    Since commit 6d178ef ("mtd: nand: Move ELM driver and rename as
    omap_elm"), I don't have any mtd devices present on my am335x. This
    changes the link order of the omap_elm and omap2 objects, causing them
    to probe in the wrong order.
    
    To fix this, make elm_config defer probing until the omap_elm driver is
    actually loaded.
    
    Signed-off-by: Frans Klaver <frans.klaver@xsens.com>
    Acked-by: Roger Quadros <rogerq@ti.com>
    Signed-off-by: Brian Norris <computersforpeace@gmail.com>
    fransklaver authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ae0201d View commit details
    Browse the repository at this point in the history
  103. mtd: cfi_cmdset_0001.c: fix resume for LH28F640BF chips

    After '#echo mem > /sys/power/state' some devices can not be properly resumed
    because apparently the MTD Partition Configuration Register has been reset
    to default thus the rootfs cannot be mounted cleanly on resume.
    An example of this can be found in the SA-1100 Developer's Manual at 9.5.3.3
    where the second step of the Sleep Shutdown Sequence is described:
    "An internal reset is applied to the SA-1100. All units are reset...".
    
    As workaround we refresh the PCR value as done initially on chip setup.
    
    This behavior and the fix are confirmed by our tests done on 2 different Zaurus
    collie units with kernel 3.17.
    
    Fixes: 812c5fa: ("mtd: cfi_cmdset_0001.c: add support for Sharp LH28F640BF NOR")
    Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
    Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
    Cc: <stable@vger.kernel.org> # 3.16+
    Signed-off-by: Brian Norris <computersforpeace@gmail.com>
    lumag authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    fb7753c View commit details
    Browse the repository at this point in the history
  104. powerpc/fadump: Fix endianess issues in firmware assisted dump handling

    Firmware-assisted dump (fadump) kernel code is not endian safe. The
    below patch fixes this issue. Tested this patch with upstream kernel.
    Below output shows crash tool successfully opening LE fadump vmcore.
    
        # crash vmlinux vmcore
        GNU gdb (GDB) 7.6
        This GDB was configured as "powerpc64le-unknown-linux-gnu"...
    
              KERNEL: vmlinux
            DUMPFILE: vmcore
        	CPUS: 16
        	DATE: Wed Dec 31 19:00:00 1969
              UPTIME: 00:03:28
        LOAD AVERAGE: 0.46, 0.86, 0.41
               TASKS: 268
            NODENAME: linux-dhr2
             RELEASE: 3.17.0-rc5-7-default
             VERSION: #6 SMP Tue Sep 30 01:06:34 EDT 2014
             MACHINE: ppc64le  (4116 Mhz)
              MEMORY: 40 GB
               PANIC: "Oops: Kernel access of bad area, sig: 11 [#1]" (check log for details)
        	 PID: 6223
             COMMAND: "bash"
        	TASK: c0000009661b2500  [THREAD_INFO: c000000967ac0000]
        	 CPU: 2
               STATE: TASK_RUNNING (PANIC)
    
    Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
    [mpe: Make the comment in pSeries_lpar_hptab_clear() clearer]
    Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
    Hari Bathini authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    0dbabc1 View commit details
    Browse the repository at this point in the history
  105. ALSA: hda - Add ultra dock support for Thinkpad X240.

    Adding ultra doch support for Lenovo Thinkpad X240 (17aa:2214).
    [Actually replaced the entry with ALC292_FIXUP_TPT440_DOCK -- tiwai]
    
    Signed-off-by: Lukas Bossard <mr.bobukas@gmail.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Lukas Bossard authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    5feb7b7 View commit details
    Browse the repository at this point in the history
  106. ALSA: hda - Set GPIO 4 low for a few HP machines

    These HP machines needs GPIO 4 low to enable the headphone amplifier.
    In addition, we still need to control LEDs via vref and GPIO.
    
    Cc: stable@vger.kernel.org
    BugLink: https://bugs.launchpad.net/bugs/1387128
    Tested-by: TienFu Chen <tienfu.chen@canonical.com>
    Signed-off-by: David Henningsson <david.henningsson@canonical.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    David Henningsson authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    58f9843 View commit details
    Browse the repository at this point in the history
  107. ALSA: hda - change three SSID quirks to one pin quirk

    These three HP machines all have the same pin config, so we can
    change it to a pin quirk.
    
    Signed-off-by: David Henningsson <david.henningsson@canonical.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    David Henningsson authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    1831580 View commit details
    Browse the repository at this point in the history
  108. ALSA: hda/realtek - Update Initial AMP for EAPD control

    The default EAPD control uses verb command to control EAPD. Some codec
    does not have verb command for EAPD. It needs to control by hidden
    register.
    
    This update will avoid wrong behavior for some codec.  This patch will
    fix double setup for EAPD.  It just needs to turn on by one site for
    verb command or hidden register controlled.
    
    Detailed changes:
    - alc889_coef_init() is replaced with alc_update_coef_idx() with a
      correct COEF value.
    - for ALC262, ALC887 and ALC900, the EAPD setup via the hidden
      register is removed because this rather conflicts with the EAPD verb
      setup.
    -  For ALC888-VC, also the hidden register access is removed in
      alc888_coef_init().
    - Remove the dead #if 0 code for ALC267/ALC268.
    
    Signed-off-by: Kailang Yang <kailang@realtek.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    kailangyang authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    e41d66c View commit details
    Browse the repository at this point in the history
  109. rbd: use a single workqueue for all devices

    Using one queue per device doesn't make much sense given that our
    workfn processes "devices" and not "requests".  Switch to a single
    workqueue for all devices.
    
    Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
    Reviewed-by: Sage Weil <sage@redhat.com>
    idryomov authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    9fff90f View commit details
    Browse the repository at this point in the history
  110. libceph: use memalloc flags for net IO

    This patch has ceph's lib code use the memalloc flags.
    
    If the VM layer needs to write data out to free up memory to handle new
    allocation requests, the block layer must be able to make forward progress.
    To handle that requirement we use structs like mempools to reserve memory for
    objects like bios and requests.
    
    The problem is when we send/receive block layer requests over the network
    layer, net skb allocations can fail and the system can lock up.
    To solve this, the memalloc related flags were added. NBD, iSCSI
    and NFS uses these flags to tell the network/vm layer that it should
    use memory reserves to fullfill allcation requests for structs like
    skbs.
    
    I am running ceph in a bunch of VMs in my laptop, so this patch was
    not tested very harshly.
    
    Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
    Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
    Mike Christie authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    8937657 View commit details
    Browse the repository at this point in the history
  111. rbd: Fix error recovery in rbd_obj_read_sync()

    When we fail to allocate page vector in rbd_obj_read_sync() we just
    basically ignore the problem and continue which will result in an oops
    later. Fix the problem by returning proper error.
    
    CC: Yehuda Sadeh <yehuda@inktank.com>
    CC: Sage Weil <sage@inktank.com>
    CC: ceph-devel@vger.kernel.org
    CC: stable@vger.kernel.org
    Coverity-id: 1226882
    Signed-off-by: Jan Kara <jack@suse.cz>
    Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
    jankara authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    cee4151 View commit details
    Browse the repository at this point in the history
  112. [media] rc-core: fix protocol_change regression in ir_raw_event_register

    IR receiver using nuvoton-cir and lirc required additional configuration
    steps after upgrade from kernel 3.16 to 3.17-rcX. Bisected regression to
    commit da6e162 ("[media] rc-core:
    simplify sysfs code").
    
    The regression comes from adding function change_protocol in ir-raw.c.
    It changes behaviour so that only the protocol enabled by driver's
    map_name will be active after registration. This breaks user space
    behaviour, lirc does not get key press signals anymore.
    
    Enable lirc protocol by default for ir raw decoders to restore original
    behaviour.
    
    Cc: stable@vger.kernel.org # for v3.17
    Signed-off-by: Tomas Melin <tomas.melin@iki.fi>
    Acked-by: David Härdeman <david@hardeman.nu>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    tmelin authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    0468348 View commit details
    Browse the repository at this point in the history
  113. [media] rc5-decoder: BZ#85721: Fix RC5-SZ decoding

    Changeset e87b540 broke RC5-SZ decoding, as it forgot to add
    the extra bit check for the enabled protocols at the beginning of
    the logic.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Acked-by: David Härdeman <david@hardeman.nu>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    mchehab authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    be85b8e View commit details
    Browse the repository at this point in the history
  114. e1000: unset IFF_UNICAST_FLT on WMware 82545EM

    VMWare's e1000 implementation does not seem to support unicast filtering.
    This can be observed by configuring a macvlan interface on eth0 in a VM in
    VMWare Fusion 5.0.5, and trying to use that interface instead of eth0.
    Tested on 3.16.
    
    Signed-off-by: Francesco Ruggeri <fruggeri@arista.com>
    Tested-by: Aaron Brown <aaron.f.brown@intel.com>
    Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
    Francesco Ruggeri authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    cd9d9f6 View commit details
    Browse the repository at this point in the history
  115. igb: don't reuse pages with pfmemalloc flag

    Incoming packet is dropped silently by sk_filter(), if the skb was
    allocated from pfmemalloc reserves and the corresponding socket is
    not marked with the SOCK_MEMALLOC flag.
    
    Igb driver allocates pages for DMA with __skb_alloc_page(), which
    calls alloc_pages_node() with the __GFP_MEMALLOC flag. So, in case
    of OOM condition, igb can get pages with pfmemalloc flag set.
    
    If an incoming packet hits the pfmemalloc page and is large enough
    (small packets are copying into the memory, allocated with
    netdev_alloc_skb_ip_align(), so they are not affected), it will be
    dropped.
    
    This behavior is ok under high memory pressure, but the problem is
    that the igb driver reuses these mapped pages. So, packets are still
    dropping even if all memory issues are gone and there is a plenty
    of free memory.
    
    In my case, some TCP sessions hang on a small percentage (< 0.1%)
    of machines days after OOMs.
    
    Fix this by avoiding reuse of such pages.
    
    Signed-off-by: Roman Gushchin <klamm@yandex-team.ru>
    Tested-by: Aaron Brown "aaron.f.brown@intel.com"
    Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
    Roman Gushchin authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    02d4463 View commit details
    Browse the repository at this point in the history
  116. ixgbe: need not repeat init skb with NULL

    Signed-off-by: Martin Zhang <martinbj2008@gmail.com>
    Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
    Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
    Junwei Zhang authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    61e805e View commit details
    Browse the repository at this point in the history
  117. ixgbe: fix race when setting advertised speed

    Following commands:
    
    modprobe ixgbe
    ifconfig ethX up
    ethtool -s ethX advertise 0x020
    
    can lead to "setup link failed with code -14" error due to the setup_link
    call racing with the SFP detection routine in the watchdog.
    
    This patch resolves this issue by protecting the setup_link call with check
    for __IXGBE_IN_SFP_INIT.
    
    Reported-by: Scott Harrison <scoharr2@cisco.com>
    Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
    Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
    Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
    etantilov authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a3970a0 View commit details
    Browse the repository at this point in the history
  118. omap: dss: connector-analog-tv: Add missing module device table

    Without that fix connector-analog-tv driver isn't probed when compiled
    as module.
    
    Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
    Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
    Marek Belisko authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    0e193d4 View commit details
    Browse the repository at this point in the history
  119. drm/i915/dp: only use training pattern 3 on platforms that support it

    Ivybridge + 30" monitor prints a drm error on every modeset, since IVB
    doesn't support DP3 we should even bother trying to use it.
    
    This regression has been introduced in
    
    commit 06ea66b
    Author: Todd Previte <tprevite@gmail.com>
    Date:   Mon Jan 20 10:19:39 2014 -0700
    
        drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable
    devices
    
    Reported-by: Dave Airlie <airlied@redhat.com>
    Reference: http://mid.gmane.org/1414566170-9868-1-git-send-email-airlied@gmail.com
    Cc: Todd Previte <tprevite@gmail.com>
    Cc: stable@vger.kernel.org (3.15+)
    Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    jnikula authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    bff86b5 View commit details
    Browse the repository at this point in the history
  120. ext4: fix overflow when updating superblock backups after resize

    When there are no meta block groups update_backups() will compute the
    backup block in 32-bit arithmetics thus possibly overflowing the block
    number and corrupting the filesystem. OTOH filesystems without meta
    block groups larger than 16 TB should be rare. Fix the problem by doing
    the counting in 64-bit arithmetics.
    
    Coverity-id: 741252
    CC: stable@vger.kernel.org
    Signed-off-by: Jan Kara <jack@suse.cz>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    Reviewed-by: Lukas Czerner <lczerner@redhat.com>
    jankara authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    83a9d3f View commit details
    Browse the repository at this point in the history
  121. ext4: fix oops when loading block bitmap failed

    When we fail to load block bitmap in __ext4_new_inode() we will
    dereference NULL pointer in ext4_journal_get_write_access(). So check
    for error from ext4_read_block_bitmap().
    
    Coverity-id: 989065
    Cc: stable@vger.kernel.org
    Signed-off-by: Jan Kara <jack@suse.cz>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    jankara authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a2ca43b View commit details
    Browse the repository at this point in the history
  122. ext4: enable journal checksum when metadata checksum feature enabled

    If metadata checksumming is turned on for the FS, we need to tell the
    journal to use checksumming too.
    
    Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    Cc: stable@vger.kernel.org
    djwong authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    de0c59c View commit details
    Browse the repository at this point in the history
  123. ext4: disallow changing journal_csum option during remount

    ext4 does not permit changing the metadata or journal checksum feature
    flag while mounted.  Until we decide to support that, don't allow a
    remount to change the journal_csum flag (right now we silently fail to
    change anything).
    
    Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    djwong authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    da1e507 View commit details
    Browse the repository at this point in the history
  124. ext4: remove extent status procfs files if journal load fails

    If we can't load the journal, remove the procfs files for the extent
    status information file to avoid leaking resources.
    
    Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    Cc: stable@vger.kernel.org
    djwong authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    6a590cb View commit details
    Browse the repository at this point in the history
  125. ext4: prevent bugon on race between write/fcntl

    O_DIRECT flags can be toggeled via fcntl(F_SETFL). But this value checked
    twice inside ext4_file_write_iter() and __generic_file_write() which
    result in BUG_ON inside ext4_direct_IO.
    
    Let's initialize iocb->private unconditionally.
    
    TESTCASE: xfstest:generic/036  https://patchwork.ozlabs.org/patch/402445/
    
    #TYPICAL STACK TRACE:
    kernel BUG at fs/ext4/inode.c:2960!
    invalid opcode: 0000 [#1] SMP
    Modules linked in: brd iTCO_wdt lpc_ich mfd_core igb ptp dm_mirror dm_region_hash dm_log dm_mod
    CPU: 6 PID: 5505 Comm: aio-dio-fcntl-r Not tainted 3.17.0-rc2-00176-gff5c017 torvalds#161
    Hardware name: Intel Corporation W2600CR/W2600CR, BIOS SE5C600.86B.99.99.x028.061320111235 06/13/2011
    task: ffff88080e95a7c0 ti: ffff88080f908000 task.ti: ffff88080f908000
    RIP: 0010:[<ffffffff811fabf2>]  [<ffffffff811fabf2>] ext4_direct_IO+0x162/0x3d0
    RSP: 0018:ffff88080f90bb58  EFLAGS: 00010246
    RAX: 0000000000000400 RBX: ffff88080fdb2a28 RCX: 00000000a802c818
    RDX: 0000040000080000 RSI: ffff88080d8aeb80 RDI: 0000000000000001
    RBP: ffff88080f90bbc8 R08: 0000000000000000 R09: 0000000000001581
    R10: 0000000000000000 R11: 0000000000000000 R12: ffff88080d8aeb80
    R13: ffff88080f90bbf8 R14: ffff88080fdb28c8 R15: ffff88080fdb2a28
    FS:  00007f23b2055700(0000) GS:ffff880818400000(0000) knlGS:0000000000000000
    CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    CR2: 00007f23b2045000 CR3: 000000080cedf000 CR4: 00000000000407e0
    Stack:
     ffff88080f90bb98 0000000000000000 7ffffffffffffffe ffff88080fdb2c30
     0000000000000200 0000000000000200 0000000000000001 0000000000000200
     ffff88080f90bbc8 ffff88080fdb2c30 ffff88080f90be08 0000000000000200
    Call Trace:
     [<ffffffff8112ca9d>] generic_file_direct_write+0xed/0x180
     [<ffffffff8112f2b2>] __generic_file_write_iter+0x222/0x370
     [<ffffffff811f495b>] ext4_file_write_iter+0x34b/0x400
     [<ffffffff811bd709>] ? aio_run_iocb+0x239/0x410
     [<ffffffff811bd709>] ? aio_run_iocb+0x239/0x410
     [<ffffffff810990e5>] ? local_clock+0x25/0x30
     [<ffffffff810abd94>] ? __lock_acquire+0x274/0x700
     [<ffffffff811f4610>] ? ext4_unwritten_wait+0xb0/0xb0
     [<ffffffff811bd756>] aio_run_iocb+0x286/0x410
     [<ffffffff810990e5>] ? local_clock+0x25/0x30
     [<ffffffff810ac359>] ? lock_release_holdtime+0x29/0x190
     [<ffffffff811bc05b>] ? lookup_ioctx+0x4b/0xf0
     [<ffffffff811bde3b>] do_io_submit+0x55b/0x740
     [<ffffffff811bdcaa>] ? do_io_submit+0x3ca/0x740
     [<ffffffff811be030>] SyS_io_submit+0x10/0x20
     [<ffffffff815ce192>] system_call_fastpath+0x16/0x1b
    Code: 01 48 8b 80 f0 01 00 00 48 8b 18 49 8b 45 10 0f 85 f1 01 00 00 48 03 45 c8 48 3b 43 48 0f 8f e3 01 00 00 49 83 7c
    24 18 00 75 04 <0f> 0b eb fe f0 ff 83 ec 01 00 00 49 8b 44 24 18 8b 00 85 c0 89
    RIP  [<ffffffff811fabf2>] ext4_direct_IO+0x162/0x3d0
     RSP <ffff88080f90bb58>
    
    Reported-by: Sasha Levin <sasha.levin@oracle.com>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
    Cc: stable@vger.kernel.org
    Dmitry Monakhov authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    222676a View commit details
    Browse the repository at this point in the history
  126. jbd2: use a better hash function for the revoke table

    The old hash function didn't work well for 64-bit block numbers, and
    used undefined (negative) shift right behavior.  Use the generic
    64-bit hash function instead.
    
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    Reported-by: Andrey Ryabinin <a.ryabinin@samsung.com>
    tytso authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    7f8b997 View commit details
    Browse the repository at this point in the history
  127. ext4: bail out from make_indexed_dir() on first error

    When ext4_handle_dirty_dx_node() or ext4_handle_dirty_dirent_node()
    fail, there's really something wrong with the fs and there's no point in
    continuing further. Just return error from make_indexed_dir() in that
    case. Also initialize frames array so that if we return early due to
    error, dx_release() doesn't try to dereference uninitialized memory
    (which could happen also due to error in do_split()).
    
    Coverity-id: 741300
    Signed-off-by: Jan Kara <jack@suse.cz>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    Cc: stable@vger.kernel.org
    jankara authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    3eb517f View commit details
    Browse the repository at this point in the history
  128. ext4: bail early when clearing inode journal flag fails

    When clearing inode journal flag, we call jbd2_journal_flush() to force
    all the journalled data to their final locations. Currently we ignore
    when this fails and continue clearing inode journal flag. This isn't a
    big problem because when jbd2_journal_flush() fails, journal is likely
    aborted anyway. But it can still lead to somewhat confusing results so
    rather bail out early.
    
    Coverity-id: 989044
    Signed-off-by: Jan Kara <jack@suse.cz>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    jankara authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    3c1c7d7 View commit details
    Browse the repository at this point in the history
  129. ext4: make ext4_ext_convert_to_initialized() return proper number of …

    …blocks
    
    ext4_ext_convert_to_initialized() can return more blocks than are
    actually allocated from map->m_lblk in case where initial part of the
    on-disk extent is zeroed out. Luckily this doesn't have serious
    consequences because the caller currently uses the return value
    only to unmap metadata buffers. Anyway this is a data
    corruption/exposure problem waiting to happen so fix it.
    
    Coverity-id: 1226848
    Signed-off-by: Jan Kara <jack@suse.cz>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    jankara authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    f51faf7 View commit details
    Browse the repository at this point in the history
  130. MAINTAINERS: drop list entry for davinci

    As davinci-linux-open-source@linux.davincidsp.com is now
    shut and no more maintained by TI, drop this entry from
    DAVINCI MACHINE SUPPORT and DAVINCI SERIES MEDIA DRIVER.
    
    Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
    Cc: Kevin Hilman <khilman@deeprootsystems.com>
    Cc: arm@kernel.org
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-kernel@vger.kernel.org
    Acked-by: Sekhar Nori <nsekhar@ti.com>
    Signed-off-by: Kevin Hilman <khilman@linaro.org>
    prabhakarlad authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    156a46a View commit details
    Browse the repository at this point in the history
  131. PCI: Rename sysfs 'enabled' file back to 'enable'

    Back in commit 5136b2d ("PCI: convert bus code to use dev_groups"),
    I misstyped the 'enable' sysfs filename as 'enabled', which broke the
    userspace API.  This patch fixes that issue by renaming the file back.
    
    Fixes: 5136b2d ("PCI: convert bus code to use dev_groups")
    Reported-by: Jeff Epler <jepler@unpythonic.net>
    Tested-by: Jeff Epler <jepler@unpythonic.net>	# on v3.14-rt
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    CC: stable@vger.kernel.org	# 3.13
    gregkh authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    e83df51 View commit details
    Browse the repository at this point in the history
  132. [media] ds3000: fix LNB supply voltage on Tevii S480 on initialization

    The Tevii S480 outputs 18V on startup for the LNB supply voltage and does not
    automatically power down. This blocks other receivers connected
    to a satellite channel router (EN50494), since the receivers can not send the
    required DiSEqC sequences when the Tevii card is connected to a the same SCR.
    
    This patch switches off the LNB supply voltage on initialization of the frontend.
    
    [mchehab@osg.samsung.com: add a comment about why we're explicitly
     turning off voltage at device init]
    Cc: stable@vger.kernel.org
    Signed-off-by: Ulrich Eckhardt <uli@uli-eckhardt.de>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Ulrich Eckhardt authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    96252c8 View commit details
    Browse the repository at this point in the history
  133. wireless: rt2x00: add new rt2800usb device

    0x1b75 0xa200 AirLive WN-200USB wireless 11b/g/n dongle
    
    References: https://bugs.debian.org/766802
    Reported-by: Martin Mokrejs <mmokrejs@fold.natur.cuni.cz>
    Cc: stable@vger.kernel.org
    Signed-off-by: Cyril Brulebois <kibi@debian.org>
    Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    Cyril Brulebois authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a917635 View commit details
    Browse the repository at this point in the history
  134. ath9k: fix some debugfs output

    The right shift operation has higher precedence than the mask so we
    left shift by "(i * 3)" and then immediately right shift by "(i * 3)"
    then we mask.  It should be left shift, mask, and then right shift.
    
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    Dan Carpenter authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ca8a30e View commit details
    Browse the repository at this point in the history
  135. mwifiex: restart rxreorder timer correctly

    During 11n RX reordering, if there is a hole in RX table,
    driver will not send packets to kernel until the rxreorder
    timer expires or the table is full.
    However, currently driver always restarts rxreorder timer when
    receiving a packet, which causes the timer hardly to expire.
    So while connected with to 11n AP in a busy environment,
    ping packets may get blocked for about 30 seconds.
    
    This patch fixes this timer restarting by ensuring rxreorder timer
    would only be restarted either timer is not set or start_win
    has changed.
    
    Signed-off-by: Chin-Ran Lo <crlo@marvell.com>
    Signed-off-by: Plus Chen <pchen@marvell.com>
    Signed-off-by: Marc Yang <yangyang@marvell.com>
    Signed-off-by: Cathy Luo <cluo@marvell.com>
    Signed-off-by: Avinash Patil <patila@marvell.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    marcyang authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a159d61 View commit details
    Browse the repository at this point in the history
  136. rtlwifi: rtl8192ce: rtl8192de: rtl8192se: Fix handling for missing ge…

    …t_btc_status
    
    The recent changes in checking for Bluetooth status added some callbacks to code
    in rtlwifi. To make certain that all callbacks are defined, a dummy routine has been
    added to rtlwifi, and the drivers that need to use it are modified.
    
    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Cc: Murilo Opsfelder Araujo <mopsfelder@gmail.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    lwfinger authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    1e77c36 View commit details
    Browse the repository at this point in the history
  137. rtlwifi: rtl8192se: Fix duplicate calls to ieee80211_register_hw()

    Driver rtlwifi has been modified to call ieee80211_register_hw()
    from the probe routine; however, the existing call in the callback
    routine for deferred firmware loading was not removed.
    
    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Cc: Murilo Opsfelder Araujo <mopsfelder@gmail.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    lwfinger authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a743a76 View commit details
    Browse the repository at this point in the history
  138. rtlwifi: rtl8192se: Add missing section to read descriptor setting

    The new version of rtlwifi needs code in rtl92se_get_desc() that returns
    the buffer address for read operations.
    
    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Cc: Murilo Opsfelder Araujo <mopsfelder@gmail.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    lwfinger authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    c0ac179 View commit details
    Browse the repository at this point in the history
  139. rtlwifi: rtl8192ce: Add missing section to read descriptor setting

    The new version of rtlwifi needs code in rtl92ce_get_desc() that returns
    the buffer address for read operations.
    
    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Cc: Murilo Opsfelder Araujo <mopsfelder@gmail.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    lwfinger authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    c843ed0 View commit details
    Browse the repository at this point in the history
  140. rtlwifi: rtl8192se: Fix firmware loading

    An error in the code makes the allocated space for firmware to be too
    small.
    
    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Cc: Murilo Opsfelder Araujo <mopsfelder@gmail.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    lwfinger authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    bef4a2f View commit details
    Browse the repository at this point in the history
  141. r8152: clear SELECTIVE_SUSPEND when autoresuming

    The flag of SELECTIVE_SUSPEND should be cleared when autoresuming.
    Otherwise, when the system suspend and resume occur, it may have
    the wrong flow.
    
    Besides, because the flag of SELECTIVE_SUSPEND couldn't be used
    to check if the hw enables the relative feature, it should alwayes
    be disabled in close().
    
    Signed-off-by: Hayes Wang <hayeswang@realtek.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    hayesorz authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    be65302 View commit details
    Browse the repository at this point in the history
  142. r8152: reset tp->speed before autoresuming in open function

    If (tp->speed & LINK_STATUS) is not zero, the rtl8152_resume()
    would call rtl_start_rx() before enabling the tx/rx. Avoid this
    by resetting it to zero.
    
    Signed-off-by: Hayes Wang <hayeswang@realtek.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    hayesorz authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    3c1a3d7 View commit details
    Browse the repository at this point in the history
  143. r8152: check WORK_ENABLE in suspend function

    Avoid unnecessary behavior when autosuspend occurs during open().
    The relative processes should only be run after finishing open().
    
    Signed-off-by: Hayes Wang <hayeswang@realtek.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    hayesorz authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ce2fb3a View commit details
    Browse the repository at this point in the history
  144. cxgb4 : Fix missing initialization of win0_lock

    win0_lock was being used un-initialized, resulting in warning traces
    being seen when lock debugging is enabled (and just wrong)
    
    Fixes : fc5ab02 ('cxgb4: Replaced the backdoor mechanism to access the HW
     memory with PCIe Window method')
    
    Signed-off-by: Anish Bhatt <anish@chelsio.com>
    Signed-off-by: Casey Leedom <leedom@chelsio.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    anish authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    0ac0184 View commit details
    Browse the repository at this point in the history
  145. fs: allow open(dir, O_TMPFILE|..., 0) with mode 0

    The man page for open(2) indicates that when O_CREAT is specified, the
    'mode' argument applies only to future accesses to the file:
    
    	Note that this mode applies only to future accesses of the newly
    	created file; the open() call that creates a read-only file
    	may well return a read/write file descriptor.
    
    The man page for open(2) implies that 'mode' is treated identically by
    O_CREAT and O_TMPFILE.
    
    O_TMPFILE, however, behaves differently:
    
    	int fd = open("/tmp", O_TMPFILE | O_RDWR, 0);
    	assert(fd == -1);
    	assert(errno == EACCES);
    
    	int fd = open("/tmp", O_TMPFILE | O_RDWR, 0600);
    	assert(fd > 0);
    
    For O_CREAT, do_last() sets acc_mode to MAY_OPEN only:
    
    	if (*opened & FILE_CREATED) {
    		/* Don't check for write permission, don't truncate */
    		open_flag &= ~O_TRUNC;
    		will_truncate = false;
    		acc_mode = MAY_OPEN;
    		path_to_nameidata(path, nd);
    		goto finish_open_created;
    	}
    
    But for O_TMPFILE, do_tmpfile() passes the full op->acc_mode to
    may_open().
    
    This patch lines up the behavior of O_TMPFILE with O_CREAT. After the
    inode is created, may_open() is called with acc_mode = MAY_OPEN, in
    do_tmpfile().
    
    A different, but related glibc bug revealed the discrepancy:
    https://sourceware.org/bugzilla/show_bug.cgi?id=17523
    
    The glibc lazily loads the 'mode' argument of open() and openat() using
    va_arg() only if O_CREAT is present in 'flags' (to support both the 2
    argument and the 3 argument forms of open; same idea for openat()).
    However, the glibc ignores the 'mode' argument if O_TMPFILE is in
    'flags'.
    
    On x86_64, for open(), it magically works anyway, as 'mode' is in
    RDX when entering open(), and is still in RDX on SYSCALL, which is where
    the kernel looks for the 3rd argument of a syscall.
    
    But openat() is not quite so lucky: 'mode' is in RCX when entering the
    glibc wrapper for openat(), while the kernel looks for the 4th argument
    of a syscall in R10. Indeed, the syscall calling convention differs from
    the regular calling convention in this respect on x86_64. So the kernel
    sees mode = 0 when trying to use glibc openat() with O_TMPFILE, and
    fails with EACCES.
    
    Signed-off-by: Eric Rannaud <e@nanocritical.com>
    Acked-by: Andy Lutomirski <luto@amacapital.net>
    Cc: stable@vger.kernel.org
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    ericrannaud authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a2d5575 View commit details
    Browse the repository at this point in the history
  146. ipv4: Do not cache routing failures due to disabled forwarding.

    If we cache them, the kernel will reuse them, independently of
    whether forwarding is enabled or not.  Which means that if forwarding is
    disabled on the input interface where the first routing request comes
    from, then that unreachable result will be cached and reused for
    other interfaces, even if forwarding is enabled on them.  The opposite
    is also true.
    
    This can be verified with two interfaces A and B and an output interface
    C, where B has forwarding enabled, but not A and trying
    ip route get $dst iif A from $src && ip route get $dst iif B from $src
    
    Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
    Reviewed-by: Julian Anastasov <ja@ssi.bg>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Nicolas Cavallari authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    bf1064b View commit details
    Browse the repository at this point in the history
  147. net/mlx4_en: Don't attempt to TX offload the outer UDP checksum for V…

    …XLAN
    
    For VXLAN/NVGRE encapsulation, the current HW doesn't support offloading
    both the outer UDP TX checksum and the inner TCP/UDP TX checksum.
    
    The driver doesn't advertize SKB_GSO_UDP_TUNNEL_CSUM, however we are wrongly
    telling the HW to offload the outer UDP checksum for encapsulated packets,
    fix that.
    
    Fixes: 837052d ('net/mlx4_en: Add netdev support for TCP/IP
    		     offloads of vxlan tunneling')
    Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    ogerlitz authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    955029d View commit details
    Browse the repository at this point in the history
  148. mlx4: Avoid leaking steering rules on flow creation error flow

    If mlx4_ib_create_flow() attempts to create > 1 rules with the
    firmware, and one of these registrations fail, we leaked the
    already created flow rules.
    
    One example of the leak is when the registration of the VXLAN ghost
    steering rule fails, we didn't unregister the original rule requested
    by the user, introduced in commit d2fce8a "mlx4: Set
    user-space raw Ethernet QPs to properly handle VXLAN traffic".
    
    While here, add dump of the VXLAN portion of steering rules
    so it can actually be seen when flow creation fails.
    
    Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    ogerlitz authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    70e83f8 View commit details
    Browse the repository at this point in the history
  149. gre: Use inner mac length when computing tunnel length

    Currently, skb_inner_network_header is used but this does not account
    for Ethernet header for ETH_P_TEB. Use skb_inner_mac_header which
    handles TEB and also should work with IP encapsulation in which case
    inner mac and inner network headers are the same.
    
    Tested: Ran TCP_STREAM over GRE, worked as expected.
    
    Signed-off-by: Tom Herbert <therbert@google.com>
    Acked-by: Alexander Duyck <alexander.h.duyck@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Tom Herbert authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    4e5167b View commit details
    Browse the repository at this point in the history
  150. net: skb_fclone_busy() needs to detect orphaned skb

    Some drivers are unable to perform TX completions in a bound time.
    They instead call skb_orphan()
    
    Problem is skb_fclone_busy() has to detect this case, otherwise
    we block TCP retransmits and can freeze unlucky tcp sessions on
    mostly idle hosts.
    
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Fixes: 1f3279a ("tcp: avoid retransmits of TCP packets hanging in host queues")
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Eric Dumazet authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    23861ae View commit details
    Browse the repository at this point in the history
  151. drivers/net: Disable UFO through virtio

    IPv6 does not allow fragmentation by routers, so there is no
    fragmentation ID in the fixed header.  UFO for IPv6 requires the ID to
    be passed separately, but there is no provision for this in the virtio
    net protocol.
    
    Until recently our software implementation of UFO/IPv6 generated a new
    ID, but this was a bug.  Now we will use ID=0 for any UFO/IPv6 packet
    passed through a tap, which is even worse.
    
    Unfortunately there is no distinction between UFO/IPv4 and v6
    features, so disable UFO on taps and virtio_net completely until we
    have a proper solution.
    
    We cannot depend on VM managers respecting the tap feature flags, so
    keep accepting UFO packets but log a warning the first time we do
    this.
    
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    Fixes: 916e4cf ("ipv6: reuse ip6_frag_id from ip6_ufo_append_data")
    Signed-off-by: David S. Miller <davem@davemloft.net>
    bwhacks authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    5037469 View commit details
    Browse the repository at this point in the history
  152. drivers/net, ipv6: Select IPv6 fragment idents for virtio UFO packets

    UFO is now disabled on all drivers that work with virtio net headers,
    but userland may try to send UFO/IPv6 packets anyway.  Instead of
    sending with ID=0, we should select identifiers on their behalf (as we
    used to).
    
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    Fixes: 916e4cf ("ipv6: reuse ip6_frag_id from ip6_ufo_append_data")
    Signed-off-by: David S. Miller <davem@davemloft.net>
    bwhacks authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    331ed3a View commit details
    Browse the repository at this point in the history
  153. tracing/syscalls: Ignore numbers outside NR_syscalls' range

    ARM has some private syscalls (for example, set_tls(2)) which lie
    outside the range of NR_syscalls.  If any of these are called while
    syscall tracing is being performed, out-of-bounds array access will
    occur in the ftrace and perf sys_{enter,exit} handlers.
    
     # trace-cmd record -e raw_syscalls:* true && trace-cmd report
     ...
     true-653   [000]   384.675777: sys_enter:            NR 192 (0, 1000, 3, 4000022, ffffffff, 0)
     true-653   [000]   384.675812: sys_exit:             NR 192 = 1995915264
     true-653   [000]   384.675971: sys_enter:            NR 983045 (76f74480, 76f74000, 76f74b28, 76f74480, 76f76f74, 1)
     true-653   [000]   384.675988: sys_exit:             NR 983045 = 0
     ...
    
     # trace-cmd record -e syscalls:* true
     [   17.289329] Unable to handle kernel paging request at virtual address aaaaaace
     [   17.289590] pgd = 9e71c000
     [   17.289696] [aaaaaace] *pgd=00000000
     [   17.289985] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
     [   17.290169] Modules linked in:
     [   17.290391] CPU: 0 PID: 704 Comm: true Not tainted 3.18.0-rc2+ #21
     [   17.290585] task: 9f4dab00 ti: 9e710000 task.ti: 9e710000
     [   17.290747] PC is at ftrace_syscall_enter+0x48/0x1f8
     [   17.290866] LR is at syscall_trace_enter+0x124/0x184
    
    Fix this by ignoring out-of-NR_syscalls-bounds syscall numbers.
    
    Commit cd0980f "tracing: Check invalid syscall nr while tracing syscalls"
    added the check for less than zero, but it should have also checked
    for greater than NR_syscalls.
    
    Link: http://lkml.kernel.org/p/1414620418-29472-1-git-send-email-rabin@rab.in
    
    Fixes: cd0980f "tracing: Check invalid syscall nr while tracing syscalls"
    Cc: stable@vger.kernel.org # 2.6.33+
    Signed-off-by: Rabin Vincent <rabin@rab.in>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
    vitkyrka authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    c1ce1ac View commit details
    Browse the repository at this point in the history
  154. drivers/net: macvtap and tun depend on INET

    These drivers now call ipv6_proxy_select_ident(), which is defined
    only if CONFIG_INET is enabled.  However, they have really depended
    on CONFIG_INET for as long as they have allowed sending GSO packets
    from userland.
    
    Reported-by: kbuild test robot <fengguang.wu@intel.com>
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    Fixes: f43798c ("tun: Allow GSO using virtio_net_hdr")
    Fixes: b9fb9ee ("macvtap: add GSO/csum offload support")
    Fixes: 5188cd4 ("drivers/net, ipv6: Select IPv6 fragment idents for virtio UFO packets")
    Signed-off-by: David S. Miller <davem@davemloft.net>
    bwhacks authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    84f8ec6 View commit details
    Browse the repository at this point in the history
  155. powerpc: do_notify_resume can be called with bad thread_info flags ar…

    …gument
    
    Back in 7230c56 ("powerpc: Rework lazy-interrupt handling") we
    added a call out to restore_interrupts() (written in c) before calling
    do_notify_resume:
    
            bl      restore_interrupts
            addi    r3,r1,STACK_FRAME_OVERHEAD
            bl      do_notify_resume
    
    Unfortunately do_notify_resume takes two arguments, the second one
    being the thread_info flags:
    
    void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags)
    
    We do populate r4 (the second argument) earlier, but
    restore_interrupts() is free to muck it up all it wants. My guess is
    the gcc compiler gods shone down on us and its register allocator
    never used r4. Sometimes, rarely, luck is on our side.
    
    LLVM on the other hand did trample r4.
    
    Signed-off-by: Anton Blanchard <anton@samba.org>
    Cc: stable@vger.kernel.org
    Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
    antonblanchard authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    39ee2a6 View commit details
    Browse the repository at this point in the history
  156. powerpc/powernv: Properly fix LPC debugfs endianness

    Endian is hard, especially when I designed a stupid FW interface, and
    I should know better... oh well, this is attempt #2 at fixing this
    properly. This time it seems to work with all access sizes and I
    can run my flashing tool (which exercises all sort of access sizes
    and types to access the SPI controller in the BMC) just fine.
    
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    CC: stable@vger.kernel.org
    Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
    ozbenh authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a460961 View commit details
    Browse the repository at this point in the history
  157. drm/vmwgfx: fix lock breakage

    After:
    
    commit d059f65
    Author:     Daniel Vetter <daniel.vetter@ffwll.ch>
    AuthorDate: Fri Jul 25 18:07:40 2014 +0200
    
        drm: Handle legacy per-crtc locking with full acquire ctx
    
    drm_mode_cursor_common() was switched to use drm_modeset_(un)lock_crtc()
    which uses full aquire ctx.  So dropping/reaquiring the lock via
    drm_modeset_(un)lock() directly isn't the right thing to do, as lockdep
    kindly points out.
    
    The 'FIXME's about sorting out whether vmwgfx *really* needs to lock-all
    for cursor updates still apply.
    
    Signed-off-by: Rob Clark <robdclark@gmail.com>
    Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
    Tested-by: Thomas Hellstrom <thellstrom@vmware.com>
    robclark authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    e0a0cd7 View commit details
    Browse the repository at this point in the history
  158. drm/vmwgfx: Fix hash key computation

    The hash key computation in vmw_cmdbuf_res_remove incorrectly didn't take
    the resource type into account, contrary to all the other related functions.
    This becomes important when the cmdbuf resource manager handles more than
    one resource type.
    
    Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
    Reviewed-by: Brian Paul <brianp@vmware.com>
    thomashvmw authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    b9329c1 View commit details
    Browse the repository at this point in the history
  159. drm/vmwgfx: Filter out modes those cannot be supported by the current…

    … VRAM size.
    
    When screen objects are enabled, the bpp is assumed to be 32, otherwise
    it is set to 16.
    
    v2:
    * Use u32 instead of u64 for assumed_bpp.
    * Fixed mechanism to check for screen objects
    * Limit the back buffer size to VRAM.
    
    Signed-off-by: Sinclair Yeh <syeh@vmware.com>
    Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
    Cc: <stable@vger.kernel.org>
    Sinclair Yeh authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    60dba57 View commit details
    Browse the repository at this point in the history
  160. isofs: don't bother with ->d_op for normal case

    we only need it for joliet and case-insensitive mounts
    
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Al Viro authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    f5bfdcc View commit details
    Browse the repository at this point in the history
  161. Return short read or 0 at end of a raw device, not EIO

    Author: David Jeffery <djeffery@redhat.com>
    Changes to the basic direct I/O code have broken the raw driver when reading
    to the end of a raw device.  Instead of returning a short read for a read that
    extends partially beyond the device's end or 0 when at the end of the device,
    these reads now return EIO.
    
    The raw driver needs the same end of device handling as was added for normal
    block devices.  Using blkdev_read_iter, which has the needed size checks,
    prevents the EIO conditions at the end of the device.
    
    Signed-off-by: David Jeffery <djeffery@redhat.com>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    David Jeffery authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    b80273f View commit details
    Browse the repository at this point in the history
  162. netfilter: nf_tables_bridge: update hook_mask to allow {pre,post}routing

    Fixes: 36d2af5 ("netfilter: nf_tables: allow to filter from prerouting and postrouting")
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    ummakynes authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    53fdd9c View commit details
    Browse the repository at this point in the history
  163. netfilter: nf_reject_ipv4: split nf_send_reset() in smaller functions

    That can be reused by the reject bridge expression to build the reject
    packet. The new functions are:
    
    * nf_reject_ip_tcphdr_get(): to sanitize and to obtain the TCP header.
    * nf_reject_iphdr_put(): to build the IPv4 header.
    * nf_reject_ip_tcphdr_put(): to build the TCP header.
    
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    ummakynes authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    8d8b8f2 View commit details
    Browse the repository at this point in the history
  164. netfilter: nf_reject_ipv6: split nf_send_reset6() in smaller functions

    That can be reused by the reject bridge expression to build the reject
    packet. The new functions are:
    
    * nf_reject_ip6_tcphdr_get(): to sanitize and to obtain the TCP header.
    * nf_reject_ip6hdr_put(): to build the IPv6 header.
    * nf_reject_ip6_tcphdr_put(): to build the TCP header.
    
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    ummakynes authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    60d9fb2 View commit details
    Browse the repository at this point in the history
  165. netfilter: nft_reject_bridge: don't use IP stack to reject traffic

    If the packet is received via the bridge stack, this cannot reject
    packets from the IP stack.
    
    This adds functions to build the reject packet and send it from the
    bridge stack. Comments and assumptions on this patch:
    
    1) Validate the IPv4 and IPv6 headers before further processing,
       given that the packet comes from the bridge stack, we cannot assume
       they are clean. Truncated packets are dropped, we follow similar
       approach in the existing iptables match/target extensions that need
       to inspect layer 4 headers that is not available. This also includes
       packets that are directed to multicast and broadcast ethernet
       addresses.
    
    2) br_deliver() is exported to inject the reject packet via
       bridge localout -> postrouting. So the approach is similar to what
       we already do in the iptables reject target. The reject packet is
       sent to the bridge port from which we have received the original
       packet.
    
    3) The reject packet is forged based on the original packet. The TTL
       is set based on sysctl_ip_default_ttl for IPv4 and per-net
       ipv6.devconf_all hoplimit for IPv6.
    
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    ummakynes authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    bce19f9 View commit details
    Browse the repository at this point in the history
  166. netfilter: nft_reject_bridge: restrict reject to prerouting and input

    Restrict the reject expression to the prerouting and input bridge
    hooks. If we allow this to be used from forward or any other later
    bridge hook, if the frame is flooded to several ports, we'll end up
    sending several reject packets, one per cloned packet.
    
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    ummakynes authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ef59121 View commit details
    Browse the repository at this point in the history
  167. Input: max77693-haptic - fix potential overflow

    Expression haptic->pwm_dev->period * haptic->magnitude is of type
    'unsigned int' and may overflow. We need to convert one of the operands
    to u64 before multiplying, instead of casting result (potentially
    overflown) to u64.
    
    Reported by Coverity: CID 1248753
    
    Acked-by : Jaewon Kim <jaewon02.kim@samsung.com>
    Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    dtor authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    d8e97d5 View commit details
    Browse the repository at this point in the history
  168. Input: altera_ps2 - write to correct register when disabling interrupts

    In altera_ps2_close, the data register (offset 0) is written instead of
    the control register (offset 4), leading to the RX interrupt not being
    disabled. Fix this by calling writel() with the offset for the proper
    register.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    tklauser authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    d1c38e7 View commit details
    Browse the repository at this point in the history
  169. Input: altera_ps2 - use correct type for irq return value

    The irq function altera_ps2_rxint returns an irqreturn_t, so use the
    same type for variable storing the return value.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    tklauser authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    0c1a6c8 View commit details
    Browse the repository at this point in the history
  170. Revert "Input: i8042 - disable active multiplexing by default"

    This reverts commit 68da166.
    
    It turns out that the assertion about scope of regressions due to
    always keeping keyboard controller in legacy mode was proven wrong.
    There are laptops, such as Clevo W650SH, that only have internal
    touchpad (no external PS/2 ports), that require active multiplexing
    mode to switch the touchpad (Elantech) into native mode instead of
    basic PS/2 emulation.
    
    Reported-by: Roel Aaij <roel.aaij@gmail.com>
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    dtor authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    4437658 View commit details
    Browse the repository at this point in the history
  171. r8152: stop submitting intr for -EPROTO

    For Renesas USB 3.0 host controller, when unplugging the usb hub which
    has the RTL8153 plugged, the driver would get -EPROTO for interrupt
    transfer. There is high probability to get the information of "HC died;
    cleaning up", if the driver continues to submit the interrupt transfer
    before the disconnect() is called.
    
    [ 1024.197678] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.213673] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.229668] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.245661] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.261653] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.277648] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.293642] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.309638] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.325633] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.341627] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.357621] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.373615] r8152 9-1.4:1.0 eth0: intr status -71
    [ 1024.383097] usb 9-1: USB disconnect, device number 2
    [ 1024.383103] usb 9-1.4: USB disconnect, device number 6
    [ 1029.391010] xhci_hcd 0000:04:00.0: xHCI host not responding to stop endpoint command.
    [ 1029.391016] xhci_hcd 0000:04:00.0: Assuming host is dying, halting host.
    [ 1029.392551] xhci_hcd 0000:04:00.0: HC died; cleaning up
    [ 1029.421480] usb 8-1: USB disconnect, device number 2
    
    Signed-off-by: Hayes Wang <hayeswang@realtek.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    hayesorz authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    580c3e7 View commit details
    Browse the repository at this point in the history
  172. mpls: Fix mpls_gso handler.

    mpls gso handler needs to pull skb after segmenting skb.
    
    CC: Simon Horman <simon.horman@netronome.com>
    Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
    Acked-by: Simon Horman <simon.horman@netronome.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Pravin B Shelar authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    d9cbd63 View commit details
    Browse the repository at this point in the history
  173. mpls: Allow mpls_gso to be built as module

    Kconfig already allows mpls to be built as module. Following patch
    fixes Makefile to do same.
    
    CC: Simon Horman <simon.horman@netronome.com>
    Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
    Acked-by: Simon Horman <simon.horman@netronome.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Pravin B Shelar authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    57d1b11 View commit details
    Browse the repository at this point in the history
  174. sunvdc: don't call VD_OP_GET_VTOC

    The VD_OP_GET_VTOC operation will succeed only if the vdisk backend has a
    VTOC label, otherwise it will fail. In particular, it will return error
    48 (ENOTSUP) if the disk has an EFI label. VTOC disk labels are already
    handled by directly reading the disk in block/partitions/sun.c (enabled by
    CONFIG_SUN_PARTITION which defaults to y on SPARC). Since port->label is
    unused in the driver, remove the call and the field.
    
    Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Dwight Engen authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    819c8b7 View commit details
    Browse the repository at this point in the history
  175. net: smc91x: Fix gpios for device tree based booting

    With legacy booting, the platform init code was taking care of
    the configuring of GPIOs. With device tree based booting, things
    may or may not work depending what bootloader has configured or
    if the legacy platform code gets called.
    
    Let's add support for the pwrdn and reset GPIOs to the smc91x
    driver to fix the issues of smc91x not working properly when
    booted in device tree mode.
    
    And let's change n900 to use these settings as some versions
    of the bootloader do not configure things properly causing
    errors.
    
    Reported-by: Kevin Hilman <khilman@linaro.org>
    Signed-off-by: Tony Lindgren <tony@atomide.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    tmlind authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ddb1670 View commit details
    Browse the repository at this point in the history
  176. stmmac: pci: set default of the filter bins

    The commit 3b57de9 brought the support for a different amount of the
    filter bins, but didn't update the PCI driver accordingly. This patch appends
    the default values when the device is enumerated via PCI bus.
    
    Fixes: 3b57de9 (net: stmmac: Support devicetree configs for mcast and ucast filter entries)
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: David S. Miller <davem@davemloft.net>
    andy-shev authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    96aa801 View commit details
    Browse the repository at this point in the history
  177. net: ethtool: Return -EOPNOTSUPP if user space tries to read EEPROM w…

    …ith lengh 0
    
    If a driver supports reading EEPROM but no EEPROM is installed in the system,
    the driver's get_eeprom_len function returns 0. ethtool will subsequently
    try to read that zero-length EEPROM anyway. If the driver does not support
    EEPROM access at all, this operation will return -EOPNOTSUPP. If the driver
    does support EEPROM access but no EEPROM is installed, the operation will
    return -EINVAL. Return -EOPNOTSUPP in both cases for consistency.
    
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Tested-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    groeck authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    865c40f View commit details
    Browse the repository at this point in the history
  178. drivers: net: cpsw: Fix broken loop condition in switch mode

    0d961b3 (drivers: net: cpsw: fix buggy
    loop condition) accidentally fixed a loop comparison in too many places
    while fixing a real bug.
    
    It was correct to fix the dual_emac mode section since there 'i' is used
    as an index into priv->slaves which is a 0 based array.
    
    However the other two changes (which are only used in switch mode)
    are wrong since there 'i' is actually the ALE port number, and port 0
    is the host port, while port 1 and up are the slave ports.
    
    Putting the loop condition back in the switch mode section fixes it.
    
    A comment has been added to point out the intent clearly to avoid future
    confusion.  Also a comment is fixed that said the opposite of what was
    actually happening.
    
    Signed-off-by: Len Sorensen <lsorense@csclub.uwaterloo.ca>
    Acked-by: Heiko Schocher <hs@denx.de>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Lennart Sorensen authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    5dc6365 View commit details
    Browse the repository at this point in the history
  179. drivers: net: cpsw: Support ALLMULTI and fix IFF_PROMISC in switch mode

    The cpsw driver did not support the IFF_ALLMULTI flag which makes dynamic
    multicast routing not work.  Related to this, when enabling IFF_PROMISC
    in switch mode, all registered multicast addresses are flushed, resulting
    in only broadcast and unicast traffic being received.
    
    A new cpsw_ale_set_allmulti function now scans through the ALE entry
    table and adds/removes the host port from the unregistered multicast
    port mask of each vlan entry depending on the state of IFF_ALLMULTI.
    In promiscious mode, cpsw_ale_set_allmulti is used to force reception
    of all multicast traffic in addition to the unicast and broadcast traffic.
    
    With this change dynamic multicast and promiscious mode both work in
    switch mode.
    
    Signed-off-by: Len Sorensen <lsorense@csclub.uwaterloo.ca>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Lennart Sorensen authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    c3a0cdd View commit details
    Browse the repository at this point in the history
  180. libceph: eliminate unnecessary allocation in process_one_ticket()

    Commit c27a3e4 ("libceph: do not hard code max auth ticket len")
    while fixing a buffer overlow tried to keep the same as much of the
    surrounding code as possible and introduced an unnecessary kmalloc() in
    the unencrypted ticket path.  It is likely to fail on huge tickets, so
    get rid of it.
    
    Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
    Reviewed-by: Sage Weil <sage@redhat.com>
    idryomov authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    eae9902 View commit details
    Browse the repository at this point in the history
  181. ovl: initialize ->is_cursor

    Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Miklos Szeredi authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    6f38d9b View commit details
    Browse the repository at this point in the history
  182. x86_64, entry: Fix out of bounds read on sysenter

    Rusty noticed a Really Bad Bug (tm) in my NT fix.  The entry code
    reads out of bounds, causing the NT fix to be unreliable.  But, and
    this is much, much worse, if your stack is somehow just below the
    top of the direct map (or a hole), you read out of bounds and crash.
    
    Excerpt from the crash:
    
    [    1.129513] RSP: 0018:ffff88001da4bf88  EFLAGS: 00010296
    
      2b:*    f7 84 24 90 00 00 00     testl  $0x4000,0x90(%rsp)
    
    That read is deterministically above the top of the stack.  I
    thought I even single-stepped through this code when I wrote it to
    check the offset, but I clearly screwed it up.
    
    Fixes: 8c7aa69 ("x86_64, entry: Filter RFLAGS.NT on entry from userspace")
    Reported-by: Rusty Russell <rusty@ozlabs.org>
    Cc: stable@vger.kernel.org
    Signed-off-by: Andy Lutomirski <luto@amacapital.net>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    amluto authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    b851760 View commit details
    Browse the repository at this point in the history
  183. powerpc: use device_online/offline() instead of cpu_up/down()

    In powerpc pseries platform dlpar operations, use device_online() and
    device_offline() instead of cpu_up() and cpu_down().
    
    Calling cpu_up/down() directly does not update the cpu device offline
    field, which is used to online/offline a cpu from sysfs. Calling
    device_online/offline() instead keeps the sysfs cpu online value
    correct. The hotplug lock, which is required to be held when calling
    device_online/offline(), is already held when dlpar_online/offline_cpu()
    are called, since they are called only from cpu_probe|release_store().
    
    This patch fixes errors on phyp (PowerVM) systems that have cpu(s)
    added/removed using dlpar operations; without this patch, the
    /sys/devices/system/cpu/cpuN/online nodes do not correctly show the
    online state of added/removed cpus.
    
    Signed-off-by: Dan Streetman <ddstreet@ieee.org>
    Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>
    Fixes: 0902a90 ("Driver core: Use generic offline/online for CPU offline/online")
    Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
    ddstreet authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    6b93971 View commit details
    Browse the repository at this point in the history
  184. irqchip: armada-370-xp: Fix MSI interrupt handling

    The MSI interrupts use the 16 high doorbells, which are notified by using IRQ1
    of the main interrupt controller.
    
    The MSI interrupts were handled correctly for Armada-XP and Armada-370 but not
    for Armada-375 and Armada-38x, which use chained handler for the MPIC.
    
    This commit fixes that by checking proper interrupt number in chained handler
    for the MPIC.
    
    Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
    Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
    Fixes: bc69b8a ("irqchip: armada-370-xp: Setup a chained handler for the MPIC")
    Cc: <stable@vger.kernel.org> # v3.15+
    Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
    Link: https://lkml.kernel.org/r/1411643839-64925-2-git-send-email-jaz@semihalf.com
    Signed-off-by: Jason Cooper <jason@lakedaemon.net>
    jaszczyk-grzegorz authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ab73a40 View commit details
    Browse the repository at this point in the history
  185. irqchip: armada-370-xp: Fix MPIC interrupt handling

    In both Armada-375 and Armada-38x MPIC interrupts should be identified by
    reading cause register multiplied by the interrupt mask.
    
    A lack of above mentioned multiplication resulted in a bug, caused by the
    fact that in Armada-375 and Armada-38x some of the interrupts
    (e.g. network interrupts) can be handled either as a GIC or MPIC interrupts.
    Therefore during MPIC interrupts handling, cause register shows hits from
    interrupts even if they are masked for MPIC but unmasked for a GIC.
    
    This resulted in 'bad IRQ' error, because masked MPIC interrupt without
    registered interrupt handler, was trying to be handled during interrupt
    handling procedure of some other unmasked MPIC interrupt (e.g. local timer
    irq).
    
    This commit fixes that by ensuring that during MPIC interrupt handling only
    interrupts that are unmasked for MPIC are processed.
    
    Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
    Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
    Fixes: bc69b8a ("irqchip: armada-370-xp: Setup a chained handler for the MPIC")
    Cc: <stable@vger.kernel.org> # v3.15+
    Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
    Link: https://lkml.kernel.org/r/1411643839-64925-3-git-send-email-jaz@semihalf.com
    Signed-off-by: Jason Cooper <jason@lakedaemon.net>
    jaszczyk-grzegorz authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ac75e46 View commit details
    Browse the repository at this point in the history
  186. KVM: x86: Fix far-jump to non-canonical check

    Commit d1442d8 ("KVM: x86: Handle errors when RIP is set during far
    jumps") introduced a bug that caused the fix to be incomplete.  Due to
    incorrect evaluation, far jump to segment with L bit cleared (i.e., 32-bit
    segment) and RIP with any of the high bits set (i.e, RIP[63:32] != 0) set may
    not trigger #GP.  As we know, this imposes a security problem.
    
    In addition, the condition for two warnings was incorrect.
    
    Fixes: d1442d8
    Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
    [Add #ifdef CONFIG_X86_64 to avoid complaints of undefined behavior. - Paolo]
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    anadav authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a6a0cb6 View commit details
    Browse the repository at this point in the history
  187. KVM: nVMX: Disable preemption while reading from shadow VMCS

    In order to access the shadow VMCS, we need to load it. At this point,
    vmx->loaded_vmcs->vmcs and the actually loaded one start to differ. If
    we now get preempted by Linux, vmx_vcpu_put and, on return, the
    vmx_vcpu_load will work against the wrong vmcs. That can cause
    copy_shadow_to_vmcs12 to corrupt the vmcs12 state.
    
    Fix the issue by disabling preemption during the copy operation.
    copy_vmcs12_to_shadow is safe from this issue as it is executed by
    vmx_vcpu_run when preemption is already disabled before vmentry.
    
    This bug is exposed by running Jailhouse within KVM on CPUs with
    shadow VMCS support.  Jailhouse never expects an interrupt pending
    vmexit, but the bug can cause it if, after copy_shadow_to_vmcs12
    is preempted, the active VMCS happens to have the virtual interrupt
    pending flag set in the CPU-based execution controls.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    jan-kiszka authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    8603bfe View commit details
    Browse the repository at this point in the history
  188. KVM: vmx: defer load of APIC access page address during reset

    Most call paths to vmx_vcpu_reset do not hold the SRCU lock.  Defer loading
    the APIC access page to the next vmentry.
    
    This avoids the following lockdep splat:
    
    [ INFO: suspicious RCU usage. ]
    3.18.0-rc2-test2+ #70 Not tainted
    -------------------------------
    include/linux/kvm_host.h:474 suspicious rcu_dereference_check() usage!
    
    other info that might help us debug this:
    
    rcu_scheduler_active = 1, debug_locks = 0
    1 lock held by qemu-system-x86/2371:
     #0:  (&vcpu->mutex){+.+...}, at: [<ffffffffa037d800>] vcpu_load+0x20/0xd0 [kvm]
    
    stack backtrace:
    CPU: 4 PID: 2371 Comm: qemu-system-x86 Not tainted 3.18.0-rc2-test2+ #70
    Hardware name: Dell Inc. OptiPlex 9010/0M9KCM, BIOS A12 01/10/2013
     0000000000000001 ffff880209983ca8 ffffffff816f514f 0000000000000000
     ffff8802099b8990 ffff880209983cd8 ffffffff810bd687 00000000000fee00
     ffff880208a2c000 ffff880208a10000 ffff88020ef50040 ffff880209983d08
    Call Trace:
     [<ffffffff816f514f>] dump_stack+0x4e/0x71
     [<ffffffff810bd687>] lockdep_rcu_suspicious+0xe7/0x120
     [<ffffffffa037d055>] gfn_to_memslot+0xd5/0xe0 [kvm]
     [<ffffffffa03807d3>] __gfn_to_pfn+0x33/0x60 [kvm]
     [<ffffffffa0380885>] gfn_to_page+0x25/0x90 [kvm]
     [<ffffffffa038aeec>] kvm_vcpu_reload_apic_access_page+0x3c/0x80 [kvm]
     [<ffffffffa08f0a9c>] vmx_vcpu_reset+0x20c/0x460 [kvm_intel]
     [<ffffffffa039ab8e>] kvm_vcpu_reset+0x15e/0x1b0 [kvm]
     [<ffffffffa039ac0c>] kvm_arch_vcpu_setup+0x2c/0x50 [kvm]
     [<ffffffffa037f7e0>] kvm_vm_ioctl+0x1d0/0x780 [kvm]
     [<ffffffff810bc664>] ? __lock_is_held+0x54/0x80
     [<ffffffff812231f0>] do_vfs_ioctl+0x300/0x520
     [<ffffffff8122ee45>] ? __fget+0x5/0x250
     [<ffffffff8122f0fa>] ? __fget_light+0x2a/0xe0
     [<ffffffff81223491>] SyS_ioctl+0x81/0xa0
     [<ffffffff816fed6d>] system_call_fastpath+0x16/0x1b
    
    Reported-by: Takashi Iwai <tiwai@suse.de>
    Reported-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
    Reviewed-by: Wanpeng Li <wanpeng.li@linux.intel.com>
    Tested-by: Wanpeng Li <wanpeng.li@linux.intel.com>
    Fixes: 38b9917
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    bonzini authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    5356c2d View commit details
    Browse the repository at this point in the history
  189. drm/exynos: init vblank with real number of crtcs

    Initialization of vblank with MAX_CRTC caused attempts
    to disabling vblanks for non-existing crtcs in case
    drm used fewer crtcs. The patch fixes it.
    
    Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Andrzej Hajda authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    8c20e4b View commit details
    Browse the repository at this point in the history
  190. drm/exynos: remove explicit encoder/connector de-initialization

    All KMS objects are destroyed by drm_mode_config_cleanup in proper order
    so component drivers should not care about it.
    
    Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Andrzej Hajda authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ce3a5c4 View commit details
    Browse the repository at this point in the history
  191. drm/exynos: vidi: fix build warning

    encoder object isn't used anymore so remove it.
    
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    daeinki authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    181b143 View commit details
    Browse the repository at this point in the history
  192. drm/exynos: propagate plane initialization errors

    In case of error during plane initialization load callback
    incorrectly return success, this patch fixes it.
    
    Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Andrzej Hajda authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    631046a View commit details
    Browse the repository at this point in the history
  193. drm/exynos: init kms poll at the end of initialization

    HPD events can be generated by components even if drm_dev is not fully
    initialized, to skip such events kms poll initialization should
    be performed at the end of load callback followed directly by forced
    connection detection.
    
    Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Andrzej Hajda authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    c8143fc View commit details
    Browse the repository at this point in the history
  194. drm/exynos: enable vblank after DPMS on

    Before DPMS off driver disables vblank.
    It should be balanced by vblank enable after DPMS on.
    The patch fixes issue with page_flip ioctl not being able
    to acquire vblank counter introduced by patch:
    drm: Always reject drm_vblank_get() after drm_vblank_off()
    
    Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Andrzej Hajda authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ad64784 View commit details
    Browse the repository at this point in the history
  195. drm/exynos: correct connector->dpms field before resuming

    During system suspend after connector switch off its dpms field
    is set to connector previous dpms state. To properly resume dpms field
    should be set to its actual state (off) before resuming to previous dpms state.
    
    Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
    Signed-off-by: Inki Dae <inki.dae@samsung.com>
    Andrzej Hajda authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ae9732b View commit details
    Browse the repository at this point in the history
  196. irda: stop calling sk_prot->disconnect() on connection failure

    The sk_prot is irda's own set of protocol handlers, so irda should
    statically know what that function is anyway, without using an indirect
    pointer.  And as it happens, we know *exactly* what that pointer is
    statically: it's NULL, because irda doesn't define a disconnect
    operation.
    
    So calling that function is doubly wrong, and will just cause an oops.
    
    Reported-by: Martin Lang <mlg.hessigheim@gmail.com>
    Cc: Samuel Ortiz <samuel@sortiz.org>
    Cc: David Miller <davem@davemloft.net>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    torvalds authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    1f38be8 View commit details
    Browse the repository at this point in the history
  197. Linux 3.18-rc3

    torvalds authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    84943e0 View commit details
    Browse the repository at this point in the history
  198. thermal: exynos: remove unused struct exynos_tmu_registers entries

    Remove unused / write-only entries from struct exynos_tmu_registers.
    Then remove unused defines while at it.
    
    We don't keep the unused/untested features in the kernel just
    in case that some future hardware might need it.  Such code has
    a real maintainance cost (all other code changes have to take
    the dead code into account) and usually makes future changes
    more difficult, not easier (i.e. recent additions of Exynos5420
    SoC and Exynos5260 SoC thermal support has not made use of any
    of the driver's currently unused/untested features, moreover
    the recently added code is more complex than needed because of
    the existing dead code).  Also all removed dead code is still
    accessible in the kernel git repository and can be easily
    brought back if/when needed.
    
    There should be no functional changes caused by this patch.
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Tested-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    bzolnier authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    e78dcae View commit details
    Browse the repository at this point in the history
  199. thermal: exynos: remove dead code for HW_MODE calibration

    The commit 1928457 ("thermal: exynos: Add hardware mode thermal
    calibration support") has added HW_MODE feature but it has never
    been enabled.  As such it has been a dead code for over a year
    now and should be removed from the kernel.
    
    We don't keep the unused/untested features in the kernel just
    in case that some future hardware might need it.  Such code has
    a real maintainance cost (all other code changes have to take
    the dead code into account) and usually makes future changes
    more difficult, not easier (i.e. recent additions of Exynos5420
    SoC and Exynos5260 SoC thermal support has not made use of any
    of the driver's currently unused/untested features, moreover
    the recently added code is more complex than needed because of
    the existing dead code).  Also all removed dead code is still
    accessible in the kernel git repository and can be easily
    brought back if/when needed.
    
    There should be no functional changes caused by this patch.
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Tested-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    bzolnier authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    fb69de6 View commit details
    Browse the repository at this point in the history
  200. thermal: exynos: remove redundant pdata checks from exynos_tmu_initia…

    …lize()
    
    Remove runtime checks for pdata sanity from exynos_tmu_initialize().
    
    The current values hardcoded in pdata will never trigger the checks
    and checking itself is not proper.  The checks in question are done
    at runtime in a production code for data that is hardcoded inside
    driver during development time and later it doesn't change.  Such
    data should be verified during development and review time (i.e. by
    a script parsing relevant data from exynos_tmu_data.c, one can also
    argue that verification to be done is so simple that the review by
    a maintainer should be enough).
    
    There should be no functional changes caused by this patch.
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Tested-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    bzolnier authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    97dad7b View commit details
    Browse the repository at this point in the history
  201. thermal: exynos: remove redundant threshold_code checks from exynos_t…

    …mu_initialize()
    
    Remove runtime checks for negative return values of temp_to_code()
    from exynos_tmu_initialize().
    
    The current level temperature data hardcoded in pdata will never
    cause a negative temp_to_code() return values and checking itself
    is not proper.  The checks in question are done at runtime in
    a production code for data that is hardcoded inside driver during
    development time and later it doesn't change.  Such data should
    be verified during development and review time (i.e. by a script
    parsing relevant data from exynos_tmu_data.c, one can also argue
    that verification to be done is so simple that the review by
    a maintainer should be enough).
    
    Theres should be no functional changes caused by this patch.
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Tested-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    bzolnier authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    be5a6d1 View commit details
    Browse the repository at this point in the history
  202. thermal: exynos: simplify temp_to_code() and code_to_temp()

    * Remove dead temp check from temp_to_code() (this function users
      in exynos_tmu_initialize() always pass correct temperatures and
      exynos_tmu_set_emulation() returns early for EXYNOS4210 because
      TMU_SUPPORT_EMULATION flag is not set on this SoC).
    
    * Move temp_code check from code_to_temp() to exynos_tmu_read()
      (code_to_temp() only user).
    
    There should be no functional changes caused by this patch.
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Reviewed-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Tested-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    bzolnier authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    1ed03f0 View commit details
    Browse the repository at this point in the history
  203. thermal: exynos: cache non_hw_trigger_levels in pdata

    Cache number of non-hardware trigger levels in a new pdata field
    (non_hw_trigger_levels) and convert code in exynos_tmu_initialize()
    accordingly.
    
    There should be no functional changes caused by this patch.
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Reviewed-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Tested-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    bzolnier authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    9e7d233 View commit details
    Browse the repository at this point in the history
  204. thermal: exynos: remove redundant pdata checks from exynos_tmu_control()

    pdata->reference_voltage and pdata->gain are always defined
    to non-zero values so remove the redundant checks from
    exynos_tmu_control().
    
    There should be no functional changes caused by this patch.
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Tested-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    bzolnier authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a0aa161 View commit details
    Browse the repository at this point in the history
  205. thermal: exynos: remove identical values from exynos*_tmu_registers s…

    …tructures
    
    There is no need for abstracting configuration for registers that
    are identical on all SoC types.
    
    There should be no functional changes caused by this patch.
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Tested-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    bzolnier authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    0c0c962 View commit details
    Browse the repository at this point in the history
  206. thermal: samsung: Exynos5260 and Exynos5420 should not use TRIM_RELOA…

    …D flag
    
    Currently these SoCs claim TRIM_RELOAD support but don't have
    triminfo_ctrl register address defined in their struct
    exynos_tmu_registers entries.  This causes incorrect write of
    value "1" to data->base + 0x00 address (which happens to be
    TRIMINFO register).  Additionally according to the documentation
    that I have neither Exynos5260 nor Exynos5420 support/require
    TRIM_RELOAD feature.  Thus fix the aforementioned issue by
    removing TMU_SUPPORT_TRIM_RELOAD flag for both Exynos5260 and
    Exynos5420.
    
    Cc: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
    Cc: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Cc: Eduardo Valentin <edubezval@gmail.com>
    Cc: Zhang Rui <rui.zhang@intel.com>
    Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    bzolnier authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    b2c4438 View commit details
    Browse the repository at this point in the history
  207. thermal: exynos: Add support for many TRIMINFO_CTRL registers

    This patch support many TRIMINFO_CTRL registers if specific Exynos SoC
    has one more TRIMINFO_CTRL registers. Also this patch uses proper 'RELOAD'
    shift/mask bit operation to set RELOAD feature instead of static value.
    
    Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Cc: Zhang Rui <rui.zhang@intel.com>
    Cc: Eduardo Valentin <edubezval@gmail.com>
    Cc: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Reviewed-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    chanwoochoi authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    369c0b9 View commit details
    Browse the repository at this point in the history
  208. thermal: exynos: Add support for TRIM_RELOAD feature at Exynos3250

    This patch add support for TRIM_RELOAD feature at Exynos3250. The TMu of
    Exynos3250 has two TRIMINFO_CON register and must need to set RELOAD bit
    before reading TRIMINFO register.
    
    Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Cc: Zhang Rui <rui.zhang@intel.com>
    Cc: Eduardo Valentin <edubezval@gmail.com>
    Cc: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Reviewed-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    chanwoochoi authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    2412f2f View commit details
    Browse the repository at this point in the history
  209. thermal: rcar: Add binding docs for new R-Car Gen2 SoCs

      - r8a7792 (R-Car V2H)
      - r8a7793 (R-Car M2-N)
      - r8a7794 (R-Car E2)
    
    r8a7791 is now called "R-Car M2-W".
    
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    geertu authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    6ba5f74 View commit details
    Browse the repository at this point in the history
  210. thermal: fix multiple disbalanced device node counters

    Here on function return all temporarily used device nodes shall
    decrement their usage counter. The problems are found with device
    nodes allocated by for_each_child_of_node(), of_parse_phandle()
    and of_find_node_by_name(), fix all problems at once.
    
    Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
    Cc: devicetree@vger.kernel.org
    Cc: Zhang Rui <rui.zhang@intel.com>
    Cc: Eduardo Valentin <edubezval@gmail.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    vzapolskiy authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    55be9ff View commit details
    Browse the repository at this point in the history
  211. thermal: exynos: fix IRQ clearing on TMU initialization

    * Factor out code for clearing raised IRQs from exynos_tmu_work() to
      exynos_tmu_clear_irqs().
    
    * Add a comment about documentation bugs to exynos_tmu_clear_irqs().
    
      [ The documentation for Exynos3250, Exynos4412, Exynos5250 and
        Exynos5260 incorrectly states that INTCLEAR register has
        a different placing of bits responsible for FALL IRQs than
        INTSTAT register.  Exynos5420 and Exynos5440 documentation is
        correct (Exynos4210 doesn't support FALL IRQs at all). ]
    
    * Use exynos_tmu_clear_irqs() in exynos_tmu_initialize() instead
      of open-coded code trying to clear IRQs according to predefined
      masks.  After this change exynos_tmu_initialize() just clears
      IRQs that are raised like it is already done in exynos_tmu_work().
    
      As a nice side-effect the code now uses the correct offset
      (16 instead of 12) for bits responsible for clearing FALL IRQs
      in INTCLEAR register on Exynos3250, Exynos4412 and Exynos5250.
    
    * Remove no longer needed intclr_rise_[mask,shift] and
      intclr_fall_[mask,shift] fields from struct exynos_tmu_registers.
    
    * Remove no longer needed defines.
    
    This patch has been tested on Exynos4412 and Exynos5420 SoCs.
    
    Cc: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Cc: Lukasz Majewski <l.majewski@samsung.com>
    Cc: Eduardo Valentin <edubezval@gmail.com>
    Cc: Zhang Rui <rui.zhang@intel.com>
    Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    bzolnier authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    cbee2ab View commit details
    Browse the repository at this point in the history
  212. [media] ir-hix5hd2 fix build warning

    Change CONFIG_PM to CONFIG_PM_SLEEP to solve
    warning: 'hix5hd2_ir_suspend' & 'hix5hd2_ir_resume' defined but not used
    
    Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    zhangfeigao authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    cf167ff View commit details
    Browse the repository at this point in the history
  213. [media] imon: fix other RC type protocol support

    With kernel 3.17 the imon remote control for device 15c2:0034 does not
    work anymore, which uses the OTHER protocol. Only the front panel
    buttons which uses the RC6 protocol are working.
    
    Adds the missing comparison for the RC_BIT_OTHER.
    
    Cc: stable@vger.kernel.org # for Kernel 3.17
    Signed-off-by: Ulrich Eckhardt <uli@uli-eckhardt.de>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Ulrich Eckhardt authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    d5313d2 View commit details
    Browse the repository at this point in the history
  214. regulator: max77693: Fix use of uninitialized regulator config

    Driver allocated on stack struct regulator_config but didn't initialize
    it fully. Few fields (driver_data, ena_gpio) were left untouched. This
    lead to using random ena_gpio values as GPIOs for max77693 regulators.
    
    On occasion these values could match real GPIO numbers leading to
    interfering with other drivers and to unsuccessful enable/disable of
    regulator.
    
    Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    Fixes: 80b022e ("regulator: max77693: Add max77693 regualtor driver.")
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    krzk authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    3319c61 View commit details
    Browse the repository at this point in the history
  215. regulator: max1586: zero-initialize regulator match table array

    The struct of_regulator_match rmatch[] is declared as a non-static local
    variable so the structure members are not auto-initialized.
    
    Initialize the array at declaration time to avoid the structure members
    values to be indeterminate and have sane defaults instead.
    
    Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Javier Martinez Canillas authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ad9d8ee View commit details
    Browse the repository at this point in the history
  216. regulator: max77686: zero-initialize regulator match table

    The struct of_regulator_match is declared as a non-static local variable
    so the structure members are not auto-initialized.
    
    Initialize the struct at declaration time to avoid the structure members
    values to be indeterminate and have sane defaults instead.
    
    Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Javier Martinez Canillas authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    36ba8c4 View commit details
    Browse the repository at this point in the history
  217. regulator: max77802: zero-initialize regulator match table

    The struct of_regulator_match is declared as a non-static local variable
    so the structure members are not auto-initialized.
    
    Initialize the struct at declaration time to avoid the structure members
    values to be indeterminate and have sane defaults instead.
    
    Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Javier Martinez Canillas authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    c2f0503 View commit details
    Browse the repository at this point in the history
  218. regulator: max8660: zero-initialize regulator match table array

    The struct of_regulator_match rmatch[] is declared as a non-static local
    variable so the structure members are not auto-initialized.
    
    Initialize the array at declaration time to avoid the structure members
    values to be indeterminate and have sane defaults instead.
    
    Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Javier Martinez Canillas authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a9de203 View commit details
    Browse the repository at this point in the history
  219. regulator: s2mpa01: zero-initialize regulator match table array

    The struct of_regulator_match rmatch[] is declared as a non-static local
    variable so the structure members are not auto-initialized.
    
    Initialize the array at declaration time to avoid the structure members
    values to be indeterminate and have sane defaults instead.
    
    Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Javier Martinez Canillas authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a4f22cf View commit details
    Browse the repository at this point in the history
  220. [media] vivid: default to single planar device instances

    The default used to be that the first vivid device instance was
    single planar, the second multi planar, the third single planar, etc.
    
    However, that turned out to be unexpected and awkward. Change the
    driver to always default to single planar.
    
    Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Hans Verkuil authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    328df3e View commit details
    Browse the repository at this point in the history
  221. [media] dvb:tc90522: fix stats report

    * report the fixed per-transponder symbolrate instead of per-TS ones
    * add output TS-ID report
    
    Signed-off-by: Akihiro Tsukada <tskd08@gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Akihiro Tsukada authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    92f589b View commit details
    Browse the repository at this point in the history
  222. [media] dvb-core: set default properties of ISDB-S

    Signed-off-by: Akihiro Tsukada <tskd08@gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Akihiro Tsukada authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    f57e6f6 View commit details
    Browse the repository at this point in the history
  223. [media] dvb:tc90522: fix always-false expression

    Signed-off-by: Akihiro Tsukada <tskd08@gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Akihiro Tsukada authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    6a39187 View commit details
    Browse the repository at this point in the history
  224. ftracetest: Take the first debugfs mount found

    Running ftracetests on a box that mounted debugfs in two locations
    made the ftracetests fail. This is because the tests uses a grep
    of debugfs from the /proc/mounts file to find the debugfs mount
    point, and then appends "/tracing" to that string to get the tracing
    directory.
    
    If the debugfs directory is mounted twice, then that grep will return
    two answers and appending "/tracing" to a string with two lines will
    not work.
    
    Use "head -1" to only take the first mount point found.
    
    Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
    rostedt authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    c2644f3 View commit details
    Browse the repository at this point in the history
  225. [media] sp2: sp2_init() can be static

    drivers/media/dvb-frontends/sp2.c:269:5: sparse: symbol 'sp2_init' was not declared. Should it be static?
    drivers/media/dvb-frontends/sp2.c:351:5: sparse: symbol 'sp2_exit' was not declared. Should it be static?
    
    Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Fengguang Wu authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    7e5d900 View commit details
    Browse the repository at this point in the history
  226. Thermal:Remove usless if(!result) before return tz

    result is always zero when comes here.
    
    Signed-off-by: Yao Dongdong <yaodongdong@huawei.com>
    Acked-by: Eduardo Valentin <edubezval@gmail.com>
    Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
    Yao Dongdong authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    933e9de View commit details
    Browse the repository at this point in the history
  227. spi: fsl-dspi: Fix CTAR selection

    There are only 4 CTAR registers (CTAR0 - CTAR3) so we can only use the
    lower 2 bits of the chip select to select a CTAR register.
    SPI_PUSHR_CTAS used the lower 3 bits which would result in wrong bit values
    if the chip selects 4/5 are used. For those chip selects SPI_CTAR even
    calculated offsets of non-existing registers.
    
    Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Cc: stable@vger.kernel.org
    Alexander Stein authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    fe6bbe8 View commit details
    Browse the repository at this point in the history
  228. MIPS: Fix strnlen_user() return value in case of overlong strings.

    We were returning maxlen like the userland strnlen if no '\0' character
    was encountered while the kernel version is expected to return a value
    larger than maxlen.  Fixed to return maxlen + 1.
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    1aad612 View commit details
    Browse the repository at this point in the history
  229. ALSA: hda - fix mute led problem for three HP laptops

    Without the fix, the mute led can't work on these three machines.
    
    After apply this fix, these three machines will fall back on the led
    control quirk as below, and through testing, the mute led works very
    well.
    PIN_QUIRK(0x10ec0282, 0x103c, "HP", ALC269_FIXUP_HP_LINE1_MIC1_LED,
                ALC282_STANDARD_PINS,
                {0x12, 0x90a60140},
                ...
    
    BugLink: https://bugs.launchpad.net/bugs/1389497
    Tested-by: TieFu Chen <tienfu.chen@canonical.com>
    Cc: Kailang Yang <kailang@realtek.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Hui Wang <hui.wang@canonical.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    jason77-wang authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    f448527 View commit details
    Browse the repository at this point in the history
  230. mmc: core: fix card detection regression

    Since commit 89168b4 ("mmc: core: restore detect line inversion
    semantics"), the SD card on i.MX28 (and possibly other) devices isn't
    detected and booting stops at:
    
    [    4.120617] Waiting for root device /dev/mmcblk0p3...
    
    This is caused by the MMC_CAP2_CD_ACTIVE_HIGH flag being set incorrectly
    when the host controller doesn't use a GPIO for card detection (but
    instead uses a dedicated pin). In this case mmc_gpiod_request_cd() will
    return before assigning to the gpio_invert variable, leaving the
    variable uninitialized. The variable then gets used to set the flag.
    This patch fixes the issue by making sure gpio_invert is set to false
    when a GPIO isn't used. After this patch, i.MX28 boots fine.
    
    The MMC_CAP2_RO_ACTIVE_HIGH (write protect) flag is also set incorrectly
    for the exact same reason (it uses the same uninitialized variable), so
    this patch fixes that too.
    
    Fixes: 89168b4 ("mmc: core: restore detect line inversion semantics")
    Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
    Signed-off-by: Kristina Martšenko <kristina.martsenko@gmail.com>
    Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
    Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
    kristina-martsenko authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    82ef91d View commit details
    Browse the repository at this point in the history
  231. ovl: don't poison cursor

    ovl_cache_put() can be called from ovl_dir_reset() if the cache needs to be
    rebuilt.  We did list_del() on the cursor, which results in an Oops on the
    poisoned pointer in ovl_seek_cursor().
    
    Reported-by: Jordi Pujol Palomer <jordipujolp@gmail.com>
    Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
    Tested-by: Jordi Pujol Palomer <jordipujolp@gmail.com>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    szmi authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    ec0025a View commit details
    Browse the repository at this point in the history
  232. ALSA: usb-audio: Fix device_del() sysfs warnings at disconnect

    Some USB-audio devices show weird sysfs warnings at disconnecting the
    devices, e.g.
     usb 1-3: USB disconnect, device number 3
     ------------[ cut here ]------------
     WARNING: CPU: 0 PID: 973 at fs/sysfs/group.c:216 device_del+0x39/0x180()
     sysfs group ffffffff8183df40 not found for kobject 'midiC1D0'
     Call Trace:
      [<ffffffff814a3e38>] ? dump_stack+0x49/0x71
      [<ffffffff8103cb72>] ? warn_slowpath_common+0x82/0xb0
      [<ffffffff8103cc55>] ? warn_slowpath_fmt+0x45/0x50
      [<ffffffff813521e9>] ? device_del+0x39/0x180
      [<ffffffff81352339>] ? device_unregister+0x9/0x20
      [<ffffffff81352384>] ? device_destroy+0x34/0x40
      [<ffffffffa00ba29f>] ? snd_unregister_device+0x7f/0xd0 [snd]
      [<ffffffffa025124e>] ? snd_rawmidi_dev_disconnect+0xce/0x100 [snd_rawmidi]
      [<ffffffffa00c0192>] ? snd_device_disconnect+0x62/0x90 [snd]
      [<ffffffffa00c025c>] ? snd_device_disconnect_all+0x3c/0x60 [snd]
      [<ffffffffa00bb574>] ? snd_card_disconnect+0x124/0x1a0 [snd]
      [<ffffffffa02e54e8>] ? usb_audio_disconnect+0x88/0x1c0 [snd_usb_audio]
      [<ffffffffa015260e>] ? usb_unbind_interface+0x5e/0x1b0 [usbcore]
      [<ffffffff813553e9>] ? __device_release_driver+0x79/0xf0
      [<ffffffff81355485>] ? device_release_driver+0x25/0x40
      [<ffffffff81354e11>] ? bus_remove_device+0xf1/0x130
      [<ffffffff813522b9>] ? device_del+0x109/0x180
      [<ffffffffa01501d5>] ? usb_disable_device+0x95/0x1f0 [usbcore]
      [<ffffffffa014634f>] ? usb_disconnect+0x8f/0x190 [usbcore]
      [<ffffffffa0149179>] ? hub_thread+0x539/0x13a0 [usbcore]
      [<ffffffff810669f5>] ? sched_clock_local+0x15/0x80
      [<ffffffff81066c98>] ? sched_clock_cpu+0xb8/0xd0
      [<ffffffff81070730>] ? bit_waitqueue+0xb0/0xb0
      [<ffffffffa0148c40>] ? usb_port_resume+0x430/0x430 [usbcore]
      [<ffffffffa0148c40>] ? usb_port_resume+0x430/0x430 [usbcore]
      [<ffffffff8105973e>] ? kthread+0xce/0xf0
      [<ffffffff81059670>] ? kthread_create_on_node+0x1c0/0x1c0
      [<ffffffff814a8b7c>] ? ret_from_fork+0x7c/0xb0
      [<ffffffff81059670>] ? kthread_create_on_node+0x1c0/0x1c0
     ---[ end trace 40b1928d1136b91e ]---
    
    This comes from the fact that usb-audio driver may receive the
    disconnect callback multiple times, per each usb interface.  When a
    device has both audio and midi interfaces, it gets called twice, and
    currently the driver tries to release resources at the last call.
    At this point, the first parent interface has been already deleted,
    thus deleting a child of the first parent hits such a warning.
    
    For fixing this problem, we need to call snd_card_disconnect() and
    cancel pending operations at the very first disconnect while the
    release of the whole objects waits until the last disconnect call.
    
    Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80931
    Reported-and-tested-by: Tomas Gayoso <tgayoso@gmail.com>
    Reported-and-tested-by: Chris J Arges <chris.j.arges@canonical.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    7d950c7 View commit details
    Browse the repository at this point in the history
  233. PCI: Don't oops on virtual buses in acpi_pci_get_bridge_handle()

    acpi_pci_get_bridge_handle() returns the ACPI handle for the bridge device
    (either a host bridge or a PCI-to-PCI bridge) leading to a PCI bus.  But
    SR-IOV virtual functions can be on a virtual bus with no bridge leading to
    it.  Return a NULL acpi_handle in this case instead of trying to
    dereference the NULL pointer to the bridge.
    
    This fixes a NULL pointer dereference oops in pci_get_hp_params() when
    adding SR-IOV VF devices on virtual buses.
    
    [bhelgaas: changelog, add comment in code]
    Fixes: 6cd3364 ("PCI: Add pci_configure_device() during enumeration")
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=87591
    Reported-by: Chao Zhou <chao.zhou@intel.com>
    Reported-by: Joerg Roedel <joro@8bytes.org>
    Signed-off-by: Yinghai Lu <yinghai@kernel.org>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Yinghai Lu authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    13a6dc5 View commit details
    Browse the repository at this point in the history
  234. fix breakage in o2net_send_tcp_msg()

    uninitialized msghdr.  Broken in "ocfs2: don't open-code kernel_recvmsg()"
    by me ;-/
    
    Cc: stable@vger.kernel.org # 3.15+
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Al Viro authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    5f12e4a View commit details
    Browse the repository at this point in the history
  235. ALSA: hda/realtek - Restore default value for ALC668

    Restore the registers to prevent the abnormal digital power supply
    rising ratio/sequence to the codec and causing the incorrect default
    codec register restoration during initialization.
    
    Signed-off-by: Kailang Yang <kailang@realtek.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    kailangyang authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    6b686a1 View commit details
    Browse the repository at this point in the history
  236. spi: pxa2xx: toggle clocks on suspend if not disabled by runtime PM

    If PM_RUNTIME is enabled, it is easy to trigger the following backtrace
    on pxa2xx hosts:
    
    ------------[ cut here ]------------
    WARNING: CPU: 0 PID: 1 at /home/lumag/linux/arch/arm/mach-pxa/clock.c:35 clk_disable+0xa0/0xa8()
    Modules linked in:
    CPU: 0 PID: 1 Comm: swapper Not tainted 3.17.0-00007-g1b3d2ee-dirty #104
    [<c000de68>] (unwind_backtrace) from [<c000c078>] (show_stack+0x10/0x14)
    [<c000c078>] (show_stack) from [<c001d75c>] (warn_slowpath_common+0x6c/0x8c)
    [<c001d75c>] (warn_slowpath_common) from [<c001d818>] (warn_slowpath_null+0x1c/0x24)
    [<c001d818>] (warn_slowpath_null) from [<c0015e80>] (clk_disable+0xa0/0xa8)
    [<c0015e80>] (clk_disable) from [<c02507f8>] (pxa2xx_spi_suspend+0x2c/0x34)
    [<c02507f8>] (pxa2xx_spi_suspend) from [<c0200360>] (platform_pm_suspend+0x2c/0x54)
    [<c0200360>] (platform_pm_suspend) from [<c0207fec>] (dpm_run_callback.isra.14+0x2c/0x74)
    [<c0207fec>] (dpm_run_callback.isra.14) from [<c0209254>] (__device_suspend+0x120/0x2f8)
    [<c0209254>] (__device_suspend) from [<c0209a94>] (dpm_suspend+0x50/0x208)
    [<c0209a94>] (dpm_suspend) from [<c00455ac>] (suspend_devices_and_enter+0x8c/0x3a0)
    [<c00455ac>] (suspend_devices_and_enter) from [<c0045ad4>] (pm_suspend+0x214/0x2a8)
    [<c0045ad4>] (pm_suspend) from [<c04b5c34>] (test_suspend+0x14c/0x1dc)
    [<c04b5c34>] (test_suspend) from [<c000880c>] (do_one_initcall+0x8c/0x1fc)
    [<c000880c>] (do_one_initcall) from [<c04aecfc>] (kernel_init_freeable+0xf4/0x1b4)
    [<c04aecfc>] (kernel_init_freeable) from [<c0378078>] (kernel_init+0x8/0xec)
    [<c0378078>] (kernel_init) from [<c0009590>] (ret_from_fork+0x14/0x24)
    ---[ end trace 46524156d8faa4f6 ]---
    
    This happens because suspend function tries to disable a clock that is
    already disabled by runtime_suspend callback. Add if
    (!pm_runtime_suspended()) checks to suspend/resume path.
    
    Fixes: 7d94a50 (spi/pxa2xx: add support for runtime PM)
    Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
    Reported-by: Andrea Adami <andrea.adami@gmail.com>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Cc: stable@vger.kernel.org
    lumag authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    eb6ef47 View commit details
    Browse the repository at this point in the history
  237. MIPS: R3000: Fix debug output for Virtual page number

    Virtual page number of R3000 in entryhi is 20 bit from MSB. But in
    dump_tlb(), the bit mask to read it from entryhi is 19 bit (0xffffe000).
    The patch fixes that to 0xfffff000.
    
    Signed-off-by: Isamu Mogi <isamu@leafytree.jp>
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/8290/
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    saturday06 authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    582e866 View commit details
    Browse the repository at this point in the history
  238. mm: Fix comment before truncate_setsize()

    XFS doesn't always hold i_mutex when calling truncate_setsize() and it
    uses a different lock to serialize truncates and writes. So fix the
    comment before truncate_setsize().
    
    Reported-by: Jan Beulich <JBeulich@suse.com>
    Signed-off-by: Jan Kara <jack@suse.cz>
    Signed-off-by: Dave Chinner <david@fromorbit.com>
    jankara authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    bba6bd5 View commit details
    Browse the repository at this point in the history
  239. xfs: bulkstat btree walk doesn't terminate

    The bulkstat code has several different ways of detecting the end of
    an AG when doing a walk. They are not consistently detected, and the
    code that checks for the end of AG conditions is not consistently
    coded. Hence the are conditions where the walk code can get stuck in
    an endless loop making no progress and not triggering any
    termination conditions.
    
    Convert all the "tmp/i" status return codes from btree operations
    to a common name (stat) and apply end-of-ag detection to these
    operations consistently.
    
    cc: <stable@vger.kernel.org> # 3.17
    Signed-off-by: Dave Chinner <dchinner@redhat.com>
    Reviewed-by: Brian Foster <bfoster@redhat.com>
    Signed-off-by: Dave Chinner <david@fromorbit.com>
    Dave Chinner authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a2ffb58 View commit details
    Browse the repository at this point in the history
  240. xfs: bulkstat chunk formatting cursor is broken

    The xfs_bulkstat_agichunk formatting cursor takes buffer values from
    the main loop and passes them via the structure to the chunk
    formatter, and the writes the changed values back into the main loop
    local variables. Unfortunately, this complex dance is full of corner
    cases that aren't handled correctly.
    
    The biggest problem is that it is double handling the information in
    both the main loop and the chunk formatting function, leading to
    inconsistent updates and endless loops where progress is not made.
    
    To fix this, push the struct xfs_bulkstat_agichunk outwards to be
    the primary holder of user buffer information. this removes the
    double handling in the main loop.
    
    Also, pass the last inode processed by the chunk formatter as a
    separate parameter as it purely an output variable and is not
    related to the user buffer consumption cursor.
    
    Finally, the chunk formatting code is not shared by anyone, so make
    it local to xfs_itable.c.
    
    cc: <stable@vger.kernel.org> # 3.17
    Signed-off-by: Dave Chinner <dchinner@redhat.com>
    Reviewed-by: Brian Foster <bfoster@redhat.com>
    Signed-off-by: Dave Chinner <david@fromorbit.com>
    Dave Chinner authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a932950 View commit details
    Browse the repository at this point in the history
  241. xfs: bulkstat chunk-formatter has issues

    The loop construct has issues:
    	- clustidx is completely unused, so remove it.
    	- the loop tries to be smart by terminating when the
    	  "freecount" tells it that all inodes are free. Just drop
    	  it as in most cases we have to scan all inodes in the
    	  chunk anyway.
    	- move the "user buffer left" condition check to the only
    	  point where we consume space int eh user buffer.
    	- move the initialisation of agino out of the loop, leaving
    	  just a simple loop control logic using the clusteridx.
    
    Also, double handling of the user buffer variables leads to problems
    tracking the current state - use the cursor variables directly
    rather than keeping local copies and then having to update the
    cursor before returning.
    
    cc: <stable@vger.kernel.org> # 3.17
    Signed-off-by: Dave Chinner <dchinner@redhat.com>
    Reviewed-by: Brian Foster <bfoster@redhat.com>
    Signed-off-by: Dave Chinner <david@fromorbit.com>
    Dave Chinner authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    7d43e18 View commit details
    Browse the repository at this point in the history
  242. xfs: bulkstat main loop logic is a mess

    There are a bunch of variables tha tare more wildy scoped than they
    need to be, obfuscated user buffer checks and tortured "next inode"
    tracking. This all needs cleaning up to expose the real issues that
    need fixing.
    
    cc: <stable@vger.kernel.org> # 3.17
    Signed-off-by: Dave Chinner <dchinner@redhat.com>
    Reviewed-by: Brian Foster <bfoster@redhat.com>
    Signed-off-by: Dave Chinner <david@fromorbit.com>
    Dave Chinner authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a43904c View commit details
    Browse the repository at this point in the history
  243. xfs: bulkstat error handling is broken

    The error propagation is a horror - xfs_bulkstat() returns
    a rval variable which is only set if there are formatter errors. Any
    sort of btree walk error or corruption will cause the bulkstat walk
    to terminate but will not pass an error back to userspace. Worse
    is the fact that formatter errors will also be ignored if any inodes
    were correctly formatted into the user buffer.
    
    Hence bulkstat can fail badly yet still report success to userspace.
    This causes significant issues with xfsdump not dumping everything
    in the filesystem yet reporting success. It's not until a restore
    fails that there is any indication that the dump was bad and tha
    bulkstat failed. This patch now triggers xfsdump to fail with
    bulkstat errors rather than silently missing files in the dump.
    
    This now causes bulkstat to fail when the lastino cookie does not
    fall inside an existing inode chunk. The pre-3.17 code tolerated
    that error by allowing the code to move to the next inode chunk
    as the agino target is guaranteed to fall into the next btree
    record.
    
    With the fixes up to this point in the series, xfsdump now passes on
    the troublesome filesystem image that exposes all these bugs.
    
    cc: <stable@vger.kernel.org>
    Signed-off-by: Dave Chinner <dchinner@redhat.com>
    Reviewed-by: Brian Foster <bfoster@redhat.com>
    Dave Chinner authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    41bc381 View commit details
    Browse the repository at this point in the history
  244. xfs: track bulkstat progress by agino

    The bulkstat main loop progress is tracked by the "lastino"
    variable, which is a full 64 bit inode. However, the loop actually
    works on agno/agino pairs, and so there's a significant disconnect
    between the rest of the loop and the main cursor. Convert this to
    use the agino, and pass the agino into the chunk formatting function
    and convert it too.
    
    This gets rid of the inconsistency in the loop processing, and
    finally makes it simple for us to skip inodes at any point in the
    loop simply by incrementing the agino cursor.
    
    cc: <stable@vger.kernel.org> # 3.17
    Signed-off-by: Dave Chinner <dchinner@redhat.com>
    Reviewed-by: Brian Foster <bfoster@redhat.com>
    Signed-off-by: Dave Chinner <david@fromorbit.com>
    Dave Chinner authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    9cd7c09 View commit details
    Browse the repository at this point in the history
  245. MIPS: Fix build with binutils 2.24.51+

    Starting with version 2.24.51.20140728 MIPS binutils complain loudly
    about mixing soft-float and hard-float object files, leading to this
    build failure since GCC is invoked with "-msoft-float" on MIPS:
    
    {standard input}: Warning: .gnu_attribute 4,3 requires `softfloat'
      LD      arch/mips/alchemy/common/built-in.o
    mipsel-softfloat-linux-gnu-ld: Warning: arch/mips/alchemy/common/built-in.o
     uses -msoft-float (set by arch/mips/alchemy/common/prom.o),
     arch/mips/alchemy/common/sleeper.o uses -mhard-float
    
    To fix this, we detect if GAS is new enough to support "-msoft-float" command
    option, and if it does, we can let GCC pass it to GAS;  but then we also need
    to sprinkle the files which make use of floating point registers with the
    necessary ".set hardfloat" directives.
    
    Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
    Cc: Linux-MIPS <linux-mips@linux-mips.org>
    Cc: Matthew Fortune <Matthew.Fortune@imgtec.com>
    Cc: Markos Chandras <Markos.Chandras@imgtec.com>
    Cc: Maciej W. Rozycki <macro@linux-mips.org>
    Patchwork: https://patchwork.linux-mips.org/patch/8355/
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    mlauss2 authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    0adfdc8 View commit details
    Browse the repository at this point in the history
  246. i2c: remove FSF address

    We have a central copy of the GPL for that. Some addresses were already
    outdated.
    
    Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
    Wolfram Sang authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    b7523ad View commit details
    Browse the repository at this point in the history
  247. i2c: at91: don't account as iowait

    iowait is for blkio [1]. I2C shouldn't use it.
    
    [1] https://lkml.org/lkml/2014/11/3/317
    
    Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
    Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
    Cc: stable@kernel.org
    Wolfram Sang authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    56faa47 View commit details
    Browse the repository at this point in the history
  248. i2c: core: Dispose OF IRQ mapping at client removal time

    Clients instantiated from OF get an IRQ mapping created at device
    registration time. Dispose the mapping when the client is removed.
    
    Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
    Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
    Cc: stable@kernel.org
    Laurent Pinchart authored and Don Brace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    a197e0d View commit details
    Browse the repository at this point in the history
  249. Merge pull request #3 from dabrace/master

    Update my hpsa-next branch with my master branch
    dabrace committed Nov 10, 2014
    Configuration menu
    Copy the full SHA
    2cebd6d View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2014

  1. Merge pull request #5 from dabrace/master

    Update my hpsa-next branch with my master branch
    dabrace committed Nov 12, 2014
    Configuration menu
    Copy the full SHA
    2c49895 View commit details
    Browse the repository at this point in the history