Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp4124316ybt; Sun, 5 Jul 2020 18:13:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziA4r4t/ks5m3oYqXm5IUHENg3HVu+4avNeMN+A9e9XLXh99mR1VjyjAR1OI05NjeD2f8v X-Received: by 2002:a17:906:f88a:: with SMTP id lg10mr40578704ejb.317.1593998000033; Sun, 05 Jul 2020 18:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593998000; cv=none; d=google.com; s=arc-20160816; b=yHH4q8tSwLpGCFCHLLk18je7hAbgJutHbGuuWg5I4rzIG0sU3gWS3p5MiB2JNCqY2T PutwNDCUa4xcCNhA7t8LF51P6WllUUad5+K+9foKmF8owUsYnlAQQj27hQhJW5z8NwcK Vpq2JPZGe5Uxxp5ngaGxryCCo59+zSaDZy6gYhdQdr27vudvM7cEF+poCF609E/wudbn Y4ibvJSoonQjz9oXcTPEtVPJzGxc/ukF/zWzT9m3JmYpRLeNr0OOTye9yBw0ULPihvPl MI8mOSqX0BR6QNXzBkriG0x/q1G/YypgrQc+/zcFHOWHF0E5YqXvTFOnz665Q40F8kBA ZkYw== 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=G+GmLtQWbHWtASS8PrfTFk41GK5R7HwxHZoTueRFZ58=; b=TM0frMG6GDT6fHBfj37C7P7pl9o/o6KREGn92inD64ZGg/qkWp6CM8sJHvA7nkxnyk vBrg5RMToAIhDV+jO4v78iUxNGfbXdQecjyD94vUyO4dUOvBUazACCFEGzmWeJLXA+Mv PQL7s+Z4obfDXySEvX8rQ9k9Jrjr5N1VDTM0IuHLBQ1t9nSt2X+ITVl4v2iOohzvPiv5 Rwhgy4npKPDmet7CdXwszM9dAeZugQt1udd+tGHc228b1S2aLkvFO1KSlh3I7Tw3leC6 IQAHIPjKj5SiKH+Vh3ikqZ54VDzN4YKqiTrWqBeIsVezWIzYxP258XKyypHDRj1ZzQuh YBRQ== 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 f12si12218488ejw.135.2020.07.05.18.12.56; Sun, 05 Jul 2020 18:13:20 -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 S1728484AbgGFBMr (ORCPT + 99 others); Sun, 5 Jul 2020 21:12:47 -0400 Received: from foss.arm.com ([217.140.110.172]:45228 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728381AbgGFBMq (ORCPT ); Sun, 5 Jul 2020 21:12:46 -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 C883030E; Sun, 5 Jul 2020 18:12:45 -0700 (PDT) Received: from [10.163.84.195] (unknown [10.163.84.195]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F364F3F718; Sun, 5 Jul 2020 18:12:33 -0700 (PDT) Subject: Re: [PATCH V4 0/4] mm/debug_vm_pgtable: Add some more tests To: linux-mm@kvack.org Cc: 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, Zi Yan , Gerald Schaefer , Christophe Leroy , Christophe Leroy References: <1593996516-7186-1-git-send-email-anshuman.khandual@arm.com> From: Anshuman Khandual Message-ID: <3e03e6da-139f-94df-73aa-4aaf174f71f5@arm.com> Date: Mon, 6 Jul 2020 06:41:42 +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: <1593996516-7186-1-git-send-email-anshuman.khandual@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 07/06/2020 06:18 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-rc4. > > Changes in V4: > > - Replaced READ_ONCE() with ptep_get() while accessing PTE pointers per Christophe > - Fixed function argument alignments per Christophe +Cc - Zi Yan, Gerald Schaefer, Christophe Leroy The Cc list was not complete. Please do let me know if you could not retrieve all the four patches of the series from the list. - Anshuman