Skip to content

Commit 57a8ec3

Browse files
committed
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 ...
2 parents 0a8ad0f + 43e11fa commit 57a8ec3

151 files changed

Lines changed: 2674 additions & 1225 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/admin-guide/kernel-parameters.txt‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2877,6 +2877,17 @@
28772877
/sys/module/printk/parameters/console_suspend) to
28782878
turn on/off it dynamically.
28792879

2880+
novmcoredd [KNL,KDUMP]
2881+
Disable device dump. Device dump allows drivers to
2882+
append dump data to vmcore so you can collect driver
2883+
specified debug info. Drivers can append the data
2884+
without any limit and this data is stored in memory,
2885+
so this may cause significant memory stress. Disabling
2886+
device dump can help save memory but the driver debug
2887+
data will be no longer available. This parameter
2888+
is only available when CONFIG_PROC_VMCORE_DEVICE_DUMP
2889+
is set.
2890+
28802891
noaliencache [MM, NUMA, SLAB] Disables the allocation of alien
28812892
caches in the slab allocator. Saves per-node memory,
28822893
but will impact performance.

‎Documentation/devicetree/bindings/usb/s3c2410-usb.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ OHCI
44

55
Required properties:
66
- compatible: should be "samsung,s3c2410-ohci" for USB host controller
7-
- reg: address and lenght of the controller memory mapped region
7+
- reg: address and length of the controller memory mapped region
88
- interrupts: interrupt number for the USB OHCI controller
99
- clocks: Should reference the bus and host clocks
1010
- clock-names: Should contain two strings

‎Documentation/filesystems/coda.txt‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,10 @@ kernel support.
481481

482482

483483

484-
484+
struct coda_timespec {
485+
int64_t tv_sec; /* seconds */
486+
long tv_nsec; /* nanoseconds */
487+
};
485488

