1. 03 Apr, 2018 4 commits
    • Linus Torvalds's avatar
      Merge tag 'nds32-for-linus-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/greentime/linux · c9297d28
      Linus Torvalds authored
      Pull nds32 architecture support from Greentime Hu:
       "This contains the core nds32 Linux port (including interrupt
        controller driver and timer driver), which has been through seven
        rounds of review on mailing list.
        It is able to boot to shell and passes most LTP-2017 testsuites in
        nds32 AE3XX platform:
          Total Tests: 1901
          Total Skipped Tests: 618
          Total Failures: 78"
      Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
      * tag 'nds32-for-linus-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/greentime/linux: (44 commits)
        nds32: To use the generic dump_stack()
        nds32: fix building failed if using elf toolchain.
        nios2: add ioremap_nocache declaration before include asm-generic/io.h.
        nds32: fix building failed if using older version gcc.
        dt-bindings: timer: Add andestech atcpit100 timer binding doc
        clocksource/drivers/atcpit100: VDSO support
        clocksource/drivers/atcpit100: Add andestech atcpit100 timer
        net: faraday add nds32 support.
        irqchip: Andestech Internal Vector Interrupt Controller driver
        dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller
        dt-bindings: nds32 SoC Bindings
        dt-bindings: nds32 L2 cache controller Bindings
        dt-bindings: nds32 CPU Bindings
        MAINTAINERS: Add nds32
        nds32: Build infrastructure
        nds32: defconfig
        nds32: Miscellaneous header files
        nds32: Device tree support
        nds32: Generic timers support
        nds32: Loadable modules
    • Linus Torvalds's avatar
      Merge tag 'm68k-for-v4.17-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k · 17e3cd22
      Linus Torvalds authored
      Pull m68k updates from Geert Uytterhoeven:
       - Macintosh enhancements and fixes
       - Remove useless memory layout printing using hashed pointers
       - Add missing Amiga Zorro bus DMA mask
       - Small fixes and cleanups
       - Defconfig updates
      * tag 'm68k-for-v4.17-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
        m68k/mac: Remove bogus "FIXME" comment
        m68k/mac: Enable RTC for 100-series PowerBooks
        m68k/mac: Clean up whitespace and remove redundant parentheses
        m68k/defconfig: Update defconfigs for v4.16-rc5
        zorro: Set up z->dev.dma_mask for the DMA API
        m68k/time: Stop validating rtc_time in .read_time
        m68k/mm: Stop printing the virtual memory layout
        macintosh/via-pmu68k: Initialize PMU driver with setup_arch and arch_initcall
        m68k/mac: Fix apparent race condition in Baboon interrupt dispatch
        m68k/mac: Enable PDMA support for PowerBook 190
    • Linus Torvalds's avatar
      Merge branch 'efi-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · bc16d405
      Linus Torvalds authored
      Pull EFI updates from Ingo Molnar:
       "The main EFI changes in this cycle were:
         - Fix the apple-properties code (Andy Shevchenko)
         - Add WARN() on arm64 if UEFI Runtime Services corrupt the reserved
           x18 register (Ard Biesheuvel)
         - Use efi_switch_mm() on x86 instead of manipulating %cr3 directly
           (Sai Praneeth)
         - Fix early memremap leak in ESRT code (Ard Biesheuvel)
         - Switch to L"xxx" notation for wide string literals (Ard Biesheuvel)
         - ... plus misc other cleanups and bugfixes"
      * 'efi-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/efi: Use efi_switch_mm() rather than manually twiddling with %cr3
        x86/efi: Replace efi_pgd with efi_mm.pgd
        efi: Use string literals for efi_char16_t variable initializers
        efi/esrt: Fix handling of early ESRT table mapping
        efi: Use efi_mm in x86 as well as ARM
        efi: Make const array 'apple' static
        efi/apple-properties: Use memremap() instead of ioremap()
        efi: Reorder pr_notice() with add_device_randomness() call
        x86/efi: Replace GFP_ATOMIC with GFP_KERNEL in efi_query_variable_store()
        efi/arm64: Check whether x18 is preserved by runtime services calls
        efi/arm*: Stop printing addresses of virtual mappings
        efi/apple-properties: Remove redundant attribute initialization from unmarshal_key_value_pairs()
        efi/arm*: Only register page tables when they exist
    • Linus Torvalds's avatar
      Merge branch 'x86-dma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 2fcd2b30
      Linus Torvalds authored
      Pull x86 dma mapping updates from Ingo Molnar:
       "This tree, by Christoph Hellwig, switches over the x86 architecture to
        the generic dma-direct and swiotlb code, and also unifies more of the
        dma-direct code between architectures. The now unused x86-only
        primitives are removed"
      * 'x86-dma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        dma-mapping: Don't clear GFP_ZERO in dma_alloc_attrs
        swiotlb: Make swiotlb_{alloc,free}_buffer depend on CONFIG_DMA_DIRECT_OPS
        dma/swiotlb: Remove swiotlb_{alloc,free}_coherent()
        dma/direct: Handle force decryption for DMA coherent buffers in common code
        dma/direct: Handle the memory encryption bit in common code
        dma/swiotlb: Remove swiotlb_set_mem_attributes()
        set_memory.h: Provide set_memory_{en,de}crypted() stubs
        x86/dma: Remove dma_alloc_coherent_gfp_flags()
        iommu/intel-iommu: Enable CONFIG_DMA_DIRECT_OPS=y and clean up intel_{alloc,free}_coherent()
        iommu/amd_iommu: Use CONFIG_DMA_DIRECT_OPS=y and dma_direct_{alloc,free}()
        x86/dma/amd_gart: Use dma_direct_{alloc,free}()
        x86/dma/amd_gart: Look at dev->coherent_dma_mask instead of GFP_DMA
        x86/dma: Use generic swiotlb_ops
        x86/dma: Use DMA-direct (CONFIG_DMA_DIRECT_OPS=y)
        x86/dma: Remove dma_alloc_coherent_mask()
  2. 02 Apr, 2018 18 commits
    • Linus Torvalds's avatar
      Merge branch 'sched-wait-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ce6eba3d
      Linus Torvalds authored
      Pull wait_var_event updates from Ingo Molnar:
       "This introduces the new wait_var_event() API, which is a more flexible
        waiting primitive than wait_on_atomic_t().
        All wait_on_atomic_t() users are migrated over to the new API and
        wait_on_atomic_t() is removed. The migration fixes one bug and should
        result in no functional changes for the other usecases"
      * 'sched-wait-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/wait: Improve __var_waitqueue() code generation
        sched/wait: Remove the wait_on_atomic_t() API
        sched/wait, arch/mips: Fix and convert wait_on_atomic_t() usage to the new wait_var_event() API
        sched/wait, fs/ocfs2: Convert wait_on_atomic_t() usage to the new wait_var_event() API
        sched/wait, fs/nfs: Convert wait_on_atomic_t() usage to the new wait_var_event() API
        sched/wait, fs/fscache: Convert wait_on_atomic_t() usage to the new wait_var_event() API
        sched/wait, fs/btrfs: Convert wait_on_atomic_t() usage to the new wait_var_event() API
        sched/wait, fs/afs: Convert wait_on_atomic_t() usage to the new wait_var_event() API
        sched/wait, drivers/media: Convert wait_on_atomic_t() usage to the new wait_var_event() API
        sched/wait, drivers/drm: Convert wait_on_atomic_t() usage to the new wait_var_event() API
        sched/wait: Introduce wait_var_event()
    • Linus Torvalds's avatar
      Merge branch 'x86-timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · a5532439
      Linus Torvalds authored
      Pull x86 timer updates from Ingo Molnar:
       "Two changes: add the new convert_art_ns_to_tsc() API for upcoming
        Intel Goldmont+ drivers, and remove the obsolete rdtscll() API"
      * 'x86-timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/tsc: Get rid of rdtscll()
        x86/tsc: Convert ART in nanoseconds to TSC
    • Linus Torvalds's avatar
      Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · cea061e4
      Linus Torvalds authored
      Pull x86 platform updates from Ingo Molnar:
       "The main changes in this cycle were:
         - Add "Jailhouse" hypervisor support (Jan Kiszka)
         - Update DeviceTree support (Ivan Gorinov)
         - Improve DMI date handling (Andy Shevchenko)"
      * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/PCI: Fix a potential regression when using dmi_get_bios_year()
        firmware/dmi_scan: Uninline dmi_get_bios_year() helper
        x86/devicetree: Use CPU description from Device Tree
        of/Documentation: Specify local APIC ID in "reg"
        MAINTAINERS: Add entry for Jailhouse
        x86/jailhouse: Allow to use PCI_MMCONFIG without ACPI
        x86: Consolidate PCI_MMCONFIG configs
        x86: Align x86_64 PCI_MMCONFIG with 32-bit variant
        x86/jailhouse: Enable PCI mmconfig access in inmates
        PCI: Scan all functions when running over Jailhouse
        jailhouse: Provide detection for non-x86 systems
        x86/devicetree: Fix device IRQ settings in DT
        x86/devicetree: Initialize device tree before using it
        pci: Simplify code by using the new dmi_get_bios_year() helper
        ACPI/sleep: Simplify code by using the new dmi_get_bios_year() helper
        x86/pci: Simplify code by using the new dmi_get_bios_year() helper
        dmi: Introduce the dmi_get_bios_year() helper function
        x86/platform/quark: Re-use DEFINE_SHOW_ATTRIBUTE() macro
        x86/platform/atom: Re-use DEFINE_SHOW_ATTRIBUTE() macro
    • Linus Torvalds's avatar
      Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d22fff81
      Linus Torvalds authored
      Pull x86 mm updates from Ingo Molnar:
       - Extend the memmap= boot parameter syntax to allow the redeclaration
         and dropping of existing ranges, and to support all e820 range types
         (Jan H. Schönherr)
       - Improve the W+X boot time security checks to remove false positive
         warnings on Xen (Jan Beulich)
       - Support booting as Xen PVH guest (Juergen Gross)
       - Improved 5-level paging (LA57) support, in particular it's possible
         now to have a single kernel image for both 4-level and 5-level
         hardware (Kirill A. Shutemov)
       - AMD hardware RAM encryption support (SME/SEV) fixes (Tom Lendacky)
       - Preparatory commits for hardware-encrypted RAM support on Intel CPUs.
         (Kirill A. Shutemov)
       - Improved Intel-MID support (Andy Shevchenko)
       - Show EFI page tables in page_tables debug files (Andy Lutomirski)
       - ... plus misc fixes and smaller cleanups
      * 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (56 commits)
        x86/cpu/tme: Fix spelling: "configuation" -> "configuration"
        x86/boot: Fix SEV boot failure from change to __PHYSICAL_MASK_SHIFT
        x86/mm: Update comment in detect_tme() regarding x86_phys_bits
        x86/mm/32: Remove unused node_memmap_size_bytes() & CONFIG_NEED_NODE_MEMMAP_SIZE logic
        x86/mm: Remove pointless checks in vmalloc_fault
        x86/platform/intel-mid: Add special handling for ACPI HW reduced platforms
        ACPI, x86/boot: Introduce the ->reduced_hw_early_init() ACPI callback
        ACPI, x86/boot: Split out acpi_generic_reduce_hw_init() and export
        x86/pconfig: Provide defines and helper to run MKTME_KEY_PROG leaf
        x86/pconfig: Detect PCONFIG targets
        x86/tme: Detect if TME and MKTME is activated by BIOS
        x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G
        x86/boot/compressed/64: Use page table in trampoline memory
        x86/boot/compressed/64: Use stack from trampoline memory
        x86/boot/compressed/64: Make sure we have a 32-bit code segment
        x86/mm: Do not use paravirtualized calls in native_set_p4d()
        kdump, vmcoreinfo: Export pgtable_l5_enabled value
        x86/boot/compressed/64: Prepare new top-level page table for trampoline
        x86/boot/compressed/64: Set up trampoline memory
        x86/boot/compressed/64: Save and restore trampoline memory
    • Linus Torvalds's avatar
      Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 986b37c0
      Linus Torvalds authored
      Pull x86 cleanups and msr updates from Ingo Molnar:
       "The main change is a performance/latency improvement to /dev/msr
        access. The rest are misc cleanups"
      * 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/msr: Make rdmsrl_safe_on_cpu() scheduling safe as well
        x86/cpuid: Allow cpuid_read() to schedule
        x86/msr: Allow rdmsr_safe_on_cpu() to schedule
        x86/rtc: Stop using deprecated functions
        x86/dumpstack: Unify show_regs()
        x86/fault: Do not print IP in show_fault_oops()
        x86/MSR: Move native_* variants to msr.h
    • Linus Torvalds's avatar
      Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e68b4bad
      Linus Torvalds authored
      Pull x86 build updates from Ingo Molnar:
       "The biggest change is the forcing of asm-goto support on x86, which
        effectively increases the GCC minimum supported version to gcc-4.5 (on
      * 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/build: Don't pass in -D__KERNEL__ multiple times
        x86: Remove FAST_FEATURE_TESTS
        x86: Force asm-goto
        x86/build: Drop superfluous ALIGN from the linker script
    • Linus Torvalds's avatar
      Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5e46caf6
      Linus Torvalds authored
      Pull x86 asm fixlets from Ingo Molnar:
       "A clobber list fix and cleanups"
      * 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/asm: Trim clear_page.S includes
        x86/asm: Clobber flags in clear_page()
    • Linus Torvalds's avatar
      Merge branch 'x86-apic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 2451d1e5
      Linus Torvalds authored
      Pull x86 apic updates from Ingo Molnar:
       "The main x86 APIC/IOAPIC changes in this cycle were:
         - Robustify kexec support to more carefully restore IRQ hardware
           state before calling into kexec/kdump kernels. (Baoquan He)
         - Clean up the local APIC code a bit (Dou Liyang)
         - Remove unused callbacks (David Rientjes)"
      * 'x86-apic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/apic: Finish removing unused callbacks
        x86/apic: Drop logical_smp_processor_id() inline
        x86/apic: Modernize the pending interrupt code
        x86/apic: Move pending interrupt check code into it's own function
        x86/apic: Set up through-local-APIC mode on the boot CPU if 'noapic' specified
        x86/apic: Rename variables and functions related to x86_io_apic_ops
        x86/apic: Remove the (now) unused disable_IO_APIC() function
        x86/apic: Fix restoring boot IRQ mode in reboot and kexec/kdump
        x86/apic: Split disable_IO_APIC() into two functions to fix CONFIG_KEXEC_JUMP=y
        x86/apic: Split out restore_boot_irq_mode() from disable_IO_APIC()
        x86/apic: Make setup_local_APIC() static
        x86/apic: Simplify init_bsp_APIC() usage
        x86/x2apic: Mark set_x2apic_phys_mode() as __init
    • Linus Torvalds's avatar
      Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 67dbfc14
      Linus Torvalds authored
      Pull SMP hotplug updates from Ingo Molnar:
       "Simplify the CPU hot-plug state machine"
      * 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        cpu/hotplug: Fix unused function warning
        cpu/hotplug: Merge cpuhp_bp_states and cpuhp_ap_states
    • Linus Torvalds's avatar
      Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 46e0d28b
      Linus Torvalds authored
      Pull scheduler updates from Ingo Molnar:
       "The main scheduler changes in this cycle were:
         - NUMA balancing improvements (Mel Gorman)
         - Further load tracking improvements (Patrick Bellasi)
         - Various NOHZ balancing cleanups and optimizations (Peter Zijlstra)
         - Improve blocked load handling, in particular we can now reduce and
           eventually stop periodic load updates on 'very idle' CPUs. (Vincent
         - On isolated CPUs offload the final 1Hz scheduler tick as well, plus
           related cleanups and reorganization. (Frederic Weisbecker)
         - Core scheduler code cleanups (Ingo Molnar)"
      * 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (45 commits)
        sched/core: Update preempt_notifier_key to modern API
        sched/cpufreq: Rate limits for SCHED_DEADLINE
        sched/fair: Update util_est only on util_avg updates
        sched/cpufreq/schedutil: Use util_est for OPP selection
        sched/fair: Use util_est in LB and WU paths
        sched/fair: Add util_est on top of PELT
        sched/core: Remove TASK_ALL
        sched/completions: Use bool in try_wait_for_completion()
        sched/fair: Update blocked load when newly idle
        sched/fair: Move idle_balance()
        sched/nohz: Merge CONFIG_NO_HZ_COMMON blocks
        sched/fair: Move rebalance_domains()
        sched/nohz: Optimize nohz_idle_balance()
        sched/fair: Reduce the periodic update duration
        sched/nohz: Stop NOHZ stats when decayed
        sched/cpufreq: Provide migration hint
        sched/nohz: Clean up nohz enter/exit
        sched/fair: Update blocked load from NEWIDLE
        sched/fair: Add NOHZ stats balancing
        sched/fair: Restructure nohz_balance_kick()
    • Linus Torvalds's avatar
      Merge branch 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 86bbbeba
      Linus Torvalds authored
      Pull x86 RAS updates from Ingo Molnar:
       "The main changes in this cycle were:
         - AMD MCE support/decoding improvements (Yazen Ghannam)
         - general MCE header cleanups and reorganization (Borislav Petkov)"
      * 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        Revert "x86/mce/AMD: Collect error info even if valid bits are not set"
        x86/MCE: Cleanup and complete struct mce fields definitions
        x86/mce/AMD: Carve out SMCA get_block_address() code
        x86/mce/AMD: Get address from already initialized block
        x86/mce/AMD, EDAC/mce_amd: Enumerate Reserved SMCA bank type
        x86/mce/AMD: Pass the bank number to smca_get_bank_type()
        x86/mce/AMD: Collect error info even if valid bits are not set
        x86/mce: Issue the 'mcelog --ascii' message only on !AMD
        x86/mce: Convert 'struct mca_config' bools to a bitfield
        x86/mce: Put private structures and definitions into the internal header
    • Linus Torvalds's avatar
      Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 486adcea
      Linus Torvalds authored
      Pull perf updates from Ingo Molnar:
       "The main kernel side changes were:
         - Modernize the kprobe and uprobe creation/destruction tooling ABIs:
           The existing text based APIs (kprobe_events and uprobe_events in
           tracefs), are naive, limited ABIs in that they require user-space
           to clean up after themselves, which is both difficult and fragile
           if the tool is buggy or exits unexpectedly. In other words they are
           not really suited for modern, robust tooling.
           So introduce a modern, file descriptor based ABI that does not have
           these limitations: introduce the 'perf_kprobe' and 'perf_uprobe'
           PMUs and extend the perf_event_open() syscall to create events with
           a kprobe/uprobe attached to them. These [k,u]probe are associated
           with this file descriptor, so they are not available in tracefs.
           (Song Liu)
         - Intel Cannon Lake CPU support (Harry Pan)
         - Intel PT cleanups (Alexander Shishkin)
         - Improve the performance of pinned/flexible event groups by using RB
           trees (Alexey Budankov)
         - Add PERF_EVENT_IOC_MODIFY_ATTRIBUTES which allows the modification
           of hardware breakpoints, which new ABI variant massively speeds up
           existing tooling that uses hardware breakpoints to instrument (and
           debug) memory usage.
           (Milind Chabbi, Jiri Olsa)
         - Various Intel PEBS handling fixes and improvements, and other Intel
           PMU improvements (Kan Liang)
         - Various perf core improvements and optimizations (Peter Zijlstra)
         - ... misc cleanups, fixes and updates.
        There's over 200 tooling commits, here's an (imperfect) list of
         - 'perf annotate' improvements:
            * Recognize and handle jumps to other functions as calls, which
              improves the navigation along jumps and back. (Arnaldo Carvalho
              de Melo)
            * Add the 'P' hotkey in TUI annotation to dump annotation output
              into a file, to ease e-mail reporting of annotation details.
              (Arnaldo Carvalho de Melo)
            * Add an IPC/cycles column to the TUI (Jin Yao)
            * Improve s390 assembly annotation (Thomas Richter)
            * Refactor the output formatting logic to better separate it into
              interactive and non-interactive features and add the --stdio2
              output variant to demonstrate this. (Arnaldo Carvalho de Melo)
         - 'perf script' improvements:
            * Add Python 3 support (Jaroslav Škarvada)
            * Add --show-round-event (Jiri Olsa)
         - 'perf c2c' improvements:
            * Add NUMA analysis support (Jiri Olsa)
         - 'perf trace' improvements:
            * Improve PowerPC support (Ravi Bangoria)
         - 'perf inject' improvements:
            * Integrate ARM CoreSight traces (Robert Walker)
         - 'perf stat' improvements:
            * Add the --interval-count option (yuzhoujian)
            * Add the --timeout option (yuzhoujian)
         - 'perf sched' improvements (Changbin Du)
         - Vendor events improvements :
            * Add IBM s390 vendor events (Thomas Richter)
            * Add and improve arm64 vendor events (John Garry, Ganapatrao
            * Update POWER9 vendor events (Sukadev Bhattiprolu)
         - Intel PT tooling improvements (Adrian Hunter)
         - PMU handling improvements (Agustin Vega-Frias)
         - Record machine topology in perf.data (Jiri Olsa)
         - Various overwrite related cleanups (Kan Liang)
         - Add arm64 dwarf post unwind support (Kim Phillips, Jean Pihet)
         - ... and lots of other changes, cleanups and fixes, see the shortlog
           and Git history for details"
      * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (262 commits)
        perf/x86/intel: Enable C-state residency events for Cannon Lake
        perf/x86/intel: Add Cannon Lake support for RAPL profiling
        perf/x86/pt, coresight: Clean up address filter structure
        perf vendor events s390: Add JSON files for IBM z14
        perf vendor events s390: Add JSON files for IBM z13
        perf vendor events s390: Add JSON files for IBM zEC12 zBC12
        perf vendor events s390: Add JSON files for IBM z196
        perf vendor events s390: Add JSON files for IBM z10EC z10BC
        perf mmap: Be consistent when checking for an unmaped ring buffer
        perf mmap: Fix accessing unmapped mmap in perf_mmap__read_done()
        perf build: Fix check-headers.sh opts assignment
        perf/x86: Update rdpmc_always_available static key to the modern API
        perf annotate: Use absolute addresses to calculate jump target offsets
        perf annotate: Defer searching for comma in raw line till it is needed
        perf annotate: Support jumping from one function to another
        perf annotate: Add "_local" to jump/offset validation routines
        perf python: Reference Py_None before returning it
        perf annotate: Mark jumps to outher functions with the call arrow
        perf annotate: Pass function descriptor to its instruction parsing routines
        perf annotate: No need to calculate notes->start twice
    • Linus Torvalds's avatar
      Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 701f3b31
      Linus Torvalds authored
      Pull locking updates from Ingo Molnar:
       "The main changes in the locking subsystem in this cycle were:
         - Add the Linux Kernel Memory Consistency Model (LKMM) subsystem,
           which is an an array of tools in tools/memory-model/ that formally
           describe the Linux memory coherency model (a.k.a.
           Documentation/memory-barriers.txt), and also produce 'litmus tests'
           in form of kernel code which can be directly executed and tested.
           Here's a high level background article about an earlier version of
           this work on LWN.net:
           The design principles:
            "There is reason to believe that Documentation/memory-barriers.txt
             could use some help, and a major purpose of this patch is to
             provide that help in the form of a design-time tool that can
             produce all valid executions of a small fragment of concurrent
             Linux-kernel code, which is called a "litmus test". This tool's
             functionality is roughly similar to a full state-space search.
             Please note that this is a design-time tool, not useful for
             regression testing. However, we hope that the underlying
             Linux-kernel memory model will be incorporated into other tools
             capable of analyzing large bodies of code for regression-testing
            "A second tool is klitmus7, which converts litmus tests to
             loadable kernel modules for direct testing. As with herd7, the
             klitmus7 code is freely available from
             (and via "git" at https://github.com/herd/herdtools7)"
           Credits go to:
            "This patch was the result of a most excellent collaboration
             founded by Jade Alglave and also including Alan Stern, Andrea
             Parri, and Luc Maranget."
           ... and to the gents listed in the MAINTAINERS entry:
              M:      Alan Stern <stern@rowland.harvard.edu>
              M:      Andrea Parri <parri.andrea@gmail.com>
              M:      Will Deacon <will.deacon@arm.com>
              M:      Peter Zijlstra <peterz@infradead.org>
              M:      Boqun Feng <boqun.feng@gmail.com>
              M:      Nicholas Piggin <npiggin@gmail.com>
              M:      David Howells <dhowells@redhat.com>
              M:      Jade Alglave <j.alglave@ucl.ac.uk>
              M:      Luc Maranget <luc.maranget@inria.fr>
              M:      "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
           The LKMM project already found several bugs in Linux locking
           primitives and improved the understanding and the documentation of
           the Linux memory model all around.
         - Add KASAN instrumentation to atomic APIs (Dmitry Vyukov)
         - Add RWSEM API debugging and reorganize the lock debugging Kconfig
           (Waiman Long)
         - ... misc cleanups and other smaller changes"
      * 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (31 commits)
        locking/Kconfig: Restructure the lock debugging menu
        locking/Kconfig: Add LOCK_DEBUGGING_SUPPORT to make it more readable
        locking/rwsem: Add DEBUG_RWSEMS to look for lock/unlock mismatches
        lockdep: Make the lock debug output more useful
        locking/rtmutex: Handle non enqueued waiters gracefully in remove_waiter()
        locking/atomic, asm-generic, x86: Add comments for atomic instrumentation
        locking/atomic, asm-generic: Add KASAN instrumentation to atomic operations
        locking/atomic/x86: Switch atomic.h to use atomic-instrumented.h
        locking/atomic, asm-generic: Add asm-generic/atomic-instrumented.h
        locking/xchg/alpha: Remove superfluous memory barriers from the _local() variants
        tools/memory-model: Finish the removal of rb-dep, smp_read_barrier_depends(), and lockless_dereference()
        tools/memory-model: Add documentation of new litmus test
        tools/memory-model: Remove mention of docker/gentoo image
        locking/memory-barriers: De-emphasize smp_read_barrier_depends() some more
        locking/lockdep: Show unadorned pointers
        mutex: Drop linkage.h from mutex.h
        tools/memory-model: Remove rb-dep, smp_read_barrier_depends, and lockless_dereference
        tools/memory-model: Convert underscores to hyphens
        tools/memory-model: Add a S lock-based external-view litmus test
        tools/memory-model: Add required herd7 version to README file
    • Linus Torvalds's avatar
      Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8747a291
      Linus Torvalds authored
      Pull RCU updates from Ingo Molnar:
       "The main RCU subsystem changes in this cycle were:
        - Miscellaneous fixes, perhaps most notably removing obsolete code
          whose only purpose in life was to gather information for the
          now-removed RCU debugfs facility. Other notable changes include
          removing NO_HZ_FULL_ALL in favor of the nohz_full kernel boot
          parameter, minor optimizations for expedited grace periods, some
          added tracing, creating an RCU-specific workqueue using Tejun's new
          WQ_MEM_RECLAIM flag, and several cleanups to code and comments.
        - SRCU cleanups and optimizations.
        - Torture-test updates, perhaps most notably the adding of ARMv8
          support, but also including numerous cleanups and usability fixes"
      * 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (37 commits)
        rcu: Create RCU-specific workqueues with rescuers
        torture: Provide more sensible nreader/nwriter defaults for rcuperf
        torture: Grace periods do not piggyback off of themselves
        torture: Adjust rcuperf trace processing to allow for workqueues
        torture: Default jitter off when running rcuperf
        torture: Specify qemu memory size with --memory argument
        rcutorture: Add basic ARM64 support to run scripts
        rcutorture: Update kvm.sh header comment
        rcutorture: Record which grace-period primitives are tested
        rcutorture: Re-enable testing of dynamic expediting
        rcutorture: Avoid fake-writer use of undefined primitives
        rcutorture: Abstract function and module names
        rcutorture: Replace multi-instance kzalloc() with kcalloc()
        rcu: Remove SRCU throttling
        srcu: Remove dead code in srcu_gp_end()
        srcu: Reduce scans of srcu_data in counter wrap check
        srcu: Prevent sdp->srcu_gp_seq_needed_exp counter wrap
        srcu: Abstract function name
        rcu: Make expedited RCU CPU selection avoid unnecessary stores
        rcu: Trace expedited GP delays due to transitioning CPUs
    • Linus Torvalds's avatar
      Merge branch 'core-headers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · cc67ccec
      Linus Torvalds authored
      Pull header file cleanup from Ingo Molnar:
       "Reduce <linux/interrupt.h> dependencies: a single change that drops
        two #includes from this frequently used kernel header"
      * 'core-headers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        headers: Drop two #included headers from <linux/interrupt.h>
    • Linus Torvalds's avatar
      Merge branch 'core-debugobjects-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 61d1757f
      Linus Torvalds authored
      Pull debugobjects updates from Ingo Molnar:
       "Misc improvements:
         - add better instrumentation/debugging
         - optimize the freeing logic improve performance"
      * 'core-debugobjects-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        debugobjects: Avoid another unused variable warning
        debugobjects: Fix debug_objects_freed accounting
        debugobjects: Use global free list in __debug_check_no_obj_freed()
        debugobjects: Use global free list in free_object()
        debugobjects: Add global free list and the counter
        debugobjects: Export max loops counter
    • Linus Torvalds's avatar
      Merge branch 'core-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 54dce3c3
      Linus Torvalds authored
      Pull misc core updates from Ingo Molnar:
       "Two changes:
        - add membarriers to Documentation/features/
        - fix a minor nit in panic printk formatting"
      * 'core-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        panic: Add closing panic marker parenthesis
        Documentation/features, membarriers: Document membarrier-sync-core architecture support
        Documentation/features: Allow comments in arch features files
    • Linus Torvalds's avatar
      Merge tag 'drm-for-v4.17' of git://people.freedesktop.org/~airlied/linux · 320b164a
      Linus Torvalds authored
      Pull drm updates from Dave Airlie:
       "Cannonlake and Vega12 support are probably the two major things. This
        pull lacks nouveau, Ben had some unforseen leave and a few other
        blockers so we'll see how things look or maybe leave it for this merge
         - Device links to handle sound/gpu pm dependency
         - Color encoding/range properties
         - Plane clipping into plane check helper
         - Backlight helpers
         - DP TP4 + HBR3 helper support
         - Vega12 support
         - Enable DC by default on all supported GPUs
         - Powerplay restructuring and cleanup
         - DC bandwidth calc updates
         - DC backlight on pre-DCE11
         - TTM backing store dropping support
         - SR-IOV fixes
         - Adding "wattman" like functionality
         - DC crc support
         - Improved DC dual-link handling
         - GPUVM support for dGPU
         - KFD events for dGPU
         - Enable PCIe atomics for dGPUs
         - HSA process eviction support
         - Live-lock fixes for process eviction
         - VM page table allocation fix for large-bar systems
         - Raydium RM68200
         - AUO G104SN02 V2
         - KEO TX31D200VM0BAA
         - ARM Versatile panels
         - Cannonlake support enabled
         - AUX-F port support added
         - Icelake base enabling until internal milestone of forcewake support
         - Query uAPI interface (used for GPU topology information currently)
         - Compressed framebuffer support for sprites
         - kmem cache shrinking when GPU is idle
         - Avoid boosting GPU when waited item is being processed already
         - Avoid retraining LSPCON link unnecessarily
         - Decrease request signaling latency
         - Deprecation of I915_SET_COLORKEY_NONE
         - Kerneldoc and compiler warning cleanup for upcoming CI enforcements
         - Full range ycbcr toggling
         - HDCP support
         - Big refactor for shadow ppgtt
         - KBL context save/restore via LRI cmd (Weinan)
         - Properly unmap dma for guest page (Changbin)
         - Lots of various improvements
         - Use the drm gpu scheduler
         - prep work for GC7000L support
         - fix alpha blending
         - Expose perf counters to userspace
         - Bandwidth checking/limiting
         - Versatile panel support
         - A83T HDMI support
         - A80 support
         - YUV plane support
         - H3/H5 HDMI support
         - HPD support for DVI connector
         - remove lots of static variables
         - DSI updates from 10nm / SDM845
         - fix for race condition with a3xx/a4xx fence completion irq
         - some refactoring/prep work for eventual a6xx support (ie. when we
           have a userspace)
         - a5xx debugfs enhancements
         - some mdp5 fixes/cleanups to prepare for eventually merging
         - support (ie. when we have a userspace)
         - mmap() fixes for fbdev devices
         - Overlay plane for hw cursor fix
         - dma-buf cache maintenance support
         - YUV->RGB conversion support
         - rk3399/chromebook fixes and improvements
         - LVDS support move to drm bridge
         - DT bindings for R8A77995
         - Driver/DT support for R8A77970
         - DRM panel support"
      * tag 'drm-for-v4.17' of git://people.freedesktop.org/~airlied/linux: (1646 commits)
        drm/i915: Fix hibernation with ACPI S0 target state
        drm/i915/execlists: Use a locked clear_bit() for synchronisation with interrupt
        drm/i915: Specify which engines to reset following semaphore/event lockups
        drm/i915/dp: Write to SET_POWER dpcd to enable MST hub.
        drm/amdkfd: Use ordered workqueue to restore processes
        drm/amdgpu: Fix acquiring VM on large-BAR systems
        drm/amd/pp: clean header file hwmgr.h
        drm/amd/pp: use mlck_table.count for array loop index limit
        drm: Fix uabi regression by allowing garbage mode->type from userspace
        drm/amdgpu: Add an ATPX quirk for hybrid laptop
        drm/amdgpu: fix spelling mistake: "asssert" -> "assert"
        drm/amd/pp: Add new asic support in pp_psm.c
        drm/amd/pp: Clean up powerplay code on Vega12
        drm/amd/pp: Add smu irq handlers for legacy asics
        drm/amd/pp: Fix set wrong temperature range on smu7
        drm/amdgpu: Don't change preferred domian when fallback GTT v5
        drm/vmwgfx: Bump version patchlevel and date
        drm/vmwgfx: use monotonic event timestamps
        drm/vmwgfx: Unpin the screen object backup buffer when not used
        drm/vmwgfx: Stricter count of legacy surface device resources
  3. 01 Apr, 2018 1 commit
  4. 31 Mar, 2018 13 commits
  5. 30 Mar, 2018 4 commits
    • Yelena Krivosheev's avatar
      net: mvneta: fix enable of all initialized RXQs · e81b5e01
      Yelena Krivosheev authored
      In mvneta_port_up() we enable relevant RX and TX port queues by write
      queues bit map to an appropriate register.
      q_map must be ZERO in the beginning of this process.
      Signed-off-by: default avatarYelena Krivosheev <yelena@marvell.com>
      Signed-off-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
      Acked-by: default avatarThomas Petazzoni <thomas.petazzoni@bootlin.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    • David Ahern's avatar
      net/ipv6: Fix route leaking between VRFs · b6cdbc85
      David Ahern authored
      Donald reported that IPv6 route leaking between VRFs is not working.
      The root cause is the strict argument in the call to rt6_lookup when
      validating the nexthop spec.
      ip6_route_check_nh validates the gateway and device (if given) of a
      route spec. It in turn could call rt6_lookup (e.g., lookup in a given
      table did not succeed so it falls back to a full lookup) and if so
      sets the strict argument to 1. That means if the egress device is given,
      the route lookup needs to return a result with the same device. This
      strict requirement does not work with VRFs (IPv4 or IPv6) because the
      oif in the flow struct is overridden with the index of the VRF device
      to trigger a match on the l3mdev rule and force the lookup to its table.
      The right long term solution is to add an l3mdev index to the flow
      struct such that the oif is not overridden. That solution will not
      backport well, so this patch aims for a simpler solution to relax the
      strict argument if the route spec device is an l3mdev slave. As done
      in other places, use the FLOWI_FLAG_SKIP_NH_OIF to know that the
      RT6_LOOKUP_F_IFACE flag needs to be removed.
      Fixes: ca254490
       ("net: Add VRF support to IPv6 stack")
      Reported-by: default avatarDonald Sharp <sharpd@cumulusnetworks.com>
      Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    • David Ahern's avatar
      vrf: Fix use after free and double free in vrf_finish_output · 82dd0d2a
      David Ahern authored
      Miguel reported an skb use after free / double free in vrf_finish_output
      when neigh_output returns an error. The vrf driver should return after
      the call to neigh_output as it takes over the skb on error path as well.
      Patch is a simplified version of Miguel's patch which was written for 4.9,
      and updated to top of tree.
      Fixes: 8f58336d
       ("net: Add ethernet header for pass through VRF device")
      Signed-off-by: default avatarMiguel Fadon Perlines <mfadon@teldat.com>
      Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    • David Lebrun's avatar
      ipv6: sr: fix seg6 encap performances with TSO enabled · 5807b22c
      David Lebrun authored
      Enabling TSO can lead to abysmal performances when using seg6 in
      encap mode, such as with the ixgbe driver. This patch adds a call to
      iptunnel_handle_offloads() to remove the encapsulation bit if needed.
      root@comp4-seg6bpf:~# iperf3 -c fc00::55
      Connecting to host fc00::55, port 5201
      [  4] local fc45::4 port 36592 connected to fc00::55 port 5201
      [ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
      [  4]   0.00-1.00   sec   196 KBytes  1.60 Mbits/sec   47   6.66 KBytes
      [  4]   1.00-2.00   sec   304 KBytes  2.49 Mbits/sec  100   5.33 KBytes
      [  4]   2.00-3.00   sec   284 KBytes  2.32 Mbits/sec   92   5.33 KBytes
      root@comp4-seg6bpf:~# iperf3 -c fc00::55
      Connecting to host fc00::55, port 5201
      [  4] local fc45::4 port 43062 connected to fc00::55 port 5201
      [ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
      [  4]   0.00-1.00   sec  1.03 GBytes  8.89 Gbits/sec    0    743 KBytes
      [  4]   1.00-2.00   sec  1.03 GBytes  8.87 Gbits/sec    0    743 KBytes
      [  4]   2.00-3.00   sec  1.03 GBytes  8.87 Gbits/sec    0    743 KBytes
      Reported-by: default avatarTom Herbert <tom@quantonium.net>
      Fixes: 6c8702c6
       ("ipv6: sr: add support for SRH encapsulation and injection with lwtunnels")
      Signed-off-by: default avatarDavid Lebrun <dlebrun@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>