From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from CY7PR03CU001.outbound.protection.outlook.com (mail-westcentralusazon11010058.outbound.protection.outlook.com [40.93.198.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3A0312B94; Thu, 12 Mar 2026 14:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.198.58 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773324027; cv=fail; b=ML8EvLQHcLVZNX11BW+u5BRLyS3X4fkT5vZMZLNTHJ6QDLkAP2byeMBk6dUvxyVvemhcs97Qq/NAEEmyZkyQd55QCDjCZEEkM8927P17jzIme9EFad4Rwnjr7Dx8f23dymbVwA0kols/qBl+Rd8ddVzcDIxonO3S1hH/1zkd0fc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773324027; c=relaxed/simple; bh=OA+QiPh8OdS941WMoNVwgFi7G8Jk8pR4Qw7xkw3gQRY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=CeRcwFNdPtGCnky0QFhlG5kUfcT4zk5oFEQBLJrXprwwFR7HXQ07gJnmCGGuUTxFi8B6YjHILgcVyJRTjdT8IpmE7x52OsYc24gtbG2YGcqFv/7kP796xjRo4ftwNzanqS2nOIo1wu2X0e5FUQju17JLZUDcG8xE3xOBibcbsHo= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=Jx+JuUKV; arc=fail smtp.client-ip=40.93.198.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="Jx+JuUKV" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HwP1EJF7IIxgiHKlI2D2DD9YFBoZKfVxJYlgEhOjXMhUP21QmmxsE1CxN1jwjjs30e4vjk6EpzYB2Br3PnNITP4VSNU/G6qOjnXgWuPJkicpKPglE95xc07Px6gq9tXBPxgNJwJwUA6X+iUyfZxMy4OWv3yP8f7Ua0ORFedimCWd7BC9i5x4SVRLY83c8PVX6N0vS+vb1VRR0zxjlkf0IJuqSacGPDbzxk+kByyOqXcmoozPYM+uT6t5f2jhYzeQXO+t2oSq22HWynoXLWli98DWkmT2W0EuiH9VfdhKWEqLlsFkdjtCrvPgsGDKMvisvHfSmjtmJHKruRhTC3drLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ctevzFtcplbZ74O/HDKpopiNfjNHeItQjGdCCe+K52Y=; b=B6UWDQsSGNQMHHeuTrO4J5w4x+/CqwgyHUPrsmS6xbxpLD3yvA6Wx6FxtA0QgI4ZdiLVvfgmXFcioC9up8cpziwGZb0bCJmIDY2fbIdJGavOqUSTdACNHZpbgEqpR4epIYk7Ml5HEaO+NnZATQQlCffhcw0ZlBKv7/CT4qhmtDPlR+eV+VNsxmqUONnE7qrV1eOo9GW6ksMCfAv0Ky7d3aNl4Redu8vwQEce/fxFbKYc8lwsfXKQ1JtE0Z0DrIObB5F9is+5Q+hKU+GEBB5mXCLvfRGQwxTv+Twn3I3NHv+gluKjHAtBSXOy6otuldWLlYkKrAcTqIa8n+beHy7V0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ctevzFtcplbZ74O/HDKpopiNfjNHeItQjGdCCe+K52Y=; b=Jx+JuUKV3zPBvy/4dBieXMU75BKOqaiM7ZepngpwjFMNFqZ0rMhuNiaeW2MDStEw5JjVgxVyPpbYSGpwJpNgR7dNcFCWCiSe2x2S/O2Dsobo2W7/yE1TJ10SEhmKY+faWtS9OVro+LCG8ZkIaQSVJT3nz6OeWn/je5atGOBvRw2mj6p+edf6JT79/TAZqMp/ymNsvTllv7EpXgD2GtAFrylJ0mlb+nXOZApxbWYK8fjWnRkP8AxcNbwbBBlv+JIGYy6f3RxtVscwxf0QmoLMuAdbVpDuZBz+shW7+5nhHEsdv02RMIdjRoJXCNdsET9r4AP4townxc5iRsdBPn8Qgg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from DS7PR12MB9473.namprd12.prod.outlook.com (2603:10b6:8:252::5) by MN6PR12MB8490.namprd12.prod.outlook.com (2603:10b6:208:470::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9723.6; Thu, 12 Mar 2026 14:00:16 +0000 Received: from DS7PR12MB9473.namprd12.prod.outlook.com ([fe80::f01d:73d2:2dda:c7b2]) by DS7PR12MB9473.namprd12.prod.outlook.com ([fe80::f01d:73d2:2dda:c7b2%4]) with mapi id 15.20.9723.000; Thu, 12 Mar 2026 14:00:16 +0000 From: Zi Yan To: Chunyu Hu Cc: akpm@linux-foundation.org, david@kernel.org, shuah@kernel.org, linux-mm@kvack.org, ljs@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, lorenzo.stoakes@oracle.com, Liam.Howlett@oracle.com, vbabka@suse.cz, rppt@kernel.org, surenb@google.com, mhocko@suse.com, baolin.wang@linux.alibaba.com, npache@redhat.com, ryan.roberts@arm.com, dev.jain@arm.com, baohua@kernel.org, lance.yang@linux.dev, Li Wang Subject: Re: [RESEND PATCH 2/4] selftests/mm: soft-dirty: skip two tests when thp is not available Date: Thu, 12 Mar 2026 10:00:10 -0400 X-Mailer: MailMate (2.0r6290) Message-ID: <15C0D70D-CDD4-44FF-94F8-ACC0C5EE3C69@nvidia.com> In-Reply-To: <20260312114027.634559-3-chuhu@redhat.com> References: <20260312114027.634559-1-chuhu@redhat.com> <20260312114027.634559-3-chuhu@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SJ0PR13CA0102.namprd13.prod.outlook.com (2603:10b6:a03:2c5::17) To DS7PR12MB9473.namprd12.prod.outlook.com (2603:10b6:8:252::5) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR12MB9473:EE_|MN6PR12MB8490:EE_ X-MS-Office365-Filtering-Correlation-Id: 79ff23db-0685-459f-9123-08de803faff7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|56012099003|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: D1OBWTnpS7YikGZsUq7J40qO5yrd4XBrpt3pIh4OveWA1XON98Z27XVcLpko4FliwOlRZV49SUPruH7f25C8d22CQxEZmBTCY2ZAGUbzdbtAPFig2V4Du15IwSpEAnK54ysr7O5XpvFaxkgycitiMvg1GhlZHsySOSqCAA93csxgqlazdgTxjpgKnxkFmaHOTuRxzrUQprcdv+74alo5/AyNp8Y1extWwTdxDULA7aiHI9DbfKJmjWeQbrw2yUvvbCTnq1KmaQbML19gcuWUY1glAlIIzU7C5PILmRTYhvxTt0Z4qdi2ZkgtE2oOto0KMv/9AkXh8jOKzmK/hpYswDr5tIJmlrcrcuY1Co0xNwsAD9/VH9Sx+o1WIttKZHTfR24PUiGUkWRlDcyezq/kwaCXREAJ7GOaXmY2MpAy5UK8yH2mAgaJCdseCWqRRfSecVFmfh9xAEzu7dJvfUKHrUmWiRBkOsE8xR2eam7z+UE0d5YAOTLqqXDbCvnoJQTrF/fQaS8fNH7WKIl+1ONN7F1qD+1x7J50tfButOh9jGtDcXSsAagYzTlf3jMsfO+IJ0UhxNQtB7tNreQG862EbTaghEkA9m4DxwRxuhr7OIADEqlQar3lGYDlOePkWx16hr5WnDlp7CjBdsNfxpKVQSQoT7nW7EWJ3Y9JNMihs0lPjtWcsfIDWHWFDjKdgUlwwrqogxsOrIZMpebX7s/uQWz2ACtHOZOWDEpWSwVTK8A= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR12MB9473.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014)(56012099003)(18002099003)(22082099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?orT1ox/dBW5DQWN4aaD8I7fGieDzB6w2WW5x3fjQuKeDFGhzRH1CLa1pAZt7?= =?us-ascii?Q?eHFTEFxbiABXeYX8LW0Smbll2gXij6CXNu6owVVCDnGd2c9hsXn3rIF138R4?= =?us-ascii?Q?/C/BrOi9RTTceDR+0qNuR10BzSvodyZ4cuF/ixUOZCzujKtGv9O9B/L8VIg6?= =?us-ascii?Q?6wngQ7B198ac9b/Hn5lrSe6NyK3oLRbrU8uJJL7TrBglDh1nf/wSHzPSWGKP?= =?us-ascii?Q?ks5DRhswtT7K6qvPDLPrZlS0ILXKBfAhls5qByBErm6e98yGjUzVyg8naOG8?= =?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XRiNdT4QBh1/6HgSkSDg?= =?us-ascii?Q?9PZPGcwYel0OQEUiAgzqigkahBUCGJv+OshehPefMTFffkzqL/TXLjbgLZn+?= =?us-ascii?Q?casqrJ0cmrjxwdTEpAo3pPJ1Tp5zLQC7gga1ztzZG1CUYHeCN9u4h3Iehvfp?= =?us-ascii?Q?l35g8ZXZAYmNEKip9bw2WFPoC+E47VuRlYUfjqACfV4SG+TOUyRAFq17ru54?= =?us-ascii?Q?CTlSYSLvcKKo2qvR9+dnZjyJ7pwdHfQFyIhY1q98G/qT/P5wdnckCP9x9Czw?= =?us-ascii?Q?/ydDHk+YX42FUhzqaEqMZi/LusHpQNYQu/5QNHWuCSPE5e1fmOXo9pKvsX2l?= =?us-ascii?Q?zcCWOVuXhz+iCiejL5kEdESA7aabsK7CiMalEvQczgbd461T3O4hAyAwBPyq?= =?us-ascii?Q?0O7h653pd5eM+JeRhM7QO+yFimYhx9H08mFkQx/HTdW2zvQV/18gGJ86gIlI?= =?us-ascii?Q?mN5UC13Z+TYwcvqGjdn/jbzK4c4BP2jM0SPqij1zgZ3NqI3zqdVTZG+2YNtR?= =?us-ascii?Q?CONSvAFV57t5oh0Z5lk5IIllrNXOoXkKP51QVsn12B9qNNwOHWpa3EM0FzpX?= =?us-ascii?Q?J5UeJECfmQ=3D=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79ff23db-0685-459f-9123-08de803faff7 X-MS-Exchange-CrossTenant-AuthSource: DS7PR12MB9473.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2026 14:00:15.9080 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hYXYqWiVT3ooEOQe6Gsh8Fk22uJBfq/2UFFIJLgchxML8q970FsveIq60UX7NZ8b X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN6PR12MB8490 On 12 Mar 2026, at 7:40, Chunyu Hu wrote: > The test_hugepage test contain two sub tests. If just reporting one ski= p > when thp not available, there will be error in the log because the test= > count don't match the test plan. Change to skip two tests by running th= e > ksft_test_result_skip twice in this case. > > Without the fix (run test on thp disabled kernel): > ./run_vmtests.sh -t soft_dirty > # -------------------- > # running ./soft-dirty > # -------------------- > # TAP version 13 > # 1..19 > # ok 1 Test test_simple > # ok 2 Test test_vma_reuse dirty bit of allocated page > # ok 3 Test test_vma_reuse dirty bit of reused address page > # ok 4 # SKIP Transparent Hugepages not available > # ok 5 Test test_mprotect-anon dirty bit of new written page > # ok 6 Test test_mprotect-anon soft-dirty clear after clear_refs > # ok 7 Test test_mprotect-anon soft-dirty clear after marking RO > # ok 8 Test test_mprotect-anon soft-dirty clear after marking RW > # ok 9 Test test_mprotect-anon soft-dirty after rewritten > # ok 10 Test test_mprotect-file dirty bit of new written page > # ok 11 Test test_mprotect-file soft-dirty clear after clear_refs > # ok 12 Test test_mprotect-file soft-dirty clear after marking RO > # ok 13 Test test_mprotect-file soft-dirty clear after marking RW > # ok 14 Test test_mprotect-file soft-dirty after rewritten > # ok 15 Test test_merge-anon soft-dirty after remap merge 1st pg > # ok 16 Test test_merge-anon soft-dirty after remap merge 2nd pg > # ok 17 Test test_merge-anon soft-dirty after mprotect merge 1st pg > # ok 18 Test test_merge-anon soft-dirty after mprotect merge 2nd pg > # # 1 skipped test(s) detected. Consider enabling relevant config opt= ions to improve coverage. > # # Planned tests !=3D run tests (19 !=3D 18) > # # Totals: pass:17 fail:0 xfail:0 xpass:0 skip:1 error:0 > # [FAIL] > not ok 52 soft-dirty # exit=3D1 > > With the fix (run test on thp disabled kernel): > ./run_vmtests.sh -t soft_dirty > # -------------------- > # running ./soft-dirty > # TAP version 13 > # -------------------- > # running ./soft-dirty > # -------------------- > # TAP version 13 > # 1..19 > # ok 1 Test test_simple > # ok 2 Test test_vma_reuse dirty bit of allocated page > # ok 3 Test test_vma_reuse dirty bit of reused address page > # # Transparent Hugepages not available > # ok 4 # SKIP Test test_hugepage huge page allocation > # ok 5 # SKIP Test test_hugepage huge page dirty bit > # ok 6 Test test_mprotect-anon dirty bit of new written page > # ok 7 Test test_mprotect-anon soft-dirty clear after clear_refs > # ok 8 Test test_mprotect-anon soft-dirty clear after marking RO > # ok 9 Test test_mprotect-anon soft-dirty clear after marking RW > # ok 10 Test test_mprotect-anon soft-dirty after rewritten > # ok 11 Test test_mprotect-file dirty bit of new written page > # ok 12 Test test_mprotect-file soft-dirty clear after clear_refs > # ok 13 Test test_mprotect-file soft-dirty clear after marking RO > # ok 14 Test test_mprotect-file soft-dirty clear after marking RW > # ok 15 Test test_mprotect-file soft-dirty after rewritten > # ok 16 Test test_merge-anon soft-dirty after remap merge 1st pg > # ok 17 Test test_merge-anon soft-dirty after remap merge 2nd pg > # ok 18 Test test_merge-anon soft-dirty after mprotect merge 1st pg > # ok 19 Test test_merge-anon soft-dirty after mprotect merge 2nd pg > # # 2 skipped test(s) detected. Consider enabling relevant config opt= ions to improve coverage. > # # Totals: pass:17 fail:0 xfail:0 xpass:0 skip:2 error:0 > # [PASS] > ok 1 soft-dirty > hwpoison_inject > # SUMMARY: PASS=3D1 SKIP=3D0 FAIL=3D0 > 1..1 > CC: Li Wang > Signed-off-by: Chunyu Hu > --- > tools/testing/selftests/mm/soft-dirty.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > LGTM. Reviewed-by: Zi Yan Best Regards, Yan, Zi