From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE53FCA9EAE for ; Tue, 29 Oct 2019 10:31:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B0749214B2 for ; Tue, 29 Oct 2019 10:31:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lca.pw header.i=@lca.pw header.b="G/LkZ5EF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B0749214B2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lca.pw Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4A9AB6B0005; Tue, 29 Oct 2019 06:31:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 45A216B0006; Tue, 29 Oct 2019 06:31:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 322AC6B0007; Tue, 29 Oct 2019 06:31:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 0DEB36B0005 for ; Tue, 29 Oct 2019 06:31:15 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id 6DAAE82499A8 for ; Tue, 29 Oct 2019 10:31:14 +0000 (UTC) X-FDA: 76096454868.07.cart58_abb8f8a4205a X-HE-Tag: cart58_abb8f8a4205a X-Filterd-Recvd-Size: 6495 Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) by imf23.hostedemail.com (Postfix) with ESMTP for ; Tue, 29 Oct 2019 10:31:13 +0000 (UTC) Received: by mail-qt1-f194.google.com with SMTP id e14so19445136qto.1 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=OWIZ4vstQ2/1Z0BExJFrNbwDMYvCetHXpnZemqmjgUqcXWoXoPnksZ1JOpgPWrqfXv GTUo8p4Qx7nWe/Na8DIhOJytCLAOWSTwKSLnR+vCx2TrU2w3zNyo38Ie+3ut3uqJYMX2 c1AcPdvR2jue1A4hfDdvQcATS14PAucqmnwt/kMMjBDeknYK7Q8veErc6mmZttRqCKkO /wWJBQeK+jcRbcWKLMuJ2JYYFm0iv4yc6tiRDApJ2FJgn1XJXbBzEGkuP3QE96dppKZU +fr3pw/bqR5FrfXvuxJalndgtsTlOEP+8yO2EZTYD7AXKXmpe7pMpfPeEhZEq8ICLYe+ dmmg== X-Gm-Message-State: APjAAAUy1Xm42/LBdzz2eB6RJMBCsIhB/81YFgWuEjQ4RvNk77KsMwaV qGE795IB879HpA4vSBGgENLQqw== X-Google-Smtp-Source: APXvYqxu87KxuRTj39OXWAVjw/WFzSDMbE3Up95oGqmF/PZSf0Vx1vPkAAaomtV6kZQFzmiTSl4zEw== 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) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: > 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?=