Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2220074/?format=api
{ "id": 2220074, "url": "http://patchwork.ozlabs.org/api/patches/2220074/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/ac04b3ee7d733798b4d79c840f4ce4e94118680c.1775466329.git.sayalip@linux.ibm.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<ac04b3ee7d733798b4d79c840f4ce4e94118680c.1775466329.git.sayalip@linux.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/ac04b3ee7d733798b4d79c840f4ce4e94118680c.1775466329.git.sayalip@linux.ibm.com/", "date": "2026-04-06T09:19:25", "name": "[v4,06/15] selftests/mm: size tmpfs according to PMD page size in split_huge_page_test", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "86937a1da965980b3d184789f2dbac04500bfc77", "submitter": { "id": 92656, "url": "http://patchwork.ozlabs.org/api/people/92656/?format=api", "name": "Sayali Patil", "email": "sayalip@linux.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/ac04b3ee7d733798b4d79c840f4ce4e94118680c.1775466329.git.sayalip@linux.ibm.com/mbox/", "series": [ { "id": 498833, "url": "http://patchwork.ozlabs.org/api/series/498833/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=498833", "date": "2026-04-06T09:19:22", "name": "selftests/mm: fix failures and robustness improvements", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/498833/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2220074/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2220074/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-19389-incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=pgl+hWjC;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19389-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=148.163.156.1", "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com", "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=pgl+hWjC;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com\n (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com;\n envelope-from=sayalip@linux.ibm.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fq3hk6RWmz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 19:20:38 +1000 (AEST)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fq3hh58S7z2ymg;\n\tMon, 06 Apr 2026 19:20:36 +1000 (AEST)", "from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n [148.163.156.1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fq3hg6XKnz2ySV\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 06 Apr 2026 19:20:35 +1000 (AEST)", "from pps.filterd (m0353729.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 635GjJNf3103384;\n\tMon, 6 Apr 2026 09:20:11 GMT", "from ppma21.wdc07v.mail.ibm.com\n (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91])\n\tby mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4datap5vpp-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tMon, 06 Apr 2026 09:20:10 +0000 (GMT)", "from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1])\n\tby ppma21.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 6365wtoS020570;\n\tMon, 6 Apr 2026 09:20:09 GMT", "from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224])\n\tby ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4dbdync2w2-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tMon, 06 Apr 2026 09:20:09 +0000", "from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com\n [10.20.54.101])\n\tby smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 6369K5ZW58130846\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tMon, 6 Apr 2026 09:20:05 GMT", "from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 7B6B72004B;\n\tMon, 6 Apr 2026 09:20:05 +0000 (GMT)", "from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 27CE320040;\n\tMon, 6 Apr 2026 09:20:02 +0000 (GMT)", "from li-3f69264c-2ce6-11b2-a85c-c3f414d24014.bl1-in.ibm.com (unknown\n [9.123.3.209])\n\tby smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP;\n\tMon, 6 Apr 2026 09:20:01 +0000 (GMT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775467236;\n\tcv=none;\n b=Ut36RCQUUNjD0+9ovZ2HvB2oj5s1RtvRuJvYTF4xNkitrrE4FfcgNh8t4ZpIMvU9tY80QPsehXl34NLAgyC5Df63JytvZLMTfZU8Vj/9YyMHeLfJu6hvN2pqYe2KxtyuY7zrVb0K/86fi6JaJr98olldD0/yEyKeBEQE2Ad2bS6MXQ3J8GEUUjZvragwtwSTE3N/lSFh78oGva1LtpJJFiiEdGDed+0cdGRZIt/KSuay4jjPgYk84lv30J2jykJaTfGH97zDKGDlActG/0DU6nXHGyL5ryHa4kEILdILiQ5Uy2AzFrI4W/bZJCp9+b0c+sq36oA2F7A1FhgE0AWt9Q==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775467236; c=relaxed/relaxed;\n\tbh=KF0duKJ7kidshxIeQZb5EcnjWw7TF8XQDpz9/tTREjA=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=B6iUaSVXDM/m5LpZKqsLQ0CtRs82SFYvSqvdtNv7jF5gMyXUMeXFiqnNAo4MSDtdeaZ1RfTAu72XbmnhStLblR73vvucYmtqVwU13JK5jAPHsMZaXgIL+KNOmH9uVfWaVO/voJYsS+A1gRbcSjrqsFGSoSvcaf8t2KdlL7m8z3ehcbSXjSTVuWCW/dn3K2ILSNTFmCTt9IvuuhRf6+jvw8d2EtIPS7K13BBH5JMIguTxilbQYWpqKWeKrxXMgmOJlj5TeD26+EPHkf7B1lGwF7+myEEi8qZgFX31JOmRIML6ZQpdKMQJkf2wazdKxKL8SxmPS7lW811GjWzVAMJnTA==", "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=pgl+hWjC; dkim-atps=neutral;\n spf=pass (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com;\n envelope-from=sayalip@linux.ibm.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=linux.ibm.com", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n\t:content-transfer-encoding:date:from:in-reply-to:message-id\n\t:mime-version:references:subject:to; s=pp1; bh=KF0duKJ7kidshxIeQ\n\tZb5EcnjWw7TF8XQDpz9/tTREjA=; b=pgl+hWjCPThXudeYR9tfUEanv4t9VABx5\n\tK7L49v0Ijr3/Y6B0+yXUOweqkNUX7yawJMbiWNyYlbTXrAxcEX6DdwXILOvfch31\n\t/MO+suSCBFVTAwpdZMEIuz//u7OhUYsOqBxWFBfBRCrvYRzJN/3nVlbuDFb5FpSg\n\tThdesf4Jt45KsHvI1CjQbYga76s6wupvEBcUJ7kAr8muqfEFVOvf5XmvN6okydQP\n\t1FEbvzOoisB7STlX5pfxOilLkeH5arOz8JbaZ70huH+djqHyz11/57zUM1EXbWf+\n\t44bnWS5EMXfpGHJDprklB0xaAKYfvMbmvJkYwiMeJ3AiSgEb+pmEg==", "From": "Sayali Patil <sayalip@linux.ibm.com>", "To": "Andrew Morton <akpm@linux-foundation.org>, Shuah Khan <shuah@kernel.org>,\n linux-mm@kvack.org, linux-kernel@vger.kernel.org,\n linux-kselftest@vger.kernel.org,\n Ritesh Harjani <ritesh.list@gmail.com>", "Cc": "David Hildenbrand <david@kernel.org>, Zi Yan <ziy@nvidia.com>,\n Michal Hocko <mhocko@kernel.org>, Oscar Salvador <osalvador@suse.de>,\n Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,\n Dev Jain <dev.jain@arm.com>, Liam.Howlett@oracle.com,\n linuxppc-dev@lists.ozlabs.org, Miaohe Lin <linmiaohe@huawei.com>,\n Venkat Rao Bagalkote <venkat88@linux.ibm.com>,\n Sayali Patil <sayalip@linux.ibm.com>", "Subject": "[PATCH v4 06/15] selftests/mm: size tmpfs according to PMD page size\n in split_huge_page_test", "Date": "Mon, 6 Apr 2026 14:49:25 +0530", "Message-ID": "\n <ac04b3ee7d733798b4d79c840f4ce4e94118680c.1775466329.git.sayalip@linux.ibm.com>", "X-Mailer": "git-send-email 2.52.0", "In-Reply-To": "<cover.1775466329.git.sayalip@linux.ibm.com>", "References": "<cover.1775466329.git.sayalip@linux.ibm.com>", "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org", "List-Id": "<linuxppc-dev.lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>", "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n <https://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>", "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>", "Precedence": "list", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-TM-AS-GCONF": "00", "X-Proofpoint-Reinject": "loops=2 maxloops=12", "X-Authority-Analysis": "v=2.4 cv=Bp+QAIX5 c=1 sm=1 tr=0 ts=69d37acb cx=c_pps\n a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=uAbxVGIbfxUO_5tXvNgY:22 a=Ikd4Dj_1AAAA:8 a=VwQbUJbxAAAA:8 a=VnNF1IyMAAAA:8\n a=2DqBuDyFdJ_AORcY0zkA:9", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDA2MDA5MCBTYWx0ZWRfX2nir+uOPUP7V\n eZy2CrCAuQTPd0ZX4DHbX9TeMZGTzN19LAkyMfPR65NLBAUX3M4lZxj8QnNFSQnBavANHHy0sR6\n rA2GOJj0UwXfz8KTYpcCAap76u19I6lfy9D0I/p18ffEB1VD6ZRJVoB0jo6EyGB80Gz/4QcwzW+\n hZO+VcU0itWGVa+KCdx/sTjdnPkFHtjeg5/VNhIbVqNHe+SGNno8L+m8Ikr1PmLjkoZuagqR/sO\n whfNL4oSEZV1DmH6pjn9DIhIhqUc+RALTDoAff1kQwx3WfD2jOyJkMR3kvOPPC3HF5SYk+aYTM0\n F2VoA3YJISHLdoaEY06QPw08Enu1t5cTAT7kZBH0jzvKe4+V8dMySsk000zOS9V10BadD4dJOPS\n GiKxdOniY1hnrayo/gQ8lp2dJPVyGw9S4K+QN5qJgsXKhSca9kj4KaXUWqqryhrH7ZNz+Sf+913\n RTEn368WkY5OgjBNHsw==", "X-Proofpoint-GUID": "CX7u1yjqQVtEQ4iW6KqbqUiUpJyD0NDv", "X-Proofpoint-ORIG-GUID": "7FUqPZYTnCHDzchU8xb7T7f_019zCoNA", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-06_02,2026-04-03_01,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n phishscore=0 malwarescore=0 suspectscore=0 adultscore=0 impostorscore=0\n spamscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 clxscore=1015\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604060090", "X-Spam-Status": "No, score=-0.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tRCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,\n\tSPF_PASS autolearn=disabled version=4.0.1 OzLabs 8", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org" }, "content": "The split_file_backed_thp() test mounts a tmpfs with a fixed size of\n\"4m\". This works on systems with smaller PMD page sizes,\nbut fails on configurations where the PMD huge page size is\nlarger (e.g. 16MB).\n\nOn such systems, the fixed 4MB tmpfs is insufficient to allocate even\na single PMD-sized THP, causing the test to fail.\n\nFix this by sizing the tmpfs dynamically based on the runtime\npmd_pagesize, allocating space for two PMD-sized pages.\n\nBefore patch:\n running ./split_huge_page_test /tmp/xfs_dir_YTrI5E\n --------------------------------------------------\n TAP version 13\n 1..55\n ok 1 Split zero filled huge pages successful\n ok 2 Split huge pages to order 0 successful\n ok 3 Split huge pages to order 2 successful\n ok 4 Split huge pages to order 3 successful\n ok 5 Split huge pages to order 4 successful\n ok 6 Split huge pages to order 5 successful\n ok 7 Split huge pages to order 6 successful\n ok 8 Split huge pages to order 7 successful\n ok 9 Split PTE-mapped huge pages successful\n Please enable pr_debug in split_huge_pages_in_file() for more info.\n Failed to write data to testing file: Success (0)\n Bail out! Error occurred\n Planned tests != run tests (55 != 9)\n Totals: pass:9 fail:0 xfail:0 xpass:0 skip:0 error:0\n [FAIL]\n\nAfter patch:\n running ./split_huge_page_test /tmp/xfs_dir_bMvj6o\n --------------------------------------------------\n TAP version 13\n 1..55\n ok 1 Split zero filled huge pages successful\n ok 2 Split huge pages to order 0 successful\n ok 3 Split huge pages to order 2 successful\n ok 4 Split huge pages to order 3 successful\n ok 5 Split huge pages to order 4 successful\n ok 6 Split huge pages to order 5 successful\n ok 7 Split huge pages to order 6 successful\n ok 8 Split huge pages to order 7 successful\n ok 9 Split PTE-mapped huge pages successful\n Please enable pr_debug in split_huge_pages_in_file() for more info.\n Please check dmesg for more information\n ok 10 File-backed THP split to order 0 test done\n Please enable pr_debug in split_huge_pages_in_file() for more info.\n Please check dmesg for more information\n ok 11 File-backed THP split to order 1 test done\n Please enable pr_debug in split_huge_pages_in_file() for more info.\n Please check dmesg for more information\n ok 12 File-backed THP split to order 2 test done\n...\n ok 55 Split PMD-mapped pagecache folio to order 7 at\n in-folio offset 128 passed\n Totals: pass:55 fail:0 xfail:0 xpass:0 skip:0 error:0\n [PASS]\nok 1 split_huge_page_test /tmp/xfs_dir_bMvj6o\n\nFixes: fbe37501b252 (\"mm: huge_memory: debugfs for file-backed THP split\")\nReviewed-by: Zi Yan <ziy@nvidia.com>\nReviewed-by: David Hildenbrand (Arm) <david@kernel.org>\nTested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>\nSigned-off-by: Sayali Patil <sayalip@linux.ibm.com>\n---\n tools/testing/selftests/mm/split_huge_page_test.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)", "diff": "diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c\nindex e0167111bdd1..57e8a1c9647a 100644\n--- a/tools/testing/selftests/mm/split_huge_page_test.c\n+++ b/tools/testing/selftests/mm/split_huge_page_test.c\n@@ -484,6 +484,8 @@ static void split_file_backed_thp(int order)\n \tchar tmpfs_template[] = \"/tmp/thp_split_XXXXXX\";\n \tconst char *tmpfs_loc = mkdtemp(tmpfs_template);\n \tchar testfile[INPUT_MAX];\n+\tunsigned long size = 2 * pmd_pagesize;\n+\tchar opts[64];\n \tssize_t num_written, num_read;\n \tchar *file_buf1, *file_buf2;\n \tuint64_t pgoff_start = 0, pgoff_end = 1024;\n@@ -503,7 +505,8 @@ static void split_file_backed_thp(int order)\n \t\tfile_buf1[i] = (char)i;\n \tmemset(file_buf2, 0, pmd_pagesize);\n \n-\tstatus = mount(\"tmpfs\", tmpfs_loc, \"tmpfs\", 0, \"huge=always,size=4m\");\n+\tsnprintf(opts, sizeof(opts), \"huge=always,size=%lu\", size);\n+\tstatus = mount(\"tmpfs\", tmpfs_loc, \"tmpfs\", 0, opts);\n \n \tif (status)\n \t\tksft_exit_fail_msg(\"Unable to create a tmpfs for testing\\n\");\n", "prefixes": [ "v4", "06/15" ] }