Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4169919ybl; Mon, 27 Jan 2020 18:13:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwtHBukDYMvAWdfBIfCtb5RkQxHNlVhb7hz6gb0watU5aHh6jXxIorGGUXGuy1oMhs9D9CY X-Received: by 2002:aca:120e:: with SMTP id 14mr1346371ois.135.1580177639597; Mon, 27 Jan 2020 18:13:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580177639; cv=none; d=google.com; s=arc-20160816; b=YCB9Zpn0v6Uz7e9qhXRUp+YoOwuWIWdVFnPRrJo2biui9lqk+QIVb/ZOeAQDBkWvP7 nOhWZRPBhANaNCot5SOiQ4cnWhHiJYMfqBWABSctYqMy1nMjAUnj7SdLGiqrJj4CaZtQ blNVaq0DKgU3NufZQl0kBl07ju8v7mz8la5eMEF6gsTfTbuKR1hKpwdIPqH0YMb9SHjM PYjrz9N3Dz3b33SZ9qq7yEF3ABce6z91u3E38vHcPXm9ESIqieubr1k86AgfWO1+T4eF D4iYFAmEBAcVrJaQsD8H2zJd1pKFJXjrCOXDW7L2DTnVh4Z/hcPd1vI7xyVVsr1FkZFs HG1Q== 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=7Y+cJY1xhd0yBpcec7AzD+9evfVDrwqprX0erT9gNQ8=; b=ph4yYmty9bB9xzD9BnZGwq3fhDHl4Yqg3fjRipLReJhZ7f9hIP1mRn69Wt7ZeqfqNZ Z4KbNwvauH00cVyNnY33xR5aLHM1V0KfgLyk3hNzYqXoToUbRy2/HcrRC5Gjfct5pdLd A5PRpgfL+FpeL39ZfDfXHpghHbMuj1+NrL862cu8gFxdjURxuXcH1/SbvCOcLpiFeXJZ 911J1kVpqkQ6TGkdoxhHmdv06ym/2epVvJ8TIDnQB5E4lGpPmNc6a0kqJfaikVCZVqY3 LNd22hi7Sj+eHrukbhcN3MdkmTrnAI8MKUzwqUi0bXourXKcgphpWTdSyrhvkVt7aMSY wWrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=jZmBH73p; 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 t128si1328352oie.176.2020.01.27.18.13.24; Mon, 27 Jan 2020 18:13:59 -0800 (PST) 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=jZmBH73p; 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 S1726080AbgA1CL4 (ORCPT + 99 others); Mon, 27 Jan 2020 21:11:56 -0500 Received: from mail-qv1-f66.google.com ([209.85.219.66]:41710 "EHLO mail-qv1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbgA1CL4 (ORCPT ); Mon, 27 Jan 2020 21:11:56 -0500 Received: by mail-qv1-f66.google.com with SMTP id x1so5529457qvr.8 for ; Mon, 27 Jan 2020 18:11:55 -0800 (PST) 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=7Y+cJY1xhd0yBpcec7AzD+9evfVDrwqprX0erT9gNQ8=; b=jZmBH73pillRBQpbX84TZ57nVUbP8l/pwzyrT6F1TLbL143seIWhzMHM+f433HkTJ5 4+74y+cXEGlf05IjEqB0rGqFVcscYw+GLhSFsx8WaySmYsTRfGWpPzerjlys6mf9W6z9 7MQu28uGR+vExcu4XcFzxZsCEsEyIZnW5XYihpKw20TjtS/g7K7vcnSmLO9Y2I2ACMbR UKd7mEwngqjuWYnzl9qMnEhgnX2KVdsQpg9XPqLIZZY/9EZaReISvH0tgX5LHWCxTzuH Sdb0djgaeTc7Y2XT2pWCZ+vec+pYHc73GLTjZ8LH4FVsFHxU1dJtwXiD8faH/K6Piqjx Qz+Q== 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=7Y+cJY1xhd0yBpcec7AzD+9evfVDrwqprX0erT9gNQ8=; b=aHQFmYG3QOBVWi52k7nW0InydMHf0cEMIHjYrmgDmnG0czVrZSMS+tCnIujsV6tfiS QU5Vry+1ETzm9DreuMEtQDhx91UXEvttFjFm69nbmArUHv5UKmBg8B8Om2E/fzPRjLXx ONGMXvina2uVrFF+OQzf62spoK0DnRxxja2X7ttL7nb9uTM0tgdIbc0MHzkLpIOXYtUU OHGUv0Kzhs7yfVjIF1oV215kjFJaO23gUh3PfpIccyYW1GoYwFTYsAr0gC+Hb3ooqXXF SWUrE4bB9KYZlCWC+P3bTbv+cmD8HEwh3EYCFrZgcVl8J8oQdiBQEjtrpKPgC6Mocu0k Y+EA== X-Gm-Message-State: APjAAAVYKEuO8NFE9plQKDmMUA13GCY0BDaRsEbORUvmngFbdhbQyAhY faontXs/PVIhJk9tlp/go3yyqQ== X-Received: by 2002:a05:6214:9d2:: with SMTP id dp18mr19624941qvb.98.1580177515237; Mon, 27 Jan 2020 18:11:55 -0800 (PST) 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 m21sm11036189qka.117.2020.01.27.18.11.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Jan 2020 18:11:54 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH V12] mm/debug: Add tests validating architecture page table helpers Date: Mon, 27 Jan 2020 21:11:53 -0500 Message-Id: <14882A91-17DE-4ABD-ABF2-08E7CCEDF660@lca.pw> References: <1580174873-18117-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: <1580174873-18117-1-git-send-email-anshuman.khandual@arm.com> To: Anshuman Khandual X-Mailer: iPhone Mail (17C54) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jan 27, 2020, at 8:28 PM, 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. What=E2=80=99s the value of this block of new code? It only supports x86 and= arm64 which are supposed to be good now. Did those tests ever find any regr= ession or this is almost only useful for new architectures which only happen= ed once in a few years? The worry if not many people will use this config an= d code those that much in the future because it is inefficient to find bugs,= it will simply be rotten like a few other debugging options out there we ha= ve in the mainline that will be a pain to remove later on.=