Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2525511ybl; Sun, 2 Feb 2020 00:27:31 -0800 (PST) X-Google-Smtp-Source: APXvYqz4ZTKJ3cduMgsOHWgmHsugRAFrwzvP/q7vsdinSXXpoNxpH8G/d1rLiggFd+fNa5SbdysY X-Received: by 2002:aca:b483:: with SMTP id d125mr11770897oif.167.1580632050876; Sun, 02 Feb 2020 00:27:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580632050; cv=none; d=google.com; s=arc-20160816; b=K+43QDuif/kyyuNc/1lNUytUJKJZxyCOeS5WQPPbDruszXsQSsllbFu4wGEM+OAQzG 7FPvxNqhKHOe8SNzO73E2MO3BRFyptEI4m/9Ylv8lyerDg1d62XOjQLJL5t9V9OIydER mx+7PEIZOIGMPEAXLPqwOUL1ryk9DiYW70i7tW/41lSiFuIvAHtdZq7fabN4iOKxsvvC FzIC25FFldb7il8qC9llpPdqL3jZwQSdEPkZfLJuC0VFMuMO9ywWV2D9b//6cAuo4jv7 vOqy8JAP8b04oDPDglMzVSH3ASzACoj0dq17oFXobR+UURzoMaJDD17Jm52ZkGDFHRQN o/oQ== 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=qYLnMfSGYl3WTkYAMabL/UVazn5lsDfpBSuGq7xGSxs=; b=o2Rohn0jZuBKGLIHi6cYgBvkTQaWkTzwEEsGoDdZki9xyfEJTpg+5sOwxi3xac7iZq toQ4FsdbuZ/cWLv5D4yRCb6H7i/6T1Pjingi26NmjSTADzjotP5RuRCH0Xkfu8eraQnT FfNWhuj533GMO6ykMIOAKkIyXjsrXKZM4fUQnbCR6sB7OR8Enh0RK6RJ1fvZB/NYzqm8 Q1ukf3Dl3Kx7Tdq09lNHTqSXQaaYwCAo+7uDUW6cBe8rmpcZI6aCJaEBrQPw1RsMMCul TyZjN3WP4DQ3dOBBkVjrP0YFgHhSnOo+zBEvdm6qJbqgbTiz779XeMyGwuxSmz8WlOO2 RkmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 g2si7499092otn.117.2020.02.02.00.27.18; Sun, 02 Feb 2020 00:27:30 -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; 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 S1726907AbgBBI0X (ORCPT + 99 others); Sun, 2 Feb 2020 03:26:23 -0500 Received: from foss.arm.com ([217.140.110.172]:45212 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726825AbgBBI0X (ORCPT ); Sun, 2 Feb 2020 03:26:23 -0500 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 3C77E1045; Sun, 2 Feb 2020 00:26:22 -0800 (PST) Received: from [10.163.1.42] (unknown [10.163.1.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 53D883F68E; Sun, 2 Feb 2020 00:29:45 -0800 (PST) Subject: Re: [PATCH V12] mm/debug: Add tests validating architecture page table helpers To: Christophe Leroy , linux-mm@kvack.org Cc: 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 , 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 References: <1580174873-18117-1-git-send-email-anshuman.khandual@arm.com> <68ed6488-aa25-ab41-8da6-f0ddeb15d52b@c-s.fr> <49754f74-53a7-0e4a-bb16-53617f8c902c@arm.com> From: Anshuman Khandual Message-ID: Date: Sun, 2 Feb 2020 13:56:04 +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: <49754f74-53a7-0e4a-bb16-53617f8c902c@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/30/2020 06:34 PM, Anshuman Khandual wrote: > On 01/28/2020 10:35 PM, Christophe Leroy wrote: >> >> Le 28/01/2020 à 02:27, Anshuman Khandual a écrit : >>> 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. >>> >> [...] >> >>> Tested-by: Christophe Leroy         #PPC32 >> Also tested on PPC64 (under QEMU): book3s/64 64k pages, book3s/64 4k pages and book3e/64 > Hmm but earlier Michael Ellerman had reported some problems while > running these tests on PPC64, a soft lock up in hash__pte_update() > and a kernel BUG (radix MMU). Are those problems gone away now ? > > Details in this thread - https://patchwork.kernel.org/patch/11214603/ > It is always better to have more platforms enabled than not. But lets keep this test disabled on PPC64 for now, if there is any inconsistency between results while running this under QEMU and on actual systems.