Skip to content
  1. Mar 03, 2018
    • Linus Torvalds's avatar
      Merge branch 'parisc-4.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 5fbdefcf
      Linus Torvalds authored
      Pull parisc fixes from Helge Deller:
      
       - a patch to change the ordering of cache and TLB flushes to hopefully
         fix the random segfaults we very rarely face (by Dave Anglin).
      
       - a patch to hide the virtual kernel memory layout due to security
         reasons.
      
       - two small patches to make the kernel run more smoothly under qemu.
      
      * 'parisc-4.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Reduce irq overhead when run in qemu
        parisc: Use cr16 interval timers unconditionally on qemu
        parisc: Check if secondary CPUs want own PDC calls
        parisc: Hide virtual kernel memory layout
        parisc: Fix ordering of cache and TLB flushes
      5fbdefcf
    • Linus Torvalds's avatar
      Merge tag 'for-linus-4.16a-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 0573fed9
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
       "Five minor fixes for Xen-specific drivers"
      
      * tag 'for-linus-4.16a-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        pvcalls-front: 64-bit align flags
        x86/xen: add tty0 and hvc0 as preferred consoles for dom0
        xen-netfront: Fix hang on device removal
        xen/pirq: fix error path cleanup when binding MSIs
        xen/pvcalls: fix null pointer dereference on map->sock
      0573fed9
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-4.16-rc4' of git://github.com/ceph/ceph-client · 2833419a
      Linus Torvalds authored
      Pull ceph fixes from Ilya Dryomov:
       "A cap handling fix from Zhi that ensures that metadata writeback isn't
        delayed and three error path memory leak fixups from Chengguang"
      
      * tag 'ceph-for-4.16-rc4' of git://github.com/ceph/ceph-client:
        ceph: fix potential memory leak in init_caches()
        ceph: fix dentry leak when failing to init debugfs
        libceph, ceph: avoid memory leak when specifying same option several times
        ceph: flush dirty caps of unlinked inode ASAP
      2833419a
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20180302' of git://git.kernel.dk/linux-block · fb6d47a5
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "A collection of fixes for this series. This is a little larger than
        usual at this time, but that's mainly because I was out on vacation
        last week. Nothing in here is major in any way, it's just two weeks of
        fixes. This contains:
      
         - NVMe pull from Keith, with a set of fixes from the usual suspects.
      
         - mq-deadline zone unlock fix from Damien, fixing an issue with the
           SMR zone locking added for 4.16.
      
         - two bcache fixes sent in by Michael, with changes from Coly and
           Tang.
      
         - comment typo fix from Eric for blktrace.
      
         - return-value error handling fix for nbd, from Gustavo.
      
         - fix a direct-io case where we don't defer to a completion handler,
           making us sleep from IRQ device completion. From Jan.
      
         - a small series from Jan fixing up holes around handling of bdev
           references.
      
         - small set of regression fixes from Jiufei, mostly fixing problems
           around the gendisk pointer -> partition index change.
      
         - regression fix from Ming, fixing a boundary issue with the discard
           page cache invalidation.
      
         - two-patch series from Ming, fixing both a core blk-mq-sched and
           kyber issue around token freeing on a requeue condition"
      
      * tag 'for-linus-20180302' of git://git.kernel.dk/linux-block: (24 commits)
        block: fix a typo
        block: display the correct diskname for bio
        block: fix the count of PGPGOUT for WRITE_SAME
        mq-deadline: Make sure to always unlock zones
        nvmet: fix PSDT field check in command format
        nvme-multipath: fix sysfs dangerously created links
        nbd: fix return value in error handling path
        bcache: fix kcrashes with fio in RAID5 backend dev
        bcache: correct flash only vols (check all uuids)
        blktrace_api.h: fix comment for struct blk_user_trace_setup
        blockdev: Avoid two active bdev inodes for one device
        genhd: Fix BUG in blkdev_open()
        genhd: Fix use after free in __blkdev_get()
        genhd: Add helper put_disk_and_module()
        genhd: Rename get_disk() to get_disk_and_module()
        genhd: Fix leaked module reference for NVME devices
        direct-io: Fix sleep in atomic due to sync AIO
        nvme-pci: Fix nvme queue cleanup if IRQ setup fails
        block: kyber: fix domain token leak during requeue
        blk-mq: don't call io sched's .requeue_request when requeueing rq to ->dispatch
        ...
      fb6d47a5
    • Linus Torvalds's avatar
      Merge tag 'mmc-v4.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · ff06b55e
      Linus Torvalds authored
      Pull MMC fixes from Ulf Hansson:
       "MMC core:
         - mmc: core: Avoid hang when claiming host
      
        MMC host:
         - dw_mmc: Avoid hang when accessing registers
         - dw_mmc: Fix out-of-bounds access for slot's caps
         - dw_mmc-k3: Fix out-of-bounds access through DT alias
         - sdhci-pci: Fix S0i3 for Intel BYT-based controllers"
      
      * tag 'mmc-v4.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: core: Avoid hanging to claim host for mmc via some nested calls
        mmc: dw_mmc: Avoid accessing registers in runtime suspended state
        mmc: dw_mmc: Fix out-of-bounds access for slot's caps
        mmc: dw_mmc: Factor out dw_mci_init_slot_caps
        mmc: dw_mmc-k3: Fix out-of-bounds access through DT alias
        mmc: sdhci-pci: Fix S0i3 for Intel BYT-based controllers
      ff06b55e
    • Linus Torvalds's avatar
      Merge tag 'pm-4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · a5c05b74
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix three issues in cpufreq drivers: one recent regression, one
        leftover Kconfig dependency and one old but "stable" material.
      
        Specifics:
      
         - Make the task scheduler load and utilization signals be
           frequency-invariant again after recent changes in the SCPI cpufreq
           driver (Dietmar Eggemann).
      
         - Drop an unnecessary leftover Kconfig dependency from the SCPI
           cpufreq driver (Sudeep Holla).
      
         - Fix the initialization of the s3c24xx cpufreq driver (Viresh
           Kumar)"
      
      * tag 'pm-4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq: s3c24xx: Fix broken s3c_cpufreq_init()
        cpufreq: scpi: Fix incorrect arm_big_little config dependency
        cpufreq: scpi: invoke frequency-invariance setter function
      a5c05b74
  2. Mar 02, 2018
    • Rafael J. Wysocki's avatar
      Merge branch 'cpufreq-scpi' · b61e0703
      Rafael J. Wysocki authored
      * cpufreq-scpi:
        cpufreq: scpi: Fix incorrect arm_big_little config dependency
        cpufreq: scpi: invoke frequency-invariance setter function
      b61e0703
    • Helge Deller's avatar
      parisc: Reduce irq overhead when run in qemu · 636a415b
      Helge Deller authored
      
      
      When run under QEMU, calling mfctl(16) creates some overhead because the
      qemu timer has to be scaled and moved into the register. This patch
      reduces the number of calls to mfctl(16) by moving the calls out of the
      loops.
      
      Additionally, increase the minimal time interval to 8000 cycles instead
      of 500 to compensate possible QEMU delays when delivering interrupts.
      
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Cc: stable@vger.kernel.org # 4.14+
      636a415b
    • Helge Deller's avatar
      parisc: Use cr16 interval timers unconditionally on qemu · 5ffa8518
      Helge Deller authored
      
      
      When running on qemu we know that the (emulated) cr16 cpu-internal
      clocks are syncronized. So let's use them unconditionally on qemu.
      
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Cc: stable@vger.kernel.org # 4.14+
      5ffa8518
    • Helge Deller's avatar
      parisc: Check if secondary CPUs want own PDC calls · 0ed1fe4a
      Helge Deller authored
      
      
      The architecture specification says (for 64-bit systems): PDC is a per
      processor resource, and operating system software must be prepared to
      manage separate pointers to PDCE_PROC for each processor.  The address
      of PDCE_PROC for the monarch processor is stored in the Page Zero
      location MEM_PDC. The address of PDCE_PROC for each non-monarch
      processor is passed in gr26 when PDCE_RESET invokes OS_RENDEZ.
      
      Currently we still use one PDC for all CPUs, but in case we face a
      machine which is following the specification let's warn about it.
      
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      0ed1fe4a
    • Helge Deller's avatar
      parisc: Hide virtual kernel memory layout · fd8d0ca2
      Helge Deller authored
      
      
      For security reasons do not expose the virtual kernel memory layout to
      userspace.
      
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Suggested-by: default avatarKees Cook <keescook@chromium.org>
      Cc: stable@vger.kernel.org # 4.15
      Reviewed-by: default avatarKees Cook <keescook@chromium.org>
      fd8d0ca2
    • John David Anglin's avatar
      parisc: Fix ordering of cache and TLB flushes · 0adb24e0
      John David Anglin authored
      
      
      The change to flush_kernel_vmap_range() wasn't sufficient to avoid the
      SMP stalls.  The problem is some drivers call these routines with
      interrupts disabled.  Interrupts need to be enabled for flush_tlb_all()
      and flush_cache_all() to work.  This version adds checks to ensure
      interrupts are not disabled before calling routines that need IPI
      interrupts.  When interrupts are disabled, we now drop into slower code.
      
      The attached change fixes the ordering of cache and TLB flushes in
      several cases.  When we flush the cache using the existing PTE/TLB
      entries, we need to flush the TLB after doing the cache flush.  We don't
      need to do this when we flush the entire instruction and data caches as
      these flushes don't use the existing TLB entries.  The same is true for
      tmpalias region flushes.
      
      The flush_kernel_vmap_range() and invalidate_kernel_vmap_range()
      routines have been updated.
      
      Secondly, we added a new purge_kernel_dcache_range_asm() routine to
      pacache.S and use it in invalidate_kernel_vmap_range().  Nominally,
      purges are faster than flushes as the cache lines don't have to be
      written back to memory.
      
      Hopefully, this is sufficient to resolve the remaining problems due to
      cache speculation.  So far, testing indicates that this is the case.  I
      did work up a patch using tmpalias flushes, but there is a performance
      hit because we need the physical address for each page, and we also need
      to sequence access to the tmpalias flush code.  This increases the
      probability of stalls.
      
      Signed-off-by: default avatarJohn David <Anglin &lt;dave.anglin@bell.net>
      Cc: stable@vger.kernel.org # 4.9+
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      0adb24e0
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-for-v4.16-rc4' of git://people.freedesktop.org/~airlied/linux · 5d60e057
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Pretty much run of the mill drm fixes.
      
        amdgpu:
         - power management fixes
         - some display fixes
         - one ppc 32-bit dma fix
      
        i915:
         - two display fixes
         - three gem fixes
      
        sun4i:
         - display regression fixes
      
        nouveau:
         - display regression fix
      
        virtio-gpu:
         - dumb airlied ioctl fix"
      
      * tag 'drm-fixes-for-v4.16-rc4' of git://people.freedesktop.org/~airlied/linux: (25 commits)
        drm/amdgpu: skip ECC for SRIOV in gmc late_init
        drm/amd/amdgpu: Correct VRAM width for APUs with GMC9
        drm/amdgpu: fix&cleanups for wb_clear
        drm/amdgpu: Correct sdma_v4 get_wptr(v2)
        drm/amd/powerplay: fix power over limit on Fiji
        drm/amdgpu:Fixed wrong emit frame size for enc
        drm/amdgpu: move WB_FREE to correct place
        drm/amdgpu: only flush hotplug work without DC
        drm/amd/display: check for ipp before calling cursor operations
        drm/i915: Make global seqno known in i915_gem_request_execute tracepoint
        drm/i915: Clear the in-use marker on execbuf failure
        drm/i915/cnl: Fix PORT_TX_DW5/7 register address
        drm/i915/audio: fix check for av_enc_map overflow
        drm/i915: Fix rsvd2 mask when out-fence is returned
        virtio-gpu: fix ioctl and expose the fixed status to userspace.
        drm/sun4i: Protect the TCON pixel clocks
        drm/sun4i: Enable the output on the pins (tcon0)
        drm/nouveau: prefer XBGR2101010 for addfb ioctl
        drm/radeon: insist on 32-bit DMA for Cedar on PPC64/PPC64LE
        drm/amd/display: VGA black screen from s3 when attached to hook
        ...
      5d60e057
    • Linus Torvalds's avatar
      Merge tag 'arc-4.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc · 2120447b
      Linus Torvalds authored
      Pull ARC fixes from Vineet Gupta:
      
       - MCIP aka ARconnect fixes for SMP builds [Euginey]
      
       - preventive fix for SLC (L2 cache) flushing [Euginey]
      
       - Kconfig default fix [Ulf Magnusson]
      
       - trailing semicolon fixes [Luis de Bethencourt]
      
       - other assorted minor fixes
      
      * tag 'arc-4.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
        ARC: setup cpu possible mask according to possible-cpus dts property
        ARC: mcip: update MCIP debug mask when the new cpu came online
        ARC: mcip: halt GFRC counter when ARC cores halt
        ARCv2: boot log: fix HS48 release number
        arc: dts: use 'atmel' as manufacturer for at24 in axs10x_mb
        ARC: Fix malformed ARC_EMUL_UNALIGNED default
        ARC: boot log: Fix trailing semicolon
        ARC: dw2 unwind: Fix trailing semicolon
        ARC: Enable fatal signals on boot for dev platforms
        ARCv2: Don't pretend we may set L-bit in STATUS32 with kflag instruction
        ARCv2: cache: fix slc_entire_op: flush only instead of flush-n-inv
      2120447b
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v4.16-5' of git://git.infradead.org/linux-platform-drivers-x86 · 8da5db7d
      Linus Torvalds authored
      Pull x86 platform drivers fixes from Andy Shevchenko:
      
       - fix a regression on laptops like Dell XPS 9360 where keyboard stopped
         working.
      
       - correct sysfs wakeup attribute after removal of some drivers to
         reflect that they are not able to wake system up anymore.
      
      * tag 'platform-drivers-x86-v4.16-5' of git://git.infradead.org/linux-platform-drivers-x86:
        platform/x86: wmi: Fix misuse of vsprintf extension %pULL
        platform/x86: intel-hid: Reset wakeup capable flag on removal
        platform/x86: intel-vbtn: Reset wakeup capable flag on removal
        platform/x86: intel-vbtn: Only activate tablet mode switch on 2-in-1's
      8da5db7d
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md · 7e303099
      Linus Torvalds authored
      Pull MD bugfixes from Shaohua Li:
      
       - fix raid5-ppl flush request handling hang from Artur
      
       - fix a potential deadlock in raid5/10 reshape from BingJing
      
       - fix a deadlock for dm-raid from Heinz
      
       - fix two md-cluster of raid10 from Lidong and Guoqing
      
       - fix a NULL deference problem in device removal from Neil
      
       - fix a NULL deference problem in raid1/raid10 in specific condition
         from Yufen
      
       - other cleanup and fixes
      
      * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md:
        md/raid1: fix NULL pointer dereference
        md: fix a potential deadlock of raid5/raid10 reshape
        md-cluster: choose correct label when clustered layout is not supported
        md: raid5: avoid string overflow warning
        raid5-ppl: fix handling flush requests
        md raid10: fix NULL deference in handle_write_completed()
        md: only allow remove_and_add_spares when no sync_thread running.
        md: document lifetime of internal rdev pointer.
        md: fix md_write_start() deadlock w/o metadata devices
        MD: Free bioset when md_run fails
        raid10: change the size of resync window for clustered raid
        md-multipath: Use seq_putc() in multipath_status()
        md/raid1: Fix trailing semicolon
        md/raid5: simplify uninitialization of shrinker
      7e303099
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk · 7bec4a96
      Linus Torvalds authored
      Pull printk fix from Petr Mladek:
       "Make sure that we wake up userspace loggers. This fixes a race
        introduced by the console waiter logic during this merge window"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk:
        printk: Wake klogd when passing console_lock owner
      7bec4a96
    • Joe Perches's avatar
      platform/x86: wmi: Fix misuse of vsprintf extension %pULL · 1cedc638
      Joe Perches authored
      
      
      %pULL doesn't officially exist but %pUL does.
      
      Miscellanea:
      
      o Add missing newlines to a couple logging messages
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
      1cedc638
    • Linus Torvalds's avatar
      Merge tag 'sound-4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 16453c9c
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "The only core change is the fix for possible memory corruption by ALSA
        ctl API since 4.14 kernel due to a thinko.
      
        The rest are all device-specific: in addition to the usual suspects
        (HD-audio and USB-audio fixups), a few LPE HDMI audio fixes came in at
        this time"
      
      * tag 'sound-4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: x86: Fix potential crash at error path
        ALSA: x86: Fix missing spinlock and mutex initializations
        ALSA: control: Fix memory corruption risk in snd_ctl_elem_read
        ALSA: hda - Fix pincfg at resume on Lenovo T470 dock
        ALSA: usb-audio: Add a quirck for B&W PX headphones
        ALSA: hda: Add a power_save blacklist
        ALSA: x86: hdmi: Add single_port option for compatible behavior
      16453c9c
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 44896cd1
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
       "Two smallish pin control fixes: one actual code fix for the Meson and
        a MAINTAINERS update.
      
        Summary:
      
         - fix a pin group on the Meson
      
         - assign maintainers for Freescale/NXP pin controllers"
      
      * tag 'pinctrl-v4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        MAINTAINERS: add Freescale pin controllers
        pinctrl: meson-axg: adjust uart_ao_b pin group naming
      44896cd1
    • Linus Torvalds's avatar
      Merge tag 'gpio-v4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio · f902a778
      Linus Torvalds authored
      Pull GPIO fixes from Linus Walleij:
       "Fix up device tree properties readout caused by my own refactorings"
      
      * tag 'gpio-v4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
        gpio: Handle deferred probing in of_find_gpio() properly
        gpiolib: Keep returning EPROBE_DEFER when we should
      f902a778
  3. Mar 01, 2018