{"id":2220085,"url":"http://patchwork.ozlabs.org/api/patches/2220085/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/b7f12130daaa2c1c721cf06ff999b6439fb22c2e.1775466329.git.sayalip@linux.ibm.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/projects/2/?format=json","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":"<b7f12130daaa2c1c721cf06ff999b6439fb22c2e.1775466329.git.sayalip@linux.ibm.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/b7f12130daaa2c1c721cf06ff999b6439fb22c2e.1775466329.git.sayalip@linux.ibm.com/","date":"2026-04-06T09:19:23","name":"[v4,04/15] selftests/mm: fix hugetlb pathname construction in hugetlb_reparenting_test.sh","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"5f40c2497a7193c1ae27dbe9ddfb88077e1435c7","submitter":{"id":92656,"url":"http://patchwork.ozlabs.org/api/people/92656/?format=json","name":"Sayali Patil","email":"sayalip@linux.ibm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/b7f12130daaa2c1c721cf06ff999b6439fb22c2e.1775466329.git.sayalip@linux.ibm.com/mbox/","series":[{"id":498833,"url":"http://patchwork.ozlabs.org/api/series/498833/?format=json","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/2220085/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2220085/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <linuxppc-dev+bounces-19400-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=DJrgnWAx;\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-19400-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=DJrgnWAx;\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 4fq3k939dMz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 19:21:53 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fq3jT59KNz2ykf;\n\tMon, 06 Apr 2026 19:21:17 +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 4fq3jS397Cz2yhP\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 06 Apr 2026 19:21:16 +1000 (AEST)","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 635NHOWM3843862;\n\tMon, 6 Apr 2026 09:20:03 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 4dar2gdnxh-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tMon, 06 Apr 2026 09:20:02 +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 6365xCrs020514;\n\tMon, 6 Apr 2026 09:20:01 GMT","from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226])\n\tby ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4dbdync2vk-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tMon, 06 Apr 2026 09:20:01 +0000","from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com\n [10.20.54.101])\n\tby smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 6369Jvev52494842\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tMon, 6 Apr 2026 09:19:58 GMT","from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id CFE4A20043;\n\tMon,  6 Apr 2026 09:19:57 +0000 (GMT)","from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 8CDFA20040;\n\tMon,  6 Apr 2026 09:19:54 +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:19:54 +0000 (GMT)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775467277;\n\tcv=none;\n b=IIpVU8opTKghxXDtfam/acxIg3ENwcOMEHuBOPWqWAUGi3P8SEjIheqnTYEC1d0R6LDAaHXnmTCstWL8U6PpovSUQe+SRuEJ0HHyAkqmsNDvhXIgvKMjjvkaYRFlZdW2gvT/jrzcDn+JdX35n/rKkYczYJR2YbdwKQGHr+rsQDzRP6guSQ+ggLVUkQatPDVcH+dPJQsYjsVeuWDimlu5BurNzjPPpzitcHSlmXkVK4tJWFcHzHRAbZC+HS/JDwR46nk5ayyUhJ1Y2L08fkBDxRvcn6ljv6Cd/ArMPThP8VYYVpePu+6hCsJTwaVosA69VvJHXQTe13R6XZQhUwn2BA==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775467277; c=relaxed/relaxed;\n\tbh=IzW3nDJIXN8nsOHErRm2SdUBfyLuevkgaiMQu8YlHjo=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=HOcbp4CVR0qMJ/aPSNhysAxQJBvnACNXL/rv7bC/+aq+5stGaWn8UVe6ZEDkrOnfzJY53Lnz97ffhCzwnBd+8vykxna+C5OCXy7/4rrrE8eBpHKy9W+a7nFls/vJAXQnuTSjqd3Rzxr68owm4juGyeej5FiymGIXEwjGe8FG5rTWjQMyicvOiHgqJu9D7MWBtWmzQ6X40yeGyio5qaS5NVXPbwmdheJEKY6WQq6DNSq7Q6KvFDLPniTKlhDxVpvsD4MaJB7Cy4UwnQLYX4JoPjnWEmRox6JXdrNc9YfDQmoOK/qEAVc2GzWDEOKzLq1/cZKC6e7QpVWjqMAR8SZwEA==","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=DJrgnWAx; 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=IzW3nDJIXN8nsOHEr\n\tRm2SdUBfyLuevkgaiMQu8YlHjo=; b=DJrgnWAxI0s+EN9MXFk/IFww26nA1vFN4\n\t5n48QJ3MBLa/22Pzd/frmFvmQrG24BKIlIyuTxBI7fv5xL8ncwVqbpNwfZXHe/Mx\n\tsAP6DLueZdG4zor8HYb+lpCQ5Zu8/SRMRCvHj1SrYkZsuJInpz9Oaas41qFR78BI\n\t6ws6pvtZ9kYCGW75F3oldzDG09HnV+pRo9QzO0+t3qdlsJX6ZKK1FS+Ewid4bTgu\n\t1lliWf4mXCBN+b5sbW7n0J5EU/y37ihy9LkCYw7CW5RQ+LPSbJmgk7gL2JUHs+uX\n\tMqXIbuuSy5Qg2S7OgmnpyiRJWTgGJEkSoJZ7It5kcHypMwwjJVzpA==","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 04/15] selftests/mm: fix hugetlb pathname construction in\n hugetlb_reparenting_test.sh","Date":"Mon,  6 Apr 2026 14:49:23 +0530","Message-ID":"\n <b7f12130daaa2c1c721cf06ff999b6439fb22c2e.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-Proofpoint-GUID":"laJStrGfrx-5hJqn0NaLVa4oNMtk1AUV","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDA2MDA5MCBTYWx0ZWRfX/FdR5335PD2E\n vWUZJkT4KGTtLa+POhqWXvuXW0SIszX2yllb2+hrG1V53QXPbpVQVUdU3QbjghEZEhfgxZ+szN4\n mqKns4U3miZD5SB/ku3RR4iLgWmbNuKsACyKT87baMpiUpW+TdZI56Llot+bZI4yTxAOUZ5m02B\n 74/hZvf2SZwyzezpZiREsOO9ZoeXnqBPt1VPD0VIxDFrVLNC/IEFDOp3HEN0m+hozD12XkxNiFb\n mvD/tuUUeNo/onwp+7U9gvulLzPiUEO0TkTLH5CqXwZXm2E+RcenMP2jZz1MvRPZ49xvEV08s2s\n oZfq5vmkkE6CLgBWJI5wtZlhGwFsdveZ5Ic3tlhwR+YQPCZ9a4MUQfkVt8bEyNamG6INqKwNfo8\n P8+o9p42mBMHFhGAnVoFED+3f1gEGM6ROr/ixcHczJm9vS1GOcareXKXP2xpbMVkDjubGCboekU\n gkl4sL1DnCYOQ1E6w6g==","X-Authority-Analysis":"v=2.4 cv=b+u/I9Gx c=1 sm=1 tr=0 ts=69d37ac3 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=Y2IxJ9c9Rs8Kov3niI8_:22 a=Ikd4Dj_1AAAA:8 a=VwQbUJbxAAAA:8 a=VnNF1IyMAAAA:8\n a=7yu59zDboRqKFyXxuvEA:9","X-Proofpoint-ORIG-GUID":"JDz4J-ei1bkd7_U0fa4EqpJcExAwF915","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 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 lowpriorityscore=0\n impostorscore=0 malwarescore=0 spamscore=0 priorityscore=1501 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 hugetlb_reparenting_test.sh script constructs hugetlb cgroup\nmemory interface file names based on the configured huge page size. The\nscript formats the size only in MB units, which causes mismatches on\nsystems using larger huge pages where the kernel exposes normalized\nunits (e.g. \"1GB\" instead of \"1024MB\").\n\nAs a result, the test fails to locate the corresponding cgroup files\nwhen 1GB huge pages are configured.\n\nUpdate the script to detect the huge page size and select the\nappropriate unit (MB or GB) so that the constructed paths match the\nkernel's hugetlb controller naming.\n\nAlso print an explicit \"Fail\" message when a test failure occurs to\nimprove result visibility.\n\nFixes: e487a5d513cb (\"selftest/mm: make hugetlb_reparenting_test tolerant to async reparenting\")\nReviewed-by: Zi Yan <ziy@nvidia.com>\nAcked-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 .../selftests/mm/hugetlb_reparenting_test.sh       | 14 ++++++++++++--\n 1 file changed, 12 insertions(+), 2 deletions(-)","diff":"diff --git a/tools/testing/selftests/mm/hugetlb_reparenting_test.sh b/tools/testing/selftests/mm/hugetlb_reparenting_test.sh\nindex 7ddb370e1572..00f3f3cd8909 100755\n--- a/tools/testing/selftests/mm/hugetlb_reparenting_test.sh\n+++ b/tools/testing/selftests/mm/hugetlb_reparenting_test.sh\n@@ -48,6 +48,13 @@ function get_machine_hugepage_size() {\n }\n \n MB=$(get_machine_hugepage_size)\n+if (( MB >= 1024 )); then\n+  UNIT=\"GB\"\n+  MB_DISPLAY=$((MB / 1024))\n+else\n+  UNIT=\"MB\"\n+  MB_DISPLAY=$MB\n+fi\n \n function cleanup() {\n   echo cleanup\n@@ -88,6 +95,7 @@ function assert_with_retry() {\n     if [[ $elapsed -ge $timeout ]]; then\n       echo \"actual = $((${actual%% *} / 1024 / 1024)) MB\"\n       echo \"expected = $((${expected%% *} / 1024 / 1024)) MB\"\n+      echo FAIL\n       cleanup\n       exit 1\n     fi\n@@ -108,11 +116,13 @@ function assert_state() {\n   fi\n \n   assert_with_retry \"$CGROUP_ROOT/a/memory.$usage_file\" \"$expected_a\"\n-  assert_with_retry \"$CGROUP_ROOT/a/hugetlb.${MB}MB.$usage_file\" \"$expected_a_hugetlb\"\n+  assert_with_retry \\\n+\t  \"$CGROUP_ROOT/a/hugetlb.${MB_DISPLAY}${UNIT}.$usage_file\" \"$expected_a_hugetlb\"\n \n   if [[ -n \"$expected_b\" && -n \"$expected_b_hugetlb\" ]]; then\n     assert_with_retry \"$CGROUP_ROOT/a/b/memory.$usage_file\" \"$expected_b\"\n-    assert_with_retry \"$CGROUP_ROOT/a/b/hugetlb.${MB}MB.$usage_file\" \"$expected_b_hugetlb\"\n+    assert_with_retry \\\n+\t  \"$CGROUP_ROOT/a/b/hugetlb.${MB_DISPLAY}${UNIT}.$usage_file\" \"$expected_b_hugetlb\"\n   fi\n }\n \n","prefixes":["v4","04/15"]}