From patchwork Tue Dec 1 12:19:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 11942803 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=-11.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 02CEEC64E7A for ; Tue, 1 Dec 2020 12:20:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 699D920663 for ; Tue, 1 Dec 2020 12:20:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 699D920663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 822CE6B0071; Tue, 1 Dec 2020 07:20:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7AB3E6B0072; Tue, 1 Dec 2020 07:20:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 672FE8D0001; Tue, 1 Dec 2020 07:20:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0101.hostedemail.com [216.40.44.101]) by kanga.kvack.org (Postfix) with ESMTP id 51CDA6B0071 for ; Tue, 1 Dec 2020 07:20:04 -0500 (EST) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 14C57824999B for ; Tue, 1 Dec 2020 12:20:04 +0000 (UTC) X-FDA: 77544620328.02.bit98_140dd38273aa Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin02.hostedemail.com (Postfix) with ESMTP id EA61010097AA1 for ; Tue, 1 Dec 2020 12:20:03 +0000 (UTC) X-HE-Tag: bit98_140dd38273aa X-Filterd-Recvd-Size: 2483 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf49.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Dec 2020 12:20:03 +0000 (UTC) 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 917E31042; Tue, 1 Dec 2020 04:20:02 -0800 (PST) Received: from p8cg001049571a15.arm.com (unknown [10.163.85.56]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B657A3F718; Tue, 1 Dec 2020 04:19:57 -0800 (PST) From: Anshuman Khandual To: linux-mm@kvack.org, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, catalin.marinas@arm.com, steven.price@arm.com, christophe.leroy@csgroup.eu, gerald.schaefer@linux.ibm.com, vgupta@synopsys.com, paul.walmsley@sifive.com, Anshuman Khandual Subject: [PATCH V2 0/2] mm/debug_vm_pgtable: Some minor updates Date: Tue, 1 Dec 2020 17:49:27 +0530 Message-Id: <1606825169-5229-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 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: This series contains some cleanups and new test suggestions from Catalin from an earlier discussion. https://lore.kernel.org/linux-mm/20201123142237.GF17833@gaia/ This series is based on v5.10-rc6 and has been tested on arm64 and x86 but has only been build tested on riscv, s390, arc etc. It would be great if folks could test this on these platforms as well. Thank you. Cc: Christophe Leroy Cc: Gerald Schaefer Cc: Vineet Gupta Cc: Catalin Marinas Cc: Paul Walmsley Cc: Andrew Morton Changes in V2: - Added some missing tests in pud_basic_tests() - Added bidirectional dirty check after pxx_wrprotect() per Catalin - Moved WARN_ON(pte_dirty(pte_wrprotect(pte))) just after page table entry creation Changes in V1: https://lore.kernel.org/linux-mm/1606453584-15399-1-git-send-email-anshuman.khandual@arm.com/ Anshuman Khandual (2): mm/debug_vm_pgtable/basic: Add validation for dirtiness after write protect mm/debug_vm_pgtable/basic: Iterate over entire protection_map[] Documentation/vm/arch_pgtable_helpers.rst | 8 +- mm/debug_vm_pgtable.c | 89 ++++++++++++++++++++--- 2 files changed, 81 insertions(+), 16 deletions(-) Tested-by: Gerald Schaefer [s390]