{"id":2175079,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2175079/?format=json","project":{"id":60,"url":"http://patchwork.ozlabs.org/api/1.0/projects/60/?format=json","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":"<3018b189364a57a76fc70dcb477aa5f0da045b05.1765963770.git.zhengqi.arch@bytedance.com>","date":"2025-12-17T09:45:43","name":"[v3,2/7] alpha: mm: enable MMU_GATHER_RCU_TABLE_FREE","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"8f1af48960cde2adb664bf3bd01e89e99303691f","submitter":{"id":86678,"url":"http://patchwork.ozlabs.org/api/1.0/people/86678/?format=json","name":"Qi Zheng","email":"qi.zheng@linux.dev"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-um/patch/3018b189364a57a76fc70dcb477aa5f0da045b05.1765963770.git.zhengqi.arch@bytedance.com/mbox/","series":[{"id":485652,"url":"http://patchwork.ozlabs.org/api/1.0/series/485652/?format=json","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/2175079/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=WJerchTk;\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=jh2KGANA;\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 4dWTV74NxCz1y0P\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 17 Dec 2025 20:47:11 +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 1vVo7g-00000006SpT-3mxz;\n\tWed, 17 Dec 2025 09:47:08 +0000","from out-188.mta1.migadu.com ([95.215.58.188])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vVo7d-00000006Snn-2RID\n\tfor linux-um@lists.infradead.org;\n\tWed, 17 Dec 2025 09:47:07 +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=nqzAgJ4OlgcGBu7aVY4MnPgaTUGUmQkYyYjl0T7Jjfo=; b=WJerchTkLBm7Tjs+dTXMHL+S7v\n\tPzp8g/m+09pXilpmdKhcI+eG+nkHMicDPzVkMijVIVTXngHXu5FKpfpyRioBfBHenRfWW5MxkpDcI\n\tItw+sG/HQjZr6mwV/wEuoYq+le3Zd1SAbzLeb9VT1NU/5i9aABO8enIRqSndcUU/+4jnGVnlE3yp3\n\tWJU20egLy+tTKFsKpswNkbd95M77dP1YCq/qVCoGelLaxXwg+o9O5PBYLRUS/Lf5PxA6O04jXhTgm\n\t+h9gk8PGf31oird2FbzcddIhe6ulx7ytksBdDGnfrHK8d//+1RoXJPvpwivi3lmDRmKUXHKprscn+\n\tx7WV3OEA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1;\n\tt=1765964822;\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=nqzAgJ4OlgcGBu7aVY4MnPgaTUGUmQkYyYjl0T7Jjfo=;\n\tb=jh2KGANAcZFZ/Soyhd/A84RQMbBaBHVyKCxUF5JCM+7cx9Rnhf/tMQ9P6HVN/+QKFGILZp\n\tBLjt6g/DwkO9AsGY0t54potwgCcFvvmS0tsSHhK+hfb0CuuOfNRuGIBOXhCfCHIj04JF9d\n\tIqY0V30iUlnAoa7IdoieTfgaHfQtGcM="],"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\tRichard Henderson <richard.henderson@linaro.org>,\n\tMatt Turner <mattst88@gmail.com>","Subject":"[PATCH v3 2/7] alpha: mm: enable MMU_GATHER_RCU_TABLE_FREE","Date":"Wed, 17 Dec 2025 17:45:43 +0800","Message-ID":"\n <3018b189364a57a76fc70dcb477aa5f0da045b05.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_014705_786723_C47B17BA ","X-CRM114-Status":"UNSURE (   7.79  )","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.188 listed in list.dnswl.org]\n -0.0 SPF_PASS               SPF: sender matches SPF record\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.188 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.188 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.188 listed in\n bl.score.senderscore.com]\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]","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: Richard Henderson <richard.henderson@linaro.org>\nCc: Matt Turner <mattst88@gmail.com>\n---\n arch/alpha/Kconfig           | 1 +\n arch/alpha/include/asm/tlb.h | 6 +++---\n 2 files changed, 4 insertions(+), 3 deletions(-)","diff":"diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig\nindex 80367f2cf821c..6c7dbf0adad62 100644\n--- a/arch/alpha/Kconfig\n+++ b/arch/alpha/Kconfig\n@@ -38,6 +38,7 @@ config ALPHA\n \tselect OLD_SIGSUSPEND\n \tselect CPU_NO_EFFICIENT_FFS if !ALPHA_EV67\n \tselect MMU_GATHER_NO_RANGE\n+\tselect MMU_GATHER_RCU_TABLE_FREE\n \tselect SPARSEMEM_EXTREME if SPARSEMEM\n \tselect ZONE_DMA\n \thelp\ndiff --git a/arch/alpha/include/asm/tlb.h b/arch/alpha/include/asm/tlb.h\nindex 4f79e331af5ea..ad586b898fd6b 100644\n--- a/arch/alpha/include/asm/tlb.h\n+++ b/arch/alpha/include/asm/tlb.h\n@@ -4,7 +4,7 @@\n \n #include <asm-generic/tlb.h>\n \n-#define __pte_free_tlb(tlb, pte, address)\t\tpte_free((tlb)->mm, pte)\n-#define __pmd_free_tlb(tlb, pmd, address)\t\tpmd_free((tlb)->mm, pmd)\n- \n+#define __pte_free_tlb(tlb, pte, address)\ttlb_remove_ptdesc((tlb), page_ptdesc(pte))\n+#define __pmd_free_tlb(tlb, pmd, address)\ttlb_remove_ptdesc((tlb), virt_to_ptdesc(pmd))\n+\n #endif\n","prefixes":["v3","2/7"]}