[PATCH 4/8] input: i8042: remove support for 8042-unicore32io

2020-06-23 Thread Mike Rapoport
From: Mike Rapoport The unicore32 port is removed from the kernel. There is no point to keep stale definitions to support this architecture. Signed-off-by: Mike Rapoport --- MAINTAINERS | 1 - drivers/input/serio/i8042-unicore32io.h | 70

[PATCH 6/8] video: fbdev: remove fb-puv3 driver

2020-06-23 Thread Mike Rapoport
From: Mike Rapoport The unicore32 port is removed from the kernel. There is no point to keep stale fbdev driver for this architecture. Signed-off-by: Mike Rapoport --- MAINTAINERS | 1 - drivers/video/fbdev/Kconfig | 11 - drivers/video/fbdev/Makefile | 1 - drivers

[PATCH 2/8] cpufreq: remove unicore32 driver

2020-06-23 Thread Mike Rapoport
From: Mike Rapoport The unicore32 port is removed from the kernel. There is no point to keep stale cpufreq driver for this architecture. Signed-off-by: Mike Rapoport --- drivers/cpufreq/Makefile | 1 - drivers/cpufreq/unicore2-cpufreq.c | 76 -- 2 files

[PATCH 0/8] remove unicore32 support

2020-06-23 Thread Mike Rapoport
From: Mike Rapoport Hi, The unicore32 port do not seem maintained for a long time now, there is no upstream toolchain that can create unicore32 binaries and all the links to prebuilt toolchains for unicore32 are dead. Even compilers that were available are not supported by the kernel anymore

[PATCH 5/8] pwm: remove pwm-puv3 driver

2020-06-23 Thread Mike Rapoport
From: Mike Rapoport The unicore32 port is removed from the kernel. There is no point to keep stale PWM driver for this architecture. Signed-off-by: Mike Rapoport --- drivers/pwm/Kconfig| 9 --- drivers/pwm/Makefile | 1 - drivers/pwm/pwm-puv3.c | 150

Re: [PATCH v1 2/2] mm/page_alloc: drop nr_free_pagecache_pages()

2020-06-21 Thread Mike Rapoport
c: Johannes Weiner > Cc: Michal Hocko > Cc: Minchan Kim > Cc: Huang Ying > Cc: Wei Yang > Signed-off-by: David Hildenbrand Reviewed-by: Mike Rapoport > --- > include/linux/swap.h | 1 - > mm/page_alloc.c | 16 ++-- > 2 files changed, 2 insertions(

Re: [PATCH v1 1/2] mm: drop vm_total_pages

2020-06-21 Thread Mike Rapoport
se a local variable in > build_all_zonelists() instead and drop the local variable. Nit: ^ global > Cc: Andrew Morton > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: Huang Ying > Cc: Minchan Kim > Cc: Wei Yang > Signed-off-by: David Hildenbran

[PATCH] sched: fix build with GCC_PLUGIN_RANDSTRUCT

2020-06-20 Thread Mike Rapoport
From: Mike Rapoport Since the commit a148866489fb ("sched: Replace rq::wake_list") task_struct and CSD_TYPE_TTWU objects can be on the same queue and this requires that have "layout similar enough". This assumption is broken when CONFIG_GCC_PLUGIN_RANDSTRUCT is enabled

Re: [PATCH v6 00/19] The new cgroup slab memory controller

2020-06-18 Thread Mike Rapoport
Hi Roman, On Mon, Jun 08, 2020 at 04:06:35PM -0700, Roman Gushchin wrote: > This is v6 of the slab cgroup controller rework. > > The patchset moves the accounting from the page level to the object > level. It allows to share slab pages between memory cgroups. > This leads to a significant win in

Re: [PATCH] mm: Move p?d_alloc_track to separate header file

2020-06-18 Thread Mike Rapoport
On Wed, Jun 17, 2020 at 06:12:26PM -0700, Andrew Morton wrote: > On Tue, 9 Jun 2020 14:05:33 +0200 Joerg Roedel wrote: > > > From: Joerg Roedel > > > > The functions are only used in two source files, so there is no need > > for them to be in the global header. Move them to the new > >

Re: [PATCH V3 (RESEND) 0/3] arm64: Enable vmemmap mapping from device memory

2020-06-18 Thread Mike Rapoport
) > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Mark Rutland > Cc: Paul Walmsley > Cc: Palmer Dabbelt > Cc: Tony Luck > Cc: Fenghua Yu > Cc: Dave Hansen > Cc: Andy Lutomirski > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: D

Re: [PATCH V3 4/4] Documentation/mm: Add descriptions for arch page table helpers

2020-06-17 Thread Mike Rapoport
st should > always remain in sync. > > Cc: Jonathan Corbet > Cc: Andrew Morton > Cc: Mike Rapoport > Cc: Vineet Gupta > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: Heiko C

[PATCH 2/2] m68k: mm: fix node memblock init

2020-06-17 Thread Mike Rapoport
From: Angelo Dureghello After pulling 5.7.0 (linux-next merge), mcf5441x mmu boot was hanging silently. memblock_add() seems not appropriate, since using MAX_NUMNODES as node id, while memblock_add_node() sets up memory for node id 0. Signed-off-by: Angelo Dureghello Signed-off-by: Mike

[PATCH 0/2] m68k: fixups for recent changes in memory initialization

