get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.0/patches/2175081/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2175081,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2175081/?format=api",
    "project": {
        "id": 60,
        "url": "http://patchwork.ozlabs.org/api/1.0/projects/60/?format=api",
        "name": "User-mode Linux Development",
        "link_name": "linux-um",
        "list_id": "linux-um.lists.infradead.org",
        "list_email": "linux-um@lists.infradead.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<dae0a0b490e912273a62a49be9d92f470fbcaf04.1765963770.git.zhengqi.arch@bytedance.com>",
    "date": "2025-12-17T09:45:44",
    "name": "[v3,3/7] LoongArch: mm: enable MMU_GATHER_RCU_TABLE_FREE",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "6b3db8a9b6fd76b42d1dd50db2d71b36222e7874",
    "submitter": {
        "id": 86678,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/86678/?format=api",
        "name": "Qi Zheng",
        "email": "qi.zheng@linux.dev"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-um/patch/dae0a0b490e912273a62a49be9d92f470fbcaf04.1765963770.git.zhengqi.arch@bytedance.com/mbox/",
    "series": [
        {
            "id": 485652,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/485652/?format=api",
            "date": "2025-12-17T09:45:42",
            "name": "enable PT_RECLAIM on all 64-bit architectures",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/485652/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2175081/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=zz9y92yk;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256\n header.s=key1 header.b=brOaZf2K;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\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 4dWTVB6zpvz1y0P\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 17 Dec 2025 20:47:14 +1100 (AEDT)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vVo7l-00000006SrZ-1lai;\n\tWed, 17 Dec 2025 09:47:13 +0000",
            "from out-176.mta1.migadu.com ([95.215.58.176])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vVo7i-00000006SpS-0ZzW\n\tfor linux-um@lists.infradead.org;\n\tWed, 17 Dec 2025 09:47:11 +0000"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help\n\t:List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding:\n\tMIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:\n\tReply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;\n\tbh=WjvVUE6PLFuQKn8iudCm/UQAhzXxbds5MAnD30p0biw=; b=zz9y92ykTdSlP6ich0NPKONgsp\n\tJhLWH1AYAJEJlgaTSAc1oulFcdBzrJEfxQIMHQKrioWgYht2bcd+u4XW69keuiZGMUoUp7X/LHXx+\n\th76jhDZhAU4yKuo6FIPSaKxoMNrBrhqg63sNiau11ZBSVhIYzkfwHv466LnLheNE/7xwacLPPP6Ba\n\typfmtqBQItKBuao11L0uUqJeDrC0fHr6+QI/pjZS0zpGXL9N8GmFhbFTbM7mLfSDRuOE9p9vwYY8U\n\tEPeBrDNVNP0P2V+oOL7GWpff+eT92EYGQocQM7Wq/u5HRrzzgsIDL10vxiafw964nvSWTsfLqYp5H\n\t1dze8Eew==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1;\n\tt=1765964827;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=WjvVUE6PLFuQKn8iudCm/UQAhzXxbds5MAnD30p0biw=;\n\tb=brOaZf2K2ad6KJwOD2w1YutexFLGuWsWBcWsSFSW9Rhbh0uxRAqynp0B/EeXVhrva+cXWe\n\tgZB0oCXryrPE12cWqlsQwhYB5Dx/EC0LkrSQOTkvtYLvI3X0HBt+KxidI0BnlqQYnQoYUU\n\twdwCgfkrV6k+l3/j3AAJV14uDlUcyGw="
        ],
        "X-Report-Abuse": "Please report any abuse attempt to abuse@migadu.com and\n include these headers.",
        "From": "Qi Zheng <qi.zheng@linux.dev>",
        "To": "will@kernel.org,\n\taneesh.kumar@kernel.org,\n\tnpiggin@gmail.com,\n\tpeterz@infradead.org,\n\tdev.jain@arm.com,\n\takpm@linux-foundation.org,\n\tdavid@kernel.org,\n\tioworker0@gmail.com,\n\tlinmag7@gmail.com",
        "Cc": "linux-arch@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tlinux-mm@kvack.org,\n\tlinux-alpha@vger.kernel.org,\n\tloongarch@lists.linux.dev,\n\tlinux-mips@vger.kernel.org,\n\tlinux-parisc@vger.kernel.org,\n\tlinux-um@lists.infradead.org,\n\tQi Zheng <zhengqi.arch@bytedance.com>,\n\tHuacai Chen <chenhuacai@kernel.org>,\n\tWANG Xuerui <kernel@xen0n.name>",
        "Subject": "[PATCH v3 3/7] LoongArch: mm: enable MMU_GATHER_RCU_TABLE_FREE",
        "Date": "Wed, 17 Dec 2025 17:45:44 +0800",
        "Message-ID": "\n <dae0a0b490e912273a62a49be9d92f470fbcaf04.1765963770.git.zhengqi.arch@bytedance.com>",
        "In-Reply-To": "<cover.1765963770.git.zhengqi.arch@bytedance.com>",
        "References": "<cover.1765963770.git.zhengqi.arch@bytedance.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Migadu-Flow": "FLOW_OUT",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20251217_014710_499789_621DCBF7 ",
        "X-CRM114-Status": "UNSURE (   7.40  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-2.8 (--)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  From: Qi Zheng <zhengqi.arch@bytedance.com> On a 64-bit\n system,\n    madvise(MADV_DONTNEED) may cause a large number of empty PTE page table\n pages\n    (such as 100GB+). To resolve this problem,\n first enable MMU_GATHER_RCU_TABLE_FREE\n    to prepare for enabl [...]\n Content analysis details:   (-2.8 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/, low\n                             trust\n                             [95.215.58.176 listed in list.dnswl.org]\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The\n                             query to Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                          [95.215.58.176 listed in\n sa-trusted.bondedsender.org]\n  0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                             [95.215.58.176 listed in sa-accredit.habeas.com]\n  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                             [95.215.58.176 listed in\n bl.score.senderscore.com]",
        "X-BeenThere": "linux-um@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "<linux-um.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/linux-um/>",
        "List-Post": "<mailto:linux-um@lists.infradead.org>",
        "List-Help": "<mailto:linux-um-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=subscribe>",
        "Sender": "\"linux-um\" <linux-um-bounces@lists.infradead.org>",
        "Errors-To": "linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "From: Qi Zheng <zhengqi.arch@bytedance.com>\n\nOn a 64-bit system, madvise(MADV_DONTNEED) may cause a large number of\nempty PTE page table pages (such as 100GB+). To resolve this problem,\nfirst enable MMU_GATHER_RCU_TABLE_FREE to prepare for enabling the\nPT_RECLAIM feature, which resolves this problem.\n\nSigned-off-by: Qi Zheng <zhengqi.arch@bytedance.com>\nCc: Huacai Chen <chenhuacai@kernel.org>\nCc: WANG Xuerui <kernel@xen0n.name>\n---\n arch/loongarch/Kconfig               | 1 +\n arch/loongarch/include/asm/pgalloc.h | 7 +++----\n 2 files changed, 4 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig\nindex 730f342145197..43d5b863e1fb2 100644\n--- a/arch/loongarch/Kconfig\n+++ b/arch/loongarch/Kconfig\n@@ -187,6 +187,7 @@ config LOONGARCH\n \tselect IRQ_LOONGARCH_CPU\n \tselect LOCK_MM_AND_FIND_VMA\n \tselect MMU_GATHER_MERGE_VMAS if MMU\n+\tselect MMU_GATHER_RCU_TABLE_FREE\n \tselect MODULES_USE_ELF_RELA if MODULES\n \tselect NEED_PER_CPU_EMBED_FIRST_CHUNK\n \tselect NEED_PER_CPU_PAGE_FIRST_CHUNK\ndiff --git a/arch/loongarch/include/asm/pgalloc.h b/arch/loongarch/include/asm/pgalloc.h\nindex 08dcc698ec184..248f62d0b590e 100644\n--- a/arch/loongarch/include/asm/pgalloc.h\n+++ b/arch/loongarch/include/asm/pgalloc.h\n@@ -55,8 +55,7 @@ static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)\n \treturn pte;\n }\n \n-#define __pte_free_tlb(tlb, pte, address)\t\\\n-\ttlb_remove_ptdesc((tlb), page_ptdesc(pte))\n+#define __pte_free_tlb(tlb, pte, address)\ttlb_remove_ptdesc((tlb), page_ptdesc(pte))\n \n #ifndef __PAGETABLE_PMD_FOLDED\n \n@@ -79,7 +78,7 @@ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)\n \treturn pmd;\n }\n \n-#define __pmd_free_tlb(tlb, x, addr)\tpmd_free((tlb)->mm, x)\n+#define __pmd_free_tlb(tlb, x, addr)\ttlb_remove_ptdesc((tlb), virt_to_ptdesc(x))\n \n #endif\n \n@@ -99,7 +98,7 @@ static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address)\n \treturn pud;\n }\n \n-#define __pud_free_tlb(tlb, x, addr)\tpud_free((tlb)->mm, x)\n+#define __pud_free_tlb(tlb, x, addr)\ttlb_remove_ptdesc((tlb), virt_to_ptdesc(x))\n \n #endif /* __PAGETABLE_PUD_FOLDED */\n \n",
    "prefixes": [
        "v3",
        "3/7"
    ]
}