Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5401949rwp; Mon, 17 Jul 2023 03:37:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzdqqa9ziyp6PXN1lQELQEpoec07tJSIUj0659LXSCUhizMHDfbqzLShZqqi7J593f42M8 X-Received: by 2002:a17:906:22db:b0:991:b613:9b65 with SMTP id q27-20020a17090622db00b00991b6139b65mr8815410eja.37.1689590268484; Mon, 17 Jul 2023 03:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689590268; cv=none; d=google.com; s=arc-20160816; b=Vbc+srOHFWdh/NDHfGo0t1hlovR5g3JtHF+4tVAJkL5N17R3ioVCPPetWNz0CJYhgf 1Ux8GgamTo3snXZh7vMTiTov8yCr9xn8CSLMY+dhjrpP+asRb18DYE76MPOgfXoy00+O tbBzIgJQB3aJeiwP/gNobDREjrG2uihGA0F0Jgl+NnfQCyj0730VyaPEwhOitTJhb2nY KB1vyjHvc3aTyVDUW2aABvV3yufxzJyLQNcUmh59yU6baSD3DmOegIeBTKsnR/jOmAfL 3DfT7mXkpQ4akQb4STYrJ7ljL492G8sph3oSqLRSCQbdMiH3I7MlrKxJ7GBOaoZIT/Ve AAWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dNlBjDfq+AmKtLS3RpRye5O1GUWvdXIGLiTgWzCy/u4=; fh=OUPfCZjK3Gm4uAxJmzTYkNGoALdOI9ZG4q/pkSTXiCE=; b=XlOAlW077c1g10detgp9Md76lTZ8u9uKs/Di8nHFCvxdHMtGWh8h7gd9/IqYI7JtRc O/MWfnvukh61/O1aWxeZn0yAYzB+1uvKwBZphbPJOK/q+oN//NMWQdjJLeOEDB6kZWK+ i0ZAXwpX0uzjL4HpPEMJUBi9AUx9XDgw53L+PUaRlp9SVEgkwvX9nwXyEawJ925t1Op1 6kTo3BOBGFUh4gSOC0mhH/bajcY6Tk9kpOU2kWYRMqXCE5D4UJZQ30HoOO4ZB0TL0gbv jyRWKLVkwTeEMb1v8NE6cn08RxKZLSVNQV5aIhPA4f3m+Cd1y8iIcs/0U7DcnRi+dXfK qLIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w25-20020a1709064a1900b00991f773d9b4si6024846eju.268.2023.07.17.03.37.24; Mon, 17 Jul 2023 03:37:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230394AbjGQKc0 (ORCPT + 99 others); Mon, 17 Jul 2023 06:32:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230338AbjGQKcU (ORCPT ); Mon, 17 Jul 2023 06:32:20 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BC9A910C0; Mon, 17 Jul 2023 03:32:16 -0700 (PDT) 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 685612F4; Mon, 17 Jul 2023 03:32:59 -0700 (PDT) Received: from e125769.cambridge.arm.com (e125769.cambridge.arm.com [10.1.196.26]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6F4F93F67D; Mon, 17 Jul 2023 03:32:14 -0700 (PDT) From: Ryan Roberts To: "Andrew Morton" , "Shuah Khan" , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , "David Hildenbrand" , "Mark Brown" , "John Hubbard" , "Florent Revest" , Peter Xu Cc: Ryan Roberts , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 5/8] selftests/mm: va_high_addr_switch should skip unsupported arm64 configs Date: Mon, 17 Jul 2023 11:31:49 +0100 Message-Id: <20230717103152.202078-6-ryan.roberts@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230717103152.202078-1-ryan.roberts@arm.com> References: <20230717103152.202078-1-ryan.roberts@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org va_high_addr_switch has a mechanism to determine if the tests should be run or skipped (supported_arch()). This currently returns unconditionally true for arm64. However, va_high_addr_switch also requires a large virtual address space for the tests to run, otherwise they spuriously fail. Since arm64 can only support VA > 48 bits when the page size is 64K, let's decide whether we should skip the test suite based on the page size. This reduces noise when running on 4K and 16K kernels. Signed-off-by: Ryan Roberts Reviewed-by: David Hildenbrand --- tools/testing/selftests/mm/va_high_addr_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/va_high_addr_switch.c b/tools/testing/selftests/mm/va_high_addr_switch.c index 7cfaf4a74c57..cfbc501290d3 100644 --- a/tools/testing/selftests/mm/va_high_addr_switch.c +++ b/tools/testing/selftests/mm/va_high_addr_switch.c @@ -292,7 +292,7 @@ static int supported_arch(void) #elif defined(__x86_64__) return 1; #elif defined(__aarch64__) - return 1; + return getpagesize() == PAGE_SIZE; #else return 0; #endif -- 2.25.1