From patchwork Fri Sep 13 02:26:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 13802945 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 19D3AEEEC05 for ; Fri, 13 Sep 2024 02:27:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D043C8D0008; Thu, 12 Sep 2024 22:27:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C88928D0006; Thu, 12 Sep 2024 22:27:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AB54B8D0008; Thu, 12 Sep 2024 22:27:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 8B0B18D0006 for ; Thu, 12 Sep 2024 22:27:35 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id CD28816154C for ; Fri, 13 Sep 2024 02:27:34 +0000 (UTC) X-FDA: 82558128828.08.0A565E1 Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by imf01.hostedemail.com (Postfix) with ESMTP id BE8AE4000B for ; Fri, 13 Sep 2024 02:27:31 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf01.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726194424; a=rsa-sha256; cv=none; b=uWTg8PpGWvZdGwTGtoDYPle0WZxxeWDGJ74snRXTpzAfuFaJp9UUqmDK2tAblxE99VWwQK TZbtGOw72VNbQup0lBh0ZfAJnZHbBcLsadROuZNIkZxJSjuCoj3COajPmM9cRCKtx5q/jD i8k9t1/vobdmPYGWvg75lt0BWCzHN4w= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf01.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726194424; 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:in-reply-to:references:references; bh=IYtG1xwD96WY9TDyQaYlqvapomz+0Rk3WeG9DGKCrh4=; b=KIuzc/HO/H5dUNxFrRYxOKc7HbFuAda8maYBqCzo9oI4Qlo664KNYmee3XK4rggW+GcGr7 1YUpFkOVG6j4f8fyCyamIyeoti5JUOU7DiM48tt7CxQaRN5zoaaXKD7dDYHQhU7ZYW4TWq mHYJD6cTxzSp9EWru3imfJ98wc5pMjM= Received: from ubt.. (unknown [210.73.53.31]) by APP-01 (Coremail) with SMTP id qwCowAC3vh4Eo+NmTrhAAw--.28619S3; Fri, 13 Sep 2024 10:27:18 +0800 (CST) From: Chunyan Zhang To: Andrew Morton , Shuah Khan , Paul Walmsley , Palmer Dabbelt Cc: Alexandre Ghiti , Charlie Jenkins , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Chunyan Zhang Subject: [PATCH 2/2] selftests/mm: skip virtual_address_range tests on riscv Date: Fri, 13 Sep 2024 10:26:35 +0800 Message-Id: <20240913022635.751505-2-zhangchunyan@iscas.ac.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240913022635.751505-1-zhangchunyan@isc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4lIxAIcVC0 I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I 8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73 UjIFyTuYvjxUx5EfUUUUU X-Originating-IP: [210.73.53.31] X-CM-SenderInfo: x2kd0wxfkx051dq6x2xfdvhtffof0/1tbiDAgTB2bjgUZ5HAAAs3 X-Rspam-User: X-Rspamd-Queue-Id: BE8AE4000B X-Rspamd-Server: rspam01 X-Stat-Signature: hkcpycphkfakrhfdxyryyao7fu7y67k6 X-HE-Tag: 1726194451-617849 X-HE-Meta: U2FsdGVkX1/L3JcnbEgsgmuA26QK8C3O9z2Ec5ocCeE2KI/e04dtFrNQsNRYyvoAnanK2KS0ALqSQwtyFBbShHc13s13uyQh+nL/cmos/bB5rjRPJwzemJR6h0i+tL5eytLpstZJFlduxPMho9tykNRS94ete1X5pplyHmmWpwE/Eed5gmdyuqNMsNNeHphMe4CWS6FW2AgijcMG0dBBvNkRuNihg46USquxNWwHO9N3Pvy+t654jQ5q5iGosStbeBY8WjCDkKHfStrjALvp3TsEvFxMGmx9QFO+kaKdBzREZXkfSNcxBkD+/Vk9oYYL4wCrwPvb8Deat9cxkvX4Ir4kqM3XuO/CDwG9S+24wFruuoqCiVhBNXgENSDS4JP2ZJQu/H23RB2kX+50QrDvLkC5iPcvhldGSTU6U6nYHs0RgMEegpDkxa21YBG0MKQCkBpbXKG8rvT+e+f1KkfhAcWL6P4YzESfAO6GHF8QIuGyAwS4Kwak1inLYhC0PUxbgb5whtwx2t/IRajef9odm48oBDNXqcd4hcnlGwb7PAptKuCxr3CM9gYG4rzjHyjJLXNzrWKO1ctbQ1ium9ks4C8yLAd98+Npem2R1yga178s9B2jMWxhRHn4X0QQxP6GHNvWeVBQiZc6b6vtKMkAOFArWfMit9YaaFOlVIQbestcJ2+FE8VoyMfnOA1SRPHA4KS8RDgNets9xKlpd2n0zGouG7/9DrVlONxw1UW2Iejb0OqF6CtVNJzrK8fP+hRtNj+OfwOIXnDWl/Km2QZo4KBFJwihiCNRANA1uiq7S07tAV0/u2jyiovEZodC4afXhoq8hlWcUGpvMenOSgBa0LhipuMKcXGEh8lCwzp/lI+9D7xSdtNohL01Jkp+emUNyaqByuGRRmsnFD9Dpc1NnjxBiQAAgAxK9WHGftPGgykpSV4MUTwKIYmukyfDR2t8e3by8Hid3hQbPzntArx F/0KXiP2 U+hX0Y9IR9vEXKfP1DR1clHxZEfN5uPJ2oqGMHcdNdPuQH6HuAWUJi7ZrBWd2rnvULFku+T2WWfRxYXIzbu4gL1sbQm5hPv9VA8Ofq/urBHk/BU/HwRXQGwJw0PdLURM/fatHM7sRANSZsl+Y2wq9giDfr80EaGxPkoaAl0wOQd7aJHK3CADccEvkbTttqYHSJ5qWVAuAfghUUfru/iyctP1lHiQObrSeW0H27lfzM3KvajozeWMiyoSfLS2GBLwh/DBEzPIqbrZtYfc= 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: List-Subscribe: List-Unsubscribe: RISC-V doesn't currently have the behavior of restricting the virtual address space which virtual_address_range tests check, this will cause the tests fail. So lets disable the whole test suite for riscv64 for now, not build it and run_vmtests.sh will skip it if it is not present. Signed-off-by: Chunyan Zhang Reviewed-by: Charlie Jenkins --- tools/testing/selftests/mm/Makefile | 2 ++ tools/testing/selftests/mm/run_vmtests.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile index 84573ddfcfa2..912778347213 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -112,7 +112,9 @@ endif ifneq (,$(filter $(ARCH),arm64 ia64 mips64 parisc64 powerpc riscv64 s390x sparc64 x86_64)) TEST_GEN_FILES += va_high_addr_switch +ifneq ($(ARCH),riscv64) TEST_GEN_FILES += virtual_address_range +endif TEST_GEN_FILES += write_to_hugetlbfs endif diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh index 03ac4f2e1cce..7caa624a2e5a 100755 --- a/tools/testing/selftests/mm/run_vmtests.sh +++ b/tools/testing/selftests/mm/run_vmtests.sh @@ -347,10 +347,12 @@ if [ $VADDR64 -ne 0 ]; then # allows high virtual address allocation requests independent # of platform's physical memory. - prev_policy=$(cat /proc/sys/vm/overcommit_memory) - echo 1 > /proc/sys/vm/overcommit_memory - CATEGORY="hugevm" run_test ./virtual_address_range - echo $prev_policy > /proc/sys/vm/overcommit_memory + if [ -x ./virtual_address_range ]; then + prev_policy=$(cat /proc/sys/vm/overcommit_memory) + echo 1 > /proc/sys/vm/overcommit_memory + CATEGORY="hugevm" run_test ./virtual_address_range + echo $prev_policy > /proc/sys/vm/overcommit_memory + fi # va high address boundary switch test ARCH_ARM64="arm64"