[PATCH v2 0/3] docs/core-api: add memory allocation guide

2018-08-16 Thread Mike Rapoport
[2] https://lkml.org/lkml/2018/7/26/684 Mike Rapoport (3): docs: core-api/gfp_mask-from-fs-io: add a label for cross-referencing docs: core-api/mm-api: add a lable for GFP flags section docs: core-api: add memory allocation guide Documentation/core-api/gfp_mask-from-fs-io.rst | 2 + Document

[PATCH v2 3/3] docs: core-api: add memory allocation guide

2018-08-16 Thread Mike Rapoport
Signed-off-by: Mike Rapoport Acked-by: Michal Hocko --- Documentation/core-api/index.rst | 1 + Documentation/core-api/memory-allocation.rst | 124 +++ 2 files changed, 125 insertions(+) create mode 100644 Documentation/core-api/memory-allocation.rst diff

Re: [PATCH v2] resource: Merge resources on a node when hot-adding memory

2018-08-06 Thread Mike Rapoport
On Mon, Aug 06, 2018 at 04:52:24PM +1000, Rashmica Gupta wrote: > When hot-removing memory release_mem_region_adjustable() splits > iomem resources if they are not the exact size of the memory being > hot-deleted. Adding this memory back to the kernel adds a new > resource. > > Eg a node has

[PATCH v2 3/3] sparc32: split ramdisk detection and reservation to a helper function

2018-08-06 Thread Mike Rapoport
block into a separate helper function. Signed-off-by: Mike Rapoport Suggested-by: Sam Ravnborg --- arch/sparc/mm/init_32.c | 56 +++-- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c index

[PATCH v2 1/3] sparc: mm/init_32: kill trailing whitespace

2018-08-06 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- arch/sparc/mm/init_32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c index 95fe4f0..3ec10b2 100644 --- a/arch/sparc/mm/init_32.c +++ b/arch/sparc/mm/init_32.c @@ -133,7 +133,7

[PATCH v2 0/3] sparc32: switch to NO_BOOTMEM

2018-08-06 Thread Mike Rapoport
] https://lkml.org/lkml/2018/8/2/403 Mike Rapoport (3): sparc: mm/init_32: kill trailing whitespace sparc32: switch to NO_BOOTMEM sparc32: split ramdisk detection and reservation to a helper function arch/sparc/Kconfig | 4 +- arch/sparc/mm/init_32.c | 127

[PATCH v2 2/3] sparc32: switch to NO_BOOTMEM

2018-08-06 Thread Mike Rapoport
Each populated sparc_phys_bank is added to memblock.memory. The reserve_bootmem() calls are replaced with memblock_reserve(), and the bootmem bitmap initialization is droppped. Signed-off-by: Mike Rapoport --- arch/sparc/Kconfig | 4 +-- arch/sparc/mm/init_32.c | 75

Re: [PATCH RESEND 0/7] switch several architectures NO_BOOTMEM

2018-08-29 Thread Mike Rapoport
Any updates on this? On Fri, Aug 03, 2018 at 10:58:43PM +0300, Mike Rapoport wrote: > > Hi, > > These patches perform conversion to NO_BOOTMEM of hexagon, nios2, uml and > unicore32. The architecture maintainers have acked the patches, but, since > I've got no confirmation the

[PATCH RESEND] mips: switch to NO_BOOTMEM

2018-08-27 Thread Mike Rapoport
MIPS already has memblock support and all the memory is already registered with it. This patch replaces bootmem memory reservations with memblock ones and removes the bootmem initialization. Signed-off-by: Mike Rapoport --- arch/mips/Kconfig | 1 + arch/mips/kernel

Re: [PATCH 1/2] devres: provide devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 10:21:00AM +0200, Bartosz Golaszewski wrote: > Provide a resource managed version of kstrdup_const(). This variant > internally calls devm_kstrdup() on pointers that are outside of > .rodata section. Also provide a corresponding version of devm_kfree(). > > Signed-off-by:

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: > Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > an example of how to use this new routine to shrink driver code. > > While we're at it: replace a call to kcalloc() with devm_kcalloc(). > >

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 02:58:46PM +0200, Bartosz Golaszewski wrote: > 2018-08-27 14:52 GMT+02:00 Mike Rapoport : > > On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: > >> 2018-08-27 12:39 GMT+02:00 Mike Rapoport : > >> > On Mon, Aug 27, 201

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: > 2018-08-27 12:39 GMT+02:00 Mike Rapoport : > > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: > >> Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > >&g

Re: [PATCH v2 4/4] userfaultfd: selftest: Cope if shmem doesn't support zeropage

2018-08-28 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 11:46:33PM -0300, Thiago Jung Bauermann wrote: > > Hello Mike, > > Mike Rapoport writes: > > > Hi, > > > > On Fri, Aug 03, 2018 at 07:00:46PM -0300, Thiago Jung Bauermann wrote: > >> If userfaultfd runs on a system that doesn

