All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anshuman Khandual <anshuman.khandual@arm.com>
To: Vineet Gupta <Vineet.Gupta1@synopsys.com>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>
Cc: "christophe.leroy@c-s.fr" <christophe.leroy@c-s.fr>,
	"ziy@nvidia.com" <ziy@nvidia.com>,
	"gerald.schaefer@de.ibm.com" <gerald.schaefer@de.ibm.com>,
	Jonathan Corbet <corbet@lwn.net>,
	Andrew Morton <akpm@linux-foundation.org>,
	Mike Rapoport <rppt@linux.ibm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Paul Mackerras <paulus@samba.org>,
	Michael Ellerman <mpe@ellerman.id.au>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	Vasily Gorbik <gor@linux.ibm.com>,
	Christian Borntraeger <borntraeger@de.ibm.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	"Kirill A . Shutemov" <kirill@shutemov.name>,
	Paul Walmsley <paul.walmsley@synopsys.com>,
	arcml <linux-snps-arc@lists.infradead.org>
Subject: Re: [PATCH V3 0/4] mm/debug_vm_pgtable: Add some more tests
Date: Fri, 3 Jul 2020 09:29:05 +0530	[thread overview]
Message-ID: <fd18f4d3-4eba-6306-f42f-dad2bb72746d@arm.com> (raw)
In-Reply-To: <9009877d-6f59-a4d5-1c7c-29719dc50e5c@synopsys.com>



