1. 30 Nov, 2019 18 commits
    • Linus Torvalds's avatar
      Merge tag 'hyperv-next-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux · 0dd0c8f7
      Linus Torvalds authored
      Pull Hyper-V updates from Sasha Levin:
      
       - support for new VMBus protocols (Andrea Parri)
      
       - hibernation support (Dexuan Cui)
      
       - latency testing framework (Branden Bonaby)
      
       - decoupling Hyper-V page size from guest page size (Himadri Pandya)
      
      * tag 'hyperv-next-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux: (22 commits)
        Drivers: hv: vmbus: Fix crash handler reset of Hyper-V synic
        drivers/hv: Replace binary semaphore with mutex
        drivers: iommu: hyperv: Make HYPERV_IOMMU only available on x86
        HID: hyperv: Add the support of hibernation
        hv_balloon: Add the support of hibernation
        x86/hyperv: Implement hv_is_hibernation_supported()
        Drivers: hv: balloon: Remove dependencies on guest page size
        Drivers: hv: vmbus: Remove dependencies on guest page size
        x86: hv: Add function to allocate zeroed page for Hyper-V
        Drivers: hv: util: Specify ring buffer size using Hyper-V page size
        Drivers: hv: Specify receive buffer size using Hyper-V page size
        tools: hv: add vmbus testing tool
        drivers: hv: vmbus: Introduce latency testing
        video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver
        video: hyperv: hyperv_fb: Obtain screen resolution from Hyper-V host
        hv_netvsc: Add the support of hibernation
        hv_sock: Add the support of hibernation
        video: hyperv_fb: Add the support of hibernation
        scsi: storvsc: Add the support of hibernation
        Drivers: hv: vmbus: Add module parameter to cap the VMBus version
        ...
      0dd0c8f7
    • Linus Torvalds's avatar
      Merge branch 'ras-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8fa91bfa
      Linus Torvalds authored
      Pull RAS fix from Borislav Petkov:
       "One urgent fix for the thermal throttling machinery: the recent change
        reworking the thermal notifications forgot to mask out read-only and
        reserved bits in the thermal status MSRs, leading to exceptions while
        writing those MSRs.
      
        The fix takes care of masking out those bits first"
      
      * 'ras-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mce/therm_throt: Mask out read-only and reserved MSR bits
      8fa91bfa
    • Linus Torvalds's avatar
      Merge branch 'parisc-5.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 738d5fab
      Linus Torvalds authored
      Pull parisc updates from Helge Deller:
       "Just trivial small updates: An assembler register optimization in the
        inlined networking checksum functions, a compiler warning fix and
        don't unneccesary print a runtime warning on machines which wouldn't
        be affected anyway"
      
      * 'parisc-5.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Avoid spurious inequivalent alias kernel error messages
        kexec: Fix pointer-to-int-cast warnings
        parisc: Do not hardcode registers in checksum functions
      738d5fab
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 7794b1d4
      Linus Torvalds authored
      Pull powerpc updates from Michael Ellerman:
       "Highlights:
      
         - Infrastructure for secure boot on some bare metal Power9 machines.
           The firmware support is still in development, so the code here
           won't actually activate secure boot on any existing systems.
      
         - A change to xmon (our crash handler / pseudo-debugger) to restrict
           it to read-only mode when the kernel is lockdown'ed, otherwise it's
           trivial to drop into xmon and modify kernel data, such as the
           lockdown state.
      
         - Support for KASLR on 32-bit BookE machines (Freescale / NXP).
      
         - Fixes for our flush_icache_range() and __kernel_sync_dicache()
           (VDSO) to work with memory ranges >4GB.
      
         - Some reworks of the pseries CMM (Cooperative Memory Management)
           driver to make it behave more like other balloon drivers and enable
           some cleanups of generic mm code.
      
         - A series of fixes to our hardware breakpoint support to properly
           handle unaligned watchpoint addresses.
      
        Plus a bunch of other smaller improvements, fixes and cleanups.
      
        Thanks to: Alastair D'Silva, Andrew Donnellan, Aneesh Kumar K.V,
        Anthony Steinhauser, Cédric Le Goater, Chris Packham, Chris Smart,
        Christophe Leroy, Christopher M. Riedl, Christoph Hellwig, Claudio
        Carvalho, Daniel Axtens, David Hildenbrand, Deb McLemore, Diana
        Craciun, Eric Richter, Geert Uytterhoeven, Greg Kroah-Hartman, Greg
        Kurz, Gustavo L. F. Walbon, Hari Bathini, Harish, Jason Yan, Krzysztof
        Kozlowski, Leonardo Bras, Mathieu Malaterre, Mauro S. M. Rodrigues,
        Michal Suchanek, Mimi Zohar, Nathan Chancellor, Nathan Lynch, Nayna
        Jain, Nick Desaulniers, Oliver O'Halloran, Qian Cai, Rasmus Villemoes,
        Ravi Bangoria, Sam Bobroff, Santosh Sivaraj, Scott Wood, Thomas Huth,
        Tyrel Datwyler, Vaibhav Jain, Valentin Longchamp, YueHaibing"
      
      * tag 'powerpc-5.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (144 commits)
        powerpc/fixmap: fix crash with HIGHMEM
        x86/efi: remove unused variables
        powerpc: Define arch_is_kernel_initmem_freed() for lockdep
        powerpc/prom_init: Use -ffreestanding to avoid a reference to bcmp
        powerpc: Avoid clang warnings around setjmp and longjmp
        powerpc: Don't add -mabi= flags when building with Clang
        powerpc: Fix Kconfig indentation
        powerpc/fixmap: don't clear fixmap area in paging_init()
        selftests/powerpc: spectre_v2 test must be built 64-bit
        powerpc/powernv: Disable native PCIe port management
        powerpc/kexec: Move kexec files into a dedicated subdir.
        powerpc/32: Split kexec low level code out of misc_32.S
        powerpc/sysdev: drop simple gpio
        powerpc/83xx: map IMMR with a BAT.
        powerpc/32s: automatically allocate BAT in setbat()
        powerpc/ioremap: warn on early use of ioremap()
        powerpc: Add support for GENERIC_EARLY_IOREMAP
        powerpc/fixmap: Use __fix_to_virt() instead of fix_to_virt()
        powerpc/8xx: use the fixmapped IMMR in cpm_reset()
        powerpc/8xx: add __init to cpm1 init functions
        ...
      7794b1d4
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm · 9dd00138
      Linus Torvalds authored
      Pull ARM updates from Russell King:
      
       - improve ARM implementation of pfn_valid()
      
       - various sparse fixes
      
       - spelling fixes
      
       - add further ARMv8 debug architecture versions
      
       - clang fix for decompressor
      
       - update to generic vDSO
      
       - remove Brahma-B53 from spectre hardening
      
       - initialise broadcast hrtimer device
      
       - use correct nm executable in decompressor
      
       - remove old mcount et.al.
      
      * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm: (26 commits)
        ARM: 8940/1: ftrace: remove mcount(),ftrace_caller_old() and ftrace_call_old()
        ARM: 8939/1: kbuild: use correct nm executable
        ARM: 8938/1: kernel: initialize broadcast hrtimer based clock event device
        ARM: 8937/1: spectre-v2: remove Brahma-B53 from hardening
        ARM: 8933/1: replace Sun/Solaris style flag on section directive
        ARM: 8932/1: Add clock_gettime64 entry point
        ARM: 8931/1: Add clock_getres entry point
        ARM: 8930/1: Add support for generic vDSO
        ARM: 8929/1: use APSR_nzcv instead of r15 as mrc operand
        ARM: 8927/1: ARM/hw_breakpoint: add more ARMv8 debug architecture versions support
        ARM: 8918/2: only build return_address() if needed
        ARM: 8928/1: ARM_ERRATA_775420: Spelling s/date/data/
        ARM: 8925/1: tcm: include <asm/tcm.h> for missing declarations
        ARM: 8924/1: tcm: make dtcm_end and itcm_end static
        ARM: 8923/1: mm: include <asm/vga.h> for vga_base
        ARM: 8922/1: parse_dt_topology() rate is pointer to __be32
        ARM: 8920/1: share get_signal_page from signal.c to process.c
        ARM: 8919/1: make unexported functions static
        ARM: 8917/1: mm: include <asm/set_memory.h>
        ARM: 8916/1: mm: make set_section_perms() static
        ...
      9dd00138
    • Linus Torvalds's avatar
      Merge tag 'nds32-for-linus-5.5-rc1' of... · 2309d076
      Linus Torvalds authored
      Merge tag 'nds32-for-linus-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greentime/linux
      
      Pull nds32 updates from Greentime Hu:
      
       - code clean up
      
       - add a nds32 maintainer
      
      * tag 'nds32-for-linus-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greentime/linux:
        MAINTAINERS: add nds32 maintainer
        nds32: Move static keyword to the front of declaration
        nds32: Fix typo in Kconfig.cpu
        nds32: remove unneeded clean-files for DTB
      2309d076
    • Linus Torvalds's avatar
      Merge tag 'notifications-pipe-prep-20191115' of... · 6a965666
      Linus Torvalds authored
      Merge tag 'notifications-pipe-prep-20191115' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
      
      Pull pipe rework from David Howells:
       "This is my set of preparatory patches for building a general
        notification queue on top of pipes. It makes a number of significant
        changes:
      
         - It removes the nr_exclusive argument from __wake_up_sync_key() as
           this is always 1. This prepares for the next step:
      
         - Adds wake_up_interruptible_sync_poll_locked() so that poll can be
           woken up from a function that's holding the poll waitqueue
           spinlock.
      
         - Change the pipe buffer ring to be managed in terms of unbounded
           head and tail indices rather than bounded index and length. This
           means that reading the pipe only needs to modify one index, not
           two.
      
         - A selection of helper functions are provided to query the state of
           the pipe buffer, plus a couple to apply updates to the pipe
           indices.
      
         - The pipe ring is allowed to have kernel-reserved slots. This allows
           many notification messages to be spliced in by the kernel without
           allowing userspace to pin too many pages if it writes to the same
           pipe.
      
         - Advance the head and tail indices inside the pipe waitqueue lock
           and use wake_up_interruptible_sync_poll_locked() to poke poll
           without having to take the lock twice.
      
         - Rearrange pipe_write() to preallocate the buffer it is going to
           write into and then drop the spinlock. This allows kernel
           notifications to then be added the ring whilst it is filling the
           buffer it allocated. The read side is stalled because the pipe
           mutex is still held.
      
         - Don't wake up readers on a pipe if there was already data in it
           when we added more.
      
         - Don't wake up writers on a pipe if the ring wasn't full before we
           removed a buffer"
      
      * tag 'notifications-pipe-prep-20191115' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        pipe: Remove sync on wake_ups
        pipe: Increase the writer-wakeup threshold to reduce context-switch count
        pipe: Check for ring full inside of the spinlock in pipe_write()
        pipe: Remove redundant wakeup from pipe_write()
        pipe: Rearrange sequence in pipe_write() to preallocate slot
        pipe: Conditionalise wakeup in pipe_read()
        pipe: Advance tail pointer inside of wait spinlock in pipe_read()
        pipe: Allow pipes to have kernel-reserved slots
        pipe: Use head and tail pointers for the ring, not cursor and length
        Add wake_up_interruptible_sync_poll_locked()
        Remove the nr_exclusive argument from __wake_up_sync_key()
        pipe: Reduce #inclusion of pipe_fs_i.h
      6a965666
    • Linus Torvalds's avatar
      Merge tag 'fsnotify_for_v5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 32ef9553
      Linus Torvalds authored
      Pull fsnotify updates from Jan Kara:
       "Three fsnotify cleanups"
      
      * tag 'fsnotify_for_v5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fsnotify: Add git tree reference to MAINTAINERS
        fsnotify/fdinfo: exportfs_encode_inode_fh() takes pointer as 4th argument
        fsnotify: move declaration of fsnotify_mark_connector_cachep to fsnotify.h
      32ef9553
    • Linus Torvalds's avatar
      Merge tag 'for_v5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · b8072d5b
      Linus Torvalds authored
      Pull ext2, quota, reiserfs cleanups and fixes from Jan Kara:
      
       - Refactor the quota on/off kernel internal interfaces (mostly for
         ubifs quota support as ubifs does not want to have inodes holding
         quota information)
      
       - A few other small quota fixes and cleanups
      
       - Various small ext2 fixes and cleanups
      
       - Reiserfs xattr fix and one cleanup
      
      * tag 'for_v5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: (28 commits)
        ext2: code cleanup for descriptor_loc()
        fs/quota: handle overflows of sysctl fs.quota.* and report as unsigned long
        ext2: fix improper function comment
        ext2: code cleanup for ext2_try_to_allocate()
        ext2: skip unnecessary operations in ext2_try_to_allocate()
        ext2: Simplify initialization in ext2_try_to_allocate()
        ext2: code cleanup by calling ext2_group_last_block_no()
        ext2: introduce new helper ext2_group_last_block_no()
        reiserfs: replace open-coded atomic_dec_and_mutex_lock()
        ext2: check err when partial != NULL
        quota: Handle quotas without quota inodes in dquot_get_state()
        quota: Make dquot_disable() work without quota inodes
        quota: Drop dquot_enable()
        fs: Use dquot_load_quota_inode() from filesystems
        quota: Rename vfs_load_quota_inode() to dquot_load_quota_inode()
        quota: Simplify dquot_resume()
        quota: Factor out setup of quota inode
        quota: Check that quota is not dirty before release
        quota: fix livelock in dquot_writeback_dquots
        ext2: don't set *count in the case of failure in ext2_try_to_allocate()
        ...
      b8072d5b
    • Linus Torvalds's avatar
      Merge tag 'erofs-for-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs · e2d73c30
      Linus Torvalds authored
      Pull erofs updates from Gao Xiang:
       "No major kernel updates for this round since I'm fully diving into
        LZMA algorithm internals now to provide high CR XZ algorihm support.
        That needs more work and time for me to get a better compression time.
      
        Summary:
      
         - Introduce superblock checksum support
      
         - Set iowait when waiting I/O for sync decompression path
      
         - Several code cleanups"
      
      * tag 'erofs-for-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs:
        erofs: remove unnecessary output in erofs_show_options()
        erofs: drop all vle annotations for runtime names
        erofs: support superblock checksum
        erofs: set iowait for sync decompression
        erofs: clean up decompress queue stuffs
        erofs: get rid of __stagingpage_alloc helper
        erofs: remove dead code since managed cache is now built-in
        erofs: clean up collection handling routines
      e2d73c30
    • Linus Torvalds's avatar
      Merge tag '5.5-rc-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 21b26d26
      Linus Torvalds authored
      Pull cifs updates from Steve French:
       "Various smb3 fixes (including 12 for stable) and also features
        (addition of multichannel support)"
      
      * tag '5.5-rc-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6: (41 commits)
        CIFS: fix a white space issue in cifs_get_inode_info()
        cifs: update internal module version number
        cifs: Always update signing key of first channel
        cifs: Fix retrieval of DFS referrals in cifs_mount()
        cifs: Fix potential softlockups while refreshing DFS cache
        cifs: Fix lookup of root ses in DFS referral cache
        cifs: Fix use-after-free bug in cifs_reconnect()
        cifs: dump channel info in DebugData
        smb3: dump in_send and num_waiters stats counters by default
        cifs: try harder to open new channels
        CIFS: Properly process SMB3 lease breaks
        cifs: move cifsFileInfo_put logic into a work-queue
        cifs: try opening channels after mounting
        CIFS: refactor cifs_get_inode_info()
        cifs: switch servers depending on binding state
        cifs: add server param
        cifs: add multichannel mount options and data structs
        cifs: sort interface list by speed
        CIFS: Fix SMB2 oplock break processing
        cifs: don't use 'pre:' for MODULE_SOFTDEP
        ...
      21b26d26
    • Linus Torvalds's avatar
      Merge tag 'f2fs-for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · 8f45533e
      Linus Torvalds authored
      Pull f2fs updates from Jaegeuk Kim:
       "In this round, we've introduced fairly small number of patches as below.
      
        Enhancements:
         - improve the in-place-update IO flow
         - allocate segment to guarantee no GC for pinned files
      
        Bug fixes:
         - fix updatetime in lazytime mode
         - potential memory leak in f2fs_listxattr
         - record parent inode number in rename2 correctly
         - fix deadlock in f2fs_gc along with atomic writes
         - avoid needless data migration in GC"
      
      * tag 'f2fs-for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs:
        f2fs: stop GC when the victim becomes fully valid
        f2fs: expose main_blkaddr in sysfs
        f2fs: choose hardlimit when softlimit is larger than hardlimit in f2fs_statfs_project()
        f2fs: Fix deadlock in f2fs_gc() context during atomic files handling
        f2fs: show f2fs instance in printk_ratelimited
        f2fs: fix potential overflow
        f2fs: fix to update dir's i_pino during cross_rename
        f2fs: support aligned pinned file
        f2fs: avoid kernel panic on corruption test
        f2fs: fix wrong description in document
        f2fs: cache global IPU bio
        f2fs: fix to avoid memory leakage in f2fs_listxattr
        f2fs: check total_segments from devices in raw_super
        f2fs: update multi-dev metadata in resize_fs
        f2fs: mark recovery flag correctly in read_raw_super_block()
        f2fs: fix to update time in lazytime mode
      8f45533e
    • Linus Torvalds's avatar
      Merge tag 'afs-next-20191121' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs · 4a55d362
      Linus Torvalds authored
      Pull AFS updates from David Howells:
       "Minor cleanups and fix:
      
         - Minor fix to make some debugging statements display information
           from the correct iov_iter.
      
         - Rename some members and variables to make things more obvious or
           consistent.
      
         - Provide a helper to wrap increments of the usage count on the
           afs_read struct.
      
         - Use scnprintf() to print into a stack buffer rather than sprintf().
      
         - Remove some set but unused variables"
      
      * tag 'afs-next-20191121' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        afs: Remove set but not used variable 'ret'
        afs: Remove set but not used variables 'before', 'after'
        afs: xattr: use scnprintf
        afs: Introduce an afs_get_read() refcount helper
        afs: Rename desc -> req in afs_fetch_data()
        afs: Switch the naming of call->iter and call->_iter
        afs: Use call->_iter not &call->iter in debugging statements
      4a55d362
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · 50b8b3f8
      Linus Torvalds authored
      Pull ext4 updates from Ted Ts'o:
       "This merge window saw the the following new featuers added to ext4:
      
         - Direct I/O via iomap (required the iomap-for-next branch from
           Darrick as a prereq).
      
         - Support for using dioread-nolock where the block size < page size.
      
         - Support for encryption for file systems where the block size < page
           size.
      
         - Rework of journal credits handling so a revoke-heavy workload will
           not cause the journal to run out of space.
      
         - Replace bit-spinlocks with spinlocks in jbd2
      
        Also included were some bug fixes and cleanups, mostly to clean up
        corner cases from fuzzed file systems and error path handling"
      
      * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (59 commits)
        ext4: work around deleting a file with i_nlink == 0 safely
        ext4: add more paranoia checking in ext4_expand_extra_isize handling
        jbd2: make jbd2_handle_buffer_credits() handle reserved handles
        ext4: fix a bug in ext4_wait_for_tail_page_commit
        ext4: bio_alloc with __GFP_DIRECT_RECLAIM never fails
        ext4: code cleanup for get_next_id
        ext4: fix leak of quota reservations
        ext4: remove unused variable warning in parse_options()
        ext4: Enable encryption for subpage-sized blocks
        fs/buffer.c: support fscrypt in block_read_full_page()
        ext4: Add error handling for io_end_vec struct allocation
        jbd2: Fine tune estimate of necessary descriptor blocks
        jbd2: Provide trace event for handle restarts
        ext4: Reserve revoke credits for freed blocks
        jbd2: Make credit checking more strict
        jbd2: Rename h_buffer_credits to h_total_credits
        jbd2: Reserve space for revoke descriptor blocks
        jbd2: Drop jbd2_space_needed()
        jbd2: Account descriptor blocks into t_outstanding_credits
        jbd2: Factor out common parts of stopping and restarting a handle
        ...
      50b8b3f8
    • Linus Torvalds's avatar
      Merge tag 'vfs-5.5-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · f112a2fd
      Linus Torvalds authored
      Pull splice fix from Darrick Wong:
       "Fix another place in the splice code where a pipe could ask a
        filesystem for a longer read than the pipe actually has free buffer
        space"
      
      * tag 'vfs-5.5-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        splice: only read in as much information as there is pipe buffer space
      f112a2fd
    • Linus Torvalds's avatar
      Merge tag 'iomap-5.5-merge-11' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 3b266a52
      Linus Torvalds authored
      Pull iomap updates from Darrick Wong:
       "In this release, we hoisted as much of XFS' writeback code into iomap
        as was practicable, refactored the unshare file data function, added
        the ability to perform buffered io copy on write, and tweaked various
        parts of the directio implementation as needed to port ext4's directio
        code (that will be a separate pull).
      
        Summary:
      
         - Make iomap_dio_rw callers explicitly tell us if they want us to
           wait
      
         - Port the xfs writeback code to iomap to complete the buffered io
           library functions
      
         - Refactor the unshare code to share common pieces
      
         - Add support for performing copy on write with buffered writes
      
         - Other minor fixes
      
         - Fix unchecked return in iomap_bmap
      
         - Fix a type casting bug in a ternary statement in
           iomap_dio_bio_actor
      
         - Improve tracepoints for easier diagnostic ability
      
         - Fix pipe page leakage in directio reads"
      
      * tag 'iomap-5.5-merge-11' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: (31 commits)
        iomap: Fix pipe page leakage during splicing
        iomap: trace iomap_appply results
        iomap: fix return value of iomap_dio_bio_actor on 32bit systems
        iomap: iomap_bmap should check iomap_apply return value
        iomap: Fix overflow in iomap_page_mkwrite
        fs/iomap: remove redundant check in iomap_dio_rw()
        iomap: use a srcmap for a read-modify-write I/O
        iomap: renumber IOMAP_HOLE to 0
        iomap: use write_begin to read pages to unshare
        iomap: move the zeroing case out of iomap_read_page_sync
        iomap: ignore non-shared or non-data blocks in xfs_file_dirty
        iomap: always use AOP_FLAG_NOFS in iomap_write_begin
        iomap: remove the unused iomap argument to __iomap_write_end
        iomap: better document the IOMAP_F_* flags
        iomap: enhance writeback error message
        iomap: pass a struct page to iomap_finish_page_writeback
        iomap: cleanup iomap_ioend_compare
        iomap: move struct iomap_page out of iomap.h
        iomap: warn on inline maps in iomap_writepage_map
        iomap: lift the xfs writeback code to iomap
        ...
      3b266a52
    • Linus Torvalds's avatar
      Merge tag 'for-linus-hmm' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · aa32f116
      Linus Torvalds authored
      Pull hmm updates from Jason Gunthorpe:
       "This is another round of bug fixing and cleanup. This time the focus
        is on the driver pattern to use mmu notifiers to monitor a VA range.
        This code is lifted out of many drivers and hmm_mirror directly into
        the mmu_notifier core and written using the best ideas from all the
        driver implementations.
      
        This removes many bugs from the drivers and has a very pleasing
        diffstat. More drivers can still be converted, but that is for another
        cycle.
      
         - A shared branch with RDMA reworking the RDMA ODP implementation
      
         - New mmu_interval_notifier API. This is focused on the use case of
           monitoring a VA and simplifies the process for drivers
      
         - A common seq-count locking scheme built into the
           mmu_interval_notifier API usable by drivers that call
           get_user_pages() or hmm_range_fault() with the VA range
      
         - Conversion of mlx5 ODP, hfi1, radeon, nouveau, AMD GPU, and Xen
           GntDev drivers to the new API. This deletes a lot of wonky driver
           code.
      
         - Two improvements for hmm_range_fault(), from testing done by Ralph"
      
      * tag 'for-linus-hmm' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        mm/hmm: remove hmm_range_dma_map and hmm_range_dma_unmap
        mm/hmm: make full use of walk_page_range()
        xen/gntdev: use mmu_interval_notifier_insert
        mm/hmm: remove hmm_mirror and related
        drm/amdgpu: Use mmu_interval_notifier instead of hmm_mirror
        drm/amdgpu: Use mmu_interval_insert instead of hmm_mirror
        drm/amdgpu: Call find_vma under mmap_sem
        nouveau: use mmu_interval_notifier instead of hmm_mirror
        nouveau: use mmu_notifier directly for invalidate_range_start
        drm/radeon: use mmu_interval_notifier_insert
        RDMA/hfi1: Use mmu_interval_notifier_insert for user_exp_rcv
        RDMA/odp: Use mmu_interval_notifier_insert()
        mm/hmm: define the pre-processor related parts of hmm.h even if disabled
        mm/hmm: allow hmm_range to be used with a mmu_interval_notifier or hmm_mirror
        mm/mmu_notifier: add an interval tree notifier
        mm/mmu_notifier: define the header pre-processor parts even if disabled
        mm/hmm: allow snapshot of the special zero page
      aa32f116
    • Linus Torvalds's avatar
      Merge tag 'drm-vmwgfx-coherent-2019-11-29' of git://anongit.freedesktop.org/drm/drm · d5bb349d
      Linus Torvalds authored
      Pull drm coherent memory support for vmwgfx from Dave Airlie:
       "This is a separate pull for the mm pagewalking + drm/vmwgfx work
        Thomas did and you were involved in, I've left it separate in case you
        don't feel as comfortable with it as the other stuff.
      
        It has mm acks/r-b in the right places from what I can see"
      
      * tag 'drm-vmwgfx-coherent-2019-11-29' of git://anongit.freedesktop.org/drm/drm:
        drm/vmwgfx: Add surface dirty-tracking callbacks
        drm/vmwgfx: Implement an infrastructure for read-coherent resources
        drm/vmwgfx: Use an RBtree instead of linked list for MOB resources
        drm/vmwgfx: Implement an infrastructure for write-coherent resources
        mm: Add write-protect and clean utilities for address space ranges
        mm: Add a walk_page_mapping() function to the pagewalk code
        mm: pagewalk: Take the pagetable lock in walk_pte_range()
        mm: Remove BUG_ON mmap_sem not held from xxx_trans_huge_lock()
        drm/ttm: Convert vm callbacks to helpers
        drm/ttm: Remove explicit typecasts of vm_private_data
      d5bb349d
  2. 29 Nov, 2019 3 commits
  3. 28 Nov, 2019 6 commits
    • Linus Torvalds's avatar
      Merge branch 'master' of... · 81b6b964
      Linus Torvalds authored
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux; tag 'dma-mapping-5.5' of git://git.infradead.org/users/hch/dma-mapping
      
      Pull dma-mapping updates from Christoph Hellwig:
      
       - improve dma-debug scalability (Eric Dumazet)
      
       - tiny dma-debug cleanup (Dan Carpenter)
      
       - check for vmap memory in dma_map_single (Kees Cook)
      
       - check for dma_addr_t overflows in dma-direct when using DMA offsets
         (Nicolas Saenz Julienne)
      
       - switch the x86 sta2x11 SOC to use more generic DMA code (Nicolas
         Saenz Julienne)
      
       - fix arm-nommu dma-ranges handling (Vladimir Murzin)
      
       - use __initdata in CMA (Shyam Saini)
      
       - replace the bus dma mask with a limit (Nicolas Saenz Julienne)
      
       - merge the remapping helpers into the main dma-direct flow (me)
      
       - switch xtensa to the generic dma remap handling (me)
      
       - various cleanups around dma_capable (me)
      
       - remove unused dev arguments to various dma-noncoherent helpers (me)
      
      * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux:
      
      * tag 'dma-mapping-5.5' of git://git.infradead.org/users/hch/dma-mapping: (22 commits)
        dma-mapping: treat dev->bus_dma_mask as a DMA limit
        dma-direct: exclude dma_direct_map_resource from the min_low_pfn check
        dma-direct: don't check swiotlb=force in dma_direct_map_resource
        dma-debug: clean up put_hash_bucket()
        powerpc: remove support for NULL dev in __phys_to_dma / __dma_to_phys
        dma-direct: avoid a forward declaration for phys_to_dma
        dma-direct: unify the dma_capable definitions
        dma-mapping: drop the dev argument to arch_sync_dma_for_*
        x86/PCI: sta2x11: use default DMA address translation
        dma-direct: check for overflows on 32 bit DMA addresses
        dma-debug: increase HASH_SIZE
        dma-debug: reorder struct dma_debug_entry fields
        xtensa: use the generic uncached segment support
        dma-mapping: merge the generic remapping helpers into dma-direct
        dma-direct: provide mmap and get_sgtable method overrides
        dma-direct: remove the dma_handle argument to __dma_direct_alloc_pages
        dma-direct: remove __dma_direct_free_pages
        usb: core: Remove redundant vmap checks
        kernel: dma-contiguous: mark CMA parameters __initdata/__initconst
        dma-debug: add a schedule point in debug_dma_dump_mappings()
        ...
      81b6b964
    • Linus Torvalds's avatar
      Merge tag 'ioremap-5.5' of git://git.infradead.org/users/hch/ioremap · a308a710
      Linus Torvalds authored
      Pull generic ioremap support from Christoph Hellwig:
       "This adds the remaining bits for an entirely generic ioremap and
        iounmap to lib/ioremap.c. To facilitate that, it cleans up the giant
        mess of weird ioremap variants we had with no users outside the arch
        code.
      
        For now just the three newest ports use the code, but there is more
        than a handful others that can be converted without too much work.
      
        Summary:
      
         - clean up various obsolete ioremap and iounmap variants
      
         - add a new generic ioremap implementation and switch csky, nds32 and
           riscv over to it"
      
      * tag 'ioremap-5.5' of git://git.infradead.org/users/hch/ioremap: (21 commits)
        nds32: use generic ioremap
        csky: use generic ioremap
        csky: remove ioremap_cache
        riscv: use the generic ioremap code
        lib: provide a simple generic ioremap implementation
        sh: remove __iounmap
        nios2: remove __iounmap
        hexagon: remove __iounmap
        m68k: rename __iounmap and mark it static
        arch: rely on asm-generic/io.h for default ioremap_* definitions
        asm-generic: don't provide ioremap for CONFIG_MMU
        asm-generic: ioremap_uc should behave the same with and without MMU
        xtensa: clean up ioremap
        x86: Clean up ioremap()
        parisc: remove __ioremap
        nios2: remove __ioremap
        alpha: remove the unused __ioremap wrapper
        hexagon: clean up ioremap
        ia64: rename ioremap_nocache to ioremap_uc
        unicore32: remove ioremap_cached
        ...
      a308a710
    • Linus Torvalds's avatar
      Merge tag 'for-5.5/io_uring-post-20191128' of git://git.kernel.dk/linux-block · 05bd375b
      Linus Torvalds authored
      Pull more io_uring updates from Jens Axboe:
       "As mentioned in the first pull request, there was a later batch as
        well. This contains fixes to the stuff that already went in, cleanups,
        and a few later additions. In particular, this contains:
      
         - Cleanups/fixes/unification of the submission and completion path
           (Pavel,me)
      
         - Linked timeouts improvements (Pavel,me)
      
         - Error path fixes (me)
      
         - Fix lookup window where cancellations wouldn't work (me)
      
         - Improve DRAIN support (Pavel)
      
         - Fix backlog flushing -EBUSY on submit (me)
      
         - Add support for connect(2) (me)
      
         - Fix for non-iter based fixed IO (Pavel)
      
         - creds inheritance for async workers (me)
      
         - Disable cmsg/ancillary data for sendmsg/recvmsg (me)
      
         - Shrink io_kiocb to 3 cachelines (me)
      
         - NUMA fix for io-wq (Jann)"
      
      * tag 'for-5.5/io_uring-post-20191128' of git://git.kernel.dk/linux-block: (42 commits)
        io_uring: make poll->wait dynamically allocated
        io-wq: shrink io_wq_work a bit
        io-wq: fix handling of NUMA node IDs
        io_uring: use kzalloc instead of kcalloc for single-element allocations
        io_uring: cleanup io_import_fixed()
        io_uring: inline struct sqe_submit
        io_uring: store timeout's sqe->off in proper place
        net: disallow ancillary data for __sys_{send,recv}msg_file()
        net: separate out the msghdr copy from ___sys_{send,recv}msg()
        io_uring: remove superfluous check for sqe->off in io_accept()
        io_uring: async workers should inherit the user creds
        io-wq: have io_wq_create() take a 'data' argument
        io_uring: fix dead-hung for non-iter fixed rw
        io_uring: add support for IORING_OP_CONNECT
        net: add __sys_connect_file() helper
        io_uring: only return -EBUSY for submit on non-flushed backlog
        io_uring: only !null ptr to io_issue_sqe()
        io_uring: simplify io_req_link_next()
        io_uring: pass only !null to io_req_find_next()
        io_uring: remove io_free_req_find_next()
        ...
      05bd375b
    • Dave Airlie's avatar
      Merge branch 'vmwgfx-coherent' of git://people.freedesktop.org/~thomash/linux into drm-next · 0a6cad5d
      Dave Airlie authored
      Graphics APIs like OpenGL 4.4 and Vulkan require the graphics driver
      to provide coherent graphics memory, meaning that the GPU sees any
      content written to the coherent memory on the next GPU operation that
      touches that memory, and the CPU sees any content written by the GPU
      to that memory immediately after any fence object trailing the GPU
      operation is signaled.
      
      Paravirtual drivers that otherwise require explicit synchronization
      needs to do this by hooking up dirty tracking to pagefault handlers
      and buffer object validation.
      
      Provide mm helpers needed for this and that also allow for huge pmd-
      and pud entries (patch 1-3), and the associated vmwgfx code (patch 4-7).
      
      The code has been tested and exercised by a tailored version of mesa
      where we disable all explicit synchronization and assume graphics memory
      is coherent. The performance loss varies of course; a typical number is
      around 5%.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Thomas Hellstrom <thomas_os@shipmail.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191113131639.4653-1-thomas_os@shipmail.org
      0a6cad5d
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2019-11-27' of git://anongit.freedesktop.org/drm/drm · a6ed68d6
      Linus Torvalds authored
      Pull drm updates from Dave Airlie:
       "Lots of stuff in here, though it hasn't been too insane this merge
        apart from dealing with the security fun.
      
        uapi:
         - export different colorspace properties on DP vs HDMI
         - new fourcc for ARM 16x16 block format
         - syncobj: allow querying last submitted timeline value
         - DRM_FORMAT_BIG_ENDIAN defined as unsigned
      
        core:
         - allow using gem vma manager in ttm
         - connector/encoder/bridge doc fixes
         - allow more than 3 encoders for a connector
         - displayport mst suspend/resume reprobing support
         - vram lazy unmapping, uniform vram mm and gem vram
         - edid cleanups + AVI informframe bar info
         - displayport helpers - dpcd parser added
      
        dp_cec:
         - Allow a connector to be associated with a cec device
      
        ttm:
         - pipelining with no_gpu_wait fix
         - always keep BOs on the LRU
      
        sched:
         - allow free_job routine to sleep
      
        i915:
         - Block userptr from mappable GTT
         - i915 perf uapi versioning
         - OA stream dynamic reconfiguration
         - make context persistence optional
         - introduce DRM_I915_UNSTABLE Kconfig
         - add fake lmem testing under unstable
         - BT.2020 support for DP MSA
         - struct mutex elimination
         - Tigerlake display/PLL/power management improvements
         - Jasper Lake PCH support
         - refactor PMU for multiple GPUs
         - Icelake firmware update
         - Split out vga + switcheroo code
      
        amdgpu:
         - implement dma-buf import/export without helpers
         - vega20 RAS enablement
         - DC i2c over aux fixes
         - renoir GPU reset
         - DC HDCP support
         - BACO support for CI/VI asics
         - MSI-X support
         - Arcturus EEPROM support
         - Arcturus VCN encode support
         - VCN dynamic powergating on RV/RV2
      
        amdkfd:
         - add navi12/14/renoir support to kfd
      
        radeon:
         - SI dpm fix ported from amdgpu
         - fix bad DMA on ppc platforms
      
        gma500:
         - memory leak fixes
      
        qxl:
         - convert to new gem mmap
      
        exynos:
         - build warning fix
      
        komeda:
         - add aclk sysfs attribute
      
        v3d:
         - userspace cleanup uapi change
      
        i810:
         - fix for underflow in dispatch ioctls
      
        ast:
         - refactor show_cursor
      
        mgag200:
         - refactor show_cursor
      
        arcgpu:
         - encoder finding improvements
      
        mediatek:
         - mipi_tx, dsi and partial crtc support for MT8183 SoC
         - rotation support
      
        meson:
         - add suspend/resume support
      
        omap:
         - misc refactors
      
        tegra:
         - DisplayPort support for Tegra 210, 186 and 194.
         - IOMMU-backed DMA API fixes
      
        panfrost:
         - fix lockdep issue
         - simplify devfreq integration
      
        rcar-du:
         - R8A774B1 SoC support
         - fixes for H2 ES2.0
      
        sun4i:
         - vcc-dsi regulator support
      
        virtio-gpu:
         - vmexit vs spinlock fix
         - move to gem shmem helpers
         - handle large command buffers with cma"
      
      * tag 'drm-next-2019-11-27' of git://anongit.freedesktop.org/drm/drm: (1855 commits)
        drm/amdgpu: invalidate mmhub semaphore workaround in gmc9/gmc10
        drm/amdgpu: initialize vm_inv_eng0_sem for gfxhub and mmhub
        drm/amd/amdgpu/sriov skip RLCG s/r list for arcturus VF.
        drm/amd/amdgpu/sriov temporarily skip ras,dtm,hdcp for arcturus VF
        drm/amdgpu/gfx10: re-init clear state buffer after gpu reset
        merge fix for "ftrace: Rework event_create_dir()"
        drm/amdgpu: Update Arcturus golden registers
        drm/amdgpu/gfx10: fix out-of-bound mqd_backup array access
        drm/amdgpu/gfx10: explicitly wait for cp idle after halt/unhalt
        Revert "drm/amd/display: enable S/G for RAVEN chip"
        drm/amdgpu: disable gfxoff on original raven
        drm/amdgpu: remove experimental flag for Navi14
        drm/amdgpu: disable gfxoff when using register read interface
        drm/amdgpu/powerplay: properly set PP_GFXOFF_MASK (v2)
        drm/amdgpu: fix bad DMA from INTERRUPT_CNTL2
        drm/radeon: fix bad DMA from INTERRUPT_CNTL2
        drm/amd/display: Fix debugfs on MST connectors
        drm/amdgpu/nv: add asic func for fetching vbios from rom directly
        drm/amdgpu: put flush_delayed_work at first
        drm/amdgpu/vcn2.5: fix the enc loop with hw fini
        ...
      a6ed68d6
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 8c39f71e
      Linus Torvalds authored
      Pull networking fixes from David Miller:
       "This is mostly to fix the iwlwifi regression:
      
        1) Flush GRO state properly in iwlwifi driver, from Alexander Lobakin.
      
        2) Validate TIPC link name with properly length macro, from John
           Rutherford.
      
        3) Fix completion init and device query timeouts in ibmvnic, from
           Thomas Falcon.
      
        4) Fix SKB size calculation for netlink messages in psample, from
           Nikolay Aleksandrov.
      
        5) Similar kind of fix for OVS flow dumps, from Paolo Abeni.
      
        6) Handle queue allocation failure unwind properly in gve driver, we
           could try to release pages we didn't allocate. From Jeroen de
           Borst.
      
        7) Serialize TX queue SKB list accesses properly in mscc ocelot
           driver. From Yangbo Lu"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net:
        net: usb: aqc111: Use the correct style for SPDX License Identifier
        net: phy: Use the correct style for SPDX License Identifier
        net: wireless: intel: iwlwifi: fix GRO_NORMAL packet stalling
        net: mscc: ocelot: use skb queue instead of skbs list
        net: mscc: ocelot: avoid incorrect consuming in skbs list
        gve: Fix the queue page list allocated pages count
        net: inet_is_local_reserved_port() port arg should be unsigned short
        openvswitch: fix flow command message size
        net: phy: dp83869: Fix return paths to return proper values
        net: psample: fix skb_over_panic
        net: usbnet: Fix -Wcast-function-type
        net: hso: Fix -Wcast-function-type
        net: port < inet_prot_sock(net) --> inet_port_requires_bind_service(net, port)
        ibmvnic: Serialize device queries
        ibmvnic: Bound waits for device queries
        ibmvnic: Terminate waiting device threads after loss of service
        ibmvnic: Fix completion structure initialization
        net-sctp: replace some sock_net(sk) with just 'net'
        net: Fix a documentation bug wrt. ip_unprivileged_port_start
        tipc: fix link name length check
      8c39f71e
  4. 27 Nov, 2019 13 commits
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 95f1fa9e
      Linus Torvalds authored
      Pull tracing updates from Steven Rostedt:
       "New tracing features:
      
         - New PERMANENT flag to ftrace_ops when attaching a callback to a
           function.
      
           As /proc/sys/kernel/ftrace_enabled when set to zero will disable
           all attached callbacks in ftrace, this has a detrimental impact on
           live kernel tracing, as it disables all that it patched. If a
           ftrace_ops is registered to ftrace with the PERMANENT flag set, it
           will prevent ftrace_enabled from being disabled, and if
           ftrace_enabled is already disabled, it will prevent a ftrace_ops
           with PREMANENT flag set from being registered.
      
         - New register_ftrace_direct().
      
           As eBPF would like to register its own trampolines to be called by
           the ftrace nop locations directly, without going through the ftrace
           trampoline, this function has been added. This allows for eBPF
           trampolines to live along side of ftrace, perf, kprobe and live
           patching. It also utilizes the ftrace enabled_functions file that
           keeps track of functions that have been modified in the kernel, to
           allow for security auditing.
      
         - Allow for kernel internal use of ftrace instances.
      
           Subsystems in the kernel can now create and destroy their own
           tracing instances which allows them to have their own tracing
           buffer, and be able to record events without worrying about other
           users from writing over their data.
      
         - New seq_buf_hex_dump() that lets users use the hex_dump() in their
           seq_buf usage.
      
         - Notifications now added to tracing_max_latency to allow user space
           to know when a new max latency is hit by one of the latency
           tracers.
      
         - Wider spread use of generic compare operations for use of bsearch
           and friends.
      
         - More synthetic event fields may be defined (32 up from 16)
      
         - Use of xarray for architectures with sparse system calls, for the
           system call trace events.
      
        This along with small clean ups and fixes"
      
      * tag 'trace-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (51 commits)
        tracing: Enable syscall optimization for MIPS
        tracing: Use xarray for syscall trace events
        tracing: Sample module to demonstrate kernel access to Ftrace instances.
        tracing: Adding new functions for kernel access to Ftrace instances
        tracing: Fix Kconfig indentation
        ring-buffer: Fix typos in function ring_buffer_producer
        ftrace: Use BIT() macro
        ftrace: Return ENOTSUPP when DYNAMIC_FTRACE_WITH_DIRECT_CALLS is not configured
        ftrace: Rename ftrace_graph_stub to ftrace_stub_graph
        ftrace: Add a helper function to modify_ftrace_direct() to allow arch optimization
        ftrace: Add helper find_direct_entry() to consolidate code
        ftrace: Add another check for match in register_ftrace_direct()
        ftrace: Fix accounting bug with direct->count in register_ftrace_direct()
        ftrace/selftests: Fix spelling mistake "wakeing" -> "waking"
        tracing: Increase SYNTH_FIELDS_MAX for synthetic_events
        ftrace/samples: Add a sample module that implements modify_ftrace_direct()
        ftrace: Add modify_ftrace_direct()
        tracing: Add missing "inline" in stub function of latency_fsnotify()
        tracing: Remove stray tab in TRACE_EVAL_MAP_FILE's help text
        tracing: Use seq_buf_hex_dump() to dump buffers
        ...
      95f1fa9e
    • Linus Torvalds's avatar
      Merge tag 'microblaze-v5.5-rc1' of git://git.monstr.eu/linux-2.6-microblaze · 477093b3
      Linus Torvalds authored
      Pull Microblaze updates from Michal Simek:
      
       - extend DTB space
      
       - defconfig update
      
       - clean up rescheduling logic
      
       - enable SPARSE_IRQ
      
      * tag 'microblaze-v5.5-rc1' of git://git.monstr.eu/linux-2.6-microblaze:
        microblaze: Increase max dtb size to 64K from 32K
        microblaze: Enable SPARSE_IRQ
        microblaze: defconfig: Enable devtmps and tmpfs
        microblaze: entry: Remove unneeded need_resched() loop
      477093b3
    • Linus Torvalds's avatar
      Merge tag 'riscv/for-v5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 6a0e20cd
      Linus Torvalds authored
      Pull RISC-V updates from Paul Walmsley:
       "New features:
         - SECCOMP support
         - nommu support
         - SBI-less system support
         - M-Mode support
         - TLB flush optimizations
      
        Other improvements:
         - Pass the complete RISC-V ISA string supported by the CPU cores to
           userspace, rather than redacting parts of it in the kernel
         - Add platform DMA IP block data to the HiFive Unleashed board DT
           file
         - Add Makefile support for BZ2, LZ4, LZMA, LZO kernel image
           compression formats, in line with other architectures
      
        Cleanups:
         - Remove unnecessary PTE_PARENT_SIZE macro
         - Standardize include guard naming across arch/riscv"
      
      * tag 'riscv/for-v5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (22 commits)
        riscv: provide a flat image loader
        riscv: add nommu support
        riscv: clear the instruction cache and all registers when booting
        riscv: read the hart ID from mhartid on boot
        riscv: provide native clint access for M-mode
        riscv: dts: add support for PDMA device of HiFive Unleashed Rev A00
        riscv: add support for MMIO access to the timer registers
        riscv: implement remote sfence.i using IPIs
        riscv: cleanup the default power off implementation
        riscv: poison SBI calls for M-mode
        riscv: don't allow selecting SBI based drivers for M-mode
        RISC-V: Add multiple compression image format.
        riscv: clean up the macro format in each header file
        riscv: Use PMD_SIZE to replace PTE_PARENT_SIZE
        riscv: abstract out CSR names for supervisor vs machine mode
        riscv: separate MMIO functions into their own header file
        riscv: enter WFI in default_power_off() if SBI does not shutdown
        RISC-V: Issue a tlb page flush if possible
        RISC-V: Issue a local tlbflush if possible.
        RISC-V: Do not invoke SBI call if cpumask is empty
        ...
      6a0e20cd
    • Nishad Kamdar's avatar
      net: usb: aqc111: Use the correct style for SPDX License Identifier · bac139a8
      Nishad Kamdar authored
      This patch corrects the SPDX License Identifier style in
      header files related to drivers for USB Network devices.
      This patch gives an explicit block comment to the
      SPDX License Identifier.
      
      Changes made by using a script provided by Joe Perches here:
      https://lkml.org/lkml/2019/2/7/46.
      Suggested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarNishad Kamdar <nishadkamdar@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bac139a8
    • Nishad Kamdar's avatar
      net: phy: Use the correct style for SPDX License Identifier · 9aab906a
      Nishad Kamdar authored
      This patch corrects the SPDX License Identifier style in
      header files related to PHY Layer for Ethernet drivers.
      For C header files Documentation/process/license-rules.rst
      mandates C-like comments (opposed to C source files where
      C++ style should be used). This patch also gives an explicit
      block comment to the SPDX License Identifier.
      
      Changes made by using a script provided by Joe Perches here:
      https://lkml.org/lkml/2019/2/7/46.
      Suggested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarNishad Kamdar <nishadkamdar@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9aab906a
    • Linus Torvalds's avatar
      Merge tag 'powerpc-spectre-rsb' of powerpc-CVE-2019-18660.bundle · 80eb5fea
      Linus Torvalds authored
      Pull powerpc Spectre-RSB fixes from Michael Ellerman:
       "We failed to activate the mitigation for Spectre-RSB (Return Stack
        Buffer, aka. ret2spec) on context switch, on CPUs prior to Power9
        DD2.3.
      
        That allows a process to poison the RSB (called Link Stack on Power
        CPUs) and possibly misdirect speculative execution of another process.
        If the victim process can be induced to execute a leak gadget then it
        may be possible to extract information from the victim via a side
        channel.
      
        The fix is to correctly activate the link stack flush mitigation on
        all CPUs that have any mitigation of Spectre v2 in userspace enabled.
      
        There's a second commit which adds a link stack flush in the KVM guest
        exit path. A leak via that path has not been demonstrated, but we
        believe it's at least theoretically possible.
      
        This is the fix for CVE-2019-18660"
      
      * tag 'powerpc-spectre-rsb' of /home/torvalds/Downloads/powerpc-CVE-2019-18660.bundle:
        KVM: PPC: Book3S HV: Flush link stack on guest exit to host kernel
        powerpc/book3s64: Fix link stack flush on context switch
      80eb5fea
    • Alexander Lobakin's avatar
      net: wireless: intel: iwlwifi: fix GRO_NORMAL packet stalling · b167191e
      Alexander Lobakin authored
      Commit 6570bc79 ("net: core: use listified Rx for GRO_NORMAL in
      napi_gro_receive()") has applied batched GRO_NORMAL packets processing
      to all napi_gro_receive() users, including mac80211-based drivers.
      
      However, this change has led to a regression in iwlwifi driver [1][2] as
      it is required for NAPI users to call napi_complete_done() or
      napi_complete() and the end of every polling iteration, whilst iwlwifi
      doesn't use NAPI scheduling at all and just calls napi_gro_flush().
      In that particular case, packets which have not been already flushed
      from napi->rx_list stall in it until at least next Rx cycle.
      
      Fix this by adding a manual flushing of the list to iwlwifi driver right
      before napi_gro_flush() call to mimic napi_complete() logics.
      
      I prefer to open-code gro_normal_list() rather than exporting it for 2
      reasons:
      * to prevent from using it and napi_gro_flush() in any new drivers,
        as it is the *really* bad way to use NAPI that should be avoided;
      * to keep gro_normal_list() static and don't lose any CC optimizations.
      
      I also don't add the "Fixes:" tag as the mentioned commit was only a
      trigger that only exposed an improper usage of NAPI in this particular
      driver.
      
      [1] https://lore.kernel.org/netdev/PSXP216MB04388962C411CD0B17A86F47804A0@PSXP216MB0438.KORP216.PROD.OUTLOOK.COM
      [2] https://bugzilla.kernel.org/show_bug.cgi?id=205647Signed-off-by: default avatarAlexander Lobakin <alobakin@dlink.ru>
      Acked-by: default avatarLuca Coelho <luciano.coelho@intel.com>
      Reported-by: default avatarNicholas Johnson <nicholas.johnson-opensource@outlook.com.au>
      Tested-by: default avatarNicholas Johnson <nicholas.johnson-opensource@outlook.com.au>
      Reviewed-by: default avatarEdward Cree <ecree@solarflare.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b167191e
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · 9a3d7fd2
      Linus Torvalds authored
      Pull driver core updates from Greg KH:
       "Here is the "big" set of driver core patches for 5.5-rc1
      
        There's a few minor cleanups and fixes in here, but the majority of
        the patches in here fall into two buckets:
      
         - debugfs api cleanups and fixes
      
         - driver core device link support for boot dependancy issues
      
        The debugfs api cleanups are working to slowly refactor the debugfs
        apis so that it is even harder to use incorrectly. That work has been
        happening for the past few kernel releases and will continue over
        time, it's a long-term project/goal
      
        The driver core device link support missed 5.4 by just a bit, so it's
        been sitting and baking for many months now. It's from Saravana Kannan
        to help resolve the problems that DT-based systems have at boot time
        with dependancy graphs and kernel modules. Turns out that no one has
        actually tried to build a generic arm64 kernel with loads of modules
        and have it "just work" for a variety of platforms (like a distro
        kernel). The big problem turned out to be a lack of dependency
        information between different areas of DT entries, and the work here
        resolves that problem and now allows devices to boot properly, and
        quicker than a monolith kernel.
      
        All of these patches have been in linux-next for a long time with no
        reported issues"
      
      * tag 'driver-core-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (68 commits)
        tracing: Remove unnecessary DEBUG_FS dependency
        of: property: Add device link support for interrupt-parent, dmas and -gpio(s)
        debugfs: Fix !DEBUG_FS debugfs_create_automount
        of: property: Add device link support for "iommu-map"
        of: property: Fix the semantics of of_is_ancestor_of()
        i2c: of: Populate fwnode in of_i2c_get_board_info()
        drivers: base: Fix Kconfig indentation
        firmware_loader: Fix labels with comma for builtin firmware
        driver core: Allow device link operations inside sync_state()
        driver core: platform: Declare ret variable only once
        cpu-topology: declare parse_acpi_topology in <linux/arch_topology.h>
        crypto: hisilicon: no need to check return value of debugfs_create functions
        driver core: platform: use the correct callback type for bus_find_device
        firmware_class: make firmware caching configurable
        driver core: Clarify documentation for fwnode_operations.add_links()
        mailbox: tegra: Fix superfluous IRQ error message
        net: caif: Fix debugfs on 64-bit platforms
        mac80211: Use debugfs_create_xul() helper
        media: c8sectpfe: no need to check return value of debugfs_create functions
        of: property: Add device link support for iommus, mboxes and io-channels
        ...
      9a3d7fd2
    • Linus Torvalds's avatar
      Merge tag 'staging-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 0dd09bc0
      Linus Torvalds authored
      Pull staging / iio updates from Greg KH:
       "Here is the big staging and iio set of patches for the 5.5-rc1
        release.
      
        It's the usual huge collection of cleanup patches all over the
        drivers/staging/ area, along with a new staging driver, and a bunch of
        new IIO drivers as well.
      
        Full details are in the shortlog, but all of these have been in
        linux-next for a long time with no reported issues"
      
      * tag 'staging-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (548 commits)
        staging: vchiq: Have vchiq_dump_* functions return an error code
        staging: vchiq: Refactor indentation in vchiq_dump_* functions
        staging: fwserial: Fix Kconfig indentation (seven spaces)
        staging: vchiq_dump: Replace min with min_t
        staging: vchiq: Fix block comment format in vchiq_dump()
        staging: octeon: indent with tabs instead of spaces
        staging: comedi: usbduxfast: usbduxfast_ai_cmdtest rounding error
        staging: most: core: remove sysfs attr remove_link
        staging: vc04: Fix Kconfig indentation
        staging: pi433: Fix Kconfig indentation
        staging: nvec: Fix Kconfig indentation
        staging: most: Fix Kconfig indentation
        staging: fwserial: Fix Kconfig indentation
        staging: fbtft: Fix Kconfig indentation
        fbtft: Drop OF dependency
        fbtft: Make use of device property API
        fbtft: Drop useless #ifdef CONFIG_OF and dead code
        fbtft: Describe function parameters in kernel-doc
        fbtft: Make sure string is NULL terminated
        staging: rtl8723bs: remove set but not used variable 'change', 'pos'
        ...
      0dd09bc0
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 8f56e4eb
      Linus Torvalds authored
      Pull char/misc driver updates from Greg KH:
       "Here is the big set of char/misc and other driver patches for 5.5-rc1
      
        Loads of different things in here, this feels like the catch-all of
        driver subsystems these days. Full details are in the shortlog, but
        nothing major overall, just lots of driver updates and additions.
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'char-misc-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (198 commits)
        char: Fix Kconfig indentation, continued
        habanalabs: add more protection of device during reset
        habanalabs: flush EQ workers in hard reset
        habanalabs: make the reset code more consistent
        habanalabs: expose reset counters via existing INFO IOCTL
        habanalabs: make code more concise
        habanalabs: use defines for F/W files
        habanalabs: remove prints on successful device initialization
        habanalabs: remove unnecessary checks
        habanalabs: invalidate MMU cache only once
        habanalabs: skip VA block list update in reset flow
        habanalabs: optimize MMU unmap
        habanalabs: prevent read/write from/to the device during hard reset
        habanalabs: split MMU properties to PCI/DRAM
        habanalabs: re-factor MMU masks and documentation
        habanalabs: type specific MMU cache invalidation
        habanalabs: re-factor memory module code
        habanalabs: export uapi defines to user-space
        habanalabs: don't print error when queues are full
        habanalabs: increase max jobs number to 512
        ...
      8f56e4eb
    • David S. Miller's avatar
      Merge branch 'mscc-skb-lists' · a02e3991
      David S. Miller authored
      Yangbo Lu says:
      
      ====================
      net: mscc: ocelot: fix potential issues accessing skbs list
      
      Fix two prtential issues accessing skbs list.
      - Break the matching loop when find the matching skb to avoid
        consuming more skbs incorrectly. The timestamp ID is only
        from 0 to 3 while the FIFO supports 128 timestamps at most.
      - Convert to use skb queue instead of the list of skbs to provide
        protect with lock.
      
      Changes for v2:
      	- Split into two patches.
      	- Converted to use skb queue.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a02e3991
    • Yangbo Lu's avatar
      net: mscc: ocelot: use skb queue instead of skbs list · b049da13
      Yangbo Lu authored
      Convert to use skb queue instead of the list of skbs.
      The skb queue could provide protection with lock.
      Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b049da13
    • Yangbo Lu's avatar
      net: mscc: ocelot: avoid incorrect consuming in skbs list · fc62c094
      Yangbo Lu authored
      Break the matching loop when find the matching skb for TX timestamp.
      This is to avoid consuming more skbs incorrectly. The timestamp ID
      is from 0 to 3 while the FIFO could support 128 timestamps at most.
      Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fc62c094