Re: [PATCH 1/2] devres: provide devm_kstrdup_const()

2018-08-28 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 04:28:55PM +0200, Bartosz Golaszewski wrote: > 2018-08-27 12:33 GMT+02:00 Mike Rapoport : > > On Mon, Aug 27, 2018 at 10:21:00AM +0200, Bartosz Golaszewski wrote: > >> Provide a resource managed version of kstrdup_const(). This variant > >> in

Re: kernel BUG at fs/userfaultfd.c:LINE! (2)

2018-07-18 Thread Mike Rapoport
ING | VM_UFFD_WP))); Thanks for the CC. The fix is below. -- Sincerely yours, Mike. >From 3711b6a72abe3796b2b97fdba8eadd995b29f195 Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Wed, 18 Jul 2018 09:45:54 +0300 Subject: [PATCH] userfaultfd: remove uffd flags from vma->vm_flags if UFFD_E

[PATCH] mips: switch to NO_BOOTMEM

2018-07-16 Thread Mike Rapoport
MIPS already has memblock support and all the memory is already registered with it. This patch replaces bootmem memory reservations with memblock ones and removes the bootmem initialization. Signed-off-by: Mike Rapoport --- The "generic" part was tested with qemu-system-mipsel (both

[PATCH] hexagon: switch to NO_BOOTMEM

2018-07-16 Thread Mike Rapoport
This patch adds registration of the system memory with memblock, eliminates bootmem initialization and converts early memory reservations from bootmem to memblock. Signed-off-by: Mike Rapoport --- Build tested only. arch/hexagon/Kconfig | 3 +++ arch/hexagon/mm/init.c | 20

[PATCH] unicore32: switch to NO_BOOTMEM

2018-07-16 Thread Mike Rapoport
initialization and leaves memblock as the only boot time memory manager for unicore32. Signed-off-by: Mike Rapoport --- I couldn't get unicore32 toolchain as the only link I was able to find [1] gives me timeout, so the best I could do to check the changes was gcc -c arch/unicore32/mm

Re: [PATCH] hexagon: switch to NO_BOOTMEM

2018-07-23 Thread Mike Rapoport
On Mon, Jul 23, 2018 at 04:23:39PM -0500, Richard Kuo wrote: > > On Mon, Jul 16, 2018 at 10:43:18AM +0300, Mike Rapoport wrote: > > This patch adds registration of the system memory with memblock, eliminates > > bootmem initialization and converts early memory reserva

Re: [PATCH] hexagon: switch to NO_BOOTMEM

2018-07-24 Thread Mike Rapoport
On Tue, Jul 24, 2018 at 09:12:55PM -0500, Richard Kuo wrote: > On Tue, Jul 24, 2018 at 08:47:04AM +0300, Mike Rapoport wrote: > > On Mon, Jul 23, 2018 at 04:23:39PM -0500, Richard Kuo wrote: > > > > > > On Mon, Jul 16, 2018 at 10:43:18AM +0300, Mike Rapoport wro

[PATCH v2] hexagon: switch to NO_BOOTMEM

2018-07-24 Thread Mike Rapoport
This patch adds registration of the system memory with memblock, eliminates bootmem initialization and converts early memory reservations from bootmem to memblock. Signed-off-by: Mike Rapoport --- v2: fix calculation of the reserved memory size arch/hexagon/Kconfig | 3 +++ arch/hexagon/mm

[PATCH 4/7] docs/core-api: move *{str,mem}dup* to "String Manipulation"

2018-07-25 Thread Mike Rapoport
The string and memory duplication routines fit better to the "String Manipulation" section than to "The SLAB Cache". Signed-off-by: Mike Rapoport --- Documentation/core-api/kernel-api.rst | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documenta

[PATCH 6/7] docs/mm: make GFP flags descriptions usable as kernel-doc

2018-07-25 Thread Mike Rapoport
This patch adds DOC: headings for GFP flag descriptions and adjusts the formatting to fit sphinx expectations of paragraphs. Signed-off-by: Mike Rapoport --- include/linux/gfp.h | 291 +++- 1 file changed, 154 insertions(+), 137 deletions(-) diff

[PATCH 3/7] docs/core-api: kill trailing whitespace in kernel-api.rst

2018-07-25 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- Documentation/core-api/kernel-api.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/core-api/kernel-api.rst b/Documentation/core-api/kernel-api.rst index 76fe2d0f..25e9496 100644 --- a/Documentation/core-api/kernel-api.rst +++ b/Documentation

[PATCH 5/7] docs/core-api: split memory management API to a separate file

2018-07-25 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- Documentation/core-api/index.rst | 1 + Documentation/core-api/kernel-api.rst | 54 --- Documentation/core-api/mm-api.rst | 54 +++ 3 files changed, 55 insertions(+), 54 deletions

[PATCH 0/7] memory management documentation updates

2018-07-25 Thread Mike Rapoport
formating of the GFP flags description and include it in the reference documentation. Mike Rapoport (7): mm/util: make strndup_user description a kernel-doc comment mm/util: add kernel-doc for kvfree docs/core-api: kill trailing whitespace in kernel-api.rst docs/core-api: move *{str,mem}dup*

[PATCH 1/7] mm/util: make strndup_user description a kernel-doc comment

2018-07-25 Thread Mike Rapoport
The description of the strndup_user function misses '*' character at the beginning of the comment to be proper kernel-doc. Add the missing character. Signed-off-by: Mike Rapoport --- mm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/util.c b/mm/util.c index

[PATCH 7/7] docs/core-api: mm-api: add section about GFP flags

2018-07-25 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- Documentation/core-api/mm-api.rst | 22 ++ 1 file changed, 22 insertions(+) diff --git a/Documentation/core-api/mm-api.rst b/Documentation/core-api/mm-api.rst index 65a8ef09..1e8c011 100644 --- a/Documentation/core-api/mm-api.rst +++ b

[PATCH 2/7] mm/util: add kernel-doc for kvfree

2018-07-25 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- mm/util.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/mm/util.c b/mm/util.c index 6809014..d2890a4 100644 --- a/mm/util.c +++ b/mm/util.c @@ -434,6 +434,13 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node) } EXPORT_SYMBOL(kvmalloc_node

Re: [PATCH 5/7] docs/core-api: split memory management API to a separate file

2018-07-25 Thread Mike Rapoport
On Wed, Jul 25, 2018 at 05:05:00AM -0700, Matthew Wilcox wrote: > On Wed, Jul 25, 2018 at 02:26:08PM +0300, Mike Rapoport wrote: > > +User Space Memory Access > > + > > + > > +.. kernel-doc:: arch/x86/include/asm/uaccess.h > > + :internal

Re: [PATCH 1/3] userfaultfd: selftest: Fix checking of userfaultfd_open() result

2018-07-25 Thread Mike Rapoport
Hi, On Tue, Jul 24, 2018 at 11:42:07PM -0300, Thiago Jung Bauermann wrote: > If the userfaultfd test is run on a kernel with CONFIG_USERFAULTFD=n, it > will report that the system call is not available yet go ahead and continue > anyway: > > # ./userfaultfd anon 30 1 > nr_pages: 480,

Re: [PATCH 2/3] userfaultfd: selftest: Skip test if a feature isn't supported

2018-07-25 Thread Mike Rapoport
Hi, On Tue, Jul 24, 2018 at 11:42:08PM -0300, Thiago Jung Bauermann wrote: > If userfaultfd runs on a system that doesn't support some feature it is > trying to test, it currently ends with error code 1 which indicates > test failure: > > # ./userfaultfd anon 10 10 > nr_pages: 160,

Re: [PATCH 3/3] userfaultfd: selftest: Report XFAIL if shmem doesn't support zeropage

2018-07-25 Thread Mike Rapoport
Hi, On Tue, Jul 24, 2018 at 11:42:09PM -0300, Thiago Jung Bauermann wrote: > If userfaultfd runs on a system that doesn't support UFFDIO_ZEROPAGE for > shared memory, it currently ends with error code 1 which indicates test > failure: > > # ./userfaultfd shmem 10 10 > nr_pages: 160,

[PATCH 4/4] ia64: switch to NO_BOOTMEM

2018-07-22 Thread Mike Rapoport
the bootmem bitmap is removed. Signed-off-by: Mike Rapoport --- arch/ia64/Kconfig| 1 + arch/ia64/kernel/setup.c | 11 ++- arch/ia64/mm/contig.c| 71 -- arch/ia64/mm/discontig.c | 74 4 files

[PATCH 2/4] ia64: remove unused num_dma_physpages member from 'struct early_node_data'

2018-07-22 Thread Mike Rapoport
Since commit 05e0caad3b7b ("[PATCH] Have ia64 use add_active_range() and free_area_init_nodes") the num_dma_physpages member of 'struct early_node_data' is calculated but never used. Remove it. Signed-off-by: Mike Rapoport --- arch/ia64/mm/discontig.c | 8 1 file changed, 8

[PATCH 0/4] ia64: switch to NO_BOOTMEM

2018-07-22 Thread Mike Rapoport
and build tested other defconfigs. Mike Rapoport (4): ia64: contig/paging_init: reduce code duplication ia64: remove unused num_dma_physpages member from 'struct early_node_data' ia64: use mem_data to detect nodes' minimal and maximal PFNs ia64: switch to NO_BOOTMEM arch/ia64/Kconfig

[PATCH 3/4] ia64: use mem_data to detect nodes' minimal and maximal PFNs

2018-07-22 Thread Mike Rapoport
-by: Mike Rapoport --- arch/ia64/mm/discontig.c | 60 +++- 1 file changed, 14 insertions(+), 46 deletions(-) diff --git a/arch/ia64/mm/discontig.c b/arch/ia64/mm/discontig.c index 6148ea8..8e99d8e 100644 --- a/arch/ia64/mm/discontig.c +++ b/arch/ia64/mm

[PATCH 1/4] ia64: contig/paging_init: reduce code duplication

2018-07-22 Thread Mike Rapoport
The FLATMEM version of paging_init has calls to free_area_init_nodes() in the end of every branch of 'if' and 'ifdef' statements. Let's call this function outside the 'ifdef' and 'if' statements instead. Signed-off-by: Mike Rapoport --- arch/ia64/mm/contig.c | 4 +--- 1 file changed, 1

[PATCH] mm/mempool: add missing parameter description

2018-07-23 Thread Mike Rapoport
The kernel-doc for mempool_init function is missing the description of the pool parameter. Add it. Signed-off-by: Mike Rapoport --- mm/mempool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/mempool.c b/mm/mempool.c index b54f2c2..9e16b63 100644 --- a/mm/mempool.c +++ b/mm/mempool.c

[PATCH 1/2] um: setup_physmem: stop using global variables

2018-07-24 Thread Mike Rapoport
The setup_physmem() function receives uml_physmem and uml_reserved as parameters and still used these global variables. Replace such usage with local variables. Signed-off-by: Mike Rapoport --- arch/um/kernel/physmem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 0/2] um: switch to NO_BOOTMEM

