1. 12 Jan, 2019 2 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 47334889
      Linus Torvalds authored
      Pull KVM fixes from Radim Krčmář:
       "Minor fixes for new code, corner cases, and documentation"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        x86/kvm/nVMX: don't skip emulated instruction twice when vmptr address is not backed
        Documentation/virtual/kvm: Update URL for AMD SEV API specification
        KVM/VMX: Avoid return error when flush tlb successfully in the hv_remote_flush_tlb_with_range()
        kvm: sev: Fail KVM_SEV_INIT if already initialized
        KVM: validate userspace input in kvm_clear_dirty_log_protect()
        KVM: x86: Fix bit shifting in update_intel_pt_cfg
      47334889
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2019-01-11-1' of git://anongit.freedesktop.org/drm/drm · 7b5c8f52
      Linus Torvalds authored
      Pull more drm fixes from Daniel Vetter:
       "Dave sends out his pull, everybody remembers holidays are over :-)
      
        Since Dave's already in weekend mode and it was quite a few patches I
        figured better to apply all the pulls and forward them to you. Hence
        here 2nd part of bugfixes for -rc2.
      
        nouveau:
         - backlight fix
         - falcon register access fix
         - fan fix.
      
        i915:
         - Disable PSR for Apple panels
         - Broxton ERR_PTR error state fix
         - Kabylake VECS workaround fix
         - Unwind failure on pinning the gen7 ppgtt
         - GVT workload request allocation fix
      
        core:
         - Fix fb-helper to work correctly with SDL 1.2 bugs
         - Fix lockdep warning in the atomic ioctl and setproperty"
      
      * tag 'drm-fixes-2019-01-11-1' of git://anongit.freedesktop.org/drm/drm:
        drm/nouveau/falcon: avoid touching registers if engine is off
        drm/nouveau: Don't disable polling in fallback mode
        drm/nouveau: register backlight on pascal and newer
        drm: Fix documentation generation for DP_DPCD_QUIRK_NO_PSR
        drm/i915: init per-engine WAs for all engines
        drm/i915: Unwind failure on pinning the gen7 ppgtt
        drm/i915: Skip the ERR_PTR error state
        drm/i915: Disable PSR in Apple panels
        gpu/drm: Fix lock held when returning to user space.
        drm/fb-helper: Ignore the value of fb_var_screeninfo.pixclock
        drm/fb-helper: Partially bring back workaround for bugs of SDL 1.2
        drm/i915/gvt: Fix workload request allocation before request add
      7b5c8f52
  2. 11 Jan, 2019 25 commits
  3. 10 Jan, 2019 13 commits
    • Sowjanya Komatineni's avatar
      i2c: tegra: Fix Maximum transfer size · b67d4530
      Sowjanya Komatineni authored
      Tegra194 supports maximum 64K Bytes transfer per packet.
      Tegra186 and prior supports maximum 4K Bytes transfer per packet.
      
      This patch fixes this payload difference between Tegra194 and prior
      Tegra chipsets using separate i2c_adapter_quirks.
      Signed-off-by: default avatarSowjanya Komatineni <skomatineni@nvidia.com>
      Acked-by: default avatarThierry Reding <treding@nvidia.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      b67d4530
    • Yi Zeng's avatar
      i2c: dev: prevent adapter retries and timeout being set as minus value · 6ebec961
      Yi Zeng authored
      If adapter->retries is set to a minus value from user space via ioctl,
      it will make __i2c_transfer and __i2c_smbus_xfer skip the calling to
      adapter->algo->master_xfer and adapter->algo->smbus_xfer that is
      registered by the underlying bus drivers, and return value 0 to all the
      callers. The bus driver will never be accessed anymore by all users,
      besides, the users may still get successful return value without any
      error or information log print out.
      
      If adapter->timeout is set to minus value from user space via ioctl,
      it will make the retrying loop in __i2c_transfer and __i2c_smbus_xfer
      always break after the the first try, due to the time_after always
      returns true.
      Signed-off-by: default avatarYi Zeng <yizeng@asrmicro.com>
      [wsa: minor grammar updates to commit message]
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      Cc: stable@kernel.org
      6ebec961
    • Linus Torvalds's avatar
      Merge tag 'pci-v5.0-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · de6629eb
      Linus Torvalds authored
      Pull PCI fix from Bjorn Helgaas:
       "Fix Amlogic Meson host controller driver build failure (Corentin
        Labbe)"
      
      * tag 'pci-v5.0-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        PCI: amlogic: Fix build failure due to missing gpio header
      de6629eb
    • Dave Airlie's avatar
      Merge branch 'drm-fixes-5.0' of git://people.freedesktop.org/~agd5f/linux into drm-fixes · f34c48e0
      Dave Airlie authored
      - Powerplay fixes
      - Virtual display pinning fixes
      - Golden register updates for vega
      - Pitch and gem size validation fixes
      - Fix for error case in sr-iov init
      - Disable page tables in system memory on RV due to issues with IOMMU
        reported on some platforms
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexdeucher@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190109204336.3315-1-alexander.deucher@amd.com
      f34c48e0
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-4.21-rc2-v2' of... · 4f548c25
      Linus Torvalds authored
      Merge tag 'riscv-for-linus-4.21-rc2-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux
      
      Pull RISC-V updates from Palmer Dabbelt:
       "This tag contains a handful of updates that slipped through the cracks
        during the merge window due to the holidays. The fixes are mostly
        independent, with the exception of one larger audit-related branch.
      
        Core RISC-V updates:
      
         - The BSS has been moved, which shrinks flat images.
      
         - A fix to test-bpf so it compiles on RV64I-based systems.
      
         - A fix to respect the kernel commandline when there is no device
           tree.
      
         - A fix to prevent CPUs from trying to put themselves to sleep when
           bringing down the system.
      
         - Support for MODULE_SECTIONS on RV32I-based systems.
      
         - [new in v2] The addition of an SBI earlycon driver. This is
           definately a new feature, but I'd like to include it now because I
           dropped this patch when submitting the merge window PR that removed
           our EARLY_PRINTK support.
      
        RISC-V audit updates:
      
         - The addition of NR_syscalls into unistd.h, which is necessary for
           CONFIG_FTRACE_SYSCALLS.
      
         - The definition of CREATE_TRACE_POINTS so __tracepoint_sys_{enter,exit}
           get defined.
      
         - A fix for trace_sys_exit() so we can enable HAVE_SYSCALL_TRACEPOINTS
      
        As usual, I've tested this by booting a Fedora-based image on a recent
        QEMU (this time just whatever I had lying around).
      
      * tag 'riscv-for-linus-4.21-rc2-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux:
        tty/serial: Add RISC-V SBI earlycon support
        riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig
        riscv: fix trace_sys_exit hook
        riscv: define CREATE_TRACE_POINTS in ptrace.c
        riscv: define NR_syscalls in unistd.h
        riscv: audit: add audit hook in do_syscall_trace_enter/exit()
        riscv: add audit support
        RISC-V: Support MODULE_SECTIONS mechanism on RV32
        MAINTAINERS: SiFive drivers: add myself as a SiFive driver maintainer
        MAINTAINERS: SiFive drivers: change the git tree to a SiFive git tree
        riscv: don't stop itself in smp_send_stop
        arch: riscv: support kernel command line forcing when no DTB passed
        tools uapi: fix RISC-V 64-bit support
        RISC-V: Make BSS section as the last section in vmlinux.lds.S
      4f548c25
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2019-01-10' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · bd86c9e6
      Dave Airlie authored
      Pull request for drm-misc-fixes for v5.0-rc2:
      - Fixes for the tc358767 bridge to work correctly with
        tc358867 using a DP connector.
      - Make resume work on amdgpu when a DP-MST display is unplugged.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1c47722d-c416-184d-4340-0dc6a614d685@linux.intel.com
      bd86c9e6
    • Will Deacon's avatar
      arm64: kpti: Avoid rewriting early page tables when KASLR is enabled · b89d82ef
      Will Deacon authored
      A side effect of commit c55191e9 ("arm64: mm: apply r/o permissions
      of VM areas to its linear alias as well") is that the linear map is
      created with page granularity, which means that transitioning the early
      page table from global to non-global mappings when enabling kpti can
      take a significant amount of time during boot.
      
      Given that most CPU implementations do not require kpti, this mainly
      impacts KASLR builds where kpti is forcefully enabled. However, in these
      situations we know early on that non-global mappings are required and
      can avoid the use of global mappings from the beginning. The only gotcha
      is Cavium erratum #27456, which we must detect based on the MIDR value
      of the boot CPU.
      Reviewed-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      Reported-by: default avatarJohn Garry <john.garry@huawei.com>
      Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
      b89d82ef
    • Linus Torvalds's avatar
      Merge tag 'vfio-v5.0-rc2' of git://github.com/awilliam/linux-vfio · 1bdbe227
      Linus Torvalds authored
      Pull VFIO fixes from Alex Williamson:
      
       - Fix trace header include path for in-tree builds (Masahiro Yamada)
      
       - Fix overflow in unmap wrap-around test (Alex Williamson)
      
      * tag 'vfio-v5.0-rc2' of git://github.com/awilliam/linux-vfio:
        vfio/type1: Fix unmap overflow off-by-one
        vfio/pci: set TRACE_INCLUDE_PATH to fix the build error
      1bdbe227
    • Linus Torvalds's avatar
      Merge tag 'sound-5.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · f0ebbe9b
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of small fixes for USB-audio, HD-audio and cs46xx.
      
        The USB-audio fixes are for out-of-bound accesses and a regression in
        the recent cleanup, while HD-audio fixes are usual device-specific
        quirks"
      
      * tag 'sound-5.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda/realtek - Disable headset Mic VREF for headset mode of ALC225
        ALSA: hda/realtek - Add unplug function into unplug state of Headset Mode for ALC225
        ALSA: usb-audio: fix CM6206 register definitions
        ALSA: cs46xx: Potential NULL dereference in probe
        ALSA: hda/realtek - Support Dell headset mode for New AIO platform
        ALSA: usb-audio: Fix an out-of-bound read in create_composite_quirks
        ALSA: usb-audio: Always check descriptor sizes in parser code
        ALSA: usb-audio: Check mixer unit descriptors more strictly
        ALSA: usb-audio: Avoid access before bLength check in build_audio_procunit()
      f0ebbe9b
    • Linus Torvalds's avatar
      Merge tag 'mtd/fixes-for-5.0-rc2' of git://git.infradead.org/linux-mtd · e7446be4
      Linus Torvalds authored
      Pull mtd fixes from Boris Brezillon:
       "Core MTD Fixes:
      
         - Fix a bug introduced when exposing MTD devs as NVMEM providers and
           check for add_mtd_device() return code everywhere
      
        raw NAND fixes:
      
         - Fix a memory corruption in the QCOM driver"
      
      * tag 'mtd/fixes-for-5.0-rc2' of git://git.infradead.org/linux-mtd:
        mtd: rawnand: qcom: fix memory corruption that causes panic
        mtd: Check add_mtd_device() ret code
        mtd: Fix the check on nvmem_register() ret code
      e7446be4
    • Ravi Bangoria's avatar
      tools headers powerpc: Remove unistd.h · 15c03092
      Ravi Bangoria authored
      We use syscall.tbl to generate system call table on powerpc.
      
      The unistd.h copy is no longer required now. Remove it.
      Signed-off-by: default avatarRavi Bangoria <ravi.bangoria@linux.ibm.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: linuxppc-dev@lists.ozlabs.org
      Link: http://lkml.kernel.org/r/20190110094936.3132-2-ravi.bangoria@linux.ibm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      15c03092
    • Ravi Bangoria's avatar
      perf powerpc: Rework syscall table generation · 02061318
      Ravi Bangoria authored
      Commit aff85039 ("powerpc: add system call table generation
      support") changed how systemcall table is generated for powerpc.
      Incorporate these changes into perf as well.
      
      Committer testing:
      
        $ podman run --entrypoint=/bin/sh --privileged -v /home/acme/git:/git --rm -ti docker.io/acmel/linux-perf-tools-build-ubuntu:18.04-x-powerpc64
        perfbuilder@d7a7af166a80:/git/perf$ head -2 /etc/os-release
        NAME="Ubuntu"
        VERSION="18.04.1 LTS (Bionic Beaver)"
        perfbuilder@d7a7af166a80:/git/perf$
        perfbuilder@d7a7af166a80:/git/perf$ make ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- EXTRA_CFLAGS= -C /git/linux/tools/perf O=/tmp/build/perf
        make: Entering directory '/git/linux/tools/perf'
          BUILD:   Doing 'make -j8' parallel build
          HOSTCC   /tmp/build/perf/fixdep.o
          HOSTLD   /tmp/build/perf/fixdep-in.o
          LINK     /tmp/build/perf/fixdep
        Warning: Kernel ABI header at 'tools/include/uapi/linux/mman.h' differs from latest version at 'include/uapi/linux/mman.h'
        diff -u tools/include/uapi/linux/mman.h include/uapi/linux/mman.h
        sh: 1: command: Illegal option -c
      
        Auto-detecting system features:
        ...                         dwarf: [ on  ]
        ...            dwarf_getlocations: [ on  ]
        ...                         glibc: [ on  ]
        ...                          gtk2: [ OFF ]
        ...                      libaudit: [ OFF ]
        ...                        libbfd: [ OFF ]
        ...                        libelf: [ on  ]
        ...                       libnuma: [ OFF ]
        ...        numa_num_possible_cpus: [ OFF ]
        ...                       libperl: [ OFF ]
        ...                     libpython: [ OFF ]
        ...                      libslang: [ OFF ]
        ...                     libcrypto: [ OFF ]
        ...                     libunwind: [ OFF ]
        ...            libdw-dwarf-unwind: [ on  ]
        ...                          zlib: [ on  ]
        ...                          lzma: [ OFF ]
        ...                     get_cpuid: [ OFF ]
        ...                           bpf: [ on  ]
      
        Makefile.config:445: No sys/sdt.h found, no SDT events are defined, please install systemtap-sdt-devel or systemtap-sdt-dev
        Makefile.config:491: No libunwind found. Please install libunwind-dev[el] >= 1.1 and/or set LIBUNWIND_DIR
        Makefile.config:583: No libcrypto.h found, disables jitted code injection, please install libssl-devel or libssl-dev
        Makefile.config:598: slang not found, disables TUI support. Please install slang-devel, libslang-dev or libslang2-dev
        Makefile.config:612: GTK2 not found, disables GTK2 support. Please install gtk2-devel or libgtk2.0-dev
        Makefile.config:639: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev
        Makefile.config:666: No python interpreter was found: disables Python support - please install python-devel/python-dev
        Makefile.config:721: No bfd.h/libbfd found, please install binutils-dev[el]/zlib-static/libiberty-dev to gain symbol demangling
        Makefile.config:750: No liblzma found, disables xz kernel module decompression, please install xz-devel/liblzma-dev
        Makefile.config:763: No numa.h found, disables 'perf bench numa mem' benchmark, please install numactl-devel/libnuma-devel/libnuma-dev
        Makefile.config:814: No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev
        Makefile.config:840: No alternatives command found, you need to set JDIR= to point to the root of your Java directory
          GEN      /tmp/build/perf/common-cmds.h
        <SNIP>
          CC       /tmp/build/perf/util/syscalltbl.o
        <SNIP>
          LD       /tmp/build/perf/libperf-in.o
          AR       /tmp/build/perf/libperf.a
          LINK     /tmp/build/perf/perf
        make: Leaving directory '/git/linux/tools/perf'
        perfbuilder@d7a7af166a80:/git/perf$ head /tmp/build/perf/arch/powerpc/include/generated/asm/syscalls_64.c
        static const char *syscalltbl_powerpc_64[] = {
        	[0] = "restart_syscall",
        	[1] = "exit",
        	[2] = "fork",
        	[3] = "read",
        	[4] = "write",
        	[5] = "open",
        	[6] = "close",
        	[7] = "waitpid",
        	[8] = "creat",
        perfbuilder@d7a7af166a80:/git/perf$ tail /tmp/build/perf/arch/powerpc/include/generated/asm/syscalls_64.c
        	[381] = "pwritev2",
        	[382] = "kexec_file_load",
        	[383] = "statx",
        	[384] = "pkey_alloc",
        	[385] = "pkey_free",
        	[386] = "pkey_mprotect",
        	[387] = "rseq",
        	[388] = "io_pgetevents",
        };
        #define SYSCALLTBL_POWERPC_64_MAX_ID 388
        perfbuilder@d7a7af166a80:/git/perf$ head /tmp/build/perf/arch/powerpc/include/generated/asm/syscalls_32.c
        static const char *syscalltbl_powerpc_32[] = {
        	[0] = "restart_syscall",
        	[1] = "exit",
        	[2] = "fork",
        	[3] = "read",
        	[4] = "write",
        	[5] = "open",
        	[6] = "close",
        	[7] = "waitpid",
        	[8] = "creat",
        perfbuilder@d7a7af166a80:/git/perf$ tail /tmp/build/perf/arch/powerpc/include/generated/asm/syscalls_32.c
        	[381] = "pwritev2",
        	[382] = "kexec_file_load",
        	[383] = "statx",
        	[384] = "pkey_alloc",
        	[385] = "pkey_free",
        	[386] = "pkey_mprotect",
        	[387] = "rseq",
        	[388] = "io_pgetevents",
        };
        #define SYSCALLTBL_POWERPC_32_MAX_ID 388
        perfbuilder@d7a7af166a80:/git/perf$
      Signed-off-by: default avatarRavi Bangoria <ravi.bangoria@linux.ibm.com>
      Reported-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: linuxppc-dev@lists.ozlabs.org
      Link: http://lkml.kernel.org/r/20190110094936.3132-1-ravi.bangoria@linux.ibm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      02061318
    • José Roberto de Souza's avatar
      drm: Fix documentation generation for DP_DPCD_QUIRK_NO_PSR · f299e0bd
      José Roberto de Souza authored
      The DP_DPCD_QUIRK_NO_PSR comment is missing colon causing this
      warning when generating kernel documentation.
      
      ./include/drm/drm_dp_helper.h:1374: warning: Incorrect use of kernel-doc format:          * @DP_DPCD_QUIRK_NO_PSR
      
      Fixes: 1035f4a6 ("drm/i915: Disable PSR in Apple panels")
      Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Signed-off-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
      Reviewed-by: default avatarDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20181205184850.13218-1-jose.souza@intel.com
      (cherry picked from commit ed17b555)
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      f299e0bd