2020-06-17 Thread Mike Rapoport
From: Mike Rapoport Hi, It's a followup to the Greg's [1] and Angelo's [2] reports of boot problems caused by the recent rework of the memory initialization. I'm resending Angelo's original patch for mcfmmu and my fix for the nommu variant. [1] https://lore.kernel.org/lkml/f53e68db-ed81-6ef6

[PATCH 1/2] m68k: nommu: register start of the memory with memblock

2020-06-17 Thread Mike Rapoport
From: Mike Rapoport The m68k nommu setup code didn't register the beginning of the physical memory with memblock because it was anyway occupied by the kernel. However, commit fa3354e4ea39 ("mm: free_area_init: use maximal zone PFNs rather than zone sizes") changed zones initializat

Re: [PATCH] powerpc/8xx: use pmd_off() to access a PMD entry in pte_update()

2020-06-16 Thread Mike Rapoport
On Wed, Jun 17, 2020 at 09:21:42AM +1000, Michael Ellerman wrote: > Andrew Morton writes: > > On Mon, 15 Jun 2020 12:22:29 +0300 Mike Rapoport wrote: > > > >> From: Mike Rapoport > >> > >> The pte_update() implementation for PPC_8xx unfolds page tab

[PATCH] powerpc/8xx: use pmd_off() to access a PMD entry in pte_update()

2020-06-15 Thread Mike Rapoport
From: Mike Rapoport The pte_update() implementation for PPC_8xx unfolds page table from the PGD level to access a PMD entry. Since 8xx has only 2-level page table this can be simplified with pmd_off() shortcut. Replace explicit unfolding with pmd_off() and drop defines of pgd_index

Re: [PATCH 04/21] mm: free_area_init: use maximal zone PFNs rather than zone sizes

2020-06-15 Thread Mike Rapoport
(reduced the spam list) On Mon, Jun 15, 2020 at 05:17:28PM +1000, Greg Ungerer wrote: > Hi Mike, > > On 15/6/20 4:22 pm, Mike Rapoport wrote: > > On Mon, Jun 15, 2020 at 01:53:42PM +1000, Greg Ungerer wrote: > > > From: Mike Rapoport > > > > Currently, a

Re: [PATCH 04/21] mm: free_area_init: use maximal zone PFNs rather than zone sizes

2020-06-15 Thread Mike Rapoport
Hi Greg, On Mon, Jun 15, 2020 at 01:53:42PM +1000, Greg Ungerer wrote: > Hi Mike, > > From: Mike Rapoport > > Currently, architectures that use free_area_init() to initialize memory map > > and node and zone structures need to calculate zone and hole sizes. We can > &g

Re: [PATCHv2 1/2] x86/mm: Fix boot with some memory above MAXMEM

2020-06-10 Thread Mike Rapoport
f-by: Kirill A. Shutemov > Reviewed-by: Dave Hansen > Cc: sta...@vger.kernel.org # v4.14 Reviewed-by: Mike Rapoport > --- > arch/x86/kernel/e820.c | 24 ++-- > 1 file changed, 22 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/kernel/e820.c b/

Re: [PATCHv2 2/2] x86/boot/KASLR: Fix boot with some memory above MAXMEM

2020-06-10 Thread Mike Rapoport
> mapping for such memory in the 4-level paging mode > > Teach KASLR to avoid memory regions above MAXMEM or truncate the region > if the end is above MAXMEM. > > Signed-off-by: Kirill A. Shutemov > Reviewed-by: Dave Hansen > Cc: sta...@vger.kernel.org # v4.14 Reviewed-

Re: [PATCH] mm/vmalloc: track which page-table levels were modified

2020-06-10 Thread Mike Rapoport
On Tue, Jun 09, 2020 at 07:15:42AM -0700, Guenter Roeck wrote: > On 6/9/20 5:10 AM, Joerg Roedel wrote: > > > I have stopped building unicore32 images since v4.19 since there is > no available compiler that is still supported by the kernel. I am > surprised that support for it has not been

Re: [PATCH] mm/vmalloc: track which page-table levels were modified

2020-06-09 Thread Mike Rapoport
Hi Joerg, On Tue, Jun 09, 2020 at 02:10:56PM +0200, Joerg Roedel wrote: > Hi Mike, > > On Fri, Jun 05, 2020 at 01:00:59PM +0300, Mike Rapoport wrote: > > We already have include/asm-generic/pgalloc.h, so maybe something like > > that patch below would fork. This is no

Re: [PATCH] mm: Move p?d_alloc_track to separate header file

2020-06-09 Thread Mike Rapoport
-off-by: Joerg Roedel Acked-by: Mike Rapoport > --- > include/linux/mm.h| 45 --- > include/linux/pgalloc-track.h | 51 +++ > lib/ioremap.c | 1 + > mm/vmalloc.c | 1 + >

Re: [PATCH] mm/vmalloc: track which page-table levels were modified

2020-06-05 Thread Mike Rapoport
On Fri, Jun 05, 2020 at 10:16:44AM +0200, Joerg Roedel wrote: > On Thu, Jun 04, 2020 at 02:12:14PM -0700, Linus Torvalds wrote: > > That said, the commentary about "why is p.._alloc_track() in such a > > core header file, when it's only used by two special cases" is > > probably still true

Re: [PATCH] mm: Fix pud_alloc_track()

2020-06-04 Thread Mike Rapoport
On Thu, Jun 04, 2020 at 09:44:46AM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > The pud_alloc_track() needs to do different checks based on whether > __ARCH_HAS_5LEVEL_HACK is defined, like it already does in > pud_alloc(). Otherwise it causes boot failures on PowerPC. > > Provide the

Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice

