diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-17 11:58:04 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-17 11:58:04 -0400 |
| commit | 57a8ec387e1441ea5e1232bc0749fb99a8cba7e7 (patch) | |
| tree | b5fb03fc6bc5754de8b5b1f8b0e4f36d67c8315c /arch/powerpc/include | |
| parent | 0a8ad0ffa4d80a544f6cbff703bf6394339afcdf (diff) | |
| parent | 43e11fa2d1d3b6e35629fa556eb7d571edba2010 (diff) | |
Merge branch 'akpm' (patches from Andrew)
Merge more updates from Andrew Morton:
"VM:
- z3fold fixes and enhancements by Henry Burns and Vitaly Wool
- more accurate reclaimed slab caches calculations by Yafang Shao
- fix MAP_UNINITIALIZED UAPI symbol to not depend on config, by
Christoph Hellwig
- !CONFIG_MMU fixes by Christoph Hellwig
- new novmcoredd parameter to omit device dumps from vmcore, by
Kairui Song
- new test_meminit module for testing heap and pagealloc
initialization, by Alexander Potapenko
- ioremap improvements for huge mappings, by Anshuman Khandual
- generalize kprobe page fault handling, by Anshuman Khandual
- device-dax hotplug fixes and improvements, by Pavel Tatashin
- enable synchronous DAX fault on powerpc, by Aneesh Kumar K.V
- add pte_devmap() support for arm64, by Robin Murphy
- unify locked_vm accounting with a helper, by Daniel Jordan
- several misc fixes
core/lib:
- new typeof_member() macro including some users, by Alexey Dobriyan
- make BIT() and GENMASK() available in asm, by Masahiro Yamada
- changed LIST_POISON2 on x86_64 to 0xdead000000000122 for better
code generation, by Alexey Dobriyan
- rbtree code size optimizations, by Michel Lespinasse
- convert struct pid count to refcount_t, by Joel Fernandes
get_maintainer.pl:
- add --no-moderated switch to skip moderated ML's, by Joe Perches
misc:
- ptrace PTRACE_GET_SYSCALL_INFO interface
- coda updates
- gdb scripts, various"
[ Using merge message suggestion from Vlastimil Babka, with some editing - Linus ]
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (100 commits)
fs/select.c: use struct_size() in kmalloc()
mm: add account_locked_vm utility function
arm64: mm: implement pte_devmap support
mm: introduce ARCH_HAS_PTE_DEVMAP
mm: clean up is_device_*_page() definitions
mm/mmap: move common defines to mman-common.h
mm: move MAP_SYNC to asm-generic/mman-common.h
device-dax: "Hotremove" persistent memory that is used like normal RAM
mm/hotplug: make remove_memory() interface usable
device-dax: fix memory and resource leak if hotplug fails
include/linux/lz4.h: fix spelling and copy-paste errors in documentation
ipc/mqueue.c: only perform resource calculation if user valid
include/asm-generic/bug.h: fix "cut here" for WARN_ON for __WARN_TAINT architectures
scripts/gdb: add helpers to find and list devices
scripts/gdb: add lx-genpd-summary command
drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl
kernel/pid.c: convert struct pid count to refcount_t
drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings
select: shift restore_saved_sigmask_unless() into poll_select_copy_remaining()
select: change do_poll() to return -ERESTARTNOHAND rather than -EINTR
...
Diffstat (limited to 'arch/powerpc/include')
| -rw-r--r-- | arch/powerpc/include/asm/book3s/64/pgtable.h | 1 | ||||
| -rw-r--r-- | arch/powerpc/include/asm/syscall.h | 10 | ||||
| -rw-r--r-- | arch/powerpc/include/uapi/asm/mman.h | 6 |
3 files changed, 11 insertions, 6 deletions
diff --git a/arch/powerpc/include/asm/book3s/64/pgtable.h b/arch/powerpc/include/asm/book3s/64/pgtable.h index 62e6ea0a7650..8308f32e9782 100644 --- a/arch/powerpc/include/asm/book3s/64/pgtable.h +++ b/arch/powerpc/include/asm/book3s/64/pgtable.h | |||
| @@ -90,7 +90,6 @@ | |||
| 90 | #define _PAGE_SOFT_DIRTY _RPAGE_SW3 /* software: software dirty tracking */ | 90 | #define _PAGE_SOFT_DIRTY _RPAGE_SW3 /* software: software dirty tracking */ |
| 91 | #define _PAGE_SPECIAL _RPAGE_SW2 /* software: special page */ | 91 | #define _PAGE_SPECIAL _RPAGE_SW2 /* software: special page */ |
| 92 | #define _PAGE_DEVMAP _RPAGE_SW1 /* software: ZONE_DEVICE page */ | 92 | #define _PAGE_DEVMAP _RPAGE_SW1 /* software: ZONE_DEVICE page */ |
| 93 | #define __HAVE_ARCH_PTE_DEVMAP | ||
| 94 | 93 | ||
| 95 | /* | 94 | /* |
| 96 | * Drivers request for cache inhibited pte mapping using _PAGE_NO_CACHE | 95 | * Drivers request for cache inhibited pte mapping using _PAGE_NO_CACHE |
diff --git a/arch/powerpc/include/asm/syscall.h b/arch/powerpc/include/asm/syscall.h index 81abcf6a737b..38d62acfdce7 100644 --- a/arch/powerpc/include/asm/syscall.h +++ b/arch/powerpc/include/asm/syscall.h | |||
| @@ -35,6 +35,16 @@ static inline void syscall_rollback(struct task_struct *task, | |||
| 35 | regs->gpr[3] = regs->orig_gpr3; | 35 | regs->gpr[3] = regs->orig_gpr3; |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | static inline long syscall_get_error(struct task_struct *task, | ||
| 39 | struct pt_regs *regs) | ||
| 40 | { | ||
| 41 | /* | ||
| 42 | * If the system call failed, | ||
| 43 | * regs->gpr[3] contains a positive ERRORCODE. | ||
| 44 | */ | ||
| 45 | return (regs->ccr & 0x10000000UL) ? -regs->gpr[3] : 0; | ||
| 46 | } | ||
| 47 | |||
| 38 | static inline long syscall_get_return_value(struct task_struct *task, | 48 | static inline long syscall_get_return_value(struct task_struct *task, |
| 39 | struct pt_regs *regs) | 49 | struct pt_regs *regs) |
| 40 | { | 50 | { |
diff --git a/arch/powerpc/include/uapi/asm/mman.h b/arch/powerpc/include/uapi/asm/mman.h index 65065ce32814..c0c737215b00 100644 --- a/arch/powerpc/include/uapi/asm/mman.h +++ b/arch/powerpc/include/uapi/asm/mman.h | |||
| @@ -21,15 +21,11 @@ | |||
| 21 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 21 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| 22 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ | 22 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ |
| 23 | 23 | ||
| 24 | |||
| 24 | #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ | 25 | #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ |
| 25 | #define MCL_FUTURE 0x4000 /* lock all additions to address space */ | 26 | #define MCL_FUTURE 0x4000 /* lock all additions to address space */ |
| 26 | #define MCL_ONFAULT 0x8000 /* lock all pages that are faulted in */ | 27 | #define MCL_ONFAULT 0x8000 /* lock all pages that are faulted in */ |
| 27 | 28 | ||
| 28 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | ||
| 29 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | ||
| 30 | #define MAP_STACK 0x20000 /* give out an address that is best suited for process/thread stacks */ | ||
| 31 | #define MAP_HUGETLB 0x40000 /* create a huge page mapping */ | ||
| 32 | |||
| 33 | /* Override any generic PKEY permission defines */ | 29 | /* Override any generic PKEY permission defines */ |
| 34 | #define PKEY_DISABLE_EXECUTE 0x4 | 30 | #define PKEY_DISABLE_EXECUTE 0x4 |
| 35 | #undef PKEY_ACCESS_MASK | 31 | #undef PKEY_ACCESS_MASK |
