1. 11 Jan, 2019 9 commits
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-5.0-rc2' of git://github.com/ceph/ceph-client · f87092c4
      Linus Torvalds authored
      Pull ceph updates from Ilya Dryomov:
       "A patch to allow setting abort_on_full and a fix for an old "rbd
        unmap" edge case, marked for stable"
      
      * tag 'ceph-for-5.0-rc2' of git://github.com/ceph/ceph-client:
        rbd: don't return 0 on unmap if RBD_DEV_FLAG_REMOVING is set
        ceph: use vmf_error() in ceph_filemap_fault()
        libceph: allow setting abort_on_full for rbd
      f87092c4
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 40a31da4
      Linus Torvalds authored
      Pull perf tooling updates from Ingo Molnar:
       "Tooling changes only: fixes and a few stray improvements.
      
        Most of the diffstat is dominated by a PowerPC related fix of system
        call trace output beautification that allows us to (again) use the
        UAPI header version and sync up with the kernel's version of PowerPC
        system call names in the arch/powerpc/kernel/syscalls/syscall.tbl
        header"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (36 commits)
        tools headers powerpc: Remove unistd.h
        perf powerpc: Rework syscall table generation
        perf symbols: Add 'arch_cpu_idle' to the list of kernel idle symbols
        tools include uapi: Sync linux/if_link.h copy with the kernel sources
        tools include uapi: Sync linux/vhost.h with the kernel sources
        tools include uapi: Sync linux/fs.h copy with the kernel sources
        perf beauty: Switch from using uapi/linux/fs.h to uapi/linux/mount.h
        tools include uapi: Grab a copy of linux/mount.h
        perf top: Lift restriction on using callchains without "sym" in --sort
        tools lib traceevent: Remove tep_data_event_from_type() API
        tools lib traceevent: Rename tep_is_file_bigendian() to tep_file_bigendian()
        tools lib traceevent: Changed return logic of tep_register_event_handler() API
        tools lib traceevent: Changed return logic of trace_seq_printf() and trace_seq_vprintf() APIs
        tools lib traceevent: Rename struct cmdline to struct tep_cmdline
        tools lib traceevent: Initialize host_bigendian at tep_handle allocation
        tools lib traceevent: Introduce new libtracevent API: tep_override_comm()
        perf tests: Add a test for the ARM 32-bit [vectors] page
        perf tools: Make find_vdso_map() more modular
        perf trace: Fix alignment for [continued] lines
        perf trace: Fix ')' placement in "interrupted" syscall lines
        ...
      40a31da4
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e8af37f3
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
       "A 32-bit build fix, CONFIG_RETPOLINE fixes and rename CONFIG_RESCTRL
        to CONFIG_X86_RESCTRL"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86, modpost: Replace last remnants of RETPOLINE with CONFIG_RETPOLINE
        x86/cache: Rename config option to CONFIG_X86_RESCTRL
        samples/seccomp: Fix 32-bit build
      e8af37f3
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 8e1b295b
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "Fix a build failure introduced recently, fix the xpower PMIC ACPI
        driver, clean up the handling of duplicate entries in _PRx power
        resource lists and fix addresses in NUMA-related messages on 32-bit
        with PAE.
      
        Specifics:
      
         - Fix build failures with both CONFIG_NLS and CONFIG_PCI unset that
           can occur since ACPI can be built without PCI now (Sinan Kaya).
      
         - Clean up the handling of duplicate entries in power resource lists
           returned by _PRx evaluation to avoid triggering WARN_ON() on
           attempts to add duplicate symlinks in sysfs (Hans de Goede).
      
         - Fix issues with the TS current-source switching on systems using
           the xpower PMIC by avoiding to update unrelated bits in the TS
           pin-ctrl register and avoiding to unconditionally enable TS
           current-source on systems where it is not used (Hans de Goede).
      
         - Fix addresses in NUMA-related messages on 32-bit with PAE which can
           be truncated due to integer type conversions (Chao Fan)"
      
      * tag 'acpi-5.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI / PMIC: xpower: Fix TS-pin current-source handling
        ACPI: NUMA: Use correct type for printing addresses on i386-PAE
        ACPI: power: Skip duplicate power resource references in _PRx
        ACPI: Fix build failure when CONFIG_NLS is set to 'n'
      8e1b295b
    • Linus Torvalds's avatar
      Merge tag 'pm-5.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · f4f31fff
      Linus Torvalds authored
      Pull power management updates from Rafael Wysocki:
       "These fix fallout after starting to use hrtimers in the runtime PM
        framework, fix a few cpufreq issues, fix a recently broken reference
        to cpuidle documentation, update MAINTAINERS entries for cpufreq and
        cpuidle and make the recently added system suspend and resume support
        in devfreq actually work.
      
        Specifics:
      
         - Prevent integer overflows from occurring on 32-bit when converting
           milliseconds to nanoseconds in the runtime PM framework and update
           comments that still refer to jiffies in it (Vincent Guittot,
           Ladislav Michl).
      
         - Fix the SCMI cpufreq driver to always use the same frequency units
           for arch_set_freq_scale() and make the scale-invariant load
           tracking acutally work with this driver (Quentin Perret).
      
         - Fix freeing of dynamic OPPs in the SCPI and SCMI cpufreq drivers
           broken during the 4.20 defelopment cycle (Viresh Kumar).
      
         - Prevent the cpufreq core from attempting to return the current
           frequency of offline CPUs (Sudeep Holla).
      
         - Add devfreq suspend and resume hooks (missed previously) to the PM
           core to make the recently added system suspend and resume support
           in devfreq actually work (Lukasz Luba).
      
         - Update MAINTAINERS entries for cpufreq and cpuidle, mostly to add
           references to new/current documentation to them (Rafael Wysocki).
      
         - Fix a recently broken reference to cpuidle documentation (Otto
           Sabart)"
      
      * tag 'pm-5.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        PM-runtime: Fix autosuspend_delay on 32bits arch
        PM-runtime: Fix 'jiffies' in comments after switch to hrtimers
        cpufreq: scmi: Fix frequency invariance in slow path
        doc: trace: fix reference to cpuidle documentation file
        cpufreq: check if policy is inactive early in __cpufreq_get()
        cpufreq: scpi/scmi: Fix freeing of dynamic OPPs
        cpuidle / Documentation: Update cpuidle MAINTAINERS entry
        cpufreq / Documentation: Update cpufreq MAINTAINERS entry
        PM: sleep: call devfreq suspend/resume
      f4f31fff
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2019-01-11' of git://anongit.freedesktop.org/drm/drm · 385c59c7
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Not a huge amount for rc2, assume the usual quiet period, and rc3 will
        be most of it.
      
        amdgpu:
         - Powerplay fixes
         - Virtual display pinning fixes
         - Golden register updates for Vega
         - Pitch and gem size validation fixes
         - SR-IOV init error fix
         - Pagetables in system RAM disable for some Raven system
         - DP-MST resume fixes
      
        tc358767 bridge:
         - fix to work with displayport connector"
      
      * tag 'drm-fixes-2019-01-11' of git://anongit.freedesktop.org/drm/drm: (26 commits)
        drm/amdgpu: disable system memory page tables for now
        drm/amdgpu: set WRITE_BURST_LENGTH to 64B to workaround SDMA1 hang
        drm/amdgpu: fix CPDMA hang in PRT mode for VEGA20
        drm/bridge: tc358767: use DP connector if no panel set
        drm/bridge: tc358767: fix output H/V syncs
        drm/bridge: tc358767: reject modes which require too much BW
        drm/bridge: tc358767: fix initial DP0/1_SRCCTRL value
        drm/bridge: tc358767: fix single lane configuration
        drm/bridge: tc358767: add defines for DP1_SRCCTRL & PHY_2LANE
        drm/bridge: tc358767: add bus flags
        drm/dp_mst: Add __must_check to drm_dp_mst_topology_mgr_resume()
        drm/amdgpu: Don't fail resume process if resuming atomic state fails
        drm/amdgpu: Don't ignore rc from drm_dp_mst_topology_mgr_resume()
        drm/amdgpu: validate user GEM object size
        drm/amdgpu: validate user pitch alignment
        drm/amd/powerplay: drop the unnecessary uclk hard min setting
        drm/amd/powerplay: avoid possible buffer overflow
        drm/amd/powerplay: create pp_od_clk_voltage device file under OD support
        drm/amd/powerplay: update OD support flag for SKU with no OD capabilities
        drm/amdgpu: make gfx9 enter into rlc safe mode when set MGCG
        ...
      385c59c7
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-pci', 'acpi-power' and 'acpi-misc' · 65a4f3a1
      Rafael J. Wysocki authored
      * acpi-pci:
        ACPI: Fix build failure when CONFIG_NLS is set to 'n'
      
      * acpi-power:
        ACPI: power: Skip duplicate power resource references in _PRx
      
      * acpi-misc:
        ACPI: NUMA: Use correct type for printing addresses on i386-PAE
      65a4f3a1
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-cpuidle', 'pm-cpufreq' and 'pm-sleep' · 343e60e5
      Rafael J. Wysocki authored
      * pm-cpuidle:
        doc: trace: fix reference to cpuidle documentation file
        cpuidle / Documentation: Update cpuidle MAINTAINERS entry
      
      * pm-cpufreq:
        cpufreq: scmi: Fix frequency invariance in slow path
        cpufreq: check if policy is inactive early in __cpufreq_get()
        cpufreq: scpi/scmi: Fix freeing of dynamic OPPs
        cpufreq / Documentation: Update cpufreq MAINTAINERS entry
      
      * pm-sleep:
        PM: sleep: call devfreq suspend/resume
      343e60e5
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo-5.0-20190110' of... · 4e72ee88
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo-5.0-20190110' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
      
      Pull perf/core fixes and improvements from Arnaldo Carvalho de Melo:
      
      perf trace:
      
        Ravi Bangoria:
      
        - Rework PowerPC syscall table generation, now using a .tbl file just like
          x86_64 and S/390, also silencing a tools build warning about headers out of
          sync with the kernel sources.
      
      tools include uapi:
      
        Arnaldo Carvalho de Melo:
      
        - Sync linux/if_link.h copy with the kernel sources, silencing a build warning.
      
      perf top:
      
        Arnaldo Carvalho de Melo:
      
        - Add 'arch_cpu_idle' to the list of kernel idle symbols, noticed on a Orange
          Pi Zero ARM board, just like with other symbols in other arches.
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      4e72ee88
  2. 10 Jan, 2019 14 commits
    • 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
    • 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
    • Guo Ren's avatar
      csky: fixup compile error with CPU 810. · 70c25259
      Guo Ren authored
      This bug is from commit f553aa1c ("csky: fixup relocation error with
      807 & 860").
      
      I forgot to compile with 810 for that patch.
      Signed-off-by: default avatarGuo Ren <ren_guo@c-sky.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      70c25259
    • Sean Christopherson's avatar
      mm/mmu_notifier: mm/rmap.c: Fix a mmu_notifier range bug in try_to_unmap_one · ba422731
      Sean Christopherson authored
      The conversion to use a structure for mmu_notifier_invalidate_range_*()
      unintentionally changed the usage in try_to_unmap_one() to init the
      'struct mmu_notifier_range' with vma->vm_start instead of @address,
      i.e. it invalidates the wrong address range.  Revert to the correct
      address range.
      
      Manifests as KVM use-after-free WARNINGs and subsequent "BUG: Bad page
      state in process X" errors when reclaiming from a KVM guest due to KVM
      removing the wrong pages from its own mappings.
      
      Reported-by: leozinho29_eu@hotmail.com
      Reported-by: default avatarMike Galbraith <efault@gmx.de>
      Reported-and-tested-by: default avatarAdam Borowski <kilobyte@angband.pl>
      Reviewed-by: default avatarJérôme Glisse <jglisse@redhat.com>
      Reviewed-by: default avatarPankaj gupta <pagupta@redhat.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Jan Kara <jack@suse.cz>
      Cc: Matthew Wilcox <mawilcox@microsoft.com>
      Cc: Ross Zwisler <zwisler@kernel.org>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Radim Krčmář <rkrcmar@redhat.com>
      Cc: Michal Hocko <mhocko@kernel.org>
      Cc: Felix Kuehling <felix.kuehling@amd.com>
      Cc: Ralph Campbell <rcampbell@nvidia.com>
      Cc: John Hubbard <jhubbard@nvidia.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Fixes: ac46d4f3 ("mm/mmu_notifier: use structure for invalidate_range_start/end calls v2")
      Signed-off-by: default avatarSean Christopherson <sean.j.christopherson@intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ba422731
    • Vincent Guittot's avatar
      PM-runtime: Fix autosuspend_delay on 32bits arch · ca27e4cd
      Vincent Guittot authored
      Cast autosuspend_delay to u64 to make sure that the full computation
      of 'expires' or slack will be done in u64, even on 32bits arch.
      
      Otherwise, any delay greater than 2^31 nsec can overflow if signed
      32bits is used when converting delay from msec to nsec.
      
      Fixes: 8234f673 (PM-runtime: Switch autosuspend over to using hrtimers)
      Reported-by: default avatarTony Lindgren <tony@atomide.com>
      Tested-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      ca27e4cd
    • Ladislav Michl's avatar
      PM-runtime: Fix 'jiffies' in comments after switch to hrtimers · 1f7b7081
      Ladislav Michl authored
      PM-runtime now uses the hrtimers infrastructure for autosuspend, however
      comments still reference 'jiffies'.
      
      Fixes: 8234f673 (PM-runtime: Switch autosuspend over to using hrtimers)
      Signed-off-by: default avatarLadislav Michl <ladis@linux-mips.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      1f7b7081
    • Ilya Dryomov's avatar
      rbd: don't return 0 on unmap if RBD_DEV_FLAG_REMOVING is set · 85f5a4d6
      Ilya Dryomov authored
      There is a window between when RBD_DEV_FLAG_REMOVING is set and when
      the device is removed from rbd_dev_list.  During this window, we set
      "already" and return 0.
      
      Returning 0 from write(2) can confuse userspace tools because
      0 indicates that nothing was written.  In particular, "rbd unmap"
      will retry the write multiple times a second:
      
        10:28:05.463299 write(4, "0", 1)        = 0
        10:28:05.463509 write(4, "0", 1)        = 0
        10:28:05.463720 write(4, "0", 1)        = 0
        10:28:05.463942 write(4, "0", 1)        = 0
        10:28:05.464155 write(4, "0", 1)        = 0
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
      Tested-by: default avatarDongsheng Yang <dongsheng.yang@easystack.cn>
      85f5a4d6
  3. 09 Jan, 2019 17 commits