Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2232281/?format=api
{ "id": 2232281, "url": "http://patchwork.ozlabs.org/api/patches/2232281/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/4f690c32f5b0948ac50a45a067a2186fbf084ee6.1777877814.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": "<4f690c32f5b0948ac50a45a067a2186fbf084ee6.1777877814.git.sayalip@linux.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/4f690c32f5b0948ac50a45a067a2186fbf084ee6.1777877814.git.sayalip@linux.ibm.com/", "date": "2026-05-04T08:24:43", "name": "[v6,06/14] 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/4f690c32f5b0948ac50a45a067a2186fbf084ee6.1777877814.git.sayalip@linux.ibm.com/mbox/", "series": [ { "id": 502625, "url": "http://patchwork.ozlabs.org/api/series/502625/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=502625", "date": "2026-05-04T08:24:37", "name": "selftests/mm: fix failures and robustness improvements", "version": 6, "mbox": "http://patchwork.ozlabs.org/series/502625/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2232281/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2232281/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-20404-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=HTG2SQwt;\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-20404-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=HTG2SQwt;\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\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 4g8F8w2b8fz1yJV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 04 May 2026 18:26:08 +1000 (AEST)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g8F8T51vHz2yjx;\n\tMon, 04 May 2026 18:25:45 +1000 (AEST)", "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 4g8F8S5Cnqz2yZ6\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 04 May 2026 18:25:44 +1000 (AEST)", "from pps.filterd (m0353725.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 643AG0hO2080466;\n\tMon, 4 May 2026 08:25:31 GMT", "from ppma12.dal12v.mail.ibm.com\n (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220])\n\tby mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4dw9xxdwm9-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tMon, 04 May 2026 08:25:30 +0000 (GMT)", "from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1])\n\tby ppma12.dal12v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 6448OROa000545;\n\tMon, 4 May 2026 08:25:29 GMT", "from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227])\n\tby ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4dwukq4fra-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tMon, 04 May 2026 08:25:29 +0000 (GMT)", "from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com\n [10.20.54.101])\n\tby smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 6448PQOS50856368\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tMon, 4 May 2026 08:25:26 GMT", "from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 22CD120043;\n\tMon, 4 May 2026 08:25:26 +0000 (GMT)", "from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 0EDD520040;\n\tMon, 4 May 2026 08:25:23 +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, 4 May 2026 08:25:22 +0000 (GMT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1777883145;\n\tcv=none;\n b=Ygqi+kR0TEdtgLwBSyXUNZgeAh10U+lIrCKfE57fKfLSmsQSmVRWzmRUZq0sSivjolbh32ZzNQKTTsqnI9CXWN+VxcPsooUJNtJwaZ1NzPUqefagqFmbr3+ZBadv4BlLNBqRXvz7ruwDAKvHBUcPGY8xzzy18DZwbtFmdqNNPaJunabdDXLCmULMPdmUvyMthQocAt28WFcvX5yldLsBodMdcTAG9/U9pMPzB0OizRsKBJwdWFmfz4umO90pVBG7CxR4URC5ojvS32Y4635gZ+e/XB1x3e2WLshQjK8kNekQlCfuAK+WYi/jkM8AyI03Exyr4q05Xu375EIodd7TyA==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1777883145; c=relaxed/relaxed;\n\tbh=qLoytzKAJrXb86n4y25lLTNIOtZZSNJIuVfwc68Am2M=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=Ks9ZMc/FaYtz4tyTKmoEZIdQXQBXgdqys8Fk0rKSlhf7dk8WBd7Axi6e4f4IV6rsRJCS8naSBujON5JREPT1WmqNWlyJW+odbHJlCkIaF7dk13PzUvzt7ayi2DWIIe6ZaRAuNGNRV7/LUubWrrH3mnN3Q4rZNRjmN77AaaMfteanCwFJCYz7FuLiVywITlVODLWQDWgCTDuWwqHT7e3MHdUpRX7Px59eedayi2/3PcfFlyikh6cNpphAywvonaa8ynhyhLCQClvXZGDAAe0tyg2Al8IH8M5DYePTnjden9BCafcQYR8s3xlTp9TIwh4Cvobj0EtMEld65h5NmyN9NA==", "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=HTG2SQwt; 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=qLoytzKAJrXb86n4y\n\t25lLTNIOtZZSNJIuVfwc68Am2M=; b=HTG2SQwtiwSPiN5W6yzBbAKYDx6scYfKV\n\tgmLwDIhBLfYcLDL7h+zkLU5a7AaJqkkDecaH4tGxQ5YKVSjlBxEXUSzhoLEkHzZS\n\tMcgiyEq63g1NubRuMbOQDnGFNz1aHBpOBsBR4HQJ77ew1KoRLvw4rsOQiJfR3oPh\n\tA9LUQt4BiVCWEhYhv2E0KMHnQ4bv/N0PGccIgJlwmX5oCYmc0edZyVl1TrR9bnq6\n\tsSRVAQalFTjZbauPRCq7ClGMTfEKvoVtxoi55AWbBlepm+asjBugl0DN3JaRMNWP\n\tqN747XgDsSj5bUEmD4Z3MXBDeGFyrDHMQ5v4a3qvQDvwGHKVXos2Q==", "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 v6 06/14] selftests/mm: size tmpfs according to PMD page size\n in split_huge_page_test", "Date": "Mon, 4 May 2026 13:54:43 +0530", "Message-ID": "\n <4f690c32f5b0948ac50a45a067a2186fbf084ee6.1777877814.git.sayalip@linux.ibm.com>", "X-Mailer": "git-send-email 2.52.0", "In-Reply-To": "<cover.1777877814.git.sayalip@linux.ibm.com>", "References": "<cover.1777877814.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-Spam-Details-Enc": "AW1haW4tMjYwNTA0MDA4NyBTYWx0ZWRfX8upt1mGXYHKE\n MshnLX1JyyFdq7QysKpZ0ZeAqJMu26Sq4W0sAqyDfSDtYhLYtTMs6bQTuQLNFJnFcKbcu+YaWmM\n qlRRwPQ0jan6CDJqI31B+WBGr37ElUiBBpe8GnbpjxprW2LMpjjT9N8cr6wQN9svbVx2xJRYoHT\n bddLCY4gd1kmYzfEvEJe2u9gdxEv3On1MhNE8+0acpjdbvQmS8bZU8XTUOw8dGlwypKWox/rt7N\n 9hbieWuZKKDTHv9F+TSiJCy4qYVtQPSw30HV8X76qpRyz3Ag1CCz8jP201Hb/nq7PQ84NemMqA2\n D2kLT/m6o1txTgBelIYqdTqu3emPcXjFOmdxVBHspVon5YdJWBL9DFNvFaInqkMWyJk0QuG8Opk\n v5bnQjVqUCl8sYI/D7W3b/g4Mz+BeNcz3VBWOKC8V2LgrVTS28NTyXt7PyYByRKD4XfaoQ+64nr\n ysvYv/P4SuTvjUYTUGg==", "X-Proofpoint-ORIG-GUID": "HxJxplt_wNg9Yf6gWbjzQPxjYGFJPXxt", "X-Proofpoint-GUID": "Y8-BYe3-MdiAjFE2BGYFKeO53fCTVIgB", "X-Authority-Analysis": "v=2.4 cv=ctWrVV4i c=1 sm=1 tr=0 ts=69f857fb cx=c_pps\n a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17\n a=NGcC8JguVDcA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=V8glGbnc2Ofi9Qvn3v5h:22 a=Ikd4Dj_1AAAA:8 a=VwQbUJbxAAAA:8 a=VnNF1IyMAAAA:8\n a=2DqBuDyFdJ_AORcY0zkA:9", "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-05-04_03,2026-04-30_02,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n priorityscore=1501 lowpriorityscore=0 adultscore=0 clxscore=1015\n suspectscore=0 impostorscore=0 spamscore=0 malwarescore=0 phishscore=0\n bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound\n adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000\n definitions=main-2605040087", "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 500d07c4938b..02938f38b880 100644\n--- a/tools/testing/selftests/mm/split_huge_page_test.c\n+++ b/tools/testing/selftests/mm/split_huge_page_test.c\n@@ -470,6 +470,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@@ -489,7 +491,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": [ "v6", "06/14" ] }