On 01/28/2020 06:57 AM, Anshuman Khandual wrote: > 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. > > 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. > > 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(). > > This gets build and run when CONFIG_DEBUG_VM_PGTABLE is selected along with > 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 and > arm64. Going forward, other architectures too can enable this after fixing > build or runtime problems (if any) with their page table helpers. > > 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 will > be reported as an warning which would need to be fixed. This test will help > catch any changes to the agreed upon semantics expected from generic MM and > enable platforms to accommodate it thereafter. > > Cc: Andrew Morton <a...@linux-foundation.org> > Cc: Vlastimil Babka <vba...@suse.cz> > Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> > Cc: Thomas Gleixner <t...@linutronix.de> > Cc: Mike Rapoport <r...@linux.vnet.ibm.com> > Cc: Jason Gunthorpe <j...@ziepe.ca> > Cc: Dan Williams <dan.j.willi...@intel.com> > Cc: Peter Zijlstra <pet...@infradead.org> > Cc: Michal Hocko <mho...@kernel.org> > Cc: Mark Rutland <mark.rutl...@arm.com> > Cc: Mark Brown <broo...@kernel.org> > Cc: Steven Price <steven.pr...@arm.com> > Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> > Cc: Masahiro Yamada <yamada.masah...@socionext.com> > Cc: Kees Cook <keesc...@chromium.org> > Cc: Tetsuo Handa <penguin-ker...@i-love.sakura.ne.jp> > Cc: Matthew Wilcox <wi...@infradead.org> > Cc: Sri Krishna chowdary <schowd...@nvidia.com> > Cc: Dave Hansen <dave.han...@intel.com> > Cc: Russell King - ARM Linux <li...@armlinux.org.uk> > Cc: Michael Ellerman <m...@ellerman.id.au> > Cc: Paul Mackerras <pau...@samba.org> > Cc: Martin Schwidefsky <schwidef...@de.ibm.com> > Cc: Heiko Carstens <heiko.carst...@de.ibm.com> > Cc: "David S. Miller" <da...@davemloft.net> > Cc: Vineet Gupta <vgu...@synopsys.com> > Cc: James Hogan <jho...@kernel.org> > Cc: Paul Burton <paul.bur...@mips.com> > Cc: Ralf Baechle <r...@linux-mips.org> > Cc: Kirill A. Shutemov <kir...@shutemov.name> > Cc: Gerald Schaefer <gerald.schae...@de.ibm.com> > Cc: Christophe Leroy <christophe.le...@c-s.fr> > Cc: Ingo Molnar <mi...@kernel.org> > Cc: linux-snps-...@lists.infradead.org > Cc: linux-m...@vger.kernel.org > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-i...@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org > Cc: linux-s...@vger.kernel.org > Cc: linux...@vger.kernel.org > Cc: sparcli...@vger.kernel.org > Cc: x...@kernel.org > Cc: linux-ker...@vger.kernel.org
I should have included mailing lists for all missing platforms here. Will add them in the patch next time around but for now just adding them here explicitly so that hopefully in case some of them can build and run the test successfully on respective platforms. ALPHA: + linux-al...@vger.kernel.org + Richard Henderson <r...@twiddle.net> + Ivan Kokshaysky <i...@jurassic.park.msu.ru> + Matt Turner <matts...@gmail.com> C6X: + linux-c6x-...@linux-c6x.org + Mark Salter <msal...@redhat.com> + Aurelien Jacquiot <jacquiot.aurel...@gmail.com> H8300: + uclinux-h8-de...@lists.sourceforge.jp + Yoshinori Sato <ys...@users.sourceforge.jp> HEXAGON: + linux-hexa...@vger.kernel.org + Brian Cain <bc...@codeaurora.org> M68K: + linux-m...@lists.linux-m68k.org + Geert Uytterhoeven <ge...@linux-m68k.org> MICROBLAZE: + Michal Simek <mon...@monstr.eu> RISCV: + linux-ri...@lists.infradead.org + Paul Walmsley <paul.walms...@sifive.com> + Palmer Dabbelt <pal...@dabbelt.com> UNICORE32: + Guan Xuetao <g...@pku.edu.cn> XTENSA: + linux-xte...@linux-xtensa.org + Chris Zankel <ch...@zankel.net> + Max Filippov <jcmvb...@gmail.com> Please feel free to add others if I have missed.