Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4692593ybg; Tue, 29 Oct 2019 10:59:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMmGSPLYOBJ0Qxc5kukRf1jztz5QJLrBJwY7lseRDPG2bhsCiFpDXq9LZvJXTiQH3EHS+o X-Received: by 2002:a17:906:400f:: with SMTP id v15mr4514624ejj.126.1572371965926; Tue, 29 Oct 2019 10:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572371965; cv=none; d=google.com; s=arc-20160816; b=oiPxKg7kbdGzPetrTCp35pLCC/pQSEb8wOwZzuNZKHAS+k+COD3Kg7kW1lEg1WkJWq ZUWCk7dK3PSZyvdsK/iiBVw9a09hg6KZvoTCNUzSuSNjannxO39veHqT374QS10Go0ar fMAMR74sq1fBfIFdkS2A+pLfa9jf3oxeA4ELhYgKQvg/XlzycHEyLS8kKzee44EAylgZ MrXj+rxecxIPsh0V8nWCixZNwvQDLHD5eOsQ0jbrDu06BhL3dzbb7igf7FUb0ENfmnX3 XM6u/g89Px2ZjS74DzcCLTkK7NlGhljiLos3sKetf6gdFxPydwjvUJYLufkfAjhS5EUI +o9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=9SS4b78ehrP4a9/DZbJX4AGCB0l2oYRtncqtM2VcVgs=; b=i6fOJfxOd6Zzizh/l3xjXEm5Es0yVWuQL9SC4L9J8Ld1IbUYglhVGy8oVrxOFfIBAP l1hO6oBkhop/s/UwgdRoRTva50ymEhf67LOa5iVr9l0WIH6bzqZmD4ViJg2IZ2YFXqF4 K+pHdABUGvOeJuo339N8iNt/+WuS5pImsWam8l/Xiv/+/zODZ8jlr1VtS7o5T2W+HWDj EkI48+JZimCSRZWSYwrkTuxxgDaa1za3yapjeSzgk5uqye4AsLBMF6sd7OHGO+4/S7pM F4lV8f6XAOpF8cIM8PDbSaJ9JFkTj5y0XTAK0u4amj9dcEB+77cg6XznOTy43oq/bKv1 I3sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b="G/LkZ5EF"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16si9024207edd.314.2019.10.29.10.59.02; Tue, 29 Oct 2019 10:59:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b="G/LkZ5EF"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731184AbfJ2KbS (ORCPT + 99 others); Tue, 29 Oct 2019 06:31:18 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:45242 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730955AbfJ2KbP (ORCPT ); Tue, 29 Oct 2019 06:31:15 -0400 Received: by mail-qt1-f195.google.com with SMTP id x21so2177203qto.12 for ; Tue, 29 Oct 2019 03:31:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=9SS4b78ehrP4a9/DZbJX4AGCB0l2oYRtncqtM2VcVgs=; b=G/LkZ5EFLI13fNYweg2QLrX9wPwyX1HFJIpSnMQHTrMXQvOr8WcBlj7L6PpPDNjdgP i5InJ9pIYo4M2+ahXyCmJkm0/aSmAFV1b0ddTRW1LgRG7OVGwCri8wGtJhq7q7n0OHXS /62wwsP9sjkBXi1sfsKUBwKdoX3XI/7IX8CepjzvKNmSryJQnKF34LTh2GQ9WhtDP2dt IXSVXKbxiNcS5b+rYkiVMk/YKYGmnfMv31SeMxHd7e0Hp2u4HSyq7youtj+T3jqrMDT3 TABjTwTyDtWr5DElB4lPasN8uyXQjZI6Au4SUlUuoJnmXJBOg31XRn9SRwxaflUvjklQ 6j8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=9SS4b78ehrP4a9/DZbJX4AGCB0l2oYRtncqtM2VcVgs=; b=o3FS934jgdpUrKOGrnYd5P6BTwnGvKuaDLw+zdoZe9O3wQrPUuRl5hlmS1w7iWxF5t jlXQ/mQH/uRUs4v38aQ6MNDvqheTIWAADXDe48cq+dxvOXmQ5kyTXH6owHcFfPhuyBIm 3wyXZ55O/ST7VXiAHSSk/qC41zMcDR1DjJjyuUPp6bFSJGjJrI2U32KV+ezQbVe69TRW SQJIRTye3M2UU43nfnKs8ELkRoyKVRNtw82dgAreTKT2bj77rSMVfDgm/V9utM+LERUh PqQH2z0WO3jHnfWL3jlL7xWUZ/LAFKdOBQ9sryWf/YxigwFAaqasCKQO+jpzT6ra0MSy 6cJQ== X-Gm-Message-State: APjAAAWp0fKMR8F7ZXc+YRvNf04VLdVRCmcGzayWdTh5urxtEjigXMeH ZqLK4F4H/ow7fe7GILJwVEM8yA== X-Received: by 2002:a0c:f6d2:: with SMTP id d18mr6856697qvo.155.1572345072935; Tue, 29 Oct 2019 03:31:12 -0700 (PDT) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id t1sm7346140qkm.121.2019.10.29.03.31.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Oct 2019 03:31:12 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH V8] mm/debug: Add tests validating architecture page table helpers Date: Tue, 29 Oct 2019 06:31:11 -0400 Message-Id: References: <1572240562-23630-1-git-send-email-anshuman.khandual@arm.com> Cc: linux-mm@kvack.org, Andrew Morton , Vlastimil Babka , Greg Kroah-Hartman , Thomas Gleixner , Mike Rapoport , Jason Gunthorpe , Dan Williams , Peter Zijlstra , Michal Hocko , Mark Rutland , Mark Brown , Steven Price , Ard Biesheuvel , Masahiro Yamada , Kees Cook , Tetsuo Handa , Matthew Wilcox , Sri Krishna chowdary , Dave Hansen , Russell King - ARM Linux , Michael Ellerman , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , "David S. Miller" , Vineet Gupta , James Hogan , Paul Burton , Ralf Baechle , "Kirill A . Shutemov" , Gerald Schaefer , Christophe Leroy , Ingo Molnar , linux-snps-arc@lists.infradead.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1572240562-23630-1-git-send-email-anshuman.khandual@arm.com> To: Anshuman Khandual X-Mailer: iPhone Mail (17A878) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Oct 28, 2019, at 1:29 AM, Anshuman Khandual = wrote: >=20 > This adds tests which will validate architecture page table helpers and > other accessors in their compliance with expected generic MM semantics. > This will help various architectures in validating changes to existing > page table helpers or addition of new ones. >=20 > This test covers basic page table entry transformations including but not > limited to old, young, dirty, clean, write, write protect etc at various > level along with populating intermediate entries with next page table page= > and validating them. >=20 > Test page table pages are allocated from system memory with required size > and alignments. The mapped pfns at page table levels are derived from a > real pfn representing a valid kernel text symbol. This test gets called > right after page_alloc_init_late(). >=20 > This gets build and run when CONFIG_DEBUG_VM_PGTABLE is selected along wit= h > CONFIG_VM_DEBUG. Architectures willing to subscribe this test also need to= > select CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE which for now is limited to x86 an= d > arm64. Going forward, other architectures too can enable this after fixing= > build or runtime problems (if any) with their page table helpers. >=20 > Folks interested in making sure that a given platform's page table helpers= > conform to expected generic MM semantics should enable the above config > which will just trigger this test during boot. Any non conformity here wil= l > be reported as an warning which would need to be fixed. This test will hel= p > catch any changes to the agreed upon semantics expected from generic MM an= d > enable platforms to accommodate it thereafter. This looks like a perfect candidate to streamline with the new kunit framewo= rk, no?=