1. 24 Feb, 2017 12 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc · f8e6859e
      Linus Torvalds authored
      Pull sparc updates from David Miller:
      
       1) Support multiple huge page sizes, from Nitin Gupta.
      
       2) Improve boot time on large memory configurations, from Pavel
          Tatashin.
      
       3) Make BRK handling more consistent and documented, from Vijay Kumar.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
        sparc64: Fix build error in flush_tsb_user_page
        sparc64: memblock resizes are not handled properly
        sparc64: use latency groups to improve add_node_ranges speed
        sparc64: Add 64K page size support
        sparc64: Multi-page size support
        Documentation/sparc: Steps for sending break on sunhv console
        sparc64: Send break twice from console to return to boot prom
        sparc64: Migrate hvcons irq to panicked cpu
        sparc64: Set cpu state to offline when stopped
        sunvdc: Add support for setting physical sector size
        sparc64: fix for user probes in high memory
        sparc: topology_64.h: Fix condition for including cpudata.h
        sparc32: mm: srmmu: add __ro_after_init to sparc32_cachetlb_ops structures
      f8e6859e
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md · a682e003
      Linus Torvalds authored
      Pull md updates from Shaohua Li:
       "Mainly fixes bugs and improves performance:
      
         - Improve scalability for raid1 from Coly
      
         - Improve raid5-cache read performance, disk efficiency and IO
           pattern from Song and me
      
         - Fix a race condition of disk hotplug for linear from Coly
      
         - A few cleanup patches from Ming and Byungchul
      
         - Fix a memory leak from Neil
      
         - Fix WRITE SAME IO failure from me
      
         - Add doc for raid5-cache from me"
      
      * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md: (23 commits)
        md/raid1: fix write behind issues introduced by bio_clone_bioset_partial
        md/raid1: handle flush request correctly
        md/linear: shutup lockdep warnning
        md/raid1: fix a use-after-free bug
        RAID1: avoid unnecessary spin locks in I/O barrier code
        RAID1: a new I/O barrier implementation to remove resync window
        md/raid5: Don't reinvent the wheel but use existing llist API
        md: fast clone bio in bio_clone_mddev()
        md: remove unnecessary check on mddev
        md/raid1: use bio_clone_bioset_partial() in case of write behind
        md: fail if mddev->bio_set can't be created
        block: introduce bio_clone_bioset_partial()
        md: disable WRITE SAME if it fails in underlayer disks
        md/raid5-cache: exclude reclaiming stripes in reclaim check
        md/raid5-cache: stripe reclaim only counts valid stripes
        MD: add doc for raid5-cache
        Documentation: move MD related doc into a separate dir
        md: ensure md devices are freed before module is unloaded.
        md/r5cache: improve journal device efficiency
        md/r5cache: enable chunk_aligned_read with write back cache
        ...
      a682e003
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-block · 1802979a
      Linus Torvalds authored
      Pull block updates and fixes from Jens Axboe:
      
       - NVMe updates and fixes that missed the first pull request. This
         includes bug fixes, and support for autonomous power management.
      
       - Fix from Christoph for missing clear of the request payload, causing
         a problem with (at least) the storvsc driver.
      
       - Further fixes for the queue/bdi life time issues from Jan.
      
       - The Kconfig mq scheduler update from me.
      
       - Fixing a use-after-free in dm-rq, spotted by Bart, introduced in this
         merge window.
      
       - Three fixes for nbd from Josef.
      
       - Bug fix from Omar, fixing a bug in sas transport code that oopses
         when bsg ioctls were used. From Omar.
      
       - Improvements to the queue restart and tag wait from from Omar.
      
       - Set of fixes for the sed/opal code from Scott.
      
       - Three trivial patches to cciss from Tobin
      
      * 'for-linus' of git://git.kernel.dk/linux-block: (41 commits)
        dm-rq: don't dereference request payload after ending request
        blk-mq-sched: separate mark hctx and queue restart operations
        blk-mq: use sbq wait queues instead of restart for driver tags
        block/sed-opal: Propagate original error message to userland.
        nvme/pci: re-check security protocol support after reset
        block/sed-opal: Introduce free_opal_dev to free the structure and clean up state
        nvme: detect NVMe controller in recent MacBooks
        nvme-rdma: add support for host_traddr
        nvmet-rdma: Fix error handling
        nvmet-rdma: use nvme cm status helper
        nvme-rdma: move nvme cm status helper to .h file
        nvme-fc: don't bother to validate ioccsz and iorcsz
        nvme/pci: No special case for queue busy on IO
        nvme/core: Fix race kicking freed request_queue
        nvme/pci: Disable on removal when disconnected
        nvme: Enable autonomous power state transitions
        nvme: Add a quirk mechanism that uses identify_ctrl
        nvme: make nvmf_register_transport require a create_ctrl callback
        nvme: Use CNS as 8-bit field and avoid endianness conversion
        nvme: add semicolon in nvme_command setting
        ...
      1802979a
    • Jens Axboe's avatar
      dm-rq: don't dereference request payload after ending request · 61febef4
      Jens Axboe authored
      Bart reported a case where dm would crash with use-after-free
      poison. This is due to dm_softirq_done() accessing memory
      associated with a request after calling end_request on it.
      This is most visible on !blk-mq, since we free the memory
      immediately for that case.
      Reported-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
      Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Fixes: eb8db831 ("dm: always defer request allocation to the owner of the request_queue")
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      61febef4
    • Nitin Gupta's avatar
      sparc64: Fix build error in flush_tsb_user_page · ac65e282
      Nitin Gupta authored
      Patch "sparc64: Add 64K page size support"
      unconditionally used __flush_huge_tsb_one_entry()
      which is available only when hugetlb support is
      enabled.
      
      Another issue was incorrect TSB flushing for 64K
      pages in flush_tsb_user().
      Signed-off-by: default avatarNitin Gupta <nitin.m.gupta@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ac65e282
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace · f1ef09fd
      Linus Torvalds authored
      Pull namespace updates from Eric Biederman:
       "There is a lot here. A lot of these changes result in subtle user
        visible differences in kernel behavior. I don't expect anything will
        care but I will revert/fix things immediately if any regressions show
        up.
      
        From Seth Forshee there is a continuation of the work to make the vfs
        ready for unpriviled mounts. We had thought the previous changes
        prevented the creation of files outside of s_user_ns of a filesystem,
        but it turns we missed the O_CREAT path. Ooops.
      
        Pavel Tikhomirov and Oleg Nesterov worked together to fix a long
        standing bug in the implemenation of PR_SET_CHILD_SUBREAPER where only
        children that are forked after the prctl are considered and not
        children forked before the prctl. The only known user of this prctl
        systemd forks all children after the prctl. So no userspace
        regressions will occur. Holding earlier forked children to the same
        rules as later forked children creates a semantic that is sane enough
        to allow checkpoing of processes that use this feature.
      
        There is a long delayed change by Nikolay Borisov to limit inotify
        instances inside a user namespace.
      
        Michael Kerrisk extends the API for files used to maniuplate
        namespaces with two new trivial ioctls to allow discovery of the
        hierachy and properties of namespaces.
      
        Konstantin Khlebnikov with the help of Al Viro adds code that when a
        network namespace exits purges it's sysctl entries from the dcache. As
        in some circumstances this could use a lot of memory.
      
        Vivek Goyal fixed a bug with stacked filesystems where the permissions
        on the wrong inode were being checked.
      
        I continue previous work on ptracing across exec. Allowing a file to
        be setuid across exec while being ptraced if the tracer has enough
        credentials in the user namespace, and if the process has CAP_SETUID
        in it's own namespace. Proc files for setuid or otherwise undumpable
        executables are now owned by the root in the user namespace of their
        mm. Allowing debugging of setuid applications in containers to work
        better.
      
        A bug I introduced with permission checking and automount is now
        fixed. The big change is to mark the mounts that the kernel initiates
        as a result of an automount. This allows the permission checks in sget
        to be safely suppressed for this kind of mount. As the permission
        check happened when the original filesystem was mounted.
      
        Finally a special case in the mount namespace is removed preventing
        unbounded chains in the mount hash table, and making the semantics
        simpler which benefits CRIU.
      
        The vfs fix along with related work in ima and evm I believe makes us
        ready to finish developing and merge fully unprivileged mounts of the
        fuse filesystem. The cleanups of the mount namespace makes discussing
        how to fix the worst case complexity of umount. The stacked filesystem
        fixes pave the way for adding multiple mappings for the filesystem
        uids so that efficient and safer containers can be implemented"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        proc/sysctl: Don't grab i_lock under sysctl_lock.
        vfs: Use upper filesystem inode in bprm_fill_uid()
        proc/sysctl: prune stale dentries during unregistering
        mnt: Tuck mounts under others instead of creating shadow/side mounts.
        prctl: propagate has_child_subreaper flag to every descendant
        introduce the walk_process_tree() helper
        nsfs: Add an ioctl() to return owner UID of a userns
        fs: Better permission checking for submounts
        exit: fix the setns() && PR_SET_CHILD_SUBREAPER interaction
        vfs: open() with O_CREAT should not create inodes with unknown ids
        nsfs: Add an ioctl() to return the namespace type
        proc: Better ownership of files for non-dumpable tasks in user namespaces
        exec: Remove LSM_UNSAFE_PTRACE_CAP
        exec: Test the ptracer's saved cred to see if the tracee can gain caps
        exec: Don't reset euid and egid when the tracee has CAP_SETUID
        inotify: Convert to using per-namespace limits
      f1ef09fd
    • Linus Torvalds's avatar
      Merge tag 'drm-for-v4.11-less-shouty' of git://people.freedesktop.org/~airlied/linux · ef96152e
      Linus Torvalds authored
      Pull drm updates from Dave Airlie:
       "This is the main drm pull request for v4.11.
      
        Nothing too major, the tinydrm and mmu-less support should make
        writing smaller drivers easier for some of the simpler platforms, and
        there are a bunch of documentation updates.
      
        Intel grew displayport MST audio support which is hopefully useful to
        people, and FBC is on by default for GEN9+ (so people know where to
        look for regressions). AMDGPU has a lot of fixes that would like new
        firmware files installed for some GPUs.
      
        Other than that it's pretty scattered all over.
      
        I may have a follow up pull request as I know BenH has a bunch of AST
        rework and fixes and I'd like to get those in once they've been tested
        by AST, and I've got at least one pull request I'm just trying to get
        the author to fix up.
      
        Core:
         - drm_mm reworked
         - Connector list locking and iterators
         - Documentation updates
         - Format handling rework
         - MMU-less support for fbdev helpers
         - drm_crtc_from_index helper
         - Core CRC API
         - Remove drm_framebuffer_unregister_private
         - Debugfs cleanup
         - EDID/Infoframe fixes
         - Release callback
         - Tinydrm support (smaller drivers for simple hw)
      
        panel:
         - Add support for some new simple panels
      
        i915:
         - FBC by default for gen9+
         - Shared dpll cleanups and docs
         - GEN8 powerdomain cleanup
         - DMC support on GLK
         - DP MST audio support
         - HuC loading support
         - GVT init ordering fixes
         - GVT IOMMU workaround fix
      
        amdgpu/radeon:
         - Power/clockgating improvements
         - Preliminary SR-IOV support
         - TTM buffer priority and eviction fixes
         - SI DPM quirks removed due to firmware fixes
         - Powerplay improvements
         - VCE/UVD powergating fixes
         - Cleanup SI GFX code to match CI/VI
         - Support for > 2 displays on 3/5 crtc asics
         - SI headless fixes
      
        nouveau:
         - Rework securre boot code in prep for GP10x secure boot
         - Channel recovery improvements
         - Initial power budget code
         - MMU rework preperation
      
        vmwgfx:
         - Bunch of fixes and cleanups
      
        exynos:
         - Runtime PM support for MIC driver
         - Cleanups to use atomic helpers
         - UHD Support for TM2/TM2E boards
         - Trigger mode fix for Rinato board
      
        etnaviv:
         - Shader performance fix
         - Command stream validator fixes
         - Command buffer suballocator
      
        rockchip:
         - CDN DisplayPort support
         - IOMMU support for arm64 platform
      
        imx-drm:
         - Fix i.MX5 TV encoder probing
         - Remove lower fb size limits
      
        msm:
         - Support for HW cursor on MDP5 devices
         - DSI encoder cleanup
         - GPU DT bindings cleanup
      
        sti:
         - stih410 cleanups
         - Create fbdev at binding
         - HQVDP fixes
         - Remove stih416 chip functionality
         - DVI/HDMI mode selection fixes
         - FPS statistic reporting
      
        omapdrm:
         - IRQ code cleanup
      
        dwi-hdmi bridge:
         - Cleanups and fixes
      
        adv-bridge:
         - Updates for nexus
      
        sii8520 bridge:
         - Add interlace mode support
         - Rework HDMI and lots of fixes
      
        qxl:
         - probing/teardown cleanups
      
        ZTE drm:
         - HDMI audio via SPDIF interface
         - Video Layer overlay plane support
         - Add TV encoder output device
      
        atmel-hlcdc:
         - Rework fbdev creation logic
      
        tegra:
         - OF node fix
      
        fsl-dcu:
         - Minor fixes
      
        mali-dp:
         - Assorted fixes
      
        sunxi:
         - Minor fix"
      
      [ This was the "fixed" pull, that still had build warnings due to people
        not even having build tested the result. I'm not a happy camper
      
        I've fixed the things I noticed up in this merge.      - Linus ]
      
      * tag 'drm-for-v4.11-less-shouty' of git://people.freedesktop.org/~airlied/linux: (1177 commits)
        lib/Kconfig: make PRIME_NUMBERS not user selectable
        drm/tinydrm: helpers: Properly fix backlight dependency
        drm/tinydrm: mipi-dbi: Fix field width specifier warning
        drm/tinydrm: mipi-dbi: Silence: ‘cmd’ may be used uninitialized
        drm/sti: fix build warnings in sti_drv.c and sti_vtg.c files
        drm/amd/powerplay: fix PSI feature on Polars12
        drm/amdgpu: refuse to reserve io mem for split VRAM buffers
        drm/ttm: fix use-after-free races in vm fault handling
        drm/tinydrm: Add support for Multi-Inno MI0283QT display
        dt-bindings: Add Multi-Inno MI0283QT binding
        dt-bindings: display/panel: Add common rotation property
        of: Add vendor prefix for Multi-Inno
        drm/tinydrm: Add MIPI DBI support
        drm/tinydrm: Add helper functions
        drm: Add DRM support for tiny LCD displays
        drm/amd/amdgpu: post card if there is real hw resetting performed
        drm/nouveau/tmr: provide backtrace when a timeout is hit
        drm/nouveau/pci/g92: Fix rearm
        drm/nouveau/drm/therm/fan: add a fallback if no fan control is specified in the vbios
        drm/nouveau/hwmon: expose power_max and power_crit
        ..
      ef96152e
    • Dave Airlie's avatar
      lib/Kconfig: make PRIME_NUMBERS not user selectable. · 64a57719
      Dave Airlie authored
      Linus doesn't like it user selectable, so kill it until
      someone needs it for something else.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      64a57719
    • Noralf Trønnes's avatar
      drm/tinydrm: helpers: Properly fix backlight dependency · 7fef80a4
      Noralf Trønnes authored
      BACKLIGHT_CLASS_DEVICE was selected in the last version of the
      tinydrm patchset to fix the backlight dependency, but the
      ifdef CONFIG_BACKLIGHT_CLASS_DEVICE was forgotten. Fix that.
      Signed-off-by: default avatarNoralf Trønnes <noralf@tronnes.org>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      7fef80a4
    • Noralf Trønnes's avatar
      drm/tinydrm: mipi-dbi: Fix field width specifier warning · ce8c0137
      Noralf Trønnes authored
      This warning is seen on 64-bit builds in functions:
         'mipi_dbi_typec1_command':
         'mipi_dbi_typec3_command_read':
         'mipi_dbi_typec3_command':
      
      >> drivers/gpu/drm/tinydrm/mipi-dbi.c:65:20: warning: field width specifier '*' expects argument of type 'int', but argument 5 has type 'size_t {aka long unsigned int}' [-Wformat=]
            DRM_DEBUG_DRIVER("cmd=%02x, par=%*ph\n", cmd, len, data); \
                             ^
         include/drm/drmP.h:228:40: note: in definition of macro 'DRM_DEBUG_DRIVER'
           drm_printk(KERN_DEBUG, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
                                                 ^~~
      >> drivers/gpu/drm/tinydrm/mipi-dbi.c:671:2: note: in expansion of macro 'MIPI_DBI_DEBUG_COMMAND'
           MIPI_DBI_DEBUG_COMMAND(cmd, parameters, num);
           ^~~~~~~~~~~~~~~~~~~~~~
      
      Fix by casting 'len' to int in the macro MIPI_DBI_DEBUG_COMMAND().
      There is no chance of overflow.
      Signed-off-by: default avatarNoralf Trønnes <noralf@tronnes.org>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      ce8c0137
    • Noralf Trønnes's avatar
      drm/tinydrm: mipi-dbi: Silence: ‘cmd’ may be used uninitialized · b401f343
      Noralf Trønnes authored
      Fix this warning:
      drivers/gpu/drm/tinydrm/mipi-dbi.c: In function ‘mipi_dbi_debugfs_command_write’:
      drivers/gpu/drm/tinydrm/mipi-dbi.c:905:8: warning: ‘cmd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        ret = mipi_dbi_command_buf(mipi, cmd, parameters, i);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      cmd can't be used uninitialized, but to satisfy the compiler,
      initialize it to zero.
      Signed-off-by: default avatarNoralf Trønnes <noralf@tronnes.org>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      b401f343
    • Linus Torvalds's avatar
      Merge tag 'usercopy-v4.11-rc1.fix' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · d5500a07
      Linus Torvalds authored
      Pull usercopy test fix from Kees Cook:
       "Fix for non-MMU ARM testing, from Arnd Bergmann"
      
      * tag 'usercopy-v4.11-rc1.fix' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        usercopy: ARM NOMMU has no 64-bit get_user
      d5500a07
  2. 23 Feb, 2017 28 commits
    • Linus Torvalds's avatar
      Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · b2e3c431
      Linus Torvalds authored
      Pull ARM SoC driver updates from Arnd Bergmann:
       "Driver updates for ARM SoCs.
      
        A handful of driver changes this time around. The larger changes are:
      
         - Reset drivers for hi3660 and zx2967
      
         - AHCI driver for Davinci, acked by Tejun and brought in here due to
           platform dependencies
      
         - Cleanups of atmel-ebi (External Bus Interface)
      
         - Tweaks for Rockchip GRF (General Register File) usage (kitchensink
           misc register range on the SoCs)
      
         - PM domains changes for support of two new ZTE SoCs (zx296718 and
           zx2967)"
      
      * tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (53 commits)
        soc: samsung: pmu: Add register defines for pad retention control
        reset: make zx2967 explicitly non-modular
        reset: core: fix reset_control_put
        soc: samsung: pm_domains: Read domain name from the new label property
        soc: samsung: pm_domains: Remove message about failed memory allocation
        soc: samsung: pm_domains: Remove unused name field
        soc: samsung: pm_domains: Use full names in subdomains registration log
        sata: ahci-da850: un-hardcode the MPY bits
        sata: ahci-da850: add a workaround for controller instability
        sata: ahci: export ahci_do_hardreset() locally
        sata: ahci-da850: implement a workaround for the softreset quirk
        sata: ahci-da850: add device tree match table
        sata: ahci-da850: get the sata clock using a connection id
        soc: samsung: pmu: Remove duplicated define for ARM_L2_OPTION register
        memory: atmel-ebi: Enable the SMC clock if specified
        soc: samsung: pmu: Remove unused and duplicated defines
        memory: atmel-ebi: Properly handle multiple reference to the same CS
        memory: atmel-ebi: Fix the test to enable generic SMC logic
        soc: samsung: pm_domains: Add new Exynos5433 compatible
        soc: samsung: pmu: Add dummy support for Exynos5433 SoC
        ...
      b2e3c431
    • Linus Torvalds's avatar
      Merge tag 'armsoc-dt64' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · c61c15e0
      Linus Torvalds authored
      Pull ARM 64-bit DT updates from Arnd Bergmann:
       "ARM64 DT updates are fairly small this time, only two new SoCs and a
        handful of new machines get added, all of them similar to other
        hardware we already support.
      
        New SoC:
      
         - HiSilicon Kirin960/Hi3660 and HiKey960 development board
      
         - NXP LS1012a with three reference boards:
              http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/qoriq-layerscape-arm-processors/qoriq-layerscape-1012a-low-power-communication-processor:LS1012A
      
        New development board:
      
         - Banana Pi M64, based on Allwinner A64:
              http://www.banana-pi.org/m64.html
      
         - SolidRun MACCHIATOBin based on Marvell Armada 8K:
              https://www.solid-run.com/marvell-armada-family/armada-8040-community-board/
      
         - Broadcom BCM958712DxXMC NorthStar2 reference board (another one)
      
        A lot of platforms improve support for existing machines by adding
        extra devices for which a binding and driver is availabe:
      
        Allwinner:
         - MMC, USB
      
        ARM Juno:
         - Coresight, STM
      
        Broadcom:
         - NS2 GICv2m irqchip and PCIe
      
        Marvell:
         - Armada 3700 SPI, I2C, ethernet switch
      
        Mediatek:
         - MT8173 thermal
      
        NXP i.MX:
         - LS1046A thermal
      
        Qualcomm:
         - coresight on MSM8916, HDMI, WCNSS, SCM
      
        Renesas:
         - r8a779[56] thermal, powerdomain, ethernet, sound, pwm, can, can fd
      
        Rockchip:
         - thermal, eDP, pinctrl enhancements
      
        Samsung:
         - TM2 touchkey, Exynos5433 HDMI and power management improvements
      
        UniPhier:
         - SD reset, eMMC controller
      
        ZTE:
         - oppv2 cpufreq"
      
      * tag 'armsoc-dt64' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (110 commits)
        arm64: dts: qcom: Add msm8916 CoreSight components
        arm64: dts: marvell: adjust name of sd-mmc-gop clock in syscon
        arm64: allwinner: add BananaPi-M64 support
        arm64: allwinner: a64: add UART1 pin nodes
        arm64: allwinner: pine64: add MMC support
        arm64: allwinner: a64: Increase the MMC max frequency
        arm64: allwinner: a64: Add MMC pinctrl nodes
        arm64: allwinner: a64: Add MMC nodes
        dt-bindings: clockgen: Add compatible string for LS1012A
        Documentation: DT: add LS1012A compatible for SCFG and DCFG
        Documentation: DT: Add entry for FSL LS1012A RDB, FRDM, QDS boards
        arm64: dts: marvell: add generic-ahci compatibles for CP110 ahci
        arm64: tegra: Use symbolic reset identifiers
        arm64: dts: r8a7796: Mark EthernetAVB device node disabled
        arm64: dts: r8a7795: Mark EthernetAVB device node disabled
        arm64: dts: r8a7795: tidyup audma definition order
        arm64: dts: r8a7796: Link ARM GIC to clock and clock domain
        arm64: dts: r8a7795: Link ARM GIC to clock and clock domain
        arm64: dts: r8a7796: Add R-Car Gen3 thermal support
        arm64: dts: r8a7795: Add R-Car Gen3 thermal support
        ...
      c61c15e0
    • Linus Torvalds's avatar
      Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 195849ea
      Linus Torvalds authored
      Pull ARM DT updates from Arnd Bergmann:
       "A total of 380 patches this time, mostly adding support for more
        hardware in the device tree descriptions. There is not much exciting
        here for 4.11, but I've tried my best to condense the information from
        the pull requests I got into a readable summary.
      
        Noteworthy changes to existing platforms include:
      
         - The GIC memory map was a bit wrong almost everywhere and now gets
           fixed up
      
         - The Allwinner platforms convert to the generic pinmux properties
      
         - The Marvell EBU platforms now use the new DSA binding
      
         - Samsung Exynos4212 was unused and gets removed
      
         - The Renesas power management got improved
      
        New production machines:
      
         - Lego Mindstorms EV3:
              https://www.lego.com/en-us/mindstorms/about-ev3
      
         - Beelink X2 Android media box:
              http://linux-sunxi.org/Beelink_X2
      
         - "Romulus" baseboard management controller for OpenPower
      
         - Axentia TSE-850 Data Radio Channel (DARC) encoder:
              http://www.axentia.se/db/equipment.html
      
         - Luxul XAP-1410 and XWR-1200 wireless access points:
              https://luxul.com/xap-1410
      
        New SoCs:
      
         - Allwinner H2+ and V3s, both minor variations of already supported
           chips:
              http://www.allwinnertech.com/index.php?c=product&a=index&id=38
      
         - Marvell Prestera DX packet processors based on Armada XP
           architecture:
              http://www.marvell.com/switching/prestera-dx/
      
         - Samsung Exynos4412 Prime gets added, a minor variation of
           Exynos4412
      
        New developer and reference boards:
      
         - Lichee Pi One, Lichee Pi Zero and Orange Pi Zero, all based on
           Allwinner SoCs:
              http://linux-sunxi.org/LicheePi_One
              http://www.orangepi.org/orangepizero/
      
         - SAMA5d36ek Reference platform:
              http://www.atmel.com/tools/sama5d36-ek.aspx
      
         - Beaglebone Green Wireless and Black Wireless:
              https://beagleboard.org/black-wireless
              https://beagleboard.org/green-wireless
      
         - phyCORE-AM335x System on Module:
              http://phytec.com/products/system-on-modules/phycore/am335x/
      
         - New revision of "vf610-zii" Zodiac Inflight Innovations board
      
         - Various i.MX System-on-Module: Is.IoT MX6UL, SavageBoard, Engicam
           i.Core:
              http://www.opossom.com/english/index.html
              http://www.savageboard.org/
              http://www.engicam.com/en/products/embedded/som/sodimm/is-iot-mx6ul
              http://www.engicam.com/en/products/embedded/som/sodimm/i-core-m6s-dl-d-q
      
         - Liebherr (LWN) monitor 6 based on i.MX6 Quad, no idea what this is
      
         - Cleanups and bugfixes on at91, bcm53xx, i.MX, mvebu, omap, oxnas,
           qcom, rockchip, sti, stm32 and tegra
      
        New device supports added to some boards and SoCs, briefly by platform:
      
         - Allwinner: SPDIF, A33 cpufreq, A33 Mali GPU
      
         - Aspeed: network, ipmi bt, gpio, pinmux
      
         - Broadcom: video encoder for raspberry pi, qspi, ethernet, sd/mmc
      
         - TI DaVinci: gpio, lcdc, usb, video-in, uart
      
         - TI Keystone 2: MSM RAM, power/reset, uart
      
         - Mediatek MT2701: clocks, iommu, spi, nand, adc, thermal
      
         - Marvell EBU: ethernet switch on Turris Omnia
      
         - NXP i.MX: otp ram, USB, wifi, bluetooth, spdif, spi, pmic, eeprom,
           mmc, nand
      
         - TI OMAP:
      
         - Qualcomm: coresight, gyro/accelerometer, hdmi
      
         - Renesas: pmic, soc-id
      
         - Rockchip: qos
      
         - Samsung: audio on Odroid-X
      
         - Socfpga: FPGA manager, i2c, led, can, watchdog, nand, power monitor
      
         - STi: video in/out
      
         - STM32: timer, pwm, i2c, rtc, add, i2s
      
         - NVIDIA Tegra: tpm
      
         - Uniphier: mmc/sd pinmux"
      
      * tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (380 commits)
        ARM: dts: armada-385-linksys: fix DSA compatible property
        ARM: dts: Fix typo in armada-xp-98dx4251
        ARM: DTS: Fix register map for virt-capable GIC
        dt-bindings: arm,gic: Fix binding example for a virt-capable GIC
        ARM: dts: sun8i: sinlinx: Enable audio nodes
        ARM: dts: sun8i: parrot: Enable audio nodes
        ARM: dts: sun8i: Add audio codec, dai and card for A33
        ARM: dts: Add EMAC AXI settings for Arria10
        ARM: dts: am335x-chiliboard: Support charger
        ARM: dts: am335x-chiliboard: Support power button
        ARM: sun8i: dt: Add mali node
        dt-bindings: gpu: Add Mali Utgard bindings
        ARM: dts: stm32: Add I2C1 support for STM32429 eval board
        ARM: dts: stm32: Add I2C1 support for STM32F429 SoC
        ARM: dts: stm32: Use clock DT binding definition on stm32f429 family
        dt-bindings: mfd: stm32f4: Add missing binding definition
        dt-bindings: mfd: stm32f4: Fix STM32F4_X_CLOCK() macro
        ARM: dts: stm32: Enable pwm1 and pwm3 for stm32f469-disco
        ARM: dts: stm32: add Timers driver for stm32f429 MCU
        ARM: dts: add the AB8500 sysclk to the device trees
        ...
      195849ea
    • Linus Torvalds's avatar
      Merge tag 'armsoc-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 54fff785
      Linus Torvalds authored
      Pull ARM SoC defconfig updates from Arnd Bergmann:
       "Defconfig additions, removals, etc. Almost all of them just turn on
        drivers that we want on some platform, usually after the driver has
        been merged into mainline.
      
        There is now a new defconfig file for tango4"
      
      * tag 'armsoc-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (44 commits)
        ARM: multi_v7_defconfig: enable pstore configs
        ARM: multi_v7_defconfig: enable some newly added crypto modules
        ARM: davinci_all_defconfig: enable SATA modules
        arm64: defconfig: enable CONFIG_MTD_NAND and CONFIG_MTD_NAND_DENALI_DT
        arm64: defconfig: enable CONFIG_MTD_BLOCK
        ARM: Import tango4_defconfig
        ARM: omap2plus_defconfig: Enable support for RTC M41T80
        ARM: omap2plus_defconfig: Enable support for micrell phys
        ARM: vf610m4: defconfig: enable EXT4 filesystem
        ARM: omap2plus_defconfig: Fix probe errors on UARTs 5 and 6
        arm64: defconfig: Enable NUMA and NUMA_BALANCING
        arm64: defconfig: enable SMMUv3 config
        ARM: davinci_all_defconfig: enable iio
        ARM: Keystone: Enable ARCH_HAS_RESET_CONTROLLER
        ARM: configs: stm32: Add RTC support in STM32 defconfig
        ARM: defconfig: qcom: add APQ8060 DragonBoard devices
        ARM: qcom_defconfig: enable thermal sensors
        ARM: qcom_defconfig: add ahci configs
        ARM: qcom_defconfig: add pcie and atl1c ethernet configs
        ARM: qcom_defconfig: add usb related configs
        ...
      54fff785
    • Linus Torvalds's avatar
      Merge tag 'armsoc-arm64' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · c35675f3
      Linus Torvalds authored
      Pull ARM SoC 64-bit updates from Arnd Bergmann:
       "Changes to platform code for 64-bit ARM platforms, only trivial stuff
        this time, a few defconfig changes to enable drivers, and a new entry
        for the Cavium ThunderX2 platform"
      
      * tag 'armsoc-arm64' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        MAINTAINERS: Add Cavium ThunderX2 entry
        arm64: add ARCH_THUNDER2 to defconfig
        arm64: add THUNDER2 processor family
        MAINTAINERS: Extend ARM/Mediatek SoC support section
        arm64: defconfig: enable CONFIG_MMC_SDHCI_CADENCE
        arm64: defconfig: enable XORv2 for Marvell Armada 7K/8K
      c35675f3
    • Linus Torvalds's avatar
      Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 6ae52c65
      Linus Torvalds authored
      Pull ARM SoC platform updates from Arnd Bergmann:
       "In the SoC branch we normally collect classic arch/arm/mach-*
        contents, i.e. C code changes for SoC platforms. This release cycle
        the diffstat is quite nice, in that we're removing 3x the amount of
        code that's being added.
      
        The main reason for this is that there's a removal of camera drivers
        for Freescale i.MX chips (driver was removed so the device
        registration isn't needed any more). There's also removal of display
        initialization code for OMAP that is no longer needed.
      
        The rest are mostly minor tweaks and cleanups; constification on
        Samsung platforms, cleanup of ux500 platform data, purge of other
        unused platform data/device seutp on i.MX and other good stuff.
      
        New SoC support this cycle is for two Allwinner platforms, H2+ and
        V3s"
      
      * tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (55 commits)
        ARM: ux500: remove deleted file from Makefile
        ARM: ep93xx: Disable TS-72xx watchdog before uncompressing
        ARM: ux500: cut some platform data
        MAINTAINERS: Update for the current location of the bcm2835 tree.
        ARM: davinci: remove BUG_ON() from da850_register_sata()
        ARM: davinci: da850: model the SATA refclk
        ARM: davinci: da850: add con_id for the SATA clock
        ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for SATA
        arm: mvebu: support for SMP on 98DX3336 SoC
        dt-bindings: video: exynos7-decon: Remove obsolete samsung,power-domain property
        soc: dove: constify reset_control_ops structures
        ARM: mv78xx0: fix possible PCI buffer overflow
        MAINTAINERS: transfer maintainership for the EZX platform
        ARM: shmobile: rcar-gen2: Add more register documentation
        ARM: tegra: paz00: Fix __initdata placement
        ARM: OMAP: clock: Remove unused mpurate cmdline option
        ARM: davinci: add skeleton for pdata-quirks
        arm: sunxi: add support for V3s SoC
        ARM: OMAP2+: omap_hwmod: Add support for earlycon
        arm: hisi: drop extern hip01_cpu_die
        ...
      6ae52c65
    • Linus Torvalds's avatar
      Merge tag 'armsoc-fixes-nc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · af8999f6
      Linus Torvalds authored
      Pull ARM SoC non-urgent fixes from Arnd Bergmann:
       "We sometimes collect non-critical fixes that come in during the later
        part of the merge window in a branch for the next release instead, and
        this is that contents for v4.11.
      
        Most of these are OMAP fixes, dealing with OMAP36/37 detection, quirks
        and setup. There's also some fixes for Davinci and a Kconfig fix for
        SCPI to only enable on ARM{,64}"
      
      * tag 'armsoc-fixes-nc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        firmware: arm_scpi: Add hardware dependencies
        ARM: OMAP3: Fix SoC detection of OMAP36/37 Family
        ARM: OMAP5: Add HWMOD_SWSUP_SIDLE_ACT flag for UART
        ARM: dts: Fix compatible for ti81xx uarts for 8250
        ARM: dts: Fix am335x and dm814x scm syscon to probe children
        ARM: OMAP2+: Fix init for multiple quirks for the same SoC
        ARM: dts: Fix omap3 off mode pull defines
        bus: da850-mstpri: fix my e-mail address
        ARM: davinci: da850: fix da850_set_pll0rate()
        ARM: davinci: da850: coding style fix
      af8999f6
    • Dave Airlie's avatar
      Merge branch 'drm-next-4.11' of git://people.freedesktop.org/~agd5f/linux into drm-next · 1e8ad3d8
      Dave Airlie authored
      Some ttm/amd fixes.
      
      * 'drm-next-4.11' of git://people.freedesktop.org/~agd5f/linux:
        drm/amd/powerplay: fix PSI feature on Polars12.
        drm/amdgpu: refuse to reserve io mem for split VRAM buffers
        drm/ttm: fix use-after-free races in vm fault handling
        drm/amd/amdgpu: post card if there is real hw resetting performed
      1e8ad3d8
    • Dave Airlie's avatar
      Merge tag 'drm/panel/for-4.11-rc1' of git://anongit.freedesktop.org/tegra/linux into drm-next · 894ebc41
      Dave Airlie authored
      drm/panel: Changes for v4.11-rc1
      
      This set contains a couple of cleanups as well as support for a few more
      simple panels.
      
      * tag 'drm/panel/for-4.11-rc1' of git://anongit.freedesktop.org/tegra/linux:
        drm/panel: simple: Specify bus width and flags for EDT displays
        drm/panel: simple: Add Netron DY E231732
        of: Add vendor prefix for Netron DY
        drm/panel: simple: Add support for Tianma TM070JDHG30
        of: Add vendor prefix for Tianma Micro-electronics
        drm/panel: simple: Add support BOE NV101WXMN51
        dt-bindings: display: Add BOE NV101WXMN51 panel binding
        drm/panel: Constify device node argument to of_drm_find_panel()
      894ebc41
    • Dave Airlie's avatar
      Merge tag 'drm/tegra/for-4.11-rc1' of git://anongit.freedesktop.org/tegra/linux into drm-next · 84f7174b
      Dave Airlie authored
      drm/tegra: Changes for v4.11-rc1
      
      Just a single change that hooks up the Tegra DRM parent device to the
      correct device tree node.
      
      * tag 'drm/tegra/for-4.11-rc1' of git://anongit.freedesktop.org/tegra/linux:
        gpu: host1x: Set OF node for new host1x devices
      84f7174b
    • Shaohua Li's avatar
      md/raid1: fix write behind issues introduced by bio_clone_bioset_partial · 1ec49223
      Shaohua Li authored
      There are two issues, introduced by commit 8e58e327(md/raid1: use
      bio_clone_bioset_partial() in case of write behind):
      - bio_clone_bioset_partial() uses bytes instead of sectors as parameters
      - in writebehind mode, we return bio if all !writemostly disk bios finish,
        which could happen before writemostly disk bios run. So all
        writemostly disk bios should have their bvec. Here we just make sure
        all bios are cloned instead of fast cloned.
      Reviewed-by: default avatarMing Lei <tom.leiming@gmail.com>
      Signed-off-by: default avatarShaohua Li <shli@fb.com>
      1ec49223
    • Shaohua Li's avatar
      md/raid1: handle flush request correctly · aff8da09
      Shaohua Li authored
      I got a warning triggered in align_to_barrier_unit_end. It's a flush
      request so sectors == 0. The flush request happens to work well without
      the new barrier patch, but we'd better handle it explictly.
      
      Cc: NeilBrown <neilb@suse.com>
      Acked-by: default avatarColy Li <colyli@suse.de>
      Signed-off-by: default avatarShaohua Li <shli@fb.com>
      aff8da09
    • Shaohua Li's avatar
      md/linear: shutup lockdep warnning · d939cdfd
      Shaohua Li authored
      Commit 03a9e24e(md linear: fix a race between linear_add() and
      linear_congested()) introduces the warnning.
      Acked-by: default avatarColy Li <colyli@suse.de>
      Signed-off-by: default avatarShaohua Li <shli@fb.com>
      d939cdfd
    • Linus Torvalds's avatar
      Merge tag 'pci-v4.11-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · 60e8d3e1
      Linus Torvalds authored
      Pull PCI updates from Bjorn Helgaas:
      
       - add ASPM L1 substate support
      
       - enable PCIe Extended Tags when supported
      
       - configure PCIe MPS settings on iProc, Versatile, X-Gene, and Xilinx
      
       - increase VPD access timeout
      
       - add ACS quirks for Intel Union Point, Qualcomm QDF2400 and QDF2432
      
       - use new pci_irq_alloc_vectors() in more drivers
      
       - fix MSI affinity memory leak
      
       - remove unused MSI interfaces and update documentation
      
       - remove unused AER .link_reset() callback
      
       - avoid pci_lock / p->pi_lock deadlock seen with perf
      
       - serialize sysfs enable/disable num_vfs operations
      
       - move DesignWare IP from drivers/pci/host/ to drivers/pci/dwc/ and
         refactor so we can support both hosts and endpoints
      
       - add DT ECAM-like support for HiSilicon Hip06/Hip07 controllers
      
       - add Rockchip system power management support
      
       - add Thunder-X cn81xx and cn83xx support
      
       - add Exynos 5440 PCIe PHY support
      
      * tag 'pci-v4.11-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (93 commits)
        PCI: dwc: Remove dependency of designware on CONFIG_PCI
        PCI: dwc: Add CONFIG_PCIE_DW_HOST to enable PCI dwc host
        PCI: dwc: Split pcie-designware.c into host and core files
        PCI: dwc: designware: Fix style errors in pcie-designware.c
        PCI: dwc: designware: Parse "num-lanes" property in dw_pcie_setup_rc()
        PCI: dwc: all: Split struct pcie_port into host-only and core structures
        PCI: dwc: designware: Get device pointer at the start of dw_pcie_host_init()
        PCI: dwc: all: Rename cfg_read/cfg_write to read/write
        PCI: dwc: all: Use platform_set_drvdata() to save private data
        PCI: dwc: designware: Move register defines to designware header file
        PCI: dwc: Use PTR_ERR_OR_ZERO to simplify code
        PCI: dra7xx: Group PHY API invocations
        PCI: dra7xx: Enable MSI and legacy interrupts simultaneously
        PCI: dra7xx: Add support to force RC to work in GEN1 mode
        PCI: dra7xx: Simplify probe code with devm_gpiod_get_optional()
        PCI: Move DesignWare IP support to new drivers/pci/dwc/ directory
        PCI: exynos: Support the PHY generic framework
        Documentation: binding: Modify the exynos5440 PCIe binding
        phy: phy-exynos-pcie: Add support for Exynos PCIe PHY
        Documentation: samsung-phy: Add exynos-pcie-phy binding
        ...
      60e8d3e1
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 190c3ee0
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Some 'const'ing in qlogic networking drivers, from Bhumika Goyal.
      
       2) Fix scheduling while atomic in l2tp network namespace exit by
          deferring the work to the workqueue. From Ridge Kennedy.
      
       3) Fix use after free in dccp timewait handling, from Andrey Ryabinin.
      
       4) mlx5e CQE compression engine not initialized properly, from Tariq
          Toukan.
      
       5) Some UAPI header fixes from Dmitry V. Levin.
      
       6) Don't overwrite module parameter value in mlx4 driver, from Majd
          Dibbiny.
      
       7) Fix divide by zero in xt_hashlimit netfilter module, from Alban
          Browaeys.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (35 commits)
        bpf: Fix bpf_xdp_event_output
        net/mlx4_en: Use __skb_fill_page_desc()
        net/mlx4_core: Use cq quota in SRIOV when creating completion EQs
        net/mlx4_core: Fix VF overwrite of module param which disables DMFS on new probed PFs
        net/mlx4: Spoofcheck and zero MAC can't coexist
        net/mlx4: Change ENOTSUPP to EOPNOTSUPP
        uapi: fix linux/rds.h userspace compilation errors
        uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors
        lib: Remove string from parman config selection
        forcedeth: Remove return from a void function
        bpf: fix spelling mistake: "proccessed" -> "processed"
        uapi: fix linux/llc.h userspace compilation error
        uapi: fix linux/ip6_tunnel.h userspace compilation errors
        net/mlx5e: Fix wrong CQE decompression
        net/mlx5e: Update MPWQE stride size when modifying CQE compress state
        net/mlx5e: Fix broken CQE compression initialization
        net/mlx5e: Do not reduce LRO WQE size when not using build_skb
        net/mlx5e: Register/unregister vport representors on interface attach/detach
        net/mlx5e: s390 system compilation fix
        tcp: account for ts offset only if tsecr not zero
        ...
      190c3ee0
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma · af17fe7a
      Linus Torvalds authored
      Pull Mellanox rdma updates from Doug Ledford:
       "Mellanox specific updates for 4.11 merge window
      
        Because the Mellanox code required being based on a net-next tree, I
        keept it separate from the remainder of the RDMA stack submission that
        is based on 4.10-rc3.
      
        This branch contains:
      
         - Various mlx4 and mlx5 fixes and minor changes
      
         - Support for adding a tag match rule to flow specs
      
         - Support for cvlan offload operation for raw ethernet QPs
      
         - A change to the core IB code to recognize raw eth capabilities and
           enumerate them (touches non-Mellanox code)
      
         - Implicit On-Demand Paging memory registration support"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (40 commits)
        IB/mlx5: Fix configuration of port capabilities
        IB/mlx4: Take source GID by index from HW GID table
        IB/mlx5: Fix blue flame buffer size calculation
        IB/mlx4: Remove unused variable from function declaration
        IB: Query ports via the core instead of direct into the driver
        IB: Add protocol for USNIC
        IB/mlx4: Support raw packet protocol
        IB/mlx5: Support raw packet protocol
        IB/core: Add raw packet protocol
        IB/mlx5: Add implicit MR support
        IB/mlx5: Expose MR cache for mlx5_ib
        IB/mlx5: Add null_mkey access
        IB/umem: Indicate that process is being terminated
        IB/umem: Update on demand page (ODP) support
        IB/core: Add implicit MR flag
        IB/mlx5: Support creation of a WQ with scatter FCS offload
        IB/mlx5: Enable QP creation with cvlan offload
        IB/mlx5: Enable WQ creation and modification with cvlan offload
        IB/mlx5: Expose vlan offloads capabilities
        IB/uverbs: Enable QP creation with cvlan offload
        ...
      af17fe7a
    • Linus Torvalds's avatar
      Merge tag 'vfio-v4.11-rc1' of git://github.com/awilliam/linux-vfio · f14cc3b1
      Linus Torvalds authored
      Pull VFIO updates from Alex Williamson:
      
       - Kconfig fixes for SPAPR_TCE_IOMMU=n (Michael Ellerman)
      
       - Module softdep rather than request_module to simplify usage from
         initrd (Alex Williamson)
      
       - Comment typo fix (Changbin Du)
      
      * tag 'vfio-v4.11-rc1' of git://github.com/awilliam/linux-vfio:
        vfio: fix a typo in comment of function vfio_pin_pages
        vfio: Replace module request with softdep
        vfio/mdev: Use a module softdep for vfio_mdev
        vfio: Fix build break when SPAPR_TCE_IOMMU=n
      f14cc3b1
    • Omar Sandoval's avatar
      blk-mq-sched: separate mark hctx and queue restart operations · d38d3515
      Omar Sandoval authored
      In blk_mq_sched_dispatch_requests(), we call blk_mq_sched_mark_restart()
      after we dispatch requests left over on our hardware queue dispatch
      list. This is so we'll go back and dispatch requests from the scheduler.
      In this case, it's only necessary to restart the hardware queue that we
      are running; there's no reason to run other hardware queues just because
      we are using shared tags.
      
      So, split out blk_mq_sched_mark_restart() into two operations, one for
      just the hardware queue and one for the whole request queue. The core
      code only needs the hctx variant, but I/O schedulers will want to use
      both.
      
      This also requires adjusting blk_mq_sched_restart_queues() to always
      check the queue restart flag, not just when using shared tags.
      Signed-off-by: default avatarOmar Sandoval <osandov@fb.com>
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      d38d3515
    • Omar Sandoval's avatar
      blk-mq: use sbq wait queues instead of restart for driver tags · da55f2cc
      Omar Sandoval authored
      Commit 50e1dab8 ("blk-mq-sched: fix starvation for multiple hardware
      queues and shared tags") fixed one starvation issue for shared tags.
      However, we can still get into a situation where we fail to allocate a
      tag because all tags are allocated but we don't have any pending
      requests on any hardware queue.
      
      One solution for this would be to restart all queues that share a tag
      map, but that really sucks. Ideally, we could just block and wait for a
      tag, but that isn't always possible from blk_mq_dispatch_rq_list().
      
      However, we can still use the struct sbitmap_queue wait queues with a
      custom callback instead of blocking. This has a few benefits:
      
      1. It avoids iterating over all hardware queues when completing an I/O,
         which the current restart code has to do.
      2. It benefits from the existing rolling wakeup code.
      3. It avoids punting to another thread just to have it block.
      Signed-off-by: default avatarOmar Sandoval <osandov@fb.com>
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      da55f2cc
    • Scott Bauer's avatar
      block/sed-opal: Propagate original error message to userland. · 2d19020b
      Scott Bauer authored
      During an error on a comannd, ex: user provides wrong pw to unlock
      range, we will gracefully terminate the opal session. We want to
      propagate the original error to userland instead of the result of
      the session termination, which is almost always a success.
      Signed-off-by: default avatarScott Bauer <scott.bauer@intel.com>
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      2d19020b
    • Scott Bauer's avatar
      nvme/pci: re-check security protocol support after reset · e286bcfc
      Scott Bauer authored
      A device may change capabilities after each reset, e.g. due to a firmware
      upgrade.  We should thus check for Security Send/Receive and OPAL support
      after each reset.
      
      Based on patches from Christoph and Keith.
      Signed-off-by: default avatarScott Bauer <scott.bauer@intel.com>
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      e286bcfc
    • Scott Bauer's avatar
      block/sed-opal: Introduce free_opal_dev to free the structure and clean up state · 7d6d1578
      Scott Bauer authored
      Before we free the opal structure we need to clean up any saved
      locking ranges that the user had told us to unlock from a suspend.
      Signed-off-by: default avatarScott Bauer <scott.bauer@intel.com>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      7d6d1578
    • Martin KaFai Lau's avatar
      bpf: Fix bpf_xdp_event_output · 9c471370
      Martin KaFai Lau authored
      Fix a typo. xdp->data instead of xdp should be copied to the perf-event's
      dst_buff.
      
      Fixes: 4de16969 ("bpf: enable event output helper also for xdp types")
      Reported-by: default avatarHuapeng Zhou <hzhou@fb.com>
      Tested-by: default avatarFeixiong Zhang <feixiong@fb.com>
      Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
      Cc: Daniel Borkmann <daniel@iogearbox.net>
      Signed-off-by: default avatarMartin KaFai Lau <kafai@fb.com>
      Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9c471370
    • Linus Torvalds's avatar
      Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 5bcbe22c
      Linus Torvalds authored
      Pull crypto update from Herbert Xu:
       "API:
         - Try to catch hash output overrun in testmgr
         - Introduce walksize attribute for batched walking
         - Make crypto_xor() and crypto_inc() alignment agnostic
      
        Algorithms:
         - Add time-invariant AES algorithm
         - Add standalone CBCMAC algorithm
      
        Drivers:
         - Add NEON acclerated chacha20 on ARM/ARM64
         - Expose AES-CTR as synchronous skcipher on ARM64
         - Add scalar AES implementation on ARM64
         - Improve scalar AES implementation on ARM
         - Improve NEON AES implementation on ARM/ARM64
         - Merge CRC32 and PMULL instruction based drivers on ARM64
         - Add NEON acclerated CBCMAC/CMAC/XCBC AES on ARM64
         - Add IPsec AUTHENC implementation in atmel
         - Add Support for Octeon-tx CPT Engine
         - Add Broadcom SPU driver
         - Add MediaTek driver"
      
      * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (142 commits)
        crypto: xts - Add ECB dependency
        crypto: cavium - switch to pci_alloc_irq_vectors
        crypto: cavium - switch to pci_alloc_irq_vectors
        crypto: cavium - remove dead MSI-X related define
        crypto: brcm - Avoid double free in ahash_finup()
        crypto: cavium - fix Kconfig dependencies
        crypto: cavium - cpt_bind_vq_to_grp could return an error code
        crypto: doc - fix typo
        hwrng: omap - update Kconfig help description
        crypto: ccm - drop unnecessary minimum 32-bit alignment
        crypto: ccm - honour alignmask of subordinate MAC cipher
        crypto: caam - fix state buffer DMA (un)mapping
        crypto: caam - abstract ahash request double buffering
        crypto: caam - fix error path for ctx_dma mapping failure
        crypto: caam - fix DMA API leaks for multiple setkey() calls
        crypto: caam - don't dma_map key for hash algorithms
        crypto: caam - use dma_map_sg() return code
        crypto: caam - replace sg_count() with sg_nents_for_len()
        crypto: caam - check sg_count() return value
        crypto: caam - fix HW S/G in ablkcipher_giv_edesc_alloc()
        ..
      5bcbe22c
    • Linus Torvalds's avatar
      Merge tag 'rpmsg-v4.11' of git://github.com/andersson/remoteproc · 1db934a5
      Linus Torvalds authored
      Pull rpmsg updates from Bjorn Andersson:
       "This introduces an interface for user space to directly communicate on
        rpmsg endpoints without the implementation of specific kernel drivers,
        which is useful for e.g. debug channels:
      
      * tag 'rpmsg-v4.11' of git://github.com/andersson/remoteproc:
        rpmsg: rpmsg_create_ept() returns NULL on error
        rpmsg: qcom: smd: Return positively when not enabled
        rpmsg: unlock on error in rpmsg_eptdev_read()
        rpmsg: char: add CONFIG_NET dependency
        rpmsg: smd: Register rpmsg user space interface for edges
        rpmsg: Driver for user space endpoint interface
        rpmsg: qcom_smd: Implement endpoint "poll"
        rpmsg: Introduce "poll" to endpoint ops
        rpmsg: qcom_smd: Add support for "label" property
      1db934a5
    • Linus Torvalds's avatar
      Merge tag 'rproc-v4.11' of git://github.com/andersson/remoteproc · a3919caa
      Linus Torvalds authored
      Pull remoteproc updates from Bjorn Andersson:
       "This introduces support for booting the dedicated sensor core in the
        Qualcomm MSM8996, updates the Qualcomm ADSP and Hexagon drivers to
        utilize SMD subdevice helpers for properly handle shutdowns and
        restarts of the remoteproc, add virtio support to the ST remoteproc
        and refactor the Qualcomm Hexagon driver to handle variations between
        platforms.
      
        The support code for parsing, loading and authenticating Qualcomm
        firmware files (MDT) is refactored and move to drivers/soc/qcom, to
        allow for non-remoteproc drivers to utilize this.
      
        Finally it brings some cleanups to the remoteproc core"
      
      * tag 'rproc-v4.11' of git://github.com/andersson/remoteproc: (27 commits)
        remoteproc: qcom: mdt_loader: Use signed type for offset
        remoteproc: st: add virtio communication support
        remoteproc: st: correct probe error management
        remoteproc: Modify the function names
        remoteproc: Reduce asynchronous request_firmware to auto-boot only
        remoteproc: Drop qcom_scm_pas_supported() from adsp_probe()
        MAINTAINERS: Add missing rpmsg include path
        remoteproc: qcom: Use common SMD edge handler
        remoteproc: qcom: wcnss: Make SMD handling common
        remoteproc: Move qcom_mdt_loader into drivers/soc/qcom
        remoteproc: qcom: mdt_loader: Refactor MDT loader
        remoteproc: qcom: mdt_loader: Don't overwrite firmware object
        remoteproc: qcom: Extract non-mdt related helper
        remoteproc: qcom: q6v5: Decouple driver from MDT loader
        remoteproc: qcom: q6v5: Remove mss supply from 8916
        remoteproc: qcom: fix initializers for qcom_mss_reg_res array
        remoteproc: Drop firmware_loading_complete
        remoteproc: Add RPROC_DELETED state
        remoteproc: Move rproc_delete_debug_dir() to rproc_del()
        remoteproc: qcom: Add SLPI rproc support to load and boot slpi proc.
        ...
      a3919caa
    • Linus Torvalds's avatar
      Merge tag 'gfs2-4.11.addendum' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 · 15192b02
      Linus Torvalds authored
      Pull GFS2 fix from Bob Peterson:
       "This is an addendum for the 4.11 merge window.
      
        Andy Price wrote this patch to close a nasty race condition that
        allows access to glocks that are being destroyed. Without this patch,
        GFS2 is vulnerable to random corruption and kernel panic"
      
      * tag 'gfs2-4.11.addendum' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
        gfs2: Add missing rcu locking for glock	lookup
      15192b02
    • Linus Torvalds's avatar
      Merge tag 'sound-4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 28cbc335
      Linus Torvalds authored
      Pull sound updates from Takashi Iwai:
       "Here is the update of sound bits for 4.11: again at this time, no big
        changes in ALSA and ASoC core but only cosmetic changes like
        consitifaction.
      
        Meanwhile, quite a lot of developments are seen in a few driver side.
      
        ALSA Core:
         - Clean up, consitification of some ops
      
        HD-audio:
         - A slight behavior change of single_cmd option
         - Quirks for AmigaOne X1000, Samsung Ativ Book 8, Dell AiO, ALC221
           HP, and fixes for Lewisburg controller
         - Realtek ALC299, ALC1220 codecs
      
        Others:
         - USB-audio: Tascam US-16x08 DSP mixer quirk
         - Intel HDMI LPE audio support for Baytrail / Cherrytrail; this
           contains some updates in drm/i915 for the new platform binding
      
        ASoC:
         - Lots of updates in Intel drivers, mostly for DisplayPort and HDMI
           on Skylake and onwards, as well as more Baytrail / Cherrytrail
           boards support
         - Channel mapping support for HDMI
         - Support for AllWinner A31 and A33, Everest Semiconductor ES8328,
           Nuvoton NAU8540.
      
      * tag 'sound-4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (323 commits)
        ALSA: usb-audio: Tidy up mixer_us16x08.c
        ALSA: usb-audio: Fix memory leak and corruption in mixer_us16x08.c
        ALSA: usb-audio: purge needless variable length array
        ALSA: x86: hdmi: select CONFIG_SND_PCM
        ALSA: x86: Don't enable runtime PM as default
        ALSA: x86: Use runtime PM autosuspend
        ALSA: usb-audio: localize function without external linkage
        ALSA: usb-audio: localize one-referrer variable
        ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk
        ALSA: emu10k1: constify snd_emux_operators structure
        ASoC: sun4i-spdif: drop unnessary snd_soc_unregister_component()
        ASoC: Intel: bxt: Add jack port initialize in bxt_rt298 machine
        ASoC: nau8825: automatic BCLK and LRC divde in master mode
        ASoC: hdac_hdmi: Add device id for Geminilake
        ASoC: Intel: Skylake: Add Geminlake IDs
        ASoC: rt298: Add DMI match for Geminilake reference platform
        ASoC: Intel: Skylake: Check device type to get endpoint configuration
        ASoC: Intel: bxt: Add jack port initialize in da7219_max98357a machine
        ASoC: Intel: Skylake: Add jack port initialize in nau88l25_ssm4567 machine
        ASoC: Intel: Skylake: Add jack port initialize in nau88l25_max98357a machine
        ...
      28cbc335