Merge tag 'powerpc-5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 Aug 2020 17:33:50 +0000 (10:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 Aug 2020 17:33:50 +0000 (10:33 -0700)
Pull powerpc updates from Michael Ellerman:

 - Add support for (optionally) using queued spinlocks & rwlocks.

 - Support for a new faster system call ABI using the scv instruction on
   Power9 or later.

 - Drop support for the PROT_SAO mmap/mprotect flag as it will be
   unsupported on Power10 and future processors, leaving us with no way
   to implement the functionality it requests. This risks breaking
   userspace, though we believe it is unused in practice.

 - A bug fix for, and then the removal of, our custom stack expansion
   checking. We now allow stack expansion up to the rlimit, like other
   architectures.

 - Remove the remnants of our (previously disabled) topology update
   code, which tried to react to NUMA layout changes on virtualised
   systems, but was prone to crashes and other problems.

 - Add PMU support for Power10 CPUs.

 - A change to our signal trampoline so that we don't unbalance the link
   stack (branch return predictor) in the signal delivery path.

 - Lots of other cleanups, refactorings, smaller features and so on as
   usual.

Thanks to: Abhishek Goel, Alastair D'Silva, Alexander A. Klimov, Alexey
Kardashevskiy, Alistair Popple, Andrew Donnellan, Aneesh Kumar K.V, Anju
T Sudhakar, Anton Blanchard, Arnd Bergmann, Athira Rajeev, Balamuruhan
S, Bharata B Rao, Bill Wendling, Bin Meng, Cédric Le Goater, Chris
Packham, Christophe Leroy, Christoph Hellwig, Daniel Axtens, Dan
Williams, David Lamparter, Desnes A. Nunes do Rosario, Erhard F., Finn
Thain, Frederic Barrat, Ganesh Goudar, Gautham R. Shenoy, Geoff Levand,
Greg Kurz, Gustavo A. R. Silva, Hari Bathini, Harish, Imre Kaloz, Joel
Stanley, Joe Perches, John Crispin, Jordan Niethe, Kajol Jain, Kamalesh
Babulal, Kees Cook, Laurent Dufour, Leonardo Bras, Li RongQing, Madhavan
Srinivasan, Mahesh Salgaonkar, Mark Cave-Ayland, Michal Suchanek, Milton
Miller, Mimi Zohar, Murilo Opsfelder Araujo, Nathan Chancellor, Nathan
Lynch, Naveen N. Rao, Nayna Jain, Nicholas Piggin, Oliver O'Halloran,
Palmer Dabbelt, Pedro Miraglia Franco de Carvalho, Philippe Bergheaud,
Pingfan Liu, Pratik Rajesh Sampat, Qian Cai, Qinglang Miao, Randy
Dunlap, Ravi Bangoria, Sachin Sant, Sam Bobroff, Sandipan Das, Santosh
Sivaraj, Satheesh Rajendran, Shirisha Ganta, Sourabh Jain, Srikar
Dronamraju, Stan Johnson, Stephen Rothwell, Thadeu Lima de Souza
Cascardo, Thiago Jung Bauermann, Tom Lane, Vaibhav Jain, Vladis Dronov,
Wei Yongjun, Wen Xiong, YueHaibing.