2018-07-24 Thread Mike Rapoport
Hi, These patches convert UML to use NO_BOOTMEM. Tested on x86-64. Mike Rapoport (2): um: setup_physmem: stop using global variables um: switch to NO_BOOTMEM arch/um/Kconfig.common | 2 ++ arch/um/kernel/physmem.c | 22 ++ 2 files changed, 12 insertions(+), 12

[PATCH 2/2] um: switch to NO_BOOTMEM

2018-07-24 Thread Mike Rapoport
Replace bootmem initialization with memblock_add and memblock_reserve calls and explicit initialization of {min,max}_low_pfn. Signed-off-by: Mike Rapoport --- arch/um/Kconfig.common | 2 ++ arch/um/kernel/physmem.c | 20 +--- 2 files changed, 11 insertions(+), 11 deletions

Re: [PATCH RESEND] mips: switch to NO_BOOTMEM

2018-08-31 Thread Mike Rapoport
Hi Paul, On Thu, Aug 30, 2018 at 02:48:57PM -0700, Paul Burton wrote: > Hi Mike, > > On Mon, Aug 27, 2018 at 10:59:35AM +0300, Mike Rapoport wrote: > > MIPS already has memblock support and all the memory is already registered > > with it. > > > > This patch rep

Re: [PATCH RESEND] mips: switch to NO_BOOTMEM