On 07/01/2020 03:02 AM, Vineet Gupta wrote:
> On 6/29/20 8:53 PM, Anshuman Khandual wrote:
>>
>>
>> On 06/24/2020 08:43 AM, Anshuman Khandual wrote:
>>>
>>>
>>> On 06/15/2020 09:07 AM, Anshuman Khandual wrote:
>>>> This series adds some more arch page table helper validation tests which
>>>> are related to core and advanced memory functions. This also creates a
>>>> documentation, enlisting expected semantics for all page table helpers as
>>>> suggested by Mike Rapoport previously (https://lkml.org/lkml/2020/1/30/40).
>>>>
>>>> There are many TRANSPARENT_HUGEPAGE and ARCH_HAS_TRANSPARENT_HUGEPAGE_PUD
>>>> ifdefs scattered across the test. But consolidating all the fallback stubs
>>>> is not very straight forward because ARCH_HAS_TRANSPARENT_HUGEPAGE_PUD is
>>>> not explicitly dependent on ARCH_HAS_TRANSPARENT_HUGEPAGE.
>>>>
>>>> Tested on arm64, x86 platforms but only build tested on all other enabled
>>>> platforms through ARCH_HAS_DEBUG_VM_PGTABLE i.e powerpc, arc, s390. The
>>>> following failure on arm64 still exists which was mentioned previously. It
>>>> will be fixed with the upcoming THP migration on arm64 enablement series.
>>>>
>>>> WARNING .... mm/debug_vm_pgtable.c:860 debug_vm_pgtable+0x940/0xa54
>>>> WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd))))
>>>>
>>>> This series is based on v5.8-rc1.
>>>>
>>>> Changes in V3:
>>>>
>>>> - Replaced HAVE_ARCH_SOFT_DIRTY with MEM_SOFT_DIRTY
>>>> - Added HAVE_ARCH_HUGE_VMAP checks in pxx_huge_tests() per Gerald
>>>> - Updated documentation for pmd_thp_tests() per Zi Yan
>>>> - Replaced READ_ONCE() with huge_ptep_get() per Gerald
>>>> - Added pte_mkhuge() and masking with PMD_MASK per Gerald
>>>> - Replaced pte_same() with holding pfn check in pxx_swap_tests()
>>>> - Added documentation for all (#ifdef #else #endif) per Gerald
>>>> - Updated pmd_protnone_tests() per Gerald
>>>> - Updated HugeTLB PTE creation in hugetlb_advanced_tests() per Gerald
>>>> - Replaced [pmd|pud]_mknotpresent() with [pmd|pud]_mkinvalid()
>>>> - Added has_transparent_hugepage() check for PMD and PUD tests
>>>> - Added a patch which debug prints all individual tests being executed
>>>> - Updated documentation for renamed [pmd|pud]_mkinvalid() helpers
>>>
>>> Hello Gerald/Christophe/Vineet,
>>>
>>> It would be really great if you could give this series a quick test
>>> on s390/ppc/arc platforms respectively. Thank you.
>>
>> Thanks Alexander, Gerald and Christophe for testing this out on s390
>> and ppc32 platforms. Probably Vineet and Qian (any other volunteers)
>> could help us with arc and ppc64 platforms, which I would appreciate.
> 
> Tested-by: Vineet Gupta <vgupta@synopsys.com>
> 
> Apologies for the delay in getting to this. Works fine on ARC
> 
> I have following enabled:
> 
> # CONFIG_DEBUG_VM_RB is not set
> # CONFIG_DEBUG_VM_PGFLAGS is not set
> CONFIG_DEBUG_VM_PGTABLE=y
> 
> And this boots fine
> 
> NET: Registered protocol family 17
> NET: Registered protocol family 15
> debug_vm_pgtable: [debug_vm_pgtable         ]: Validating architecture page table
> helpers
> Warning: unable to open an initial console.
> Freeing unused kernel memory: 18840K
> This architecture does not have kernel memory protection.
> Run /init as init process
>   with arguments:
>     /init
>   with environment:
>     HOME=/
>     TERM=linux
> ...
> ***********************************************************************
> 			Welcome to ARCLinux
> ***********************************************************************
> [ARCLinux]#
> 

Thanks for testing this Vineet, really appreciate it.


WARNING: multiple messages have this Message-ID (diff)
From: Anshuman Khandual <anshuman.khandual@arm.com>
To: Vineet Gupta <Vineet.Gupta1@synopsys.com>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>
Cc: "christophe.leroy@c-s.fr" <christophe.leroy@c-s.fr>,
	arcml <linux-snps-arc@lists.infradead.org>,
	Vasily Gorbik <gor@linux.ibm.com>,
	Jonathan Corbet <corbet@lwn.net>,
	Catalin Marinas <catalin.marinas@arm.com>,
	"Kirill A . Shutemov" <kirill@shutemov.name>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	Mike Rapoport <rppt@linux.ibm.com>,
	Christian Borntraeger <borntraeger@de.ibm.com>,
	Ingo Molnar <mingo@redhat.com>, Paul Mackerras <paulus@samba.org>,
	Michael Ellerman <mpe@ellerman.id.au>,
	"ziy@nvidia.com" <ziy@nvidia.com>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Borislav Petkov <bp@alien8.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	Paul Walmsley <paul.walmsley@synopsys.com>,
	Will Deacon <will@kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	"gerald.schaefer@de.ibm.com" <gerald.schaefer@de.ibm.com>
Subject: Re: [PATCH V3 0/4] mm/debug_vm_pgtable: Add some more tests
Date: Fri, 3 Jul 2020 09:29:05 +0530	[thread overview]
Message-ID: <fd18f4d3-4eba-6306-f42f-dad2bb72746d@arm.com> (raw)
In-Reply-To: <9009877d-6f59-a4d5-1c7c-29719dc50e5c@synopsys.com>



On 07/01/2020 03:02 AM, Vineet Gupta wrote:
> On 6/29/20 8:53 PM, Anshuman Khandual wrote:
>>
>>
>> On 06/24/2020 08:43 AM, Anshuman Khandual wrote:
>>>
>>>
>>> On 06/15/2020 09:07 AM, Anshuman Khandual wrote:
>>>> This series adds some more arch page table helper validation tests which
>>>> are related to core and advanced memory functions. This also creates a
>>>> documentation, enlisting expected semantics for all page table helpers as
>>>> suggested by Mike Rapoport previously (https://lkml.org/lkml/2020/1/30/40).
>>>>
>>>> There are many TRANSPARENT_HUGEPAGE and ARCH_HAS_TRANSPARENT_HUGEPAGE_PUD
>>>> ifdefs scattered across the test. But consolidating all the fallback stubs
>>>> is not very straight forward because ARCH_HAS_TRANSPARENT_HUGEPAGE_PUD is
>>>> not explicitly dependent on ARCH_HAS_TRANSPARENT_HUGEPAGE.
>>>>
>>>> Tested on arm64, x86 platforms but only build tested on all other enabled
>>>> platforms through ARCH_HAS_DEBUG_VM_PGTABLE i.e powerpc, arc, s390. The
>>>> following failure on arm64 still exists which was mentioned previously. It
>>>> will be fixed with the upcoming THP migration on arm64 enablement series.
>>>>
>>>> WARNING .... mm/debug_vm_pgtable.c:860 debug_vm_pgtable+0x940/0xa54
>>>> WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd))))
>>>>
>>>> This series is based on v5.8-rc1.
>>>>
>>>> Changes in V3:
>>>>
>>>> - Replaced HAVE_ARCH_SOFT_DIRTY with MEM_SOFT_DIRTY
>>>> - Added HAVE_ARCH_HUGE_VMAP checks in pxx_huge_tests() per Gerald
>>>> - Updated documentation for pmd_thp_tests() per Zi Yan
>>>> - Replaced READ_ONCE() with huge_ptep_get() per Gerald
>>>> - Added pte_mkhuge() and masking with PMD_MASK per Gerald
>>>> - Replaced pte_same() with holding pfn check in pxx_swap_tests()
>>>> - Added documentation for all (#ifdef #else #endif) per Gerald
>>>> - Updated pmd_protnone_tests() per Gerald
>>>> - Updated HugeTLB PTE creation in hugetlb_advanced_tests() per Gerald
>>>> - Replaced [pmd|pud]_mknotpresent() with [pmd|pud]_mkinvalid()
>>>> - Added has_transparent_hugepage() check for PMD and PUD tests
>>>> - Added a patch which debug prints all individual tests being executed
>>>> - Updated documentation for renamed [pmd|pud]_mkinvalid() helpers
>>>
>>> Hello Gerald/Christophe/Vineet,
>>>
>>> It would be really great if you could give this series a quick test
>>> on s390/ppc/arc platforms respectively. Thank you.
>>
>> Thanks Alexander, Gerald and Christophe for testing this out on s390
>> and ppc32 platforms. Probably Vineet and Qian (any other volunteers)
>> could help us with arc and ppc64 platforms, which I would appreciate.
> 
> Tested-by: Vineet Gupta <vgupta@synopsys.com>
> 
> Apologies for the delay in getting to this. Works fine on ARC
> 
> I have following enabled:
> 
> # CONFIG_DEBUG_VM_RB is not set
> # CONFIG_DEBUG_VM_PGFLAGS is not set
> CONFIG_DEBUG_VM_PGTABLE=y
> 
> And this boots fine
> 
> NET: Registered protocol family 17
> NET: Registered protocol family 15
> debug_vm_pgtable: [debug_vm_pgtable         ]: Validating architecture page table
> helpers
> Warning: unable to open an initial console.
> Freeing unused kernel memory: 18840K
> This architecture does not have kernel memory protection.
> Run /init as init process
>   with arguments:
>     /init
>   with environment:
>     HOME=/
>     TERM=linux
> ...
> ***********************************************************************
> 			Welcome to ARCLinux
> ***********************************************************************
> [ARCLinux]#
> 

Thanks for testing this Vineet, really appreciate it.

_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

  reply	other threads:[~2020-07-03  3:59 UTC|newest]

Thread overview: 107+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-15  3:37 [PATCH V3 0/4] mm/debug_vm_pgtable: Add some more tests Anshuman Khandual
2020-06-15  3:37 ` Anshuman Khandual
2020-06-15  3:37 ` Anshuman Khandual
2020-06-15  3:37 ` Anshuman Khandual
2020-06-15  3:37 ` Anshuman Khandual
2020-06-15  3:37 ` Anshuman Khandual
2020-06-15  3:37 ` [PATCH V3 1/4] mm/debug_vm_pgtable: Add tests validating arch helpers for core MM features Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37 ` [PATCH V3 2/4] mm/debug_vm_pgtable: Add tests validating advanced arch page table helpers Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-27  7:18   ` Christophe Leroy
2020-06-27  7:18     ` Christophe Leroy
2020-06-27  7:18     ` Christophe Leroy
2020-06-27  7:18     ` Christophe Leroy
2020-06-27  7:18     ` Christophe Leroy
2020-06-27  7:18     ` Christophe Leroy
2020-06-29  8:09     ` Anshuman Khandual
2020-06-29  8:09       ` Anshuman Khandual
2020-06-29  8:09       ` Anshuman Khandual
2020-06-29  8:09       ` Anshuman Khandual
2020-06-29  8:09       ` Anshuman Khandual
2020-06-29  8:09       ` Anshuman Khandual
2020-06-27  7:26   ` Christophe Leroy
2020-06-27  7:26     ` Christophe Leroy
2020-06-27  7:26     ` Christophe Leroy
2020-06-27  7:26     ` Christophe Leroy
2020-06-27  7:26     ` Christophe Leroy
2020-06-27  7:26     ` Christophe Leroy
2020-06-29  8:15     ` Anshuman Khandual
2020-06-29  8:15       ` Anshuman Khandual
2020-06-29  8:15       ` Anshuman Khandual
2020-06-29  8:15       ` Anshuman Khandual
2020-06-29  8:15       ` Anshuman Khandual
2020-06-29  8:15       ` Anshuman Khandual
2020-06-15  3:37 ` [PATCH V3 3/4] mm/debug_vm_pgtable: Add debug prints for individual tests Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37 ` [PATCH V3 4/4] Documentation/mm: Add descriptions for arch page table helpers Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-15  3:37   ` Anshuman Khandual
2020-06-17 10:01   ` Mike Rapoport
2020-06-17 10:01     ` Mike Rapoport
2020-06-17 10:01     ` Mike Rapoport
2020-06-17 10:01     ` Mike Rapoport
2020-06-17 10:01     ` Mike Rapoport
2020-06-17 10:01     ` Mike Rapoport
2020-06-24  3:13 ` [PATCH V3 0/4] mm/debug_vm_pgtable: Add some more tests Anshuman Khandual
2020-06-24  3:13   ` Anshuman Khandual
2020-06-24  3:13   ` Anshuman Khandual
2020-06-24  3:13   ` Anshuman Khandual
2020-06-24  3:13   ` Anshuman Khandual
2020-06-24  3:13   ` Anshuman Khandual
2020-06-24 11:05   ` Alexander Gordeev
2020-06-24 11:05     ` Alexander Gordeev
2020-06-24 11:05     ` Alexander Gordeev
2020-06-24 11:05     ` Alexander Gordeev
2020-06-24 11:05     ` Alexander Gordeev
2020-06-24 11:05     ` Alexander Gordeev
2020-06-24 11:48     ` Gerald Schaefer
2020-06-24 11:48       ` Gerald Schaefer
2020-06-24 11:48       ` Gerald Schaefer
2020-06-24 11:48       ` Gerald Schaefer
2020-06-24 11:48       ` Gerald Schaefer
2020-06-24 11:48       ` Gerald Schaefer
2020-06-24 14:40       ` Alexander Gordeev
2020-06-24 14:40         ` Alexander Gordeev
2020-06-24 14:40         ` Alexander Gordeev
2020-06-24 14:40         ` Alexander Gordeev
2020-06-24 14:40         ` Alexander Gordeev
2020-06-24 14:40         ` Alexander Gordeev
2020-06-29  8:32         ` Anshuman Khandual
2020-06-29  8:32           ` Anshuman Khandual
2020-06-29  8:32           ` Anshuman Khandual
2020-06-29  8:32           ` Anshuman Khandual
2020-06-29  8:32           ` Anshuman Khandual
2020-06-29  8:32           ` Anshuman Khandual
2020-06-27  8:17   ` Christophe Leroy
2020-06-27  8:17     ` Christophe Leroy
2020-06-27  8:17     ` Christophe Leroy
2020-06-27  8:17     ` Christophe Leroy
2020-06-27  8:17     ` Christophe Leroy
2020-06-27  8:17     ` Christophe Leroy
2020-06-30  3:53   ` Anshuman Khandual
2020-06-30  3:53     ` Anshuman Khandual
2020-06-30  3:53     ` Anshuman Khandual
2020-06-30  3:53     ` Anshuman Khandual
2020-06-30  3:53     ` Anshuman Khandual
2020-06-30  3:53     ` Anshuman Khandual
2020-06-30  3:53     ` Anshuman Khandual
2020-06-30 21:32     ` Vineet Gupta
2020-06-30 21:32       ` Vineet Gupta
2020-07-03  3:59       ` Anshuman Khandual [this message]
2020-07-03  3:59         ` Anshuman Khandual

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fd18f4d3-4eba-6306-f42f-dad2bb72746d@arm.com \
    --to=anshuman.khandual@arm.com \
    --cc=Vineet.Gupta1@synopsys.com \
    --cc=akpm@linux-foundation.org \
    --cc=benh@kernel.crashing.org \
    --cc=borntraeger@de.ibm.com \
    --cc=bp@alien8.de \
    --cc=catalin.marinas@arm.com \
    --cc=christophe.leroy@c-s.fr \
    --cc=corbet@lwn.net \
    --cc=gerald.schaefer@de.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=hpa@zytor.com \
    --cc=kirill@shutemov.name \
    --cc=linux-mm@kvack.org \
    --cc=linux-snps-arc@lists.infradead.org \
    --cc=mingo@redhat.com \
    --cc=mpe@ellerman.id.au \
    --cc=paul.walmsley@synopsys.com \
    --cc=paulus@samba.org \
    --cc=rppt@linux.ibm.com \
    --cc=tglx@linutronix.de \
    --cc=will@kernel.org \
    --cc=ziy@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.