Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2220195/?format=api
{ "id": 2220195, "url": "http://patchwork.ozlabs.org/api/patches/2220195/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260406155008.2216006-1-pavrampu@linux.ibm.com/", "project": { "id": 59, "url": "http://patchwork.ozlabs.org/api/projects/59/?format=api", "name": "Linux Test Project development", "link_name": "ltp", "list_id": "ltp.lists.linux.it", "list_email": "ltp@lists.linux.it", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260406155008.2216006-1-pavrampu@linux.ibm.com>", "list_archive_url": null, "date": "2026-04-06T15:50:04", "name": "Fixed hugeshmat05 Test Failure with 1GB Hugepages.", "commit_ref": null, "pull_url": null, "state": "needs-review-ack", "archived": false, "hash": "241e120def8d896853128d4601017ff0972f2757", "submitter": { "id": 91766, "url": "http://patchwork.ozlabs.org/api/people/91766/?format=api", "name": "Pavithra", "email": "pavrampu@linux.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260406155008.2216006-1-pavrampu@linux.ibm.com/mbox/", "series": [ { "id": 498876, "url": "http://patchwork.ozlabs.org/api/series/498876/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=498876", "date": "2026-04-06T15:50:04", "name": "Fixed hugeshmat05 Test Failure with 1GB Hugepages.", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498876/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2220195/comments/", "check": "warning", "checks": "http://patchwork.ozlabs.org/api/patches/2220195/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "ltp@lists.linux.it" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "ltp@picard.linux.it" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=JFYcgA+w;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqDLY6lfHz1yGn\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 07 Apr 2026 01:50:28 +1000 (AEST)", "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 120273D2281\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 6 Apr 2026 17:50:26 +0200 (CEST)", "from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::6])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id A16A13C9917\n for <ltp@lists.linux.it>; Mon, 6 Apr 2026 17:50:21 +0200 (CEST)", "from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n [148.163.156.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-6.smtp.seeweb.it (Postfix) with ESMTPS id A5DC61400078\n for <ltp@lists.linux.it>; Mon, 6 Apr 2026 17:50:20 +0200 (CEST)", "from pps.filterd (m0356517.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 636EX8ng3045555\n for <ltp@lists.linux.it>; Mon, 6 Apr 2026 15:50:18 GMT", "from ppma13.dal12v.mail.ibm.com\n (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4datc2qbt0-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <ltp@lists.linux.it>; Mon, 06 Apr 2026 15:50:18 +0000 (GMT)", "from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1])\n by ppma13.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 636CSjqo014325\n for <ltp@lists.linux.it>; Mon, 6 Apr 2026 15:50:17 GMT", "from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225])\n by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 4dbf6jw3hf-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <ltp@lists.linux.it>; Mon, 06 Apr 2026 15:50:17 +0000", "from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com\n [10.20.54.102])\n by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 636FoDHc45482420\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Mon, 6 Apr 2026 15:50:13 GMT", "from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 7A86B2004B;\n Mon, 6 Apr 2026 15:50:13 +0000 (GMT)", "from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id CC7F620040;\n Mon, 6 Apr 2026 15:50:12 +0000 (GMT)", "from li-49acbccc-2994-11b2-a85c-d51b89e344f1.ibm.com.com (unknown\n [9.39.19.88]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP;\n Mon, 6 Apr 2026 15:50:12 +0000 (GMT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n :content-transfer-encoding:content-type:date:from:message-id\n :mime-version:subject:to; s=pp1; bh=ad9qfeNhnI5GYQJMbJv46BkT1rA2\n qpuhDlqMGYF6784=; b=JFYcgA+wAr6x5e8s3j1EvFomnonrWgVGJxn0znFE9EuF\n 8M8KnKxlq+E7wDNq84V1T5EfVU1ktbfCFe9Afo0lINmQaXil4Kmu1xMEL9Snwlgr\n WNuJ9rATvDDvGOODW9hTAKkY9YwebPhL4XXFUVDiIXLn0f62v1Sm0Vscl6Wn+sv9\n kvAnVY4hjbJw8PQzHA2hpjli2wc20+LNTukybSjWlOKeSaHK/Kpm8G2aUiXwe7p/\n 2dWuPatBDrhZ+kcWc1IcL7Kwu2lsGRB19PSVMTMG/QwOGjRp9+RkYiHj9HiEp482\n OSG8LTE4wn1cTczR6RuwdIWsg4Ea63W+tGzGK/05Nw==", "From": "Pavithra <pavrampu@linux.ibm.com>", "To": "ltp@lists.linux.it", "Date": "Mon, 6 Apr 2026 21:20:04 +0530", "Message-ID": "<20260406155008.2216006-1-pavrampu@linux.ibm.com>", "X-Mailer": "git-send-email 2.53.0", "MIME-Version": "1.0", "X-TM-AS-GCONF": "00", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDA2MDE1NiBTYWx0ZWRfX5XlXDAS5+iMx\n heb/gUJFGzaBnaH3nYM54ZirBm0R0Ni/8gPpiN8MmhbyJEp4g2/RblBP7ID3Wzj7jfZ4buM4nj+\n 91cRt5OlUxVvPtHQHKoaQFGv41OF+u68NtHx8P6evzbBh5e0iRmY1DZhOrRAT7m7k/cB4iTYnZB\n zk3eaUVeNq43MItPwsIyhEYsqwkkTsBBo0Ptv55MCFPjl2BbHN/vg0npypYQITvRz76tOvVZ7RG\n D4/a6AAh6c73FcdJgwirM2yBIa+Jmm35E5n96shxfZmpqNn/w6IxUD57DGDbJ7agf79GOVk683I\n P86atOHoGRlmWRzc4tGqTowE7r5MPuCJX8xxvzFdjCU4s/Fh+t1uzwK5mt6kvlCGx4cFjtSA/Cf\n I/DhSDQh+IztnxzXV8xvHDOKmJ7LzUjUXKA9CiH31yFMtP2yqqR+plHqt7OKd8+90SkmU/buCY6\n 5OAMJAgZ4ao4sSLiQrg==", "X-Proofpoint-GUID": "xS9H8gmpfBs5uFJ6Ej-4QqldjoTySAYL", "X-Proofpoint-ORIG-GUID": "xS9H8gmpfBs5uFJ6Ej-4QqldjoTySAYL", "X-Authority-Analysis": "v=2.4 cv=HJvO14tv c=1 sm=1 tr=0 ts=69d3d63a cx=c_pps\n a=AfN7/Ok6k8XGzOShvHwTGQ==:117 a=AfN7/Ok6k8XGzOShvHwTGQ==:17\n a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=RnoormkPH1_aCDwRdu11:22 a=U7nrCbtTmkRpXpFmAIza:22 a=VnNF1IyMAAAA:8\n a=oai8hwNIdXh5_XZuB5IA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10", "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_03,2026-04-03_01,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n impostorscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0\n malwarescore=0 spamscore=0 phishscore=0 priorityscore=1501 bulkscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604060156", "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-6.smtp.seeweb.it", "X-Virus-Scanned": "clamav-milter 1.0.9 at in-6.smtp.seeweb.it", "X-Virus-Status": "Clean", "Subject": "[LTP] [PATCH] Fixed hugeshmat05 Test Failure with 1GB Hugepages.", "X-BeenThere": "ltp@lists.linux.it", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Linux Test Project <ltp.lists.linux.it>", "List-Unsubscribe": "<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>", "List-Archive": "<http://lists.linux.it/pipermail/ltp/>", "List-Post": "<mailto:ltp@lists.linux.it>", "List-Help": "<mailto:ltp-request@lists.linux.it?subject=help>", "List-Subscribe": "<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>", "Cc": "pavrampu@linux.ibm.com", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it", "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>" }, "content": "Modified the test to detect large hugepage sizes (≥1GB) and adjust test\nsizes accordingly.\n\nSigned-off-by: Pavithra <pavrampu@linux.ibm.com>\n---\n .../mem/hugetlb/hugeshmat/hugeshmat05.c | 45 +++++++++++++++----\n 1 file changed, 36 insertions(+), 9 deletions(-)", "diff": "diff --git a/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat05.c b/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat05.c\nindex 3b2ae351c..870a61ec1 100644\n--- a/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat05.c\n+++ b/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat05.c\n@@ -37,9 +37,13 @@ void setup(void)\n {\n \tpage_size = getpagesize();\n \thpage_size = SAFE_READ_MEMINFO(\"Hugepagesize:\") * 1024;\n+\n+\ttst_res(TINFO, \"Page size: %ld bytes\", page_size);\n+\ttst_res(TINFO, \"Hugepage size: %ld bytes (%ld MB)\",\n+\t\thpage_size, hpage_size / (1024 * 1024));\n }\n \n-void shm_test(int size)\n+void shm_test(long size)\n {\n \tint shmid;\n \tchar *shmaddr;\n@@ -56,7 +60,7 @@ void shm_test(int size)\n \t}\n \n \tshmaddr[0] = 1;\n-\ttst_res(TINFO, \"allocated %d huge bytes\", size);\n+\ttst_res(TINFO, \"allocated %ld huge bytes\", size);\n \n \tif (shmdt((const void *)shmaddr) != 0) {\n \t\tshmctl(shmid, IPC_RMID, NULL);\n@@ -69,16 +73,39 @@ void shm_test(int size)\n static void test_hugeshmat(void)\n {\n \tunsigned int i;\n+\tlong tst_sizes[4];\n+\n+\t/*\n+\t * For large hugepage sizes (e.g., 1GB), we need to ensure\n+\t * test sizes are within reasonable bounds and properly aligned.\n+\t * The original test used N*hpage_size which could be 4GB for 1GB pages.\n+\t *\n+\t * We adjust the test to use N/2 multiplier for large hugepages\n+\t * to avoid excessive memory requirements while still testing the\n+\t * alignment boundary conditions with multiple pages.\n+\t */\n+\tif (hpage_size >= 1024 * 1024 * 1024) {\n+\t\t/* For 1GB or larger hugepages, use N/2 pages (2 pages for N=4) */\n+\t\tlong multiplier = N / 2;\n \n-\tconst int tst_sizes[] = {\n-\t\tN * hpage_size - page_size,\n-\t\tN * hpage_size - page_size - 1,\n-\t\thpage_size,\n-\t\thpage_size + 1\n-\t};\n+\t\ttst_sizes[0] = multiplier * hpage_size - page_size;\n+\t\ttst_sizes[1] = multiplier * hpage_size - page_size - 1;\n+\t\ttst_sizes[2] = hpage_size;\n+\t\ttst_sizes[3] = hpage_size + 1;\n+\t\ttst_res(TINFO, \"Using N/2=%ld hugepage test sizes for large hugepages\", multiplier);\n+\t} else {\n+\t\t/* For smaller hugepages (2MB, 16MB, etc.), use original test */\n+\t\ttst_sizes[0] = N * hpage_size - page_size;\n+\t\ttst_sizes[1] = N * hpage_size - page_size - 1;\n+\t\ttst_sizes[2] = hpage_size;\n+\t\ttst_sizes[3] = hpage_size + 1;\n+\t\ttst_res(TINFO, \"Using N=%d hugepage test sizes\", N);\n+\t}\n \n-\tfor (i = 0; i < ARRAY_SIZE(tst_sizes); ++i)\n+\tfor (i = 0; i < ARRAY_SIZE(tst_sizes); ++i) {\n+\t\ttst_res(TINFO, \"Testing size: %ld bytes\", tst_sizes[i]);\n \t\tshm_test(tst_sizes[i]);\n+\t}\n \n \ttst_res(TPASS, \"No regression found.\");\n }\n", "prefixes": [] }