Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3263120ybt; Mon, 29 Jun 2020 20:56:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2DNAQd32IFGrVOhrmDvKPGxiBPaUGfPLOG1OoVQVczWtKGSYEg1nL5fU3aFbNm6NhdJmr X-Received: by 2002:a17:906:7746:: with SMTP id o6mr17139420ejn.75.1593489405144; Mon, 29 Jun 2020 20:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593489405; cv=none; d=google.com; s=arc-20160816; b=GfutCVhxSfmpJJQJOd+4CqKxm7yo/BiL1JXsBDbptwK+D2Y/bf1Zw75wWmHvbu+qHI h4dH1lNQ6+g3OEZUJwpuAdhW63VvVdGOv7vVUPwCzbgBXiTWHqPIDE1FgLyls2u5shml GCfDuKaTSm6MkWe64voF5R3RNOrQq3n04LkKVKWhvreZN/pJ6lUtnbZCov+ntYn0ZLwj fsxPnbuUqml/lDZACGH+kDgc/wM7AhrdKK6SsWZwNafeapS7ULZzITDfVBf1Gu0QSDlH +FLJdfmvRiV5/DTmziCLmwfmN0wa8MTe947M/12Ihi4BbXt6L9nPoQ5+2fbiHzzzJaVw rT7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vnhsXyHlkBRXIJ2EK3UaciHWYNqX3R8zyr6mRNycGew=; b=i8DLf+tvKbRaEHqwhOcMKWUcY+Hpqkf80Adt3R5eZ18gkavidCiWoJs5CGU3kgg4f8 md7x6UxISVKR0ZDa1zPGKteYPbv8V5reLo437HdbUkyja9XUf2Fs0gDnKH6lOOtn+He6 1MbWmmHHqPnUGAhOObfJiH8tV8X4ULQxElKGTgObWCZXDwpeUEciDIYf8omJgwY/YUtT CnaYkk9Aqeu//lNNEhgJaTmAyTFWWuhxPSY+3qa8Mc5MQulQ6f96Ny+aUuJ5Q+xV3pKR wuCIOJK+XPMk1i5giMZyTzA0uthEhZe2e262neDdax7tMUqZ/H5Sp6fAvecBMwMwl7le r4Qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd21si1034638ejb.727.2020.06.29.20.56.21; Mon, 29 Jun 2020 20:56:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729218AbgF3Dx7 (ORCPT + 99 others); Mon, 29 Jun 2020 23:53:59 -0400 Received: from foss.arm.com ([217.140.110.172]:60194 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726710AbgF3Dx6 (ORCPT ); Mon, 29 Jun 2020 23:53:58 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2739030E; Mon, 29 Jun 2020 20:53:58 -0700 (PDT) Received: from [10.163.84.101] (unknown [10.163.84.101]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5EE3D3F73C; Mon, 29 Jun 2020 20:53:47 -0700 (PDT) Subject: Re: [PATCH V3 0/4] mm/debug_vm_pgtable: Add some more tests To: linux-mm@kvack.org Cc: christophe.leroy@c-s.fr, ziy@nvidia.com, gerald.schaefer@de.ibm.com, Jonathan Corbet , Andrew Morton , Mike Rapoport , Vineet Gupta , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "Kirill A . Shutemov" , Paul Walmsley , Palmer Dabbelt , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-riscv@lists.infradead.org, x86@kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Christophe Leroy , Vineet Gupta , Vineet Gupta , Qian Cai References: <1592192277-8421-1-git-send-email-anshuman.khandual@arm.com> <70ddc7dd-b688-b73e-642a-6363178c8cdd@arm.com> From: Anshuman Khandual Message-ID: <1ed72a76-9f20-0169-4c16-c1d8808690eb@arm.com> Date: Tue, 30 Jun 2020 09:23:35 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <70ddc7dd-b688-b73e-642a-6363178c8cdd@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.