From patchwork Mon Jul 24 08:25:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Roberts X-Patchwork-Id: 13323542 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 F06FAC001DE for ; Mon, 24 Jul 2023 08:25:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 730CC6B0071; Mon, 24 Jul 2023 04:25:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6E23A6B0074; Mon, 24 Jul 2023 04:25:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5CF936B0075; Mon, 24 Jul 2023 04:25:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 4DB356B0071 for ; Mon, 24 Jul 2023 04:25:36 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 19FA8140932 for ; Mon, 24 Jul 2023 08:25:36 +0000 (UTC) X-FDA: 81045821472.11.536C832 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf26.hostedemail.com (Postfix) with ESMTP id DB388140005 for ; Mon, 24 Jul 2023 08:25:33 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690187134; a=rsa-sha256; cv=none; b=0Q0oV6mCfNuPTeOFT67Hj4X9dlvHXpPxH+7GZNrj0UFX5CyAZE/w4W2AFMIo1yk5tyPjcZ 05teHA9wCZ1FZsMiwh1jxO6l5mH4rdxKwUjLz0486m2R1z6bAaSLK+3um++RA3eRUHJ96E yhAXYUflfPZ75vU0C0cMTwfSEOhv5GE= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690187134; 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=fC5h/iPM6dZ7F93K6At35nBCTRY99g5BaeJ6FFr88P0=; b=0gaRM/Cjj7vwdtIAyhSRdEjFEZI2tnthqwpTLqrDTY57mwLeL+2S7HGscN4VKQkD3LU92T A6IVad1WD+qSOYHdAZwbXKkD0vJEQAqCJfeXiGO4EpIdl7zYH4h62E/8lbMVfIqOD75VjA +qhk9J0k6FLUCPGi+lTqMwoPETmTVRU= 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 E7F22DE0; Mon, 24 Jul 2023 01:26:15 -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 12A4C3F67D; Mon, 24 Jul 2023 01:25:30 -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 v3 0/8] selftests/mm fixes for arm64 Date: Mon, 24 Jul 2023 09:25:14 +0100 Message-Id: <20230724082522.1202616-1-ryan.roberts@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: DB388140005 X-Stat-Signature: d5b8gndzuj8nexndmpfrwfdxsh7hmk89 X-HE-Tag: 1690187133-411977 X-HE-Meta: U2FsdGVkX18wdbuol/NOfaY2CJ3tRZ3Jh6Vr+buirGyFn2ntNKybAlLF0bS6MOY5n6NzBTFGoqaisleAe5NrTjAYv722+2mVI7IDX8eBawBGaa9nbggdGSbeGp6Kb+imRmVnvEwf8ySUBCLaYhVHDjYZVOzGUtmuRp9+KaIyL3QUHZgWBvQwdhoM5hpJEReCbIa0ss/RNiYM97L8p/5IYx0qGQiEzOT/qybMSR7cuo4Mj5sjLzyJqlSyn/ctE2gk1V0ufs+Wf1B1VHUTHYlNmfVXQlUfmcQH121/2Eicjc/tHD5ZopMN4DKRxzTkmxXQgTMt4/dMXcmEtR+8NEd4f+wLeX+JXhD6uyCnyrHhWznjEO5rii6I9CU46ZnAvDKJbh/VTvnhYIwXNBwpZ4tUbnHFlPixecaqxs9uTXWXLisLv6pUzPP1Hff7djhcu7/+DSdsOHnbV9hyyBSbaftfwEWC+ZyTr14gLDRHjGcGfEtddkQ2jK3JZZ7NMGZKreAItaa4NxIiv9ZiOkZuNzDSi4UR/VYEGd10JeXWoFGsilE/PNZxwprshZfOfKReSvnsZ45TRnKsO0TyZOt60lSOZgyEv4gnepwD7KsLJFOW2LeR/M6Tzlpm+UlJ+FCARtSVMjblMci9DTlF5UVff/+MAfdbDcXUqGEcF6Z3cdLe7k8XH4OGCl3VV/S9nFXvMT0xyC6A5P10Jmoz8kNy/Q2TGT5UPlIAfkuSsMTrztGrRAxrKXX5LyGC///OhWma+yKhpj0t9HufLMNqKi0dGrHm+TRLyNRJnpocExMO7uOWaR9Sw1WZMVomy4T1WgM/+BmDslouyvaMX+YXCO7IBc4777Ef4SEg98vNwG+GEw2Sj6vSQNuUMnZgiPzvkCfy91R0osvf78u0T0ZHbgIdcksVfhj1yMYdlFGwMudfKMBE3GdZ6WhjJze3/lvG7/1oD45qyUIFrn/KMZJTIa80Nn8 f1qEDUxc u3a//cSANxWPdIsK3Lr/GO1koduHqgFzkPb81emt1KSEqh/5f2lx62qMKsaa+3AeYzrsFEwm86M+riKFvuBBWkrFMCkPbFQUgAbRn557gnlKvkEbKSW73tofllGgDUhEPTU2xj4lRabh5xHPWx1wJ+cXw/nsJUmnhUMMIrMysFkWb3DiOmmZvi/lveEfXe+OX4hOsF8ZSyKMCTl4NoPnpfl+LxhPN3AdL3k4Y 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 v3 of my series to clean up mm selftests so that they run correctly on arm64. See [1] for full explanation. Only patch 6 has changed vs v2. The rest are the same and already carry reviewed/acked-bys. So I'm hoping I can get the final patch reviewed and this series is hopefully then good enough to merge? Changes Since v2 [2] -------------------- - Patch 6: Change approach to cleaning up child processes; Use "parent death signal", as suggested by David. - Added Reviewed-by/Acked-by tags: thanks to David, Mark and Peter! 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/ [2] https://lore.kernel.org/linux-mm/20230717103152.202078-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 | 12 ++- 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, 132 insertions(+), 53 deletions(-) --- 2.25.1