Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp165746lqp; Wed, 22 May 2024 00:05:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVi3pN2S+l2lmBCEL/dXWNjpF+NE5Eo0hFJGsTpWcfBOwWRLpgF1PS4nM6fdLAIWpeqJzXxBaBseEiRREF3GCiy0TQmVmC2uSQyPYCN+w== X-Google-Smtp-Source: AGHT+IH1gg4BNTktnNKWsqEJ+ivy+f//MXBx/2CcQCeVJgo54JLS2/U8eCsFsLKSDF2JGtkkCOZK X-Received: by 2002:a05:6512:3eb:b0:51c:3f4c:ef6c with SMTP id 2adb3069b0e04-526bf82d6c6mr546139e87.40.1716361509125; Wed, 22 May 2024 00:05:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716361509; cv=pass; d=google.com; s=arc-20160816; b=upIXqjLgTh2Tk2GDxNGizHZ/4q5iU5Cvky392xS81oLqagpM9bwRkHA4IIDD4D7r/6 3o3j/uKJgAJINso4fkjmUBTaUhrExH8P0DMDHaulBI0iNbe70odKjb8oQx2aVOk+L0aU AzVqMQENB7waAlQ60ypuSqKfxZgOPSNBhJfh1x9znrB0clV7BUraVlmikZLZqdM3yVUd WpwsU/ivmPV5aTkRTCJpgMvgo59G4iZV7EelXRLXZKsB6vQ/53+qz5n46g2WmBnl+vQO OBuFbTMgSUH0LAOuHdvvjxdZ0gX/iQladbPJ//nLpUrGOENUfBjJVhpw9kv3QU/KArok 7cSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=/WeqlhEV4kd3MC8BOZ11JZ7SE/mPS3mNFSEfuKAxpE0=; fh=tsMVpixdu643EOBXI+8V8vKjJDVxm5z/c/WapOAnDvI=; b=A4c0GtrX1LuvUiR4NO1SCErGf78F1L4VO/dnWXUYP196F6bX0TU1t5tIoFYfY9uBDR GbyPBlXS5ZpnxQsuDgZYrnfO52CtWgi+ZGHmLpg5RqIs/Pn6JLPXv3x2THxx1AL5LgH6 ckAJVoV9YH19lh+ntr8GngfdaKANWNnUdMef6ekdmyT61iMDUV8yqD/851Nw+J3WpOrz w4WeeGUYaN/sAop98IbHPAjciZrZweTXNdUUaCi5aYe2hj1CJfqZUQ/GDmnWx0mEoPVq VkeUVRB1s7RlI4XJSlhtWacbv3YI+ZgcTdABIo6lYhvMNFplI4uZtQu56OuMlzJ0BKzK 4RLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-185834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba3893si1524881266b.510.2024.05.22.00.05.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 00:05:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-185834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CC26A1F21407 for ; Wed, 22 May 2024 07:05:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A352B7BB0A; Wed, 22 May 2024 07:05:01 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C4862B9C2; Wed, 22 May 2024 07:04:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716361501; cv=none; b=WJ3ckDCzgGM6KioBxIAAgenPIedl91uicNlk1XzHcOPdxnsM854ri7p8IAL1lzeMZJchHN4ND8DUNiueF99Vg1/w2Q/3FQ6xuGiN66KB0dtaBt+NGvcRqq2bn4ozMsPgUKVlHYZnrLZUUtx0WQflolHuahvBXKhUktq4wjxmnxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716361501; c=relaxed/simple; bh=Maj4y6vtasFfUDF/5v7Lo3r/V1ateVquJu2HyG3+IQs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=odGVCy6P0ESCbCoWOh+8RsA+V7mnXFkZRgu7h1jfGyGQAtWAtQ6IdPgh5A3zVDa330+jTz7mP0B3UWGuDh4uEBIuigQjyvPuEB0GEfJWoDoFxnheq+0ncHA/aGlyLDu2A2X0HkCrdynKE0tcVwaQQy825Ma/lWPwMI4P4A+qwSE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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(-) -- 2.34.1