Skip to content
  1. Aug 19, 2016
  2. Aug 18, 2016
  3. Aug 16, 2016
  4. Aug 15, 2016
    • Lucas Stach's avatar
      drm/etnaviv: take GPU lock later in the submit process · d9853490
      Lucas Stach authored
      
      
      Both the fence and event alloc are safe to be done without holding the GPU
      lock, as they either don't need any locking (fences) or are protected by
      their own lock (events).
      
      This solves a bad locking interaction between the submit path and the
      recover worker. If userspace manages to exhaust all available events while
      the GPU is hung, the submit will wait for events to become available
      holding the GPU lock. The recover worker waits for this lock to become
      available before trying to recover the GPU which frees up the allocated
      events. Essentially both paths are deadlocked until the submit path
      times out waiting for available events, failing the submit that could
      otherwise be handled just fine if the recover worker had the chance to
      bring the GPU back in a working state.
      
      Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
      Reviewed-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
      d9853490
    • Dave Airlie's avatar
      Merge tag 'mediatek-drm-fixes-2016-08-12' of git://git.pengutronix.de/git/pza/linux into drm-fixes · 93b1f145
      Dave Airlie authored
      mediatek-drm build dependency fixes
      
      - add COMMON_CLK dependency for mipi-tx PLL
      - add OF dependency for mtk_drm_drv
      - add ARM_SMCCC dependency for mtk-hdmi
      
      * tag 'mediatek-drm-fixes-2016-08-12' of git://git.pengutronix.de/git/pza/linux:
        drm/mediatek: add ARM_SMCCC dependency
        drm/mediatek: add CONFIG_OF dependency
        drm/mediatek: add COMMON_CLK dependency
      93b1f145
  5. Aug 12, 2016
    • Dave Airlie's avatar
      Merge branch 'drm-fixes-4.8' of git://people.freedesktop.org/~agd5f/linux into drm-fixes · c3beef5e
      Dave Airlie authored
      Some AMD fixes and remove workaround now we have pcieport pm.
      
      * 'drm-fixes-4.8' of git://people.freedesktop.org/~agd5f/linux:
        drm/amdgpu: Fix memory trashing if UVD ring test fails
        drm/amdgpu: fix vm init error path
        Revert "drm/radeon: work around lack of upstream ACPI support for D3cold"
        Revert "drm/amdgpu: work around lack of upstream ACPI support for D3cold"
      c3beef5e
    • Dave Airlie's avatar
      Merge tag 'drm-amdkfd-fixes-2016-08-09' of... · 8c065c08
      Dave Airlie authored
      Merge tag 'drm-amdkfd-fixes-2016-08-09' of git://people.freedesktop.org/~gabbayo/linux into drm-fixes
      
      Simple amdkfd fix.
      
      * tag 'drm-amdkfd-fixes-2016-08-09' of git://people.freedesktop.org/~gabbayo/linux:
        drm/amdkfd: print doorbell offset as a hex value
      8c065c08
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 4b9eaf33
      Linus Torvalds authored
      Merge fixes from Andrew Morton:
       "7 fixes"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        mm/memory_hotplug.c: initialize per_cpu_nodestats for hotadded pgdats
        mm, oom: fix uninitialized ret in task_will_free_mem()
        kasan: remove the unnecessary WARN_ONCE from quarantine.c
        mm: memcontrol: fix memcg id ref counter on swap charge move
        mm: memcontrol: fix swap counter leak on swapout from offline cgroup
        proc, meminfo: use correct helpers for calculating LRU sizes in meminfo
        mm/hugetlb: fix incorrect hugepages count during mem hotplug
      4b9eaf33
    • Reza Arbab's avatar
      mm/memory_hotplug.c: initialize per_cpu_nodestats for hotadded pgdats · 5830169f
      Reza Arbab authored
      
      
      The following oops occurs after a pgdat is hotadded:
      
        Unable to handle kernel paging request for data at address 0x00c30001
        Faulting instruction address: 0xc00000000022f8f4
        Oops: Kernel access of bad area, sig: 11 [#1]
        SMP NR_CPUS=2048 NUMA pSeries
        Modules linked in: ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_nat ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw ip6table_filter ip6_tables iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw iptable_filter nls_utf8 isofs sg virtio_balloon uio_pdrv_genirq uio ip_tables xfs libcrc32c sr_mod cdrom sd_mod virtio_net ibmvscsi scsi_transport_srp virtio_pci virtio_ring virtio dm_mirror dm_region_hash dm_log dm_mod
        CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W 4.8.0-rc1-device #110
        task: c000000000ef3080 task.stack: c000000000f6c000
        NIP: c00000000022f8f4 LR: c00000000022f948 CTR: 0000000000000000
        REGS: c000000000f6fa50 TRAP: 0300   Tainted: G        W (4.8.0-rc1-device)
        MSR: 800000010280b033 <SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE,TM[E]>  CR: 84002028  XER: 20000000
        CFAR: d000000001d2013c DAR: 0000000000c30001 DSISR: 40000000 SOFTE: 0
        NIP refresh_cpu_vm_stats+0x1a4/0x2f0
        LR refresh_cpu_vm_stats+0x1f8/0x2f0
        Call Trace:
          refresh_cpu_vm_stats+0x1f8/0x2f0 (unreliable)
      
      Add per_cpu_nodestats initialization to the hotplug codepath.
      
      Link: http://lkml.kernel.org/r/1470931473-7090-1-git-send-email-arbab@linux.vnet.ibm.com
      Signed-off-by: default avatarReza Arbab <arbab@linux.vnet.ibm.com>
      Cc: Mel Gorman <mgorman@techsingularity.net>
      Cc: Paul Mackerras <paulus@ozlabs.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5830169f
    • Geert Uytterhoeven's avatar
      mm, oom: fix uninitialized ret in task_will_free_mem() · f33e6f06
      Geert Uytterhoeven authored
          mm/oom_kill.c: In function `task_will_free_mem':
          mm/oom_kill.c:767: warning: `ret' may be used uninitialized in this function
      
      If __task_will_free_mem() is never called inside the for_each_process()
      loop, ret will not be initialized.
      
      Fixes: 1af8bb43
      
       ("mm, oom: fortify task_will_free_mem()")
      Link: http://lkml.kernel.org/r/1470255599-24841-1-git-send-email-geert@linux-m68k.org
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Acked-by: default avatarMichal Hocko <mhocko@suse.com>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f33e6f06
    • Alexander Potapenko's avatar
      kasan: remove the unnecessary WARN_ONCE from quarantine.c · bcbf0d56
      Alexander Potapenko authored
      
      
      It's quite unlikely that the user will so little memory that the per-CPU
      quarantines won't fit into the given fraction of the available memory.
      Even in that case he won't be able to do anything with the information
      given in the warning.
      
      Link: http://lkml.kernel.org/r/1470929182-101413-1-git-send-email-glider@google.com
      Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
      Acked-by: default avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
      Cc: Dmitry Vyukov <dvyukov@google.com>
      Cc: Andrey Konovalov <adech.fo@gmail.com>
      Cc: Christoph Lameter <cl@linux.com>
      Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
      Cc: Kuthonuzo Luruo <kuthonuzo.luruo@hpe.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      bcbf0d56
    • Vladimir Davydov's avatar
      mm: memcontrol: fix memcg id ref counter on swap charge move · 615d66c3
      Vladimir Davydov authored
      Since commit 73f576c0 ("mm: memcontrol: fix cgroup creation failure
      after many small jobs") swap entries do not pin memcg->css.refcnt
      directly.  Instead, they pin memcg->id.ref.  So we should adjust the
      reference counters accordingly when moving swap charges between cgroups.
      
      Fixes: 73f576c0
      
       ("mm: memcontrol: fix cgroup creation failure after many small jobs")
      Link: http://lkml.kernel.org/r/9ce297c64954a42dc90b543bc76106c4a94f07e8.1470219853.git.vdavydov@virtuozzo.com
      Signed-off-by: default avatarVladimir Davydov <vdavydov@virtuozzo.com>
      Acked-by: default avatarMichal Hocko <mhocko@suse.com>
      Acked-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
      Cc: <stable@vger.kernel.org>	[3.19+]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      615d66c3
    • Vladimir Davydov's avatar
      mm: memcontrol: fix swap counter leak on swapout from offline cgroup · 1f47b61f
      Vladimir Davydov authored
      An offline memory cgroup might have anonymous memory or shmem left
      charged to it and no swap.  Since only swap entries pin the id of an
      offline cgroup, such a cgroup will have no id and so an attempt to
      swapout its anon/shmem will not store memory cgroup info in the swap
      cgroup map.  As a result, memcg->swap or memcg->memsw will never get
      uncharged from it and any of its ascendants.
      
      Fix this by always charging swapout to the first ancestor cgroup that
      hasn't released its id yet.
      
      [hannes@cmpxchg.org: add comment to mem_cgroup_swapout]
      [vdavydov@virtuozzo.com: use WARN_ON_ONCE() in mem_cgroup_id_get_online()]
        Link: http://lkml.kernel.org/r/20160803123445.GJ13263@esperanza
      Fixes: 73f576c0
      
       ("mm: memcontrol: fix cgroup creation failure after many small jobs")
      Link: http://lkml.kernel.org/r/5336daa5c9a32e776067773d9da655d2dc126491.1470219853.git.vdavydov@virtuozzo.com
      Signed-off-by: default avatarVladimir Davydov <vdavydov@virtuozzo.com>
      Acked-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
      Acked-by: default avatarMichal Hocko <mhocko@suse.com>
      Cc: <stable@vger.kernel.org>	[3.19+]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1f47b61f
    • Mel Gorman's avatar
      proc, meminfo: use correct helpers for calculating LRU sizes in meminfo · 2f95ff90
      Mel Gorman authored
      
      
      meminfo_proc_show() and si_mem_available() are using the wrong helpers
      for calculating the size of the LRUs.  The user-visible impact is that
      there appears to be an abnormally high number of unevictable pages.
      
      Link: http://lkml.kernel.org/r/20160805105805.GR2799@techsingularity.net
      Signed-off-by: default avatarMel Gorman <mgorman@techsingularity.net>
      Cc: Dave Chinner <david@fromorbit.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2f95ff90
    • zhong jiang's avatar
      mm/hugetlb: fix incorrect hugepages count during mem hotplug · c1470b33
      zhong jiang authored
      
      
      When memory hotplug operates, free hugepages will be freed if the
      movable node is offline.  Therefore, /proc/sys/vm/nr_hugepages will be
      incorrect.
      
      Fix it by reducing max_huge_pages when the node is offlined.
      
      n-horiguchi@ah.jp.nec.com said:
      
      : dissolve_free_huge_page intends to break a hugepage into buddy, and the
      : destination hugepage is supposed to be allocated from the pool of the
      : destination node, so the system-wide pool size is reduced.  So adding
      : h->max_huge_pages-- makes sense to me.
      
      Link: http://lkml.kernel.org/r/1470624546-902-1-git-send-email-zhongjiang@huawei.com
      Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
      Cc: Mike Kravetz <mike.kravetz@oracle.com>
      Acked-by: default avatarNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c1470b33
    • Linus Torvalds's avatar
      Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · d3396e1e
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "A couple of bug fixes have come in for v4.8 so far.  Since the first
        few were originally meant to go into -rc1 (but didn't get sent in time
        for travel reasons), the branch is unfortunately based on top of a
        commit in the middle of the merge window rather than -rc1.
      
        Content-wise we have:
      
         - a fix for the last remaining broken build in kernelci, getting
           mach-shmobile to build again with SMP disabled
      
         - a fix for a realview regression that broke real hardware but not
           the qemu model that everyone uses in practice (needed for v4.7 as
           well)
      
         - a merge conflict fix for Tegra that also broke v4.7
      
         - two Kconfig fixes for arm64 build regressions
      
         - a couple of arm32 build warning fixes (all harmless)
      
         - fix the RTC on Exynos7 Espresso (which apparently never worked
           right)"
      
      * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        Merge tag 'pxa-fixes-v4.8' of https://github.com/rjarzmik/linux into randconfig-4.8
        arm64: Kconfig: select HISILICON_IRQ_MBIGEN only if PCI is selected
        arm64: Kconfig: select ALPINE_MSI only if PCI is selected
        ARM: dts: realview: Fix PBX-A9 cache description
        ARM: tegra: fix erroneous address in dts
        ARM: dts: add syscon compatible string for AP syscon
        ARM: dts: add syscon compatible string for CP syscon
        ARM: oxnas: select reset controller framework
        ARM: hide mach-*/ include for ARM_SINGLE_ARMV7M
        ARM: don't include removed directories
        Revert "ARM: aspeed: adapt defconfigs for new CONFIG_PRINTK_TIME"
        ARM: shmobile: don't call platform_can_secondary_boot on UP
        MAINTAINER: alpine: add a mailing list
        ARM: do away with final ARCH_REQUIRE_GPIOLIB
        arm64: dts: Fix RTC by providing rtc_src clock
      d3396e1e
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 6da7e953
      Linus Torvalds authored
      Pull virtio/vhost fixes and cleanups from Michael Tsirkin:
       "Misc fixes and cleanups all over the place"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        virtio/s390: deprecate old transport
        virtio/s390: keep early_put_chars
        virtio_blk: Fix a slient kernel panic
        virtio-vsock: fix include guard typo
        vhost/vsock: fix vhost virtio_vsock_pkt use-after-free
        9p/trans_virtio: use kvfree() for iov_iter_get_pages_alloc()
        virtio: fix error handling for debug builds
        virtio: fix memory leak in virtqueue_add()
      6da7e953
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-4.8-rc2' of https://github.com/ceph/ceph-client · 3b3ce01a
      Linus Torvalds authored
      Pull ceph fixes from Ilya Dryomov:
       "A patch for a NULL dereference bug introduced in 4.8-rc1 and a handful
        of static checker fixes"
      
      * tag 'ceph-for-4.8-rc2' of https://github.com/ceph/ceph-client:
        ceph: initialize pathbase in the !dentry case in encode_caps_cb()
        rbd: nuke the 32-bit pool id check
        rbd: destroy header_oloc in rbd_dev_release()
        ceph: fix null pointer dereference in ceph_flush_snaps()
        libceph: using kfree_rcu() to simplify the code
        libceph: make cancel_generic_request() static
        libceph: fix return value check in alloc_msg_with_page_vector()
      3b3ce01a
  6. Aug 11, 2016