486489
struct coda_vattr {
487490
enum coda_vtype va_type; /* vnode type (for create) */
@@ -493,9 +496,9 @@ kernel support.
493496
long va_fileid; /* file id */
494497
u_quad_t va_size; /* file size in bytes */
495498
long va_blocksize; /* blocksize preferred for i/o */
496-
struct timespec va_atime; /* time of last access */
497-
struct timespec va_mtime; /* time of last modification */
498-
struct timespec va_ctime; /* time file changed */
499+
struct coda_timespec va_atime; /* time of last access */
500+
struct coda_timespec va_mtime; /* time of last modification */
501+
struct coda_timespec va_ctime; /* time file changed */
499502
u_long va_gen; /* generation number of file */
500503
u_long va_flags; /* flags defined for file */
501504
dev_t va_rdev; /* device special file represents */

‎arch/alpha/include/asm/io.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ static inline void * phys_to_virt(unsigned long address)
9393

9494
#define page_to_phys(page) page_to_pa(page)
9595

96-
static inline dma_addr_t __deprecated isa_page_to_bus(struct page *page)
97-
{
98-
return page_to_phys(page);
99-
}
100-
10196
/* Maximum PIO space address supported? */
10297
#define IO_SPACE_LIMIT 0xffff
10398

‎arch/arc/include/asm/pgtable.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#ifndef _ASM_ARC_PGTABLE_H
3333
#define _ASM_ARC_PGTABLE_H
3434

35-
#include <linux/const.h>
35+
#include <linux/bits.h>
3636
#define __ARCH_USE_5LEVEL_HACK
3737
#include <asm-generic/pgtable-nopmd.h>
3838
#include <asm/page.h>
@@ -215,11 +215,11 @@
215215
#define BITS_FOR_PTE (PGDIR_SHIFT - PAGE_SHIFT)
216216
#define BITS_FOR_PGD (32 - PGDIR_SHIFT)
217217

218-
#define PGDIR_SIZE _BITUL(PGDIR_SHIFT) /* vaddr span, not PDG sz */
218+
#define PGDIR_SIZE BIT(PGDIR_SHIFT) /* vaddr span, not PDG sz */
219219
#define PGDIR_MASK (~(PGDIR_SIZE-1))
220220

221-
#define PTRS_PER_PTE _BITUL(BITS_FOR_PTE)
222-
#define PTRS_PER_PGD _BITUL(BITS_FOR_PGD)
221+
#define PTRS_PER_PTE BIT(BITS_FOR_PTE)
222+
#define PTRS_PER_PGD BIT(BITS_FOR_PGD)
223223

224224
/*
225225
* Number of entries a user land program use.

‎arch/arc/plat-eznps/include/plat/ctop.h‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#error "Incorrect ctop.h include"
1111
#endif
1212

13+
#include <linux/bits.h>
1314
#include <linux/types.h>
1415
#include <soc/nps/common.h>
1516

@@ -51,19 +52,19 @@
5152
#define CTOP_INST_AXOR_DI_R2_R2_R3 0x4A664C06
5253

5354
/* Do not use D$ for address in 2G-3G */
54-
#define HW_COMPLY_KRN_NOT_D_CACHED _BITUL(28)
55+
#define HW_COMPLY_KRN_NOT_D_CACHED BIT(28)
5556

5657
#define NPS_MSU_EN_CFG 0x80
5758
#define NPS_CRG_BLKID 0x480
58-
#define NPS_CRG_SYNC_BIT _BITUL(0)
59+
#define NPS_CRG_SYNC_BIT BIT(0)
5960
#define NPS_GIM_BLKID 0x5C0
6061

6162
/* GIM registers and fields*/
62-
#define NPS_GIM_UART_LINE _BITUL(7)
63-
#define NPS_GIM_DBG_LAN_EAST_TX_DONE_LINE _BITUL(10)
64-
#define NPS_GIM_DBG_LAN_EAST_RX_RDY_LINE _BITUL(11)
65-
#define NPS_GIM_DBG_LAN_WEST_TX_DONE_LINE _BITUL(25)
66-
#define NPS_GIM_DBG_LAN_WEST_RX_RDY_LINE _BITUL(26)
63+
#define NPS_GIM_UART_LINE BIT(7)
64+
#define NPS_GIM_DBG_LAN_EAST_TX_DONE_LINE BIT(10)
65+
#define NPS_GIM_DBG_LAN_EAST_RX_RDY_LINE BIT(11)
66+
#define NPS_GIM_DBG_LAN_WEST_TX_DONE_LINE BIT(25)
67+
#define NPS_GIM_DBG_LAN_WEST_RX_RDY_LINE BIT(26)
6768

6869
#ifndef __ASSEMBLY__
6970
/* Functional registers definition */

‎arch/arm/include/asm/io.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
* ISA I/O bus memory addresses are 1:1 with the physical address.
3131
*/
3232
#define isa_virt_to_bus virt_to_phys
33-
#define isa_page_to_bus page_to_phys
3433
#define isa_bus_to_virt phys_to_virt
3534

3635
/*

‎arch/arm/mm/fault.c‎

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,6 @@
2727

2828
#ifdef CONFIG_MMU
2929

30-
#ifdef CONFIG_KPROBES
31-
static inline int notify_page_fault(struct pt_regs *regs, unsigned int fsr)
32-
{
33-
int ret = 0;
34-
35-
if (!user_mode(regs)) {
36-
/* kprobe_running() needs smp_processor_id() */
37-
preempt_disable();
38-
if (kprobe_running() && kprobe_fault_handler(regs, fsr))
39-
ret = 1;
40-
preempt_enable();
41-
}
42-
43-
return ret;
44-
}
45-
#else
46-
static inline int notify_page_fault(struct pt_regs *regs, unsigned int fsr)
47-
{
48-
return 0;
49-
}
50-
#endif
51-
5230
/*
5331
* This is useful to dump out the page tables associated with
5432
* 'addr' in mm 'mm'.
@@ -265,7 +243,7 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
265243
vm_fault_t fault;
266244
unsigned int flags = FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE;
267245

268-
if (notify_page_fault(regs, fsr))
246+
if (kprobe_page_fault(regs, fsr))
269247
return 0;
270248

271249
tsk = current;

‎arch/arm64/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ config ARM64
2424
select ARCH_HAS_KCOV
2525
select ARCH_HAS_KEEPINITRD
2626
select ARCH_HAS_MEMBARRIER_SYNC_CORE
27+
select ARCH_HAS_PTE_DEVMAP
2728
select ARCH_HAS_PTE_SPECIAL
2829
select ARCH_HAS_SETUP_DMA_OPS
2930
select ARCH_HAS_SET_DIRECT_MAP

‎arch/arm64/include/asm/pgtable-prot.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define PTE_WRITE (PTE_DBM) /* same as DBM (51) */
1717
#define PTE_DIRTY (_AT(pteval_t, 1) << 55)
1818
#define PTE_SPECIAL (_AT(pteval_t, 1) << 56)
19+
#define PTE_DEVMAP (_AT(pteval_t, 1) << 57)
1920
#define PTE_PROT_NONE (_AT(pteval_t, 1) << 58) /* only when !PTE_VALID */
2021

2122
#ifndef __ASSEMBLY__

0 commit comments

Comments
 (0)