From patchwork Wed May 22 07:04:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dev Jain X-Patchwork-Id: 13670509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74D82C25B77 for ; Wed, 22 May 2024 07:04:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CC11E6B008C; Wed, 22 May 2024 03:04:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C71296B0092; Wed, 22 May 2024 03:04:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B60516B0093; Wed, 22 May 2024 03:04:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 9789B6B008C for ; Wed, 22 May 2024 03:04:56 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 068E11C2394 for ; Wed, 22 May 2024 07:04:56 +0000 (UTC) X-FDA: 82145144592.22.7C5127A Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf30.hostedemail.com (Postfix) with ESMTP id 3E10E80009 for ; Wed, 22 May 2024 07:04:54 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf30.hostedemail.com: domain of dev.jain@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=dev.jain@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716361494; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=/WeqlhEV4kd3MC8BOZ11JZ7SE/mPS3mNFSEfuKAxpE0=; b=XYEJ3USdpLT4WElR0au3hMg7y/rmLoF/QIk8O/O9Zj6PwHY/WcRZ6zhrOVWm3rRaZlnK7D DGFVn+s1iEHiGkIsOdphPOI220lsNR7jEm4x548FogIvo8rgkEjeuMnK0kM6YtaAERycoX nSc01Y+4aEWO3M+NU0DfTabo8q6qdgI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716361494; a=rsa-sha256; cv=none; b=ck88qUT81p/GgvKjo24dXG5i+ub8p22otmOwY7cyIu/S45GjGA+2PzL2fwb7aGu0PWkdDd qyxwbaQdU5nOnWWKzM2G5qxCnh/DRxR6l0OnBCClcvl9+OpKBlcudmHTcGI7QHp3RDWLKS s+r5uOec3v+IErVv9+fC16mZhoZBjj8= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf30.hostedemail.com: domain of dev.jain@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=dev.jain@arm.com 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 4A558339; Wed, 22 May 2024 00:05:17 -0700 (PDT) Received: from e116581.blr.arm.com (e116581.arm.com [10.162.42.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 530BD3F766; Wed, 22 May 2024 00:04:50 -0700 (PDT) From: Dev Jain To: akpm@linux-foundation.org, shuah@kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Anshuman.Khandual@arm.com, kirill.shutemov@linux.intel.com, AneeshKumar.KizhakeVeetil@arm.com, Dev Jain Subject: [PATCH 0/2] Restructure va_high_addr_switch Date: Wed, 22 May 2024 12:34:33 +0530 Message-Id: <20240522070435.773918-1-dev.jain@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Stat-Signature: mkcnk84eq6hr5g1foxrtarpkzzkwgb3w X-Rspamd-Queue-Id: 3E10E80009 X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1716361494-533699 X-HE-Meta: U2FsdGVkX18hvf01n/Q5MWP5tUI2m4p26rTw2wKfXjDQqzgY6aTOWmh5pXDpxlRf92uGeMG21g6Otq+0sqSXr2qBRKfE/hANzM2/1VNnTemLUIhDUGd3T7TC3Ppw/LT7yGH0fiL2K9fJToM8dAF3OGLCaaFYlmcZp0dfavysjYECrKGRWerS5WErZPruOiYBqi1+xUf4L/UPRmf7FlWLQZhehwv1IMkGnSx3yEVQWJiPuP+1sJmFYOQd2r7zQOG3k/8PwU6pqhYBnartsClUv/ZYBbptNZMccEiHM8W4XNXqY/3Gdd+BTJLLi7O+mVOgHWRQsj8x+9B+GSGhTPdDv7bRDza4hQ1F1xhpPnEAzZ2r6Cfzjes5u8yioGGTV44A75WcPYR3dSZKW/iVmcKeyoLDiOFaqNh4mjUJnF4lWaYaNen+5LdAltVxsdeY+jzowkgeyIvJywWhnNKZEVdzRc9laNJFcqxjglnyPp9j64HsdBTojbgVWak6+mVZYPUPQWlqkV60TmCFwtyJldV1oQth3hJkXscg62z7G1vtvqo/ZpjrB0fcBvCVLA0bRTgz1qcjyTlex0MCux3VIzaFLVYFsz+x/0OTpMrcGkkbcJxTCRXUYe05wTFbn7mFwatXiCuqCUCZncVjZ9XJQ9BnIx8WzE+1fE11nbRE/SuJ6rSXmu2Zlg2aMfT6DdTkiSWutjtxPUTZZd+HOoi/5nqQOTBdST4DbahYTlXopAUBd2EqJrJ+h1f+PG41MAEs/4RyG9AL5QdsnDDdYnjU5fn3YCWwYvH78wAkPT1fVuAYPuQ8jBYsO52OymZUAx3iywbzQu/VdtsQNsuvgvYhhl6qBEIKUSfndOEhKNk/y/ZJkt5yC/9JfG+MAWxTH6BX7TIkZ/tDJYCmh04= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000073, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The va_high_addr_switch memory selftest tests out some corner cases related to allocation and page/hugepage faulting around the switch boundary. Currently, the page size and hugepage size have been statically defined. Post FEAT_LPA2, the Aarch64 Linux kernel adds support for 4k and 16k translation granules on higher addresses; we restructure the test to support the same. In addition, we avoid invocation of the binary twice, in the shell script, to reduce test noise. Dev Jain (2): selftests/mm: va_high_addr_switch: Reduce test noise selftests/mm: va_high_addr_switch: Dynamically initialize testcases to enable LPA2 testing .../selftests/mm/va_high_addr_switch.c | 454 +++++++++--------- .../selftests/mm/va_high_addr_switch.sh | 4 - 2 files changed, 232 insertions(+), 226 deletions(-)