Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216783/?format=api
{ "id": 2216783, "url": "http://patchwork.ozlabs.org/api/patches/2216783/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/2fd965ce641d32a759984943a427fde47d7c3b13.1774591179.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": "<2fd965ce641d32a759984943a427fde47d7c3b13.1774591179.git.sayalip@linux.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/2fd965ce641d32a759984943a427fde47d7c3b13.1774591179.git.sayalip@linux.ibm.com/", "date": "2026-03-27T07:15:59", "name": "[v3,05/13] selftests/mm: size tmpfs according to PMD page size in split_huge_page_test", "commit_ref": null, "pull_url": null, "state": "handled-elsewhere", "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/2fd965ce641d32a759984943a427fde47d7c3b13.1774591179.git.sayalip@linux.ibm.com/mbox/", "series": [ { "id": 497700, "url": "http://patchwork.ozlabs.org/api/series/497700/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=497700", "date": "2026-03-27T07:15:54", "name": "selftests/mm: fix failures and robustness improvements", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/497700/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216783/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216783/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-18907-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=V1K4qbXS;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-18907-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=148.163.158.5", "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=V1K4qbXS;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com\n (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com;\n envelope-from=sayalip@linux.ibm.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\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 4fhsS121jlz1y1j\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 18:18:09 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fhsRb53m3z3fFV;\n\tFri, 27 Mar 2026 18:17:47 +1100 (AEDT)", "from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n [148.163.158.5])\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 4fhsRZ5CcZz3fDt\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 27 Mar 2026 18:17:46 +1100 (AEDT)", "from pps.filterd (m0356516.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 62QFRomM1566113;\n\tFri, 27 Mar 2026 07:17:40 GMT", "from ppma13.dal12v.mail.ibm.com\n (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221])\n\tby mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4d1ktv7usp-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 27 Mar 2026 07:17:39 +0000 (GMT)", "from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1])\n\tby ppma13.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 62R6Y9e5011788;\n\tFri, 27 Mar 2026 07:17:38 GMT", "from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228])\n\tby ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 4d27vkeaat-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 27 Mar 2026 07:17:38 +0000", "from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com\n [10.20.54.100])\n\tby smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 62R7HYDc25101004\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tFri, 27 Mar 2026 07:17:34 GMT", "from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 581E420043;\n\tFri, 27 Mar 2026 07:17:34 +0000 (GMT)", "from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id D158C2004D;\n\tFri, 27 Mar 2026 07:17:30 +0000 (GMT)", "from li-3f69264c-2ce6-11b2-a85c-c3f414d24014.ibm.com.com (unknown\n [9.124.208.5])\n\tby smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP;\n\tFri, 27 Mar 2026 07:17:30 +0000 (GMT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774595867;\n\tcv=none;\n b=OwS+UjoIiU/LXaDpKsZMnewXkx/JTLf7QvzAnLRUcSc0WTCZXjdS0/KkEd5xWZx6vJhdW1D5c1oXAns0UqtANaFI3si4Visa+HXLN1FS4kYMjVZdALPu1yzi6Ma8Fj42OM+nVblxloNXDiEMmgvXQ6EHkDAhH0WYaFz5NP1xAnYgSorMJULRIygqm2Qsg5w8dljvGydMApz4TkuFGs/dIS5m2CSRWUSHW0aw0IslwLMzygyOdfqO/YmxrG9LrFNI8d0BePTSqQ8P/zq1m14aI0ch/KexdDGd3LpPQgXZtl8veg8oo3gC6fUUH6B2ppEq6BYMHgfk6t2/exAihzGkgw==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774595867; c=relaxed/relaxed;\n\tbh=QW9PlId4/hTy4XCvWaXgJ549gjJqmRI2LMC+p2oKhag=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=nP8ZZKp+RHNR7g1d34cwQ8lgihYpPAZUQlvLYbLMZHTW9LWIxmCcCkF1r6HZ3Tccjfsp7aLtkU/LxOKo/55K279HkvjFckNjInIE1ysKyV+OPb74Xvd2xV9qPisKIiKC0j0ZwhCU2syAWsqXNY3ig8k3g5M3useJtAItPAPLVn3GJwz4GDDw47vH6KO0wmM33WVU0KFER0Js2Gw/cp5o521L1/83jRsUKGDjUKmFIJOJCW6Qel+w8mBxGzBocVX2LZQxN0uq9mGLz05cDIUDLyE7Cb2aR3k4wJnXWs+3UHRNWNpJaJ+OAYov68eFbuKYQIiiwj+KWeCXiofJBrLPbA==", "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=V1K4qbXS; dkim-atps=neutral;\n spf=pass (client-ip=148.163.158.5; helo=mx0b-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=QW9PlId4/hTy4XCvW\n\taXgJ549gjJqmRI2LMC+p2oKhag=; b=V1K4qbXStCzafT3nrCz8e9yGqCH6CjayA\n\t9FEe640fmCahqsP9zn6TEs/iSkVdRPo0l3EocEdgOyd9lUz3WdS8D5uv0tRhCZ3G\n\tdODQDQvVKfeepaJkSB6TM15KF7YmkoWAD+KDtrej713mm2arPjFI5zXbCQwSsadY\n\t6ONr64kvdZ6pMfonQwiiDPjkMAwi+YGypzZURbZ2pAwEZjlVc3Rr/lRxNFH09J14\n\tlGj7drWFLNK+86kiX+8Bxv1udKCZONKiZDnKqil50xpqoHqXRtjLU7plvXvlB+OP\n\tRVcUUE5GDn0LMHalAOrU9GPtVVfGm2do5UlTrGjeKgR8QD/if9skQ==", "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, Sayali Patil <sayalip@linux.ibm.com>,\n Venkat Rao Bagalkote <venkat88@linux.ibm.com>", "Subject": "[PATCH v3 05/13] selftests/mm: size tmpfs according to PMD page size\n in split_huge_page_test", "Date": "Fri, 27 Mar 2026 12:45:59 +0530", "Message-ID": "\n <2fd965ce641d32a759984943a427fde47d7c3b13.1774591179.git.sayalip@linux.ibm.com>", "X-Mailer": "git-send-email 2.52.0", "In-Reply-To": "<cover.1774591179.git.sayalip@linux.ibm.com>", "References": "<cover.1774591179.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-Proofpoint-ORIG-GUID": "CAjcffWirCDW10sWSpn9b-OgwYt6-wME", "X-Authority-Analysis": "v=2.4 cv=aMr9aL9m c=1 sm=1 tr=0 ts=69c62f13 cx=c_pps\n a=AfN7/Ok6k8XGzOShvHwTGQ==:117 a=AfN7/Ok6k8XGzOShvHwTGQ==:17\n a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=Y2IxJ9c9Rs8Kov3niI8_:22 a=Ikd4Dj_1AAAA:8 a=VwQbUJbxAAAA:8 a=VnNF1IyMAAAA:8\n a=Q3urm4FTTvKoMhOPgnYA:9", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMzI3MDA1MyBTYWx0ZWRfXz3npW2ykWglj\n GV4D9XvB/SylIfBfFw8aeSo41t8a00wnDlYm+DRM+Q+O0tWD8S3f7iMfB9mb5Gf2ZHI7O0QcY2N\n 8QlEYKKWAHobCGZNIO6dhinl/g+niYgMwoB2H3y0aLWET2P1xRKW1sNe25TfST43Bq5RR9Gjii0\n IElD5cHwaIXRMKXyRx5VFfY1FFxapYsv9sYXF3DJY1rMA4eHFyD9JO+305OVRRI5GSyqSrXpKkc\n g0JXENZj3rqIjWtXIkzCddgzD1a5ajt9vX/xlNGNTwT191FNpsqAQ/w6x+Q7joM80rvfBKx/dSn\n dCT4Oqx5dtzh6lYRzVhOOmF+93AUicrktuDxH0jbNxFWcQ0IedDQnM6bVYppTawSkGqmK1N3KqW\n X5/DqoSoAk2UlnZhZ2FaLslvLqhWH/mXFRJ0jb1TANjD3ZK960fHsXPtoH+I51B4WYiEoelInAl\n XBtlQ/OVN8nCWbaujgA==", "X-Proofpoint-GUID": "vfxFyI9pYF041gxLRAg-P1g5dxDPRABz", "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-03-26_04,2026-03-26_01,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n spamscore=0 lowpriorityscore=0 adultscore=0 impostorscore=0 malwarescore=0\n suspectscore=0 phishscore=0 priorityscore=1501 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-2603270053", "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 --------------------------------------------------\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": [ "v3", "05/13" ] }