* tag 'powerpc-5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (337 commits)
  selftests/powerpc: Fix pkey syscall redefinitions
  powerpc: Fix circular dependency between percpu.h and mmu.h
  powerpc/powernv/sriov: Fix use of uninitialised variable
  selftests/powerpc: Skip vmx/vsx/tar/etc tests on older CPUs
  powerpc/40x: Fix assembler warning about r0
  powerpc/papr_scm: Add support for fetching nvdimm 'fuel-gauge' metric
  powerpc/papr_scm: Fetch nvdimm performance stats from PHYP
  cpuidle: pseries: Fixup exit latency for CEDE(0)
  cpuidle: pseries: Add function to parse extended CEDE records
  cpuidle: pseries: Set the latency-hint before entering CEDE
  selftests/powerpc: Fix online CPU selection
  powerpc/perf: Consolidate perf_callchain_user_[64|32]()
  powerpc/pseries/hotplug-cpu: Remove double free in error path
  powerpc/pseries/mobility: Add pr_debug() for device tree changes
  powerpc/pseries/mobility: Set pr_fmt()
  powerpc/cacheinfo: Warn if cache object chain becomes unordered
  powerpc/cacheinfo: Improve diagnostics about malformed cache lists
  powerpc/cacheinfo: Use name@unit instead of full DT path in debug messages
  powerpc/cacheinfo: Set pr_fmt()
  powerpc: fix function annotations to avoid section mismatch warnings with gcc-10
  ...

24 files changed:
1  2 
Documentation/admin-guide/kernel-parameters.txt
Documentation/core-api/cpu_hotplug.rst
Documentation/features/sched/membarrier-sync-core/arch-support.txt
Documentation/memory-barriers.txt
Documentation/virt/kvm/api.rst
MAINTAINERS
arch/powerpc/Kconfig
arch/powerpc/include/asm/Kbuild
arch/powerpc/include/asm/atomic.h
arch/powerpc/include/asm/device.h
arch/powerpc/include/asm/paca.h
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/process.c
arch/powerpc/kernel/ptrace/ptrace-view.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/mm/book3s64/hash_utils.c
arch/powerpc/perf/core-book3s.c
arch/powerpc/platforms/pseries/lpar.c
arch/powerpc/platforms/pseries/setup.c
drivers/md/dm-writecache.c
include/asm-generic/barrier.h
include/asm-generic/qspinlock.h
kernel/kexec_file.c
mm/ksm.c

Simple merge
Simple merge
diff --cc MAINTAINERS
Simple merge
Simple merge
@@@ -4,8 -4,8 +4,9 @@@ generated-y += syscall_table_64.
  generated-y += syscall_table_c32.h
  generated-y += syscall_table_spu.h
  generic-y += export.h
 +generic-y += kvm_types.h
  generic-y += local64.h
  generic-y += mcs_spinlock.h
+ generic-y += qrwlock.h
  generic-y += vtime.h
  generic-y += early_ioremap.h
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -468,15 -486,23 +468,17 @@@ static int pkey_active(struct task_stru
  }
  
  static int pkey_get(struct task_struct *target, const struct user_regset *regset,
 -                  unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf)
 +                  struct membuf to)
  {
+       int ret;
        BUILD_BUG_ON(TSO(amr) + sizeof(unsigned long) != TSO(iamr));
-       BUILD_BUG_ON(TSO(iamr) + sizeof(unsigned long) != TSO(uamor));
  
        if (!arch_pkeys_enabled())
                return -ENODEV;
  
-       return membuf_write(&to, &target->thread.amr, ELF_NPKEY * sizeof(unsigned long));
 -      ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &target->thread.amr,
 -                                0, 2 * sizeof(unsigned long));
 -      if (ret)
 -              return ret;
 -
 -      ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &default_uamor,
 -                                2 * sizeof(unsigned long), 3 * sizeof(unsigned long));
 -      return ret;
++      membuf_write(&to, &target->thread.amr, 2 * sizeof(unsigned long));
++      return membuf_store(&to, default_uamor);
  }
  
  static int pkey_set(struct task_struct *target, const struct user_regset *regset,
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -11,8 -11,8 +11,9 @@@
  #define __ASM_GENERIC_QSPINLOCK_H
  
  #include <asm-generic/qspinlock_types.h>
 +#include <linux/atomic.h>
  
+ #ifndef queued_spin_is_locked
  /**
   * queued_spin_is_locked - is the spinlock locked?
   * @lock: Pointer to queued spinlock structure
Simple merge
diff --cc mm/ksm.c
Simple merge