From patchwork Tue Oct 8 09:41:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 13826116 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 E99A3CEF148 for ; Tue, 8 Oct 2024 09:42:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B1C966B0093; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AAA026B008A; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E0FB6B0089; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 457156B0088 for ; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 09A0D121B23 for ; Tue, 8 Oct 2024 09:42:03 +0000 (UTC) X-FDA: 82649943726.23.EC1ECC2 Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by imf11.hostedemail.com (Postfix) with ESMTP id 1C22240013 for ; Tue, 8 Oct 2024 09:42:00 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728380454; 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=RIk/JQ6fSpq0Cr4H3Wg6F/hC04nPsQdCeEtyKlbNqEk=; b=IMP2gvxS5FAVnjuFCp2BW4lhlyun2C1idFsWjtwchgAdHNyQZUraTi4jKrvrD4iKTLJh8a MV67JrT9YqUfxupcG/A6DEqMaY/FfsLzLXNoWOTRbXJCC+jW3mPDEOK3y6qnAqDU95YoWJ 4QTbvabzLm7eBuJpiC8RFh+nmtKuS+Q= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728380454; a=rsa-sha256; cv=none; b=AeSXz12P3bWd5kU5hBkUKA059f2EIdFPhK8Cwe7u9mLip+405RnbGBN6U9PuS0nsCLmEDA LVnIrkXzkbMYqkWEkcZpHUWE8dryp00oo6drT3QDtX0TuCqUrt65hBjduW2Eegva6h2ADk zoQDB8U+A71KbhgFYGTz73Wk3JCTIEI= Received: from ubt.. (unknown [210.73.53.31]) by APP-01 (Coremail) with SMTP id qwCowAAH7nxf_gRnEkoDBQ--.54511S6; Tue, 08 Oct 2024 17:41:52 +0800 (CST) From: Chunyan Zhang To: Palmer Dabbelt , Andrew Morton , Shuah Khan , Paul Walmsley 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 V2 4/4] selftests/mm: skip virtual_address_range tests on riscv Date: Tue, 8 Oct 2024 17:41:41 +0800 Message-Id: <20241008094141.549248-5-zhangchunyan@iscas.ac.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241008094141.549248-1-zhangchunyan@iscas.ac.cn> References: <20241008094141.549248-1-zhangchunyan@iscas.ac.cn> MIME-Version: 1.0 X-CM-TRANSID: qwCowAAH7nxf_gRnEkoDBQ--.54511S6 X-Coremail-Antispam: 1UD129KBjvJXoW7Ww13Kr13WryrGw1rAr13Jwb_yoW8uw1Dpa 4xA34Yvw10gFy7JF1kWr4DXFW8Ka1kGF48tFy8XryDury3Jry7ur4fKa1Ut3Wa9rWFqw4r Z3WSgasa9a4UJ3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUmKb7Iv0xC_Cr1lb4IE77IF4wAFF20E14v26rWj6s0DM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI 8067AKxVWUAVCq3wA2048vs2IY020Ec7CjxVAFwI0_Xr0E3s1l8cAvFVAK0II2c7xJM28C jxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI 8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwVC2 z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0V AKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Gr0_Cr1l Ox8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4IIrI8v6xkF7I0E8cxan2IY04 v7MxkF7I0En4kS14v26r1q6r43MxkIecxEwVAFwVW8uwCF04k20xvY0x0EwIxGrwCFx2Iq xVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r 106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AK xVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Cr0_Gr1UMIIF0xvE42xK8VAvwI8IcI k0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j 6r4UJbIYCTnIWIevJa73UjIFyTuYvjxUxF4iUUUUU X-Originating-IP: [210.73.53.31] X-CM-SenderInfo: x2kd0wxfkx051dq6x2xfdvhtffof0/1tbiCQ8EB2cExhf1+gAAs4 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 1C22240013 X-Stat-Signature: ktass7ix46daf1bf9agqe8eenrpd3dfi X-HE-Tag: 1728380520-532127 X-HE-Meta: U2FsdGVkX1/JHussOSLTSKW1K4OcfGkP1cJCc12BL87MtxiVuLl0wtvf+GOChhhoaQFBVR1cz3qhsYcwCeB6QTbMKay9PORogOaBcDfGGUMzUYxKDBu01Q00/CeZWIsvS3ZLpcjK3oXlcUVhPpnfYuSdoMxik62aKlTs9gzMUVBDjanPB+hKUoD8Yjg7yOUL6TVsuN1XAolsXs0KMJLBnTdds8Z9pIK4peISL3VaIM5c+xjWq7cjglz/N2Pi6iYgHVTWnkmTRZDDxmlHrlicMu7l2VMGEDf9Y7jgBBjblx6mJ9Eof9MqsO86KFWCNAxQbSNXCQCBvnINtz5ctuZ0ry5cDv1F1WyVFVsFvaIa55aTmigXaIS2m1B1DnsV70lR/5HpGu536RF7Am1VKi4WVSsXHUX3RKnWMYSPpWakJSGGWaZ5FJJ50CdEsFW/cgWTUZzjoDs7EO7HKecGPoiqQdwOuOGqBX8aVPJlrHocb5Jb8devX1V48vQMU87uvMeJzHz0BRaeBVFHa4F7Agzps3UspsNC5Ipho+GbbJLz6SmAB1tPQz9M9K/C521HcI25erbYEMvd5noiw69HHrcJjBGkDSSPYVG3X0j7465yk3w45dhgM8WCL3nvcbageDHWhQsds0MUCTopfu+/zw9KaDTaB21H0YCyKtJwJEudu+RAZ/YcJjtpv2zVer+7XUxrNu3JztpWhLqfVbCyjGIba74WcVUe9Oy4HEiNaiw0sMJvHnUgbu4f0rLwZFWbHAAwJzy5Ui7pVyz1fSq2G+/ziMlsxZwq/RAtqGIO4k8kbaRPN6v/nZVMBbP4oDNgxAgXCKa5z9bqL3eySf37IghGIMHpWPYA+ktOjGBgGi0LC+wdOxIdYHujdCWGgcAM5mluPRKiLMpml7Bu+/k2fx2eB2PmrB37OmtqH7d1/D9muaS7Wq1tvwKiBSj07n7SMOxdfultjAFYSaZ8MBYofvs nDjnubYI 8w8K5sRWxGD5nyjMa7n+8v9DsjbS0U3b+p2HDMyBoLRKa3zTdyU50c8n62Gj30kRg9OAvr6Ng61J/lEW2YvCqTy3+Avr3WxmLpwusVXf7VKlWUFPLa9UtKJkvwI8nRiC4I2AGnBIS+R1oi+QxiovIpitdSJLL9mBmNLsufPPMlWTGmmU3ZQqi0rTf70qO6pshOfi0Ms9ad+5hRcSl0Ungx4sZFXBMH8A3utu+iQ6HNiqDE5TfIfhbUBdvB/Ys8rYczzYQU3nPO6QwVPUH8DxZPSdDVdRKEWtC4OszLXd0Gwt/iAfuAscNw3guyHHZaYtMkx+OBZrxQOEdD2GOXs+YeWz1JB4MA4bLI7A2 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. Reviewed-by: Charlie Jenkins Signed-off-by: Chunyan Zhang Acked-by: Palmer Dabbelt --- V1: https://lore.kernel.org/linux-mm/ZuOuedBpS7i3T%2Fo0@ghost/T/ --- 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 02e1204971b0..76a378c5c141 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -115,7 +115,9 @@ endif ifneq (,$(filter $(ARCH),arm64 mips64 parisc64 powerpc riscv64 s390x sparc64 x86_64 s390)) 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 c5797ad1d37b..4493bfd1911c 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"