Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp464326ybf; Fri, 28 Feb 2020 01:20:51 -0800 (PST) X-Google-Smtp-Source: APXvYqxaWgOyxTaWCRQ8wPYQhwuXQRX8XbTOFKwY68jjMuXGg/VMAxdx232Jp5vw4aVUml6j8V8G X-Received: by 2002:aca:4ed7:: with SMTP id c206mr1251561oib.161.1582881650832; Fri, 28 Feb 2020 01:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582881650; cv=none; d=google.com; s=arc-20160816; b=0QhVEHR2mar0Dgvf0fuo2k/li90XA03cxBnZz2S7m8qNXPrm4e45XR/z8yjqbIGj6M QkhkU8i9nfy7nDKY9r1C4auhiYMPafyZxbqmpXBpI9h5Vc/V/hYYhPOQNf72MvJcbeGX ck8DpdOC56VlkNORag8P/826O2H8Bb/5S7WjPCliB/3bTgec2YuSKXfn3Hqu9RNKn1AH LrvCd6ISG3hFJCaV7Cxjddk36Ilg+jnwq5VojENTftlTO3bOsqkLyVr0cDkxEsseeXmx 78+w3h9V/uYBtXI2syika3myQltL6P240ddsLAelT/mapnkP+TIX9OQYtIbvZC9Ozboz KDlA== 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=c5EdPI1LbJqBsR9L9BbbPDSisPGCoNmpHNd4EJ/cKcc=; b=jLzC28dF8ajjd26qavTkvIs6RB66X6/eD7f2BVQIvsVoCkja6nCSiScB7JtBvwEnIn PCvkn7+3IDTvYXEUHOvoENnfbuQmdJSOTfQo+RPcZ5Jn3X69ebcFxbdi6FrPvyIwEHFb aTJJED/H0Y6MrXlF/sZSRO/DcjaSdh5M/ApSeZMxftPjLKvWUAVqUm9kP9DfdN47I57D Th+/CmxuQE/LicLiObMTtt3T23wTENIagfrSzN0DRW/Rq/Db2XvbnBo5RGFpkqGl/86r 2moIGIq3QIXS45LkJPxpTYyle6rXLqASsRcT2sxKnF9+hz98jh15TOFNE1ApovPYeSVd iF6Q== 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 45si1230380otg.7.2020.02.28.01.20.38; Fri, 28 Feb 2020 01:20:50 -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 S1726809AbgB1JUV (ORCPT + 99 others); Fri, 28 Feb 2020 04:20:21 -0500 Received: from foss.arm.com ([217.140.110.172]:35394 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbgB1JUU (ORCPT ); Fri, 28 Feb 2020 04:20:20 -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 E2C8E1FB; Fri, 28 Feb 2020 01:20:19 -0800 (PST) Received: from [10.163.1.119] (unknown [10.163.1.119]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E52C03F7B4; Fri, 28 Feb 2020 01:20:10 -0800 (PST) Subject: Re: [PATCH] mm/debug: Add tests validating arch page table helpers for core features To: Christophe Leroy , linux-mm@kvack.org Cc: Heiko Carstens , Paul Mackerras , "H. Peter Anvin" , linux-riscv@lists.infradead.org, Will Deacon , linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, x86@kernel.org, Mike Rapoport , Christian Borntraeger , Ingo Molnar , Catalin Marinas , linux-snps-arc@lists.infradead.org, Vasily Gorbik , Borislav Petkov , Paul Walmsley , "Kirill A . Shutemov" , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Vineet Gupta , linux-kernel@vger.kernel.org, Palmer Dabbelt , Andrew Morton , linuxppc-dev@lists.ozlabs.org References: <1582799637-11786-1-git-send-email-anshuman.khandual@arm.com> <51421bb3-9075-d7e9-1750-0553a1ebe64a@c-s.fr> From: Anshuman Khandual Message-ID: Date: Fri, 28 Feb 2020 14:50:09 +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: <51421bb3-9075-d7e9-1750-0553a1ebe64a@c-s.fr> 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 02/27/2020 04:12 PM, Christophe Leroy wrote: > > > Le 27/02/2020 à 11:33, Anshuman Khandual a écrit : >> This adds new tests validating arch page table helpers for these following >> core memory features. These tests create and test specific mapping types at >> various page table levels. >> >> * SPECIAL mapping >> * PROTNONE mapping >> * DEVMAP mapping >> * SOFTDIRTY mapping >> * SWAP mapping >> * MIGRATION mapping >> * HUGETLB mapping > > For testing HUGETLB mappings, you also have to include tests of hugepd functions/helpers. Not all archictures have hugepage size which matches with page tables levels (e.g. powerpc). Those architectures use hugepd_t. Dont see much hugepd_t in generic HugeTLB. Just wondering which generic hugepd helpers can be tested here. Could you please be bit more specific. As we have not yet started looking for arch specific page table helpers test requirements, all the test scenarios here need to be generic. > > Christophe >