Message ID | 20230724082522.1202616-1-ryan.roberts@arm.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;kautuk.consul.80@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <ryan.roberts@arm.com> To: "Andrew Morton" <akpm@linux-foundation.org>, "Shuah Khan" <shuah@kernel.org>, =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= <jglisse@redhat.com>, "David Hildenbrand" <david@redhat.com>, "Mark Brown" <broonie@kernel.org>, "John Hubbard" <jhubbard@nvidia.com>, "Florent Revest" <revest@chromium.org>, "Peter Xu" <peterx@redhat.com> Cc: Ryan Roberts <ryan.roberts@arm.com>, 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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772290817921547470 X-GMAIL-MSGID: 1772290817921547470 |
Series |
selftests/mm fixes for arm64
|
|
Message
Ryan Roberts
July 24, 2023, 8:25 a.m. UTC
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
Comments
On Mon, 24 Jul 2023 09:25:14 +0100 Ryan Roberts <ryan.roberts@arm.com> wrote: > This is v3 of my series to clean up mm selftests so that they run correctly on > arm64. See [1] for full explanation. Please don't do that. Please maintain the [0/n] description alongside the patchset and resend it each time you resend the series. I could go over and copy-paste [1] into this patchset, but I don't know if it is fully up to date. I'll leave the patchset intro blank for now - please review/edit [1] and send the result in reply to this email, thanks.
On 24/07/2023 17:38, Andrew Morton wrote: > On Mon, 24 Jul 2023 09:25:14 +0100 Ryan Roberts <ryan.roberts@arm.com> wrote: > >> This is v3 of my series to clean up mm selftests so that they run correctly on >> arm64. See [1] for full explanation. > > Please don't do that. Please maintain the [0/n] description alongside the > patchset and resend it each time you resend the series. OK understood. Sorry about that. Do you have any docs for the mm submission process? If not, please keep pointing issues out and I'll get it right eventually. I previously thought that the cover letter was primarily for the email recipients and the description on each patch was the part that went into git? Clearly I'm wrong, but can't see anything in submitting-patches.rst so guess the mm process is a bit different? > > I could go over and copy-paste [1] into this patchset, but I don't know if it > is fully up to date. I'll leave the patchset intro blank for now - please > review/edit [1] and send the result in reply to this email, thanks. I doubt you would want the whole cover letter in git, so here is the relavent intro: ---8<--- Hi All, Given my on-going work on large anon folios and contpte mappings, I decided it would be a good idea to start running mm selftests to help guard against regressions. However, it soon became clear that I couldn't get the suite to run cleanly on arm64 with a vanilla v6.5-rc1 kernel (perhaps I'm just doing it wrong??), so got stuck in a rabbit hole trying to debug and fix all the issues. Some were down to misconfigurations, but I also found a number of issues with the tests and even a couple of issues with the kernel. This series aims to fix (most of) the test issues. It applies on top of v6.5-rc3. 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. ---8<--- Thanks, Ryan
On Mon, 24 Jul 2023 19:49:13 +0100 Ryan Roberts <ryan.roberts@arm.com> wrote: > On 24/07/2023 17:38, Andrew Morton wrote: > > On Mon, 24 Jul 2023 09:25:14 +0100 Ryan Roberts <ryan.roberts@arm.com> wrote: > > > >> This is v3 of my series to clean up mm selftests so that they run correctly on > >> arm64. See [1] for full explanation. > > > > Please don't do that. Please maintain the [0/n] description alongside the > > patchset and resend it each time you resend the series. > > OK understood. Sorry about that. Do you have any docs for the mm submission > process? If not, please keep pointing issues out and I'll get it right eventually. A work in progress ;) > I previously thought that the cover letter was primarily for the email > recipients and the description on each patch was the part that went into git? > Clearly I'm wrong, but can't see anything in submitting-patches.rst so guess the > mm process is a bit different? I expect all subsystem maintainers would like the [0/N] intro to be maintained and resent as the patchset evolves. > > > > I could go over and copy-paste [1] into this patchset, but I don't know if it > > is fully up to date. I'll leave the patchset intro blank for now - please > > review/edit [1] and send the result in reply to this email, thanks. > > I doubt you would want the whole cover letter in git, so here is the relavent intro: Pasted, thanks.
On Mon, Jul 24, 2023 at 12:01:45PM -0700, Andrew Morton wrote: > On Mon, 24 Jul 2023 19:49:13 +0100 Ryan Roberts <ryan.roberts@arm.com> wrote: > > On 24/07/2023 17:38, Andrew Morton wrote: > > > On Mon, 24 Jul 2023 09:25:14 +0100 Ryan Roberts <ryan.roberts@arm.com> wrote: > > >> This is v3 of my series to clean up mm selftests so that they run correctly on > > >> arm64. See [1] for full explanation. > > > Please don't do that. Please maintain the [0/n] description alongside the > > > patchset and resend it each time you resend the series. > > I previously thought that the cover letter was primarily for the email > > recipients and the description on each patch was the part that went into git? > > Clearly I'm wrong, but can't see anything in submitting-patches.rst so guess the > > mm process is a bit different? > I expect all subsystem maintainers would like the [0/N] intro to be > maintained and resent as the patchset evolves. Speaking for myself having everything directly in the e-mail makes the whole process easier, it means that everything that's needed is there immediately without having to go locate some external information or dredge things up from memory. This is especially useful when whoever's reading the series has poor connectivity for whatever reason (eg, I often go through my patch backlog while on trains). Cover letters that I get do also tend up to find their way into git in some form, generally edited a bit, due to the way I CI incoming changes: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git/commit/?h=for-6.6&id=85d12eda2382cd5b93eed720b5a08f39d42cfef4 though most people don't do anything like that.