2020-06-04 Thread Mike Rapoport
code, the comment /* must be last! */ is stale... @Peter, @Thomas, can you comment please? >From e51d50ee6f4d1f446decf91c2c67230da14ff82c Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Thu, 4 Jun 2020 12:37:03 +0300 Subject: [PATCH] softirq: don't call lockdep_hardirq_exit() twice After com

Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice

2020-06-04 Thread Mike Rapoport
On Wed, Jun 03, 2020 at 11:22:26PM -0700, Ira Weiny wrote: > On Wed, Jun 03, 2020 at 04:44:17PM -0700, Guenter Roeck wrote: > > With linux-next on sparc I too see the spinlock issue; something like: > > ... > Starting syslogd: BUG: spinlock recursion on CPU#0, S01syslogd/139 > lock: 0xf53ef350,

Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice

2020-06-04 Thread Mike Rapoport
On Wed, Jun 03, 2020 at 04:44:17PM -0700, Guenter Roeck wrote: > On 6/3/20 2:14 PM, Ira Weiny wrote: > > On Wed, Jun 03, 2020 at 01:57:36PM -0700, Andrew Morton wrote: > >> On Thu, 21 May 2020 10:42:50 -0700 Ira Weiny wrote: > >> > > > > Actually it occurs to me that the patch

Re: [PATCH] mm/memblock: export max_pfn for kernel modules

2020-06-03 Thread Mike Rapoport
On Thu, Jun 04, 2020 at 12:11:32AM +0800, Miles Chen wrote: > max_pfn is uesd to get the highest pfn in the system. Drivers like > drivers/iommu/mtk_iommu.c checks max_pfn to see if it should enable > its "4GB mode". > > This patch exports the max_pfn symbol, so we can build the driver as > a

