From patchwork Mon Jul 17 10:31:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Roberts X-Patchwork-Id: 13315411 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 2CC7CC001E0 for ; Mon, 17 Jul 2023 10:32:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 97A686B0072; Mon, 17 Jul 2023 06:32:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 92A5F6B0074; Mon, 17 Jul 2023 06:32:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 81A278D0001; Mon, 17 Jul 2023 06:32:10 -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 71EF36B0072 for ; Mon, 17 Jul 2023 06:32:10 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 3D9E21404E3 for ; Mon, 17 Jul 2023 10:32:10 +0000 (UTC) X-FDA: 81020738820.10.89A54B8 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf20.hostedemail.com (Postfix) with ESMTP id 8022C1C001D for ; Mon, 17 Jul 2023 10:32:07 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf20.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689589928; 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=Z65q/QIrbCdpNNUH4E/OfUUQzz36ObsIRcL4Uv/GqG8=; b=o3mWe+pp4u9yRB6roPN7LuVou9ab5JJS3W4xea+fvA66ipFkDYAHadgvGfHaQl7kENjDnm lGcrBHdxF6+gi0kI8gdOfShKe3zA8+BuIhAc9amnMj1jp7miCyGAwo3tn59/i7nX7hpkx+ QiRc4boavb4eVnVENajh3jhgJcG2WUM= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf20.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689589928; a=rsa-sha256; cv=none; b=5LTJ2TdTGqBmmtNnjvjLgWUF5xBpecqlciUb40O/ZOrGruU2WJuoirqo64wrgxDopnDlOa oOM4B5dEwhD/Ydc/gbKuldkAsWdUSNZBuPF6qex0fOvEPdg9Ni5IXXi4vNnhvBbb69lvRT A4t8XW06VCBizqnGs+T3zu0q/QDDm68= 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 A476C2F4; Mon, 17 Jul 2023 03:32:49 -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 A991C3F67D; Mon, 17 Jul 2023 03:32:04 -0700 (PDT) From: Ryan Roberts To: "Andrew Morton" , "Shuah Khan" , =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , "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 0/8] selftests/mm fixes for arm64 Date: Mon, 17 Jul 2023 11:31:44 +0100 Message-Id: <20230717103152.202078-1-ryan.roberts@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 8022C1C001D X-Stat-Signature: 68uumrmerisj4z7kgsa8hkx6wmh1nxqq X-HE-Tag: 1689589927-532177 X-HE-Meta: U2FsdGVkX19eC38dsEWIzaodQ3QKeqkYC56ShZLhSKwBWFiFDcOSgoK/BSWaI9YDKAtILA23FAvToiKbgss5Ulotp8SUKZnYj2mMYkWfNtVphNm6g/Tif+qKKjKrEHEIvydn2FFgieZgVeGYCyDIAjJs/1DHoCGzQeAFm6aB/7W2Bcy53xJcWx8BoCX0fNAbNMnCDn8+CfGs+Dl4Za+VjsulHhcQPikysuzE7HJaBEBtKFlhnUpfOzsZ+r9cyUtF7JGYYqIb5C7AF1TCjKa6qY38FPkGz3SGpzf4MVFupS+jeghKWOL6K3e/JIb/7BsiT6Cnfd/Wn+LB/hvHYbTyVQ7Oi5+WD8+zJ1ECxVsePrqx3LTx0V1m3M+d9+ciFu2RtrW9bRNSBlZxl4M+9z6+yHa6ZwwQrvs1jAOZcVbLHvqFODdD4gJ9yRYVcqn7XLajGZ5hRQq/25bsgEx+IRKdsMWSFxqfDIbaxYkLbg9idog/ymarrK9YPFhN/lnmTTB1LjC0dqZQ0dKPFUsvTL0a89xaATYcogLe9c1mpY8PFjgUPmJUGp29uhIVyR5ITzuHRAeP6l9v5oawuKewX4MQ25s/Pi4sSh/UmznmUPc/sGHhzJh1/VfaawJ3KkbDBZzQdeqJq5JP2Vl7Ie1igWNjJjd3AyxNMP0fTqMyNGw5tB7oXhrUp2MsoKew02EW5YEX7ogtFqLRh/pUCFXUcQz3AgiuWriTp0d20y7DhhzmVRmITAgbsq2HdEjmmrlhe4PjIrHWq/GdM+pxZl2gB+D3NvWRJSrxbywHls8tlujUppsHsRjSV0EFsurTjpPd7LdToRiB4GaMl8tGHovh28NfHrhKYE6SwhHPX5WCkyBLR0fts0IvA10drVH97O/iaKQqkfGVu+wGhherYIkfuBK4u+RA4kdA+/C9bJqEzYsYVETuWTVzgBnzqWRLeGmuL3NsgVWGckm+50NWiQNSPAg MyAVoQFY POJN6cAGZDaQUtsdewmdgrGeRz73XUC1Rk8X5q49KfAoamoW7N8lLcUNERgo6OfKmQO1+n+wOg5fMaI2H3jUxkZ5NeAH3YXqiX4rJLTLtX+1iAF9KdI81pZaqKbhhIdrcj2zJtt+0BpfRpzoZV/pqpVrviIxD42JGz+SDZRe61e9Ben/gzx5jJinZWAzN9cH2qqvsaHNFu1WyOdSDldsAwWboLw== 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: Hi All, This is v2 of my series to clean up mm selftests so that they run correctly on arm64. See [1] for full explanation. Changes Since v1 [1] -------------------- - Patch 1: Explicitly set line buffer mode in ksft_print_header() - Dropped v1 patch 2 (set execute permissions): Andrew has taken this into his branch separately. - Patch 2: Don't compile `soft-dirty` suite for arm64 instead of skipping it at runtime. - Patch 2: Declare fewer tests and skip all of test_softdirty() if soft-dirty is not supported, rather than conditionally marking each check as skipped. - Added Reviewed-by tags: thanks DavidH! - Patch 8: Clarified commit message. [1] https://lore.kernel.org/linux-mm/20230713135440.3651409-1-ryan.roberts@arm.com/ Thanks, Ryan Ryan Roberts (8): selftests: Line buffer test program's stdout selftests/mm: Skip soft-dirty tests on arm64 selftests/mm: Enable mrelease_test for arm64 selftests/mm: Fix thuge-gen test bugs selftests/mm: va_high_addr_switch should skip unsupported arm64 configs selftests/mm: Make migration test robust to failure selftests/mm: Optionally pass duration to transhuge-stress selftests/mm: Run all tests from run_vmtests.sh tools/testing/selftests/kselftest.h | 9 ++ tools/testing/selftests/kselftest/runner.sh | 7 +- tools/testing/selftests/mm/Makefile | 82 ++++++++++--------- tools/testing/selftests/mm/madv_populate.c | 26 +++++- tools/testing/selftests/mm/migration.c | 14 +++- tools/testing/selftests/mm/mrelease_test.c | 1 + tools/testing/selftests/mm/run_vmtests.sh | 28 ++++++- tools/testing/selftests/mm/settings | 2 +- tools/testing/selftests/mm/thuge-gen.c | 4 +- tools/testing/selftests/mm/transhuge-stress.c | 12 ++- .../selftests/mm/va_high_addr_switch.c | 2 +- 11 files changed, 133 insertions(+), 54 deletions(-) --- 2.25.1