Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216790/?format=api
{ "id": 2216790, "url": "http://patchwork.ozlabs.org/api/patches/2216790/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/a157c2f91d8fa94b14dff44ce5c0dfcce1f8328e.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": "<a157c2f91d8fa94b14dff44ce5c0dfcce1f8328e.1774591179.git.sayalip@linux.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/a157c2f91d8fa94b14dff44ce5c0dfcce1f8328e.1774591179.git.sayalip@linux.ibm.com/", "date": "2026-03-27T07:16:06", "name": "[v3,12/13] selftests/mm: move hwpoison setup into run_test() and silence modprobe output for memory-failure category", "commit_ref": null, "pull_url": null, "state": "handled-elsewhere", "archived": false, "hash": "ae6c9628a790d3111d7147dcf6f15edab6ab135f", "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/a157c2f91d8fa94b14dff44ce5c0dfcce1f8328e.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/2216790/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216790/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-18914-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=qli0IKIY;\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-18914-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=qli0IKIY;\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 4fhsSy40Jdz1y1j\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 18:18:58 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fhsSF14kqz2yvh;\n\tFri, 27 Mar 2026 18:18:21 +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 4fhsSD23XYz2xLt\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 27 Mar 2026 18:18:20 +1100 (AEDT)", "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 62QIe7fP2646739;\n\tFri, 27 Mar 2026 07:18:07 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 4d1ky0fsa3-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 27 Mar 2026 07:18:06 +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 62R6Vxs8012213;\n\tFri, 27 Mar 2026 07:18:05 GMT", "from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224])\n\tby ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 4d27vkeada-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 27 Mar 2026 07:18:05 +0000", "from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com\n [10.20.54.100])\n\tby smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 62R7I1uY51577146\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tFri, 27 Mar 2026 07:18:02 GMT", "from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id D991620040;\n\tFri, 27 Mar 2026 07:18:01 +0000 (GMT)", "from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 3696D2004B;\n\tFri, 27 Mar 2026 07:17:58 +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:57 +0000 (GMT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774595901;\n\tcv=none;\n b=KLKEqO5Vw/walXRX869SeC0PL70uq4ZH1sxa+fJdeMPnCP/gtrccL9TMT+J17JwJYI7W3ClYEWMH7/RtXfeA+ZD3djZXZSYq3sCSAyE8HEjGDPDx37VtOZivOBjA4iIG5zqYZXjDhO+yztPHKGcEDua5yGZtoZsmwBEXAu0B4kAN5RCk5ADhmMBtCMjPbryv0QxYzfFsK5cM3AAviESumwi/c3jreRQGIkiFJxClq5+7yjfJGyxiq5zIFrR5m1UlRJJf9iU1qqfQlX3Gk7bsDmk8kC9J+CeJcYbJzQUZ4AB1vfnWIhLCmBlqLRLXSqKAzOL/BniusSY/wyZ2B1BQ7w==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774595901; c=relaxed/relaxed;\n\tbh=GJ3WnIZnYp7/93bz2uXrV1uWdvqmlu0SCudoqGbLeGc=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=jYWyGwzrad4iLbc5xtCikymGNjlK35tCEDL8m6iZ6wpUNBcSvc+Ax2cG0rTwaJUSSkjb9tEs+AODlplulXCubmL3cy4mewMISWzOkII7Ur9XkGdw2lzbEYmfeRt4XcBl4vjEqoZGJJwkTKmzilgkMeMQaKNpq0lmDsyb7N+arLzacO9LNxx5j8mwaSrd/qqMq+smA3O87yjRlPEmnWSm72RmchldOB6AWm0tckqO/O46QxvaO8bhV4t+6lkAnfG43y9IU27HVfw5hWTEGYYsJj3pZute2IfaAqR/FMgY26Lqiblo/mD3AmHy8qiSCZ+RDCCf0RQCop98GXjAhitaWg==", "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=qli0IKIY; 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=GJ3WnIZnYp7/93bz2\n\tuXrV1uWdvqmlu0SCudoqGbLeGc=; b=qli0IKIYDwTRmYljX4QoapFFBZYe7v9u8\n\tJXFWSBCnJa3Ms+SmWXkPqc+7EKEllmYQEBCT1J/7ZuFjQD//6KhJc+GHT9WihuZy\n\tsbXesRrEC7+VmIqNlu005ec3jYYbUu+aN1IBukt/uemNfTv3lReBnU0PIfLcyYTQ\n\tka1mvgJ2iMyPsxPs3y1Z9f4V4hPU2VXIoDxeUF4MAat2f0naR35BHROxL5tg2Fkq\n\tzUvokZRBwgRncTU7TAL9WjY7pTBpQESTHKQJPkk9Di+1aCcgXJ/bZOscOfKkL6tU\n\tPyFQ6ASlzOKgNteaDeVyCSTLKTaaJlwDJWXxLoVhK2xNKYXl7HTQw==", "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 Miaohe Lin <linmiaohe@huawei.com>,\n Venkat Rao Bagalkote <venkat88@linux.ibm.com>", "Subject": "[PATCH v3 12/13] selftests/mm: move hwpoison setup into run_test()\n and silence modprobe output for memory-failure category", "Date": "Fri, 27 Mar 2026 12:46:06 +0530", "Message-ID": "\n <a157c2f91d8fa94b14dff44ce5c0dfcce1f8328e.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-Spam-Details-Enc": "AW1haW4tMjYwMzI3MDA1MyBTYWx0ZWRfXxgzcIl45FDQR\n Ye9s6RoLv2Ss5WFiMd0DDouIwu1MEHTjMJtqvtszlboh/AVf8uDOZESH4FdvyofTsqBP93B8UiC\n Aozm1KVJWmLAkXv/HvznLto0dyZu2cbnBO/Gz9xI8q/DNHmG3gRe1HD/DU0ob5HooJaT3gRk3yS\n /fkpWULGl8mF8pIj2X23eqAgkMsFW1e7ammPeZfXphdzZUz4L6vcj9wqIbeBO9YictV9DMHkWlk\n L8/Nj5kp/0BPFIBLY8Tt48OoP6MF4MaJ61IlNlEFYrcK+aVXoa2wtDr2e62m+9QQJBGDdOFm+q8\n Q8//ip/kTwfK0r5SrOkgNylNP7F1m9MxWOKtNc3Hk2ITyH6WyvsbJmKLW4wTjeOTWjWfVx4nlJw\n 72iB/PBTABEfidnukRDQ6YDF4e2X9lh7C6NaJyU8tP+VnFwPOQ2AUOCJDlYWnWKrpjzZYTkeuWm\n EFBkYCggokx+Wk0Lo2w==", "X-Authority-Analysis": "v=2.4 cv=JK42csKb c=1 sm=1 tr=0 ts=69c62f2e 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=V8glGbnc2Ofi9Qvn3v5h:22 a=Ikd4Dj_1AAAA:8 a=i0EeH86SAAAA:8 a=VnNF1IyMAAAA:8\n a=QWbft6qDQSdZu_5rdncA:9", "X-Proofpoint-ORIG-GUID": "0c6pInW84zX2FrRSnmRd63okpmylBB9x", "X-Proofpoint-GUID": "kIFBbHl4zhazTotkjVkZkSpT-f77vifU", "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 impostorscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 adultscore=0\n spamscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 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-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": "run_vmtests.sh contains special handling to ensure the hwpoison_inject\nmodule is available for the memory-failure tests. This logic was\nimplemented outside of run_test(), making the setup category-specific\nbut managed globally.\n\nMove the hwpoison_inject handling into run_test() and restrict it\nto the memory-failure category so that:\n1. the module is checked and loaded only when memory-failure tests run,\n2. the test is skipped if the module or the debugfs interface\n(/sys/kernel/debug/hwpoison/) is not available.\n3. the module is unloaded after the test if it was loaded by the script.\n\nThis localizes category-specific setup and makes the test flow\nconsistent with other per-category preparations.\n\nWhile updating this logic, fix the module availability check.\nThe script previously used:\n\n\tmodprobe -R hwpoison_inject\n\nThe -R option prints the resolved module name to stdout, causing every\nrun to print:\n\n\thwpoison_inject\n\nin the test output, even when no action is required, introducing\nunnecessary noise.\n\nReplace this with:\n\n\tmodprobe -n hwpoison_inject\n\nwhich verifies that the module is loadable without producing output,\nkeeping the selftest logs clean and consistent.\n\nFixes: ff4ef2fbd101 (\"selftests/mm: add memory failure anonymous page test\")\nAcked-by: Zi Yan <ziy@nvidia.com>\nAcked-by: Miaohe Lin <linmiaohe@huawei.com>\nTested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>\nSigned-off-by: Sayali Patil <sayalip@linux.ibm.com>\n---\n tools/testing/selftests/mm/run_vmtests.sh | 46 ++++++++++++++---------\n 1 file changed, 28 insertions(+), 18 deletions(-)", "diff": "diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh\nindex eecec0b6eb13..606558cc3b09 100755\n--- a/tools/testing/selftests/mm/run_vmtests.sh\n+++ b/tools/testing/selftests/mm/run_vmtests.sh\n@@ -250,6 +250,27 @@ run_test() {\n \t\t\tfi\n \t\tfi\n \n+\t\t# Ensure hwpoison_inject is available for memory-failure tests\n+\t\tif [ \"${CATEGORY}\" = \"memory-failure\" ]; then\n+\t\t\t# Try to load hwpoison_inject if not present.\n+\t\t\tHWPOISON_DIR=/sys/kernel/debug/hwpoison/\n+\t\t\tif [ ! -d \"$HWPOISON_DIR\" ]; then\n+\t\t\t\tif ! modprobe -n hwpoison_inject > /dev/null 2>&1; then\n+\t\t\t\t\techo \"Module hwpoison_inject not found, skipping...\" \\\n+\t\t\t\t\t\t| tap_prefix\n+\t\t\t\t\tskip=1\n+\t\t\t\telse\n+\t\t\t\t\tmodprobe hwpoison_inject > /dev/null 2>&1\n+\t\t\t\t\tLOADED_MOD=1\n+\t\t\t\tfi\n+\t\t\tfi\n+\n+\t\t\tif [ ! -d \"$HWPOISON_DIR\" ]; then\n+\t\t\t\techo \"hwpoison debugfs interface not present\" | tap_prefix\n+\t\t\t\tskip=1\n+\t\t\tfi\n+\t\tfi\n+\n \t\tlocal test=$(pretty_name \"$*\")\n \t\tlocal title=\"running $*\"\n \t\tlocal sep=$(echo -n \"$title\" | tr \"[:graph:][:space:]\" -)\n@@ -261,6 +282,12 @@ run_test() {\n \t\telse\n \t\t\tlocal ret=$ksft_skip\n \t\tfi\n+\n+\t\t# Unload hwpoison_inject if we loaded it\n+\t\tif [ -n \"${LOADED_MOD}\" ]; then\n+\t\t\tmodprobe -r hwpoison_inject > /dev/null 2>&1\n+\t\tfi\n+\n \t\tcount_total=$(( count_total + 1 ))\n \t\tif [ $ret -eq 0 ]; then\n \t\t\tcount_pass=$(( count_pass + 1 ))\n@@ -540,24 +567,7 @@ CATEGORY=\"page_frag\" run_test ./test_page_frag.sh nonaligned\n \n CATEGORY=\"rmap\" run_test ./rmap\n \n-# Try to load hwpoison_inject if not present.\n-HWPOISON_DIR=/sys/kernel/debug/hwpoison/\n-if [ ! -d \"$HWPOISON_DIR\" ]; then\n-\tif ! modprobe -q -R hwpoison_inject; then\n-\t\techo \"Module hwpoison_inject not found, skipping...\"\n-\telse\n-\t\tmodprobe hwpoison_inject > /dev/null 2>&1\n-\t\tLOADED_MOD=1\n-\tfi\n-fi\n-\n-if [ -d \"$HWPOISON_DIR\" ]; then\n-\tCATEGORY=\"memory-failure\" run_test ./memory-failure\n-fi\n-\n-if [ -n \"${LOADED_MOD}\" ]; then\n-\tmodprobe -r hwpoison_inject > /dev/null 2>&1\n-fi\n+CATEGORY=\"memory-failure\" run_test ./memory-failure\n \n if [ \"${HAVE_HUGEPAGES}\" = 1 ]; then\n \techo \"$orig_nr_hugepgs\" > /proc/sys/vm/nr_hugepages\n", "prefixes": [ "v3", "12/13" ] }