2018-09-05 Thread Mike Rapoport
On Wed, Sep 05, 2018 at 10:47:10AM -0700, Paul Burton wrote: > Hi Mike, > > On Sat, Sep 01, 2018 at 12:17:48AM +0300, Mike Rapoport wrote: > > On Thu, Aug 30, 2018 at 02:48:57PM -0700, Paul Burton wrote: > > > On Mon, Aug 27, 2018 at 10:59:35AM +0300, Mike Rapoport wrote:

Re: [PATCH RESEND] mips: switch to NO_BOOTMEM

2018-09-05 Thread Mike Rapoport
> > On Wed, Sep 5, 2018 at 9:38 PM Mike Rapoport wrote: > > On Wed, Sep 05, 2018 at 10:47:10AM -0700, Paul Burton wrote: > > Hi Mike, > > > > On Sat, Sep 01, 2018 at 12:17:48AM +0300, Mike Rapoport wrote: > > > On Thu, Aug 30, 2018 at 02:4

Re: Plumbers 2018 - Performance and Scalability Microconference

2018-09-05 Thread Mike Rapoport
Hi, On Wed, Sep 05, 2018 at 07:51:34PM +, Pasha Tatashin wrote: > > On 9/5/18 2:38 AM, Mike Rapoport wrote: > > On Tue, Sep 04, 2018 at 05:28:13PM -0400, Daniel Jordan wrote: > >> Pavel Tatashin, Ying Huang, and I are excited to be organizing a > >&g

[PATCH v2] mips: switch to NO_BOOTMEM

2018-09-10 Thread Mike Rapoport
allocations from the high memory. To have the exceptions base in the lower 512M of the physical memory, its allocation in arch/mips/kernel/traps.c::traps_init() is using bottom-up mode. Signed-off-by: Mike Rapoport --- v2: * set memblock limit to max_low_pfn to avoid allocation attempts from

Re: Plumbers 2018 - Performance and Scalability Microconference

