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: 12491 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1659508vqg; Mon, 24 Jul 2023 01:43:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlHgZ/yEN4fjJgjR5qjC/6LtpDEC2+384yL05L417DRa2gNKuljlX36QVkNGEOWltHTbzHCJ X-Received: by 2002:a05:6e02:100e:b0:345:d2fe:da92 with SMTP id n14-20020a056e02100e00b00345d2feda92mr6020437ilj.10.1690188234712; Mon, 24 Jul 2023 01:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690188234; cv=none; d=google.com; s=arc-20160816; b=kDnGnmCm4VtyurREDeqL4v9Fdy2kdLlS2MpHWKYCDgiLT1guxuNCt8qX6GJIurDNf2 mdtSgwoo3onVz7Pz7Y8XytGA5l/Y0YNrSDtcwDzN5lspyw5parF8KqXE3d0rAdDy12wH xb5/8zLglvUQbCcKFfKY7RhnywLDsMurqrPP1+mgxWWLigov3XLgYzXOjp/Bvcsnj0hA /G6S6NM2SbictdrU1veheqDZezqkf7XLn14ShgoJJJZLzuJUIvjhQc6b5W5JpGSWD1I0 3gwy7P10eduJmE9txmKR/daVXvpFI+g5jkf1l6Et+13E0BzRED/lr1TJcH6m5vS04Yyd GKrA== 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 :message-id:date:subject:cc:to:from; bh=fC5h/iPM6dZ7F93K6At35nBCTRY99g5BaeJ6FFr88P0=; fh=6rhI9kvwCMo+fckRKZYXD+Cg7edipvyuIhlyok3MppU=; b=uZvV3bqEDRcH7VkiezO4A2aokcEbxjsEKRnOQl++wUC7OmeP613y8CRyXrH0XQpo4N pfQqnqhxJ4Q7HPOyfm+Uu1TlLDJr/q7bUmLEqVPtRk8QhdcG7ADrwVdY+EC4EgokJLH1 HogQAqKdiJjklmCBdCRd127y11VAMgEUCsOFrRaigc7fg+4hKL/ESBx0rnT+i55F78BT xrKpRzLENvgr8/0HBsF3vop4RL3lUS1UJXdzoXTfVvHSsbwImeKwYZZsx4hpXgjabhJA hZWIUlXRy1mQH9iWk0eu/dGFkEt9rU/7FjpklwB4Vj3U7zDFGvZdkJlI/ems3d4u9BFl OVXQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fi41-20020a056a0039a900b00678ba339933si8871583pfb.160.2023.07.24.01.43.42; Mon, 24 Jul 2023 01:43:54 -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 S231401AbjGXIZj (ORCPT + 99 others); Mon, 24 Jul 2023 04:25:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230022AbjGXIZg (ORCPT ); Mon, 24 Jul 2023 04:25:36 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 521D01AD; Mon, 24 Jul 2023 01:25:33 -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 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772290817921547470 X-GMAIL-MSGID: 1772290817921547470 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