Re: [PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-06-01 Thread Mike Rapoport
On Thu, May 28, 2020 at 10:15:10AM -0500, Steve Wahl wrote: > On Thu, May 28, 2020 at 05:07:31PM +0800, Baoquan He wrote: > > On 05/26/20 at 01:49pm, David Hildenbrand wrote: > > > On 26.05.20 13:32, Mike Rapoport wrote: > > > > Hello Baoquan, > > > > &g

[tip: x86/cleanups] x86/mm: Drop deprecated DISCONTIGMEM support for 32-bit

2020-05-28 Thread tip-bot2 for Mike Rapoport
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 431732651cc16caebcd334b7b7476bfe0c4a2903 Gitweb: https://git.kernel.org/tip/431732651cc16caebcd334b7b7476bfe0c4a2903 Author:Mike Rapoport AuthorDate:Sun, 23 Feb 2020 11:43:22 +02:00

Re: [PATCH] x86: drop deprecated DISCONTIGMEM support for 32-bit

2020-05-27 Thread Mike Rapoport
Gentle ping... On Sun, Feb 23, 2020 at 11:43:22AM +0200, Mike Rapoport wrote: > From: Mike Rapoport > > The DISCONTIGMEM support was marked as deprecated in v5.2 and since there > were no complaints about it for almost 5 releases it can be completely > removed. > > Signed-

Re: [RFC 00/16] KVM protected memory extension

2020-05-27 Thread Mike Rapoport
On Wed, May 27, 2020 at 08:45:33AM -0700, Dave Hansen wrote: > On 5/26/20 4:38 AM, Mike Rapoport wrote: > > On Tue, May 26, 2020 at 01:16:14PM +0300, Liran Alon wrote: > >> On 26/05/2020 9:17, Mike Rapoport wrote: > >>> On Mon, May 25, 2020 at 04:47:18PM +0300, Lir

Re: [PATCH] sparc32: register memory occupied by kernel as memblock.memory

2020-05-26 Thread Mike Rapoport
Andrew, David, Any comments on this? On Sun, May 24, 2020 at 07:53:58PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > sparc32 never registered the memory occupied by the kernel image with > memblock_add() and it only reserved this memory with meblock_reserve(). >

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-26 Thread Mike Rapoport
On Tue, May 26, 2020 at 09:18:54AM -0700, Guenter Roeck wrote: > On 5/26/20 7:01 AM, Will Deacon wrote: > > On Tue, May 26, 2020 at 02:26:35PM +0100, Will Deacon wrote: > >> On Sun, May 24, 2020 at 03:32:56PM +0300, Mike Rapoport wrote: > >>> On Thu, May 21, 2020 at 0

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-26 Thread Mike Rapoport
On Tue, May 26, 2020 at 03:01:27PM +0100, Will Deacon wrote: > On Tue, May 26, 2020 at 02:26:35PM +0100, Will Deacon wrote: > > On Sun, May 24, 2020 at 03:32:56PM +0300, Mike Rapoport wrote: > > > On Thu, May 21, 2020 at 04:02:11PM -0700, Guenter Roeck wrote: > > >

Re: [RFC 00/16] KVM protected memory extension

2020-05-26 Thread Mike Rapoport
On Tue, May 26, 2020 at 01:16:14PM +0300, Liran Alon wrote: > > On 26/05/2020 9:17, Mike Rapoport wrote: > > On Mon, May 25, 2020 at 04:47:18PM +0300, Liran Alon wrote: > > > On 22/05/2020 15:51, Kirill A. Shutemov wrote: > > > > > Out of curiosity, do we act

Re: [PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-05-26 Thread Mike Rapoport
Hello Baoquan, On Tue, May 26, 2020 at 04:45:43PM +0800, Baoquan He wrote: > On 05/22/20 at 05:20pm, Mike Rapoport wrote: > > Hello Baoquan, > > > > On Fri, May 22, 2020 at 03:25:24PM +0800, Baoquan He wrote: > > > On 05/22/20 at 03:01pm, Baoquan He wrote:

Re: [PATCH] mm/gup: correct pin_user_pages.rst location

2020-05-26 Thread Mike Rapoport
/gup: introduce pin_user_pages*() and FOLL_PIN") > Signed-off-by: Vitaly Kuznetsov Acked-by: Mike Rapoport > --- > include/linux/mm.h | 4 ++-- > mm/gup.c | 18 +- > 2 files changed, 11 insertions(+), 11 deletions(-) > > diff --git a/incl

Re: [RFC 00/16] KVM protected memory extension

2020-05-26 Thread Mike Rapoport
On Mon, May 25, 2020 at 04:47:18PM +0300, Liran Alon wrote: > > On 22/05/2020 15:51, Kirill A. Shutemov wrote: > > Furthermore, I would like to point out that just unmapping guest data from > kernel direct-map is not sufficient to prevent all > guest-to-guest info-leaks via a kernel memory

Re: [RFC 16/16] KVM: Unmap protected pages from direct mapping

2020-05-26 Thread Mike Rapoport
On Fri, May 22, 2020 at 03:52:14PM +0300, Kirill A. Shutemov wrote: > If the protected memory feature enabled, unmap guest memory from > kernel's direct mappings. > > Migration and KSM is disabled for protected memory as it would require a > special treatment. > > Signed-off-by: Kirill A.

Re: [RFC 07/16] KVM: mm: Introduce VM_KVM_PROTECTED

2020-05-26 Thread Mike Rapoport
On Fri, May 22, 2020 at 03:52:05PM +0300, Kirill A. Shutemov wrote: > The new VMA flag that indicate a VMA that is not accessible to userspace > but usable by kernel with GUP if FOLL_KVM is specified. > > The FOLL_KVM is only used in the KVM code. The code has to know how to > deal with such

Re: [RFC 10/16] KVM: x86: Enabled protected memory extension

2020-05-26 Thread Mike Rapoport
On Fri, May 22, 2020 at 03:52:08PM +0300, Kirill A. Shutemov wrote: > Wire up hypercalls for the feature and define VM_KVM_PROTECTED. > > Signed-off-by: Kirill A. Shutemov > --- > arch/x86/Kconfig | 1 + > arch/x86/kvm/cpuid.c | 3 +++ > arch/x86/kvm/x86.c | 9 + >

Re: [RFC 06/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory

2020-05-26 Thread Mike Rapoport
On Fri, May 22, 2020 at 03:52:04PM +0300, Kirill A. Shutemov wrote: > New helpers copy_from_guest()/copy_to_guest() to be used if KVM memory > protection feature is enabled. > > Signed-off-by: Kirill A. Shutemov > --- > include/linux/kvm_host.h | 4 +++ > virt/kvm/kvm_main.c | 78

Re: [PATCH] x86/mm: Fix boot with some memory above MAXMEM

2020-05-25 Thread Mike Rapoport
On Mon, May 25, 2020 at 06:08:20PM +0300, Kirill A. Shutemov wrote: > On Mon, May 25, 2020 at 05:59:43PM +0300, Mike Rapoport wrote: > > On Mon, May 25, 2020 at 07:49:02AM +0300, Kirill A. Shutemov wrote: > > > On Mon, May 11, 2020 at 10:17:21PM +0300, Kirill A. Shutemov wrote:

Re: [PATCH] x86/mm: Fix boot with some memory above MAXMEM

2020-05-25 Thread Mike Rapoport
On Mon, May 25, 2020 at 07:49:02AM +0300, Kirill A. Shutemov wrote: > On Mon, May 11, 2020 at 10:17:21PM +0300, Kirill A. Shutemov wrote: > > A 5-level paging capable machine can have memory above 46-bit in the > > physical address space. This memory is only addressable in the 5-level > > paging

Re: 379706875d ("x86/mm: simplify init_trampoline() and .."): BUG: kernel reboot-without-warning in boot stage

2020-05-25 Thread Mike Rapoport
On Mon, May 25, 2020 at 08:21:58AM +0800, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://github.com/0day-ci/linux/commits/Mike-Rapoport/mm-consolidate-definitions-of-page-table-accessors/20200513-025

Re: [PATCH] mm/memblock:Do not retry a range that has already been checked

2020-05-24 Thread Mike Rapoport
On Sun, May 24, 2020 at 11:16:40PM +0900, daeroro wrote: > The range that has already been checked > don't have to be checked in a second attempt. The first attempts tries to find free memory in the interval [min_addr, max_addr) and the second attempt does not care about min_addr and looks for

[PATCH] sparc32: register memory occupied by kernel as memblock.memory

2020-05-24 Thread Mike Rapoport
From: Mike Rapoport sparc32 never registered the memory occupied by the kernel image with memblock_add() and it only reserved this memory with meblock_reserve(). With openbios as system firmware, the memory occupied by the kernel is reserved in openbios and removed from mem.available. The prom

[PATCH 1/2] sparc32: use PUD rather than PGD to get PMD in srmmu_inherit_prom_mappings()

2020-05-24 Thread Mike Rapoport
From: Mike Rapoport This is a misprint in the page table traversal in srmmu_inherit_prom_mappings`() function which accessed a PMD entry using PGD rather than PUD. Since sparc32 has only 3 page table levels, the PGD and PUD are essentially the same and usage of __nocache_fix() removed the type

[PATCH 2/2] sparc32: srmmu: improve type safety of __nocache_fix()

2020-05-24 Thread Mike Rapoport
From: Mike Rapoport The __nocache_fix(VADDR) macro is used to add an offset for pointers and its "return type" is 'void *'. We can do better and keep the type information with simply by casting the return value to (__typeof__(VADDR)). This will ".. show when those pgd/p4d/pud p

[PATCH 0/2] sparc32: srmmu: improve type safety of __nocache_fix()

2020-05-24 Thread Mike Rapoport
From: Mike Rapoport Hi, As discussed at [1] the __nocache_fix() macro in sparc's SRMMU can be made type safe and so the compiler will yell anout misuse of pXd pointers for which the __nocache_fix() is primarily used. The first patch is an fix of such misuse that I've discovered after adding

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-24 Thread Mike Rapoport
On Thu, May 21, 2020 at 04:02:11PM -0700, Guenter Roeck wrote: > On 5/20/20 12:51 PM, Mike Rapoport wrote: > > On Wed, May 20, 2020 at 12:03:31PM -0700, Guenter Roeck wrote: > >> On 5/20/20 10:03 AM, Mike Rapoport wrote: > >>> On Mon, May 18, 2020 at 09:37

Re: [PATCH 0/7] Record the mm_struct in the page table pages

2020-05-24 Thread Mike Rapoport
On Tue, Apr 28, 2020 at 06:51:26PM -0700, Matthew Wilcox wrote: > On Wed, Apr 29, 2020 at 03:26:24AM +0300, Kirill A. Shutemov wrote: > > On Tue, Apr 28, 2020 at 12:44:42PM -0700, Matthew Wilcox wrote: > > > From: "Matthew Wilcox (Oracle)" > > > > > > Pages which are in use as page tables have

Re: [PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-05-22 Thread Mike Rapoport
Hello Baoquan, On Fri, May 22, 2020 at 03:25:24PM +0800, Baoquan He wrote: > On 05/22/20 at 03:01pm, Baoquan He wrote: > > > > So let's add these unavailable ranges into memblock and reserve them > > in init_unavailable_range() instead. With this change, they will be added > > into appropriate

Re: [PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-05-21 Thread Mike Rapoport
On Thu, May 21, 2020 at 11:52:25PM +0800, Baoquan He wrote: > On 05/21/20 at 12:26pm, Mike Rapoport wrote: > > > For this kind of e820 reserved range, it won't be added to memblock > > > allocator. > > > However, init_unavailable_mem() will initialize to add them int

Re: [PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-05-21 Thread Mike Rapoport
On Thu, May 21, 2020 at 10:36:06AM +0100, Mel Gorman wrote: > On Thu, May 21, 2020 at 09:44:07AM +0800, Baoquan He wrote: > > After investigation, it turns out that this is introduced by commit of > > linux-next: commit f6edbdb71877 ("mm: memmap_init: iterate over memblock > > regions rather that

Re: [PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-05-21 Thread Mike Rapoport
Hi Baoquan, On Thu, May 21, 2020 at 09:44:07AM +0800, Baoquan He wrote: > Qian reported that a crash happened in compaction. > http://lkml.kernel.org/r/8c537eb7-85ee-4dcf-943e-3cc0ed0df...@lca.pw > V> LTP: starting swapping01 (swapping01 -i 5) > page:eaaa refcount:1 mapcount:0

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-20 Thread Mike Rapoport
On Wed, May 20, 2020 at 12:03:31PM -0700, Guenter Roeck wrote: > On 5/20/20 10:03 AM, Mike Rapoport wrote: > > On Mon, May 18, 2020 at 09:37:15AM +0100, Will Deacon wrote: > >> On Sat, May 16, 2020 at 05:07:50PM -0700, Guenter Roeck wrote: > >>> On Sat, May 16, 202

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-20 Thread Mike Rapoport
On Mon, May 18, 2020 at 09:37:15AM +0100, Will Deacon wrote: > On Sat, May 16, 2020 at 05:07:50PM -0700, Guenter Roeck wrote: > > On Sat, May 16, 2020 at 05:00:50PM -0700, Guenter Roeck wrote: > > > On Mon, May 11, 2020 at 09:41:36PM +0100, Will Deacon wrote: > > > > Now that the page table

Re: arch/sparc/mm/srmmu.c:300:9: error: variable 'pud' set but not used

2020-05-20 Thread Mike Rapoport
-set-variable] > 300 | pud_t *pud; > | ^~~ Here's the fix vs v5.7-rc6-mmots-2020-05-19-21-52: >From 192848144e61e3ebacd34598386e4fa773d19ae9 Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Wed, 20 May 2020 15:39:22 +0300 Subject: [PATCH] sparc32: use PUD rather than PGD to ge

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-18 Thread Mike Rapoport
On Mon, May 18, 2020 at 11:09:46AM -0700, Guenter Roeck wrote: > On 5/18/20 7:23 AM, Mike Rapoport wrote: > > Below is another set of bisect results, from next-20200518. It points to one > of your commits. This is for microblaze (big endian) boot failures. The microblaze

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-18 Thread Mike Rapoport
On Mon, May 18, 2020 at 02:48:18AM -0700, Guenter Roeck wrote: > On 5/18/20 1:37 AM, Will Deacon wrote: > > On Sat, May 16, 2020 at 05:07:50PM -0700, Guenter Roeck wrote: > >> On Sat, May 16, 2020 at 05:00:50PM -0700, Guenter Roeck wrote: > >>> On Mon, May 11, 2020 at 09:41:36PM +0100, Will Deacon

Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables

2020-05-18 Thread Mike Rapoport
On Mon, May 18, 2020 at 09:37:15AM +0100, Will Deacon wrote: > On Sat, May 16, 2020 at 05:07:50PM -0700, Guenter Roeck wrote: > > On Sat, May 16, 2020 at 05:00:50PM -0700, Guenter Roeck wrote: > > > On Mon, May 11, 2020 at 09:41:36PM +0100, Will Deacon wrote: > > > > Now that the page table

Re: [PATCH v4 03/14] arm64: add support for folded p4d page tables

2020-05-16 Thread Mike Rapoport
On Fri, May 15, 2020 at 11:40:12AM -0700, Andrew Morton wrote: > On Tue, 14 Apr 2020 18:34:44 +0300 Mike Rapoport wrote: > > > Implement primitives necessary for the 4th level folding, add walks of p4d > > level where appropriate, replace 5level-fixup.h with pgtable-nop4

Re: [PATCH] MIPS: update tlb even if pte entry has no change

2020-05-14 Thread Mike Rapoport
On Thu, May 14, 2020 at 10:17:57AM +0800, Bibo Mao wrote: > From: bibo mao > > If there are two threads reading the same memory and tlb miss happens, > one thread fills pte entry, the other reads new pte value during page fault > handling. PTE value may be updated before page faul, so the

Re: [RFC v4][PATCH part-2 00/13] ASI - Part II (Decorated Page-Table)

2020-05-14 Thread Mike Rapoport
Hello Alexandre, On Mon, May 04, 2020 at 04:57:57PM +0200, Alexandre Chartre wrote: > This is part II of ASI RFC v4. Please refer to the cover letter of > part I for an overview the ASI RFC. > > > https://lore.kernel.org/lkml/20200504144939.11318-1-alexandre.char...@oracle.com/ > > This part

Re: [PATCHv3 42/50] xtensa: Add loglvl to show_trace()

2020-05-11 Thread Mike Rapoport
Hi, On Sat, Apr 18, 2020 at 09:19:36PM +0100, Dmitry Safonov wrote: > Currently, the log-level of show_stack() depends on a platform > realization. It creates situations where the headers are printed with > lower log level or higher than the stacktrace (depending on > a platform or user). > >

Re: [PATCH v4 02/14] arm: add support for folded p4d page tables

2020-05-11 Thread Mike Rapoport
Hi Marek, On Mon, May 11, 2020 at 08:36:41AM +0200, Marek Szyprowski wrote: > Hi Mike, > > On 08.05.2020 19:42, Mike Rapoport wrote: > > On Fri, May 08, 2020 at 08:53:27AM +0200, Marek Szyprowski wrote: > >> On 07.05.2020 18:11, Mike Rapoport wrote: > >>> On T

Re: [RFC 14/43] mm: memblock: PKRAM: prevent memblock resize from clobbering preserved pages

2020-05-11 Thread Mike Rapoport
On Wed, May 06, 2020 at 05:41:40PM -0700, Anthony Yznaga wrote: > The size of the memblock reserved array may be increased while preserved > pages are being reserved. When this happens, preserved pages that have > not yet been reserved are at risk for being clobbered when space for a > larger

Re: [PATCH v4 02/14] arm: add support for folded p4d page tables

2020-05-08 Thread Mike Rapoport
On Fri, May 08, 2020 at 08:53:27AM +0200, Marek Szyprowski wrote: > Hi Mike, > > On 07.05.2020 18:11, Mike Rapoport wrote: > > On Thu, May 07, 2020 at 02:16:56PM +0200, Marek Szyprowski wrote: > >> On 14.04.2020 17:34, Mike Rapoport wrote: > >>> From:

Re: [PATCH v4 02/14] arm: add support for folded p4d page tables

2020-05-07 Thread Mike Rapoport
Hi, On Thu, May 07, 2020 at 02:16:56PM +0200, Marek Szyprowski wrote: > Hi > > On 14.04.2020 17:34, Mike Rapoport wrote: > > From: Mike Rapoport > > > > Implement primitives necessary for the 4th level folding, add walks of p4d > > level where appropriate,

Re: linux-next: Tree for May 4 --> mm: free_area_init: allow defining max_zone_pfn in descending order does increase memory use

2020-05-04 Thread Mike Rapoport
Ho Christian, On Mon, May 04, 2020 at 04:50:06PM +0200, Christian Borntraeger wrote: > Mike, > commit 51a2f644fd020d5f090044825c388444d11029d ("mm: free_area_init: allow > defining max_zone_pfn in descending order") > does increase the memory use on s390 (e.g. 700 MB vs.1.8 GB). > > Something

Re: [PATCH 07/14] docs: add IRQ documentation at the core-api book

2020-05-02 Thread Mike Rapoport
On Sat, May 02, 2020 at 12:16:41PM +0200, Mauro Carvalho Chehab wrote: > Em Sat, 2 May 2020 10:41:33 +0300 > Mike Rapoport escreveu: > > > Hello Mauro, > > > > On Fri, May 01, 2020 at 05:37:51PM +0200, Mauro Carvalho Chehab wrote: > > > There are 4 IRQ doc

Re: [PATCH 11/14] docs: move other kAPI documents to core-api

2020-05-02 Thread Mike Rapoport
Hello Mauro, On Fri, May 01, 2020 at 05:37:55PM +0200, Mauro Carvalho Chehab wrote: > There are a number of random documents that seem to be > describing some aspects of the core-api. Move them to such > directory, adding them at the core-api/index.rst file. > > Signed-off-by: Mauro Carvalho

Re: [PATCH 07/14] docs: add IRQ documentation at the core-api book

2020-05-02 Thread Mike Rapoport
Hello Mauro, On Fri, May 01, 2020 at 05:37:51PM +0200, Mauro Carvalho Chehab wrote: > There are 4 IRQ documentation files under Documentation/*.txt. > > Move them into a new directory (core-api/irq) and add a new > index file for it. Just curious, why IRQ docs got their subdirectory and DMA

Re: [PATCH] initramfs: fix another section mismatch

2020-04-30 Thread Mike Rapoport
; Add the missing __init annotations. > > Fixes: 4ada1e810038 ("initramfs: fix populate_initrd_image() section > mismatch") > Fixes: 23091e287355 ("initramfs: cleanup initrd freeing") > Signed-off-by: Arnd Bergmann Acked-by: Mike Rapoport > --- > init/init

Re: [PATCH 3/7] Add a UFFD_SECURE flag to the userfaultfd API.

2019-10-23 Thread Mike Rapoport
On Wed, Oct 23, 2019 at 10:29:20AM +0300, Cyrill Gorcunov wrote: > On Tue, Oct 22, 2019 at 09:11:04PM -0700, Andy Lutomirski wrote: > > Trying again. It looks like I used the wrong address for Pavel. > > Thanks for CC Andy! I must confess I didn't dive into userfaultfd engine > personally but

Re: [PATCH v3] ARC: mm: remove __ARCH_USE_5LEVEL_HACK

2019-10-22 Thread Mike Rapoport
d new delta > | free_pgd_range 546 656+110 > | p4d_clear_bad 2 20 +18 > | Total: Before=4137148, After=4137276, chg 0.00% > > Cc: Kirill A. Shutemov > Signed-off-by: Vineet Gupta Acked-by: Mike Rapoport

Re: [PATCH v4] arm64: use generic free_initrd_mem()

2019-10-15 Thread Mike Rapoport
On October 15, 2019 2:46:59 AM GMT+02:00, Will Deacon wrote: >On Sat, Sep 28, 2019 at 11:02:26AM +0300, Mike Rapoport wrote: >> From: Mike Rapoport >> >> arm64 calls memblock_free() for the initrd area in its implementation >of >> free_initrd_mem(), but this call

Re: [PATCH] mm: memblock: do not enforce current limit for memblock_phys* family

2019-10-15 Thread Mike Rapoport
On October 15, 2019 12:44:23 AM GMT+02:00, Andrew Morton wrote: >On Sun, 13 Oct 2019 00:31:01 +0300 Mike Rapoport >wrote: > >> Until commit 92d12f9544b7 ("memblock: refactor internal allocation >> functions") the maximal address for memblock allocations was force

[PATCH] mm: memblock: do not enforce current limit for memblock_phys* family

2019-10-12 Thread Mike Rapoport
From: Mike Rapoport Until commit 92d12f9544b7 ("memblock: refactor internal allocation functions") the maximal address for memblock allocations was forced to memblock.current_limit only for the allocation functions returning virtual address. The changes introduced by that commit moved

Re: [PATCH v2 00/21] Refine memblock API

2019-10-04 Thread Mike Rapoport
On Fri, Oct 04, 2019 at 10:27:27AM +0100, Russell King - ARM Linux admin wrote: > On Thu, Oct 03, 2019 at 02:30:10PM +0300, Mike Rapoport wrote: > > On Thu, Oct 03, 2019 at 09:49:14AM +0100, Russell King - ARM Linux admin > > wrote: > > > On Thu, Oct 03, 2019 at 08:34:5

Re: [PATCH v2 00/21] Refine memblock API

2019-10-04 Thread Mike Rapoport
On Fri, Oct 04, 2019 at 03:21:03PM +0200, Lucas Stach wrote: > Am Freitag, den 04.10.2019, 10:27 +0100 schrieb Russell King - ARM > Linux admin: > > On Thu, Oct 03, 2019 at 02:30:10PM +0300, Mike Rapoport wrote: > > > On Thu, Oct 03, 2019 at 09:49:14AM +0100, Russell King -

Re: [PATCH v2 00/21] Refine memblock API

2019-10-03 Thread Mike Rapoport
On Thu, Oct 03, 2019 at 09:49:14AM +0100, Russell King - ARM Linux admin wrote: > On Thu, Oct 03, 2019 at 08:34:52AM +0300, Mike Rapoport wrote: > > (trimmed the CC) > > > > On Wed, Oct 02, 2019 at 06:14:11AM -0500, Adam Ford wrote: > > > On Wed, Oct 2, 2019 a

Re: [PATCH v2 00/21] Refine memblock API

2019-10-02 Thread Mike Rapoport
(trimmed the CC) On Wed, Oct 02, 2019 at 06:14:11AM -0500, Adam Ford wrote: > On Wed, Oct 2, 2019 at 2:36 AM Mike Rapoport wrote: > > > > Before the patch: > > # cat /sys/kernel/debug/memblock/memory >0: 0x1000..0x8fff > # cat /sys/kernel/debug/memblock/

Re: [PATCH v2] mips: sgi-ip27: switch from DISCONTIGMEM to SPARSEMEM

2019-10-02 Thread Mike Rapoport
Hi, Any updates on this? On Mon, Sep 16, 2019 at 02:13:10PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > The memory initialization of SGI-IP27 is already half-way to support > SPARSEMEM. It only had free_bootmem_with_active_regions() left-overs &

[PATCH v4] arm64: use generic free_initrd_mem()

2019-09-28 Thread Mike Rapoport
From: Mike Rapoport arm64 calls memblock_free() for the initrd area in its implementation of free_initrd_mem(), but this call has no actual effect that late in the boot process. By the time initrd is freed, all the reserved memory is managed by the page allocator and the memblock.reserved

Re: [PATCH v3] arm64: use generic free_initrd_mem()

2019-09-28 Thread Mike Rapoport
On Fri, Sep 27, 2019 at 11:50:42AM +0530, Anshuman Khandual wrote: > > On 09/25/2019 10:39 AM, Mike Rapoport wrote: > > From: Mike Rapoport > > > > arm64 calls memblock_free() for the initrd area in its implementation of > > free_initrd_mem(), but this call

Re: [PATCH V3] mm: Support memblock alloc on the exact node for sparse_buffer_init()

2019-09-25 Thread Mike Rapoport
t will fall back to allocate > small block memory base section. > > Signed-off-by: Yunfeng Ye One nit below, otherwise Reviewed-by: Mike Rapoport > --- > v2 -> v3: > - use "bool exact_nid" instead of "int need_exact_nid" > - remove the comment "

Re: [PATCH v2 00/21] Refine memblock API

2019-09-25 Thread Mike Rapoport
(updated CC) Hi, On Tue, Sep 24, 2019 at 12:52:35PM -0500, Adam Ford wrote: > On Mon, Jan 21, 2019 at 2:05 AM Mike Rapoport wrote: > > > > Hi, > > > > v2 changes: > > * replace some more %lu with %zu > > * remove panics where they are not needed in

Re: [PATCH V2] mm: Support memblock alloc on the exact node for sparse_buffer_init()

2019-09-25 Thread Mike Rapoport
On Tue, Sep 24, 2019 at 04:09:32PM +0800, Yunfeng Ye wrote: > sparse_buffer_init() use memblock_alloc_try_nid_raw() to allocate memory > for page management structure, if memory allocation fails from specified > node, it will fall back to allocate from other nodes. > > Normally, the page

[PATCH v3] arm64: use generic free_initrd_mem()

2019-09-24 Thread Mike Rapoport
From: Mike Rapoport arm64 calls memblock_free() for the initrd area in its implementation of free_initrd_mem(), but this call has no actual effect that late in the boot process. By the time initrd is freed, all the reserved memory is managed by the page allocator and the memblock.reserved

Re: [PATCH V3 0/2] mm/debug: Add tests for architecture exported page table helpers

2019-09-24 Thread Mike Rapoport
On Tue, Sep 24, 2019 at 02:51:01PM +0300, Kirill A. Shutemov wrote: > On Fri, Sep 20, 2019 at 12:03:21PM +0530, Anshuman Khandual wrote: > > This series adds a test validation for architecture exported page table > > helpers. Patch in the series adds basic transformation tests at various > >

[PATCH v2] arm64: use generic free_initrd_mem()

2019-09-24 Thread Mike Rapoport
From: Mike Rapoport arm64 calls memblock_free() for the initrd area in its implementation of free_initrd_mem(), but this call has no actual effect that late in the boot process. By the time initrd is freed, all the reserved memory is managed by the page allocator and the memblock.reserved

Re: [RFC patch 01/15] entry: Provide generic syscall entry functionality

2019-09-23 Thread Mike Rapoport
On Thu, Sep 19, 2019 at 05:03:15PM +0200, Thomas Gleixner wrote: > On syscall entry certain work needs to be done conditionally like tracing, > seccomp etc. This code is duplicated in all architectures. > > Provide a generic version. > > Signed-off-by: Thomas Gleixner > --- > arch/Kconfig

Re: [PATCH] mm: Support memblock alloc on the exact node for sparse_buffer_init()

2019-09-19 Thread Mike Rapoport
On Thu, Sep 19, 2019 at 03:14:22PM +0800, Yunfeng Ye wrote: > > > On 2019/9/19 12:47, Mike Rapoport wrote: > > Hi, > > > > On Wed, Sep 18, 2019 at 12:22:29PM +0800, Yunfeng Ye wrote: > >> Currently, when memblock_find_in_range_node() fail on the exact

Re: [PATCH] mm: Support memblock alloc on the exact node for sparse_buffer_init()

2019-09-18 Thread Mike Rapoport
Hi, On Wed, Sep 18, 2019 at 12:22:29PM +0800, Yunfeng Ye wrote: > Currently, when memblock_find_in_range_node() fail on the exact node, it > will use %NUMA_NO_NODE to find memblock from other nodes. At present, > the work is good, but when the large memory is insufficient and the > small memory

Re: [PATCH] arm64: use generic free_initrd_mem()

2019-09-16 Thread Mike Rapoport
(added linux-arch) On Mon, Sep 16, 2019 at 08:23:29AM -0400, Laura Abbott wrote: > On 9/16/19 8:21 AM, Mike Rapoport wrote: > >From: Mike Rapoport > > > >arm64 calls memblock_free() for the initrd area in its implementation of > >free_initrd_mem(), but this call has

<    7   8   9   10   11   12   13   14   15   16   >