2018-09-05 Thread Mike Rapoport
On Tue, Sep 04, 2018 at 05:28:13PM -0400, Daniel Jordan wrote: > Pavel Tatashin, Ying Huang, and I are excited to be organizing a performance > and scalability microconference this year at Plumbers[*], which is happening > in Vancouver this year. The microconference is scheduled for the morning

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-05 Thread Mike Rapoport
On Wed, Jul 04, 2018 at 10:22:32AM -0700, Joe Perches wrote: > On Wed, 2018-07-04 at 10:03 +0300, Mike Rapoport wrote: > > On Tue, Jul 03, 2018 at 01:24:07PM -0700, Joe Perches wrote: > > > On Tue, 2018-07-03 at 12:57 -0700, Andrew Morton wrote: > > > > Did you

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Mike Rapoport
on Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Wed, 4 Jul 2018 14:31:46 +0200 > Subject: [PATCH] memblock: do not complain about top-down allocations for > !MEMORY_HOTREMOVE > > Mike Rapoport is converting architectures from bootmem to noboodmem > allocator. While doin

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Mike Rapoport
On Wed, Jul 04, 2018 at 02:51:21PM +0200, Michal Hocko wrote: > On Wed 04-07-18 15:43:35, Mike Rapoport wrote: > > On Wed, Jul 04, 2018 at 02:36:27PM +0200, Michal Hocko wrote: > [...] > > > diff --git a/mm/memblock.c b/mm/memblock.c > > > index 03d48d8835ba..2ace

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Mike Rapoport
tion bit. > Something like this: >From 0d3e7cf494123c2640b9a892160d2e2430787004 Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Wed, 4 Jul 2018 09:55:50 +0300 Subject: [PATCH] treewide: retire '%pF/%pf' %p[Ff] got deprecated by commit 04b8eb7a4ccd9ef9343e2720ccf2a5db8cfe2f67 ("s

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Mike Rapoport
On Tue, Jul 03, 2018 at 12:57:22PM -0700, Andrew Morton wrote: > On Tue, 3 Jul 2018 20:05:06 +0300 Mike Rapoport > wrote: > > > Most functions in memblock already use phys_addr_t to represent a physical > > address with __memblock_free_late() being an exception. > &g

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Mike Rapoport
On Wed, Jul 04, 2018 at 06:43:44PM +0900, Sergey Senozhatsky wrote: > On (07/04/18 18:20), Sergey Senozhatsky wrote: > > > There's this saying about habits made to be broken. > > > This is one of those habits. > > > > > > I'd expect more people probably get the %pS or %ps wrong > > > than use

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Mike Rapoport
On Wed, Jul 04, 2018 at 04:54:49PM +0900, Sergey Senozhatsky wrote: > On (07/04/18 10:03), Mike Rapoport wrote: > > arch/alpha/kernel/pci_iommu.c | 20 ++-- > > arch/arm/mm/alignment.c | 2 +- > > arch/arm/nwfpe/fpmodule.c

[PATCH 1/3] of: ignore sub-page memory regions

2018-07-04 Thread Mike Rapoport
0 after rounding in early_init_dt_add_memory_arch") introduced a test for wrap around for the case when base is not page aligned, the same test can be used to ignore sub-page region sizes. Signed-off-by: Mike Rapoport --- drivers/of/fdt.c | 11 ++- 1 file changed, 6 insertions(+)

[PATCH 3/3] nios2: switch to NO_BOOTMEM

2018-07-04 Thread Mike Rapoport
Remove bootmem bitmap initialization and replace reserve_bootmem() with memblock_reserve(). Signed-off-by: Mike Rapoport --- arch/nios2/Kconfig| 2 ++ arch/nios2/kernel/prom.c | 7 --- arch/nios2/kernel/setup.c | 37 + 3 files changed, 7

[PATCH 2/3] nios2: use generic early_init_dt_add_memory_arch

2018-07-04 Thread Mike Rapoport
All we have to do is to enable memblock, the generic FDT code will take care of the rest. Signed-off-by: Mike Rapoport --- arch/nios2/Kconfig| 1 + arch/nios2/kernel/prom.c | 10 -- arch/nios2/kernel/setup.c | 2 ++ 3 files changed, 3 insertions(+), 10 deletions(-) diff

Re: [PATCH] c6x: switch to NO_BOOTMEM

2018-07-04 Thread Mike Rapoport
Any comments on this? On Wed, Jun 27, 2018 at 03:09:20PM +0300, Mike Rapoport wrote: > The c6x is already using memblock and does most of early memory > reservations with it, so it was only a matter of removing the bootmem > initialization and handover of the memory from memblock t

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Mike Rapoport
On Wed, Jul 04, 2018 at 03:05:00PM +0200, Michal Hocko wrote: > On Tue 03-07-18 20:05:06, Mike Rapoport wrote: > > Most functions in memblock already use phys_addr_t to represent a physical > > address with __memblock_free_late() being an exception. > > > &

[PATCH 0/3] nios2: switch to NO_BOOTMEM

2018-07-04 Thread Mike Rapoport
. It's just I've got really interesting memory layout without it because of 1K long memory ranges defined in arch/nios2/boot/dts/10m50_devboard.dts. Mike Rapoport (3): of: ignore sub-page memory regions nios2: use generic early_init_dt_add_memory_arch nios2: switch to NO_BOOTMEM arch/nios2

Re: [PATCH 2/3] m68k/page_no.h: force __va argument to be unsigned long

2018-07-03 Thread Mike Rapoport
On Tue, Jul 03, 2018 at 08:05:35AM -0700, Matthew Wilcox wrote: > On Tue, Jul 03, 2018 at 06:03:16PM +0300, Mike Rapoport wrote: > > On Tue, Jul 03, 2018 at 04:20:54PM +0200, Michal Hocko wrote: > > > On Tue 03-07-18 13:29:54, Mike Rapoport wrote: > > > > Add exp

Re: [PATCH 2/3] m68k/page_no.h: force __va argument to be unsigned long

2018-07-03 Thread Mike Rapoport
On Tue, Jul 03, 2018 at 05:14:01PM +0200, Michal Hocko wrote: > On Tue 03-07-18 08:05:35, Matthew Wilcox wrote: > > On Tue, Jul 03, 2018 at 06:03:16PM +0300, Mike Rapoport wrote: > > > On Tue, Jul 03, 2018 at 04:20:54PM +0200, Michal Hocko wrote: > > > > On Tue 03

Re: [PATCH 2/3] m68k/page_no.h: force __va argument to be unsigned long

2018-07-03 Thread Mike Rapoport
On Tue, Jul 03, 2018 at 05:14:01PM +0200, Michal Hocko wrote: > On Tue 03-07-18 08:05:35, Matthew Wilcox wrote: > > On Tue, Jul 03, 2018 at 06:03:16PM +0300, Mike Rapoport wrote: > > > On Tue, Jul 03, 2018 at 04:20:54PM +0200, Michal Hocko wrote: > > > > On Tue 03

[PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-03 Thread Mike Rapoport
: Michal Hocko CC: Matthew Wilcox Signed-off-by: Mike Rapoport --- mm/memblock.c | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/mm/memblock.c b/mm/memblock.c index 03d48d8..20ad8e9 100644 --- a/mm/memblock.c +++ b/mm/memblock.c

Re: [PATCH v7] regulator: fixed: Convert to use GPIO descriptor only

2018-09-11 Thread Mike Rapoport
with the > infix *_regulator_* as part of this patch set. > > Intel MID portions tested by Andy. > > Cc: Janusz Krzysztofik # OMAP1 > Cc: Alexander Shiyan # i.MX boards user > Cc: Haojian Zhuang # MMP2 maintainer > Cc: Aaro Koskinen # OMAP1 maintainer > Cc: Mike Rapopo

Re: [PATCH 00/32] docs/vm: convert to ReST format

2018-04-10 Thread Mike Rapoport
Jon, Andrew, How do you suggest to continue with this? On Sun, Apr 01, 2018 at 09:38:58AM +0300, Mike Rapoport wrote: > (added akpm) > > On Thu, Mar 29, 2018 at 03:46:07PM -0600, Jonathan Corbet wrote: > > On Wed, 21 Mar 2018 21:22:16 +0200 > > Mike Rapoport <r...@l

Re: [PATCH] selftests:vm: add include file

2018-04-14 Thread Mike Rapoport
On Sun, Apr 15, 2018 at 03:08:56AM +0800, Peng Hao wrote: > userfaultfd.c: In function ‘hugetlb_release_pages’: > userfaultfd.c:145:25: error: ‘FALLOC_FL_PUNCH_HOLE’ undeclared > (first use in this function) > > Signed-off-by: Peng Hao > --- >

[PATCH 5/7] docs/admin-guide: introduce basic index for mm documentation

2018-04-18 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/admin-guide/index.rst| 1 + Documentation/admin-guide/mm/index.rst | 19 +++ 2 files changed, 20 insertions(+) create mode 100644 Documentation/admin-guide/mm/index.rst diff --git a/Documentation

[PATCH 6/7] docs/admin-guide/mm: start moving here files from Documentation/vm

2018-04-18 Thread Mike Rapoport
Several documents in Documentation/vm fit quite well into the "admin/user guide" category. The documents that don't overload the reader with lots of implementation details and provide coherent description of certain feature can be moved to Documentation/admin-guide/mm. Signed-of

[PATCH 1/7] docs/vm: hugetlbpage: minor improvements

2018-04-18 Thread Mike Rapoport
* fixed mistypes * added internal cross-references for sections Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/hugetlbpage.rst | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Documentation/vm/hugetlbpage.rst b/Documentat

[PATCH 7/7] docs/admin-guide/mm: convert plain text cross references to hyperlinks

2018-04-18 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/admin-guide/mm/hugetlbpage.rst| 3 ++- Documentation/admin-guide/mm/idle_page_tracking.rst | 5 +++-- Documentation/admin-guide/mm/pagemap.rst| 18 +++--- 3 files changed, 16 inse

[PATCH 3/7] docs/vm: pagemap: formatting and spelling updates

2018-04-18 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/pagemap.rst | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/vm/pagemap.rst b/Documentation/vm/pagemap.rst index d54b4bf..9644bc0 100644 --- a/Documentation/vm/pagem

[PATCH 2/7] docs/vm: hugetlbpage: move section about kernel development to hugetlbfs_reserv

2018-04-18 Thread Mike Rapoport
The hugetlbpage describes hugetlbfs from the user perspective and newer hugetlbfs_reserv document targets kernel developers. Hence the section about hugetlbfs kernel development naturally belongs there. Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentat

[PATCH 0/7] docs/vm: start moving files do Documentation/admin-guide`

2018-04-18 Thread Mike Rapoport
Hi, These pacthes begin categorizing memory management documentation. The documents that describe userspace APIs and do not overload the reader with implementation details can be moved to Documentation/admin-guide, so let's do it :) Mike Rapoport (7): docs/vm: hugetlbpage: minor improvements

[PATCH 4/7] docs/vm: pagemap: change document title

2018-04-18 Thread Mike Rapoport
"pagemap from the Userspace Perspective" is not very descriptive for unaware readers. Since the document describes how to examine a process page tables, let's title it "Examining Process Page Tables" Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Docume

Re: [PATCH 00/32] docs/vm: convert to ReST format

2018-04-15 Thread Mike Rapoport
On Fri, Apr 13, 2018 at 01:55:51PM -0600, Jonathan Corbet wrote: > Sorry for the silence, I'm pedaling as fast as I can, honest... > > On Sun, 1 Apr 2018 09:38:58 +0300 > Mike Rapoport <r...@linux.vnet.ibm.com> wrote: > > > My thinking was to start wit

Re: [PATCH 00/32] docs/vm: convert to ReST format

2018-04-15 Thread Mike Rapoport
On Fri, Apr 13, 2018 at 01:21:08PM -0700, Matthew Wilcox wrote: > On Fri, Apr 13, 2018 at 01:55:51PM -0600, Jonathan Corbet wrote: > > > I believe that keeping the mm docs together will give better visibility of > > > what (little) mm documentation we have and will make the updates easier. > > >

[PATCH 5/7] docs/vm: ksm: update stable_node_chains_prune_millisecs description

2018-04-24 Thread Mike Rapoport
Make the description of stable_node_chains_prune_millisecs sysfs parameter less implementation aware and add a few words about this parameter in the "Design" section. Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/ksm.rst | 19 +++ 1

[PATCH 6/7] docs/vm: ksm: udpate description of stable_node_{dups,chains}

2018-04-24 Thread Mike Rapoport
Remove implementation details from sysfs parameter descriptions. Also move the paragraph discussing fragmentation issues and their possible solution to the "Design" section. Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/ksm.rst | 21 ++---

[PATCH 4/7] docs/vm: ksm: reshuffle text between "sysfs" and "design" sections

2018-04-24 Thread Mike Rapoport
The description of "max_page_sharing" sysfs attribute includes lots of implementation details that more naturally belong in the "Design" section. Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/ksm.rst | 51 --

[PATCH 2/7] docs/vm: ksm: (mostly) formatting updates

2018-04-24 Thread Mike Rapoport
Aside from the formatting: * fixed typos * added section and sub-section headers * moved ksmd overview after the description of KSM origins Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/ksm.rst | 110 +-- 1 file c

[PATCH 7/7] docs/vm: ksm: split userspace interface to admin-guide/mm/ksm.rst

2018-04-24 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/admin-guide/mm/index.rst | 1 + Documentation/admin-guide/mm/ksm.rst | 189 + Documentation/vm/ksm.rst | 176 +- 3 files changed, 191 inse

[PATCH 2/2] mm/ksm: move [set_]page_stable_node from ksm.h to ksm.c

2018-04-24 Thread Mike Rapoport
The page_stable_node() and set_page_stable_node() are only used in mm/ksm.c and there is no point to keep them in the include/linux/ksm.h Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- include/linux/ksm.h | 11 --- mm/ksm.c| 12 2 files chang

[PATCH 1/2] mm/ksm: remove unused page_referenced_ksm declaration

2018-04-24 Thread Mike Rapoport
The commit 9f32624be943538983e ("mm/rmap: use rmap_walk() in page_referenced()") removed the declaration of page_referenced_ksm for the case CONFIG_KSM=y, but left one for CONFIG_KSM=n. Remove the unused leftover. Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- inc

[PATCH 3/7] docs/vm: ksm: add "Design" section

2018-04-24 Thread Mike Rapoport
Include the KSM description from the source code comment, add a subsection about reverse mapping and include kernel-doc references for KSM data structures. Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/ksm.rst | 39 +++

[PATCH 0/2] mm/ksm: minor cleanups

2018-04-24 Thread Mike Rapoport
Hi, While working on KSM docs, I've noticed some minor points which are addressed by the below patches. Mike Rapoport (2): mm/ksm: remove unused page_referenced_ksm declaration mm/ksm: move [set_]page_stable_node from ksm.h to ksm.c include/linux/ksm.h | 17 - mm/ksm.c

[PATCH 0/7] docs/vm: update KSM documentation

2018-04-24 Thread Mike Rapoport
. The description of these implementation details are moved to the new "Design" section. The last patch in the series depends on the patchset that create Documentation/admin-guide/mm [1], all the rest applies cleanly to the current docs-next. [1] https://lkml.org/lkml/2018/4/18/110 Mik

[PATCH 1/7] mm/ksm: docs: extend overview comment and make it "DOC:"

2018-04-24 Thread Mike Rapoport
The existing comment provides a good overview of KSM implementation. Let's update it to reflect recent additions of "chain" and "dup" variants of the stable tree nodes and mark it as "DOC:" for inclusion into the KSM documentation. Signed-off-by: Mike Rapoport <

Re: [PATCH 00/32] docs/vm: convert to ReST format

2018-04-01 Thread Mike Rapoport
(added akpm) On Thu, Mar 29, 2018 at 03:46:07PM -0600, Jonathan Corbet wrote: > On Wed, 21 Mar 2018 21:22:16 +0200 > Mike Rapoport <r...@linux.vnet.ibm.com> wrote: > > > These patches convert files in Documentation/vm to ReST format, add an > > initial index a

[PATCH 19/32] docs/vm: page_owner: convert to ReST format

2018-03-21 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/page_owner.txt | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/Documentation/vm/page_owner.txt b/Documentation/vm/page_owner.txt index 143..0ed5ab8

[PATCH 21/32] docs/vm: slub.txt: convert to ReST format

2018-03-21 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/slub.txt | 357 -- 1 file changed, 188 insertions(+), 169 deletions(-) diff --git a/Documentation/vm/slub.txt b/Documentation/vm/slub.txt index 8465241..3a775fd

[PATCH 17/32] docs/vm: pagemap.txt: convert to ReST format

2018-03-21 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/pagemap.txt | 164 +++ 1 file changed, 89 insertions(+), 75 deletions(-) diff --git a/Documentation/vm/pagemap.txt b/Documentation/vm/pagemap.txt index eafcefa..bd6d717

[PATCH 18/32] docs/vm: page_migration: convert to ReST format

2018-03-21 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/page_migration | 149 +--- 1 file changed, 77 insertions(+), 72 deletions(-) diff --git a/Documentation/vm/page_migration b/Documentation/vm/page_migration index 0478ae2..0

[PATCH 15/32] docs/vm: page_frags convert to ReST format

2018-03-21 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/page_frags | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/vm/page_frags b/Documentation/vm/page_frags index a671456..637cc49 100644 --- a/Documentation/vm/page_frags

[PATCH 16/32] docs/vm: numa: convert to ReST format

2018-03-21 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/numa | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/vm/numa b/Documentation/vm/numa index a31b85b..c81e7c5 100644 --- a/Documentation/vm/numa +++ b/Documentation/vm/numa @@ -1,6 +1,10 @@ +..

[PATCH 13/32] docs/vm: numa_memory_policy.txt: convert to ReST format

2018-03-21 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/numa_memory_policy.txt | 533 +--- 1 file changed, 283 insertions(+), 250 deletions(-) diff --git a/Documentation/vm/numa_memory_policy.txt b/Documentation/vm/numa_memory_policy.txt

[PATCH 14/32] docs/vm: overcommit-accounting: convert to ReST format

2018-03-21 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/overcommit-accounting | 107 ++--- 1 file changed, 57 insertions(+), 50 deletions(-) diff --git a/Documentation/vm/overcommit-accounting b/Documentation/vm/overcommit-accounting index c

[PATCH 12/32] docs/vm: mmu_notifier.txt: convert to ReST format

2018-03-21 Thread Mike Rapoport
Signed-off-by: Mike Rapoport <r...@linux.vnet.ibm.com> --- Documentation/vm/mmu_notifier.txt | 108 -- 1 file changed, 57 insertions(+), 51 deletions(-) diff --git a/Documentation/vm/mmu_notifier.txt b/Documentation/vm/mmu_notifier.txt index 23b4625..4

<    1   2   3   4   5   6   7   8   9   10   >