* [PATCH 0/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid()
@ 2020-03-20 4:54 Anshuman Khandual
2020-03-20 4:54 ` [PATCH 1/2] powerpc/mm: Drop platform defined pmd_mknotpresent() Anshuman Khandual
2020-03-29 13:42 ` [PATCH 0/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid() Anshuman Khandual
0 siblings, 2 replies; 4+ messages in thread
From: Anshuman Khandual @ 2020-03-20 4:54 UTC (permalink / raw)
To: linux-mm
Cc: Peter Zijlstra, Catalin Marinas, Dave Hansen, linux-kernel,
Paul Mackerras, H. Peter Anvin, Will Deacon, x86, Russell King,
Ingo Molnar, linux-snps-arc, Anshuman Khandual, Steven Rostedt,
Borislav Petkov, Andy Lutomirski, nouveau, Thomas Gleixner,
linux-arm-kernel, Thomas Bogendoerfer, Vineet Gupta, linux-mips,
Andrew Morton, linuxppc-dev
This series renames pmd_mknotpresent() as pmd_mknotvalid(). Before that it
drops an existing pmd_mknotpresent() definition from powerpc platform which
was never required as it defines it's pmdp_invalidate() through subscribing
__HAVE_ARCH_PMDP_INVALIDATE. This does not create any functional change.
This rename was suggested by Catalin during a previous discussion while we
were trying to change the THP helpers on arm64 platform for migration.
https://patchwork.kernel.org/patch/11019637/
This series is based on v5.6-rc6.
Boot tested on arm64 and x86 platforms.
Built tested on many other platforms including the ones changed here.
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: nouveau@lists.freedesktop.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-snps-arc@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mips@vger.kernel.org
Cc: x86@kernel.org
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
Anshuman Khandual (2):
powerpc/mm: Drop platform defined pmd_mknotpresent()
mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid()
arch/arc/include/asm/hugepage.h | 2 +-
arch/arm/include/asm/pgtable-3level.h | 2 +-
arch/arm64/include/asm/pgtable.h | 2 +-
arch/mips/include/asm/pgtable.h | 2 +-
arch/powerpc/include/asm/book3s/64/pgtable.h | 4 ----
arch/x86/include/asm/pgtable.h | 2 +-
arch/x86/mm/kmmio.c | 2 +-
mm/pgtable-generic.c | 2 +-
8 files changed, 7 insertions(+), 11 deletions(-)
--
2.20.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] powerpc/mm: Drop platform defined pmd_mknotpresent()
2020-03-20 4:54 [PATCH 0/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid() Anshuman Khandual
@ 2020-03-20 4:54 ` Anshuman Khandual
2020-03-29 13:42 ` [PATCH 0/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid() Anshuman Khandual
1 sibling, 0 replies; 4+ messages in thread
From: Anshuman Khandual @ 2020-03-20 4:54 UTC (permalink / raw)
To: linux-mm; +Cc: Anshuman Khandual, linux-kernel, Paul Mackerras, linuxppc-dev
Platform needs to define pmd_mknotpresent() for generic pmdp_invalidate()
only when __HAVE_ARCH_PMDP_INVALIDATE is not subscribed. Otherwise platform
specific pmd_mknotpresent() is not required. Hence just drop it.
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
---
arch/powerpc/include/asm/book3s/64/pgtable.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/arch/powerpc/include/asm/book3s/64/pgtable.h b/arch/powerpc/include/asm/book3s/64/pgtable.h
index 201a69e6a355..5d4bc19c2a3c 100644
--- a/arch/powerpc/include/asm/book3s/64/pgtable.h
+++ b/arch/powerpc/include/asm/book3s/64/pgtable.h
@@ -1168,10 +1168,6 @@ static inline int pmd_large(pmd_t pmd)
return !!(pmd_raw(pmd) & cpu_to_be64(_PAGE_PTE));
}
-static inline pmd_t pmd_mknotpresent(pmd_t pmd)
-{
- return __pmd(pmd_val(pmd) & ~_PAGE_PRESENT);
-}
/*
* For radix we should always find H_PAGE_HASHPTE zero. Hence
* the below will work for radix too
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid()
2020-03-20 4:54 [PATCH 0/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid() Anshuman Khandual
2020-03-20 4:54 ` [PATCH 1/2] powerpc/mm: Drop platform defined pmd_mknotpresent() Anshuman Khandual
@ 2020-03-29 13:42 ` Anshuman Khandual
2020-03-30 22:51 ` Andrew Morton
1 sibling, 1 reply; 4+ messages in thread
From: Anshuman Khandual @ 2020-03-29 13:42 UTC (permalink / raw)
To: linux-mm
Cc: Peter Zijlstra, Catalin Marinas, Dave Hansen, linux-kernel,
Paul Mackerras, H. Peter Anvin, Will Deacon, x86, Russell King,
Ingo Molnar, linux-snps-arc, Steven Rostedt, Borislav Petkov,
Andy Lutomirski, nouveau, Thomas Gleixner, linux-arm-kernel,
Thomas Bogendoerfer, Vineet Gupta, linux-mips, Andrew Morton,
linuxppc-dev
On 03/20/2020 10:24 AM, Anshuman Khandual wrote:
> This series renames pmd_mknotpresent() as pmd_mknotvalid(). Before that it
> drops an existing pmd_mknotpresent() definition from powerpc platform which
> was never required as it defines it's pmdp_invalidate() through subscribing
> __HAVE_ARCH_PMDP_INVALIDATE. This does not create any functional change.
>
> This rename was suggested by Catalin during a previous discussion while we
> were trying to change the THP helpers on arm64 platform for migration.
>
> https://patchwork.kernel.org/patch/11019637/
>
> This series is based on v5.6-rc6.
>
> Boot tested on arm64 and x86 platforms.
> Built tested on many other platforms including the ones changed here.
Gentle ping, any updates regarding this ?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid()
2020-03-29 13:42 ` [PATCH 0/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid() Anshuman Khandual
@ 2020-03-30 22:51 ` Andrew Morton
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2020-03-30 22:51 UTC (permalink / raw)
To: Anshuman Khandual
Cc: Catalin Marinas, Peter Zijlstra, Dave Hansen, linux-kernel,
linux-mm, Paul Mackerras, H. Peter Anvin, Will Deacon, x86,
Russell King, Ingo Molnar, nouveau, linux-snps-arc,
Steven Rostedt, Borislav Petkov, Andy Lutomirski, Thomas Gleixner,
linux-arm-kernel, Thomas Bogendoerfer, Vineet Gupta, linux-mips,
linuxppc-dev
On Sun, 29 Mar 2020 19:12:35 +0530 Anshuman Khandual <anshuman.khandual@arm.com> wrote:
>
>
> On 03/20/2020 10:24 AM, Anshuman Khandual wrote:
> > This series renames pmd_mknotpresent() as pmd_mknotvalid(). Before that it
> > drops an existing pmd_mknotpresent() definition from powerpc platform which
> > was never required as it defines it's pmdp_invalidate() through subscribing
> > __HAVE_ARCH_PMDP_INVALIDATE. This does not create any functional change.
> >
> > This rename was suggested by Catalin during a previous discussion while we
> > were trying to change the THP helpers on arm64 platform for migration.
> >
> > https://patchwork.kernel.org/patch/11019637/
> >
> > This series is based on v5.6-rc6.
> >
> > Boot tested on arm64 and x86 platforms.
> > Built tested on many other platforms including the ones changed here.
>
> Gentle ping, any updates regarding this ?
We're in the merge window so I have parked this for consideration after
-rc1.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-03-30 22:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-20 4:54 [PATCH 0/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid() Anshuman Khandual
2020-03-20 4:54 ` [PATCH 1/2] powerpc/mm: Drop platform defined pmd_mknotpresent() Anshuman Khandual
2020-03-29 13:42 ` [PATCH 0/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid() Anshuman Khandual
2020-03-30 22:51 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).