Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217087/?format=api
{ "id": 2217087, "url": "http://patchwork.ozlabs.org/api/patches/2217087/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260327160132.2946114-27-yilun.xu@linux.intel.com/", "project": { "id": 28, "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api", "name": "Linux PCI development", "link_name": "linux-pci", "list_id": "linux-pci.vger.kernel.org", "list_email": "linux-pci@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260327160132.2946114-27-yilun.xu@linux.intel.com>", "list_archive_url": null, "date": "2026-03-27T16:01:27", "name": "[v2,26/31] mm: Add __free() support for __free_page()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "909da9bd8689628a7e30afca85aec08c5655d98d", "submitter": { "id": 87470, "url": "http://patchwork.ozlabs.org/api/people/87470/?format=api", "name": "Xu Yilun", "email": "yilun.xu@linux.intel.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260327160132.2946114-27-yilun.xu@linux.intel.com/mbox/", "series": [ { "id": 497793, "url": "http://patchwork.ozlabs.org/api/series/497793/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=497793", "date": "2026-03-27T16:01:02", "name": "PCI/TSM: PCIe Link Encryption Establishment via TDX platform services", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/497793/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217087/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217087/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-51312-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-pci@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=PmDk0dLx;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-pci+bounces-51312-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=\"PmDk0dLx\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=198.175.65.14", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=linux.intel.com" ], "Received": [ "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\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 4fj65z5ssWz1y1P\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 03:48:23 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 1A15030704FF\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 16:30:01 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 14F2A402BBC;\n\tFri, 27 Mar 2026 16:24:11 +0000 (UTC)", "from mgamail.intel.com (mgamail.intel.com [198.175.65.14])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id C6746402B8E;\n\tFri, 27 Mar 2026 16:24:09 +0000 (UTC)", "from fmviesa006.fm.intel.com ([10.60.135.146])\n by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Mar 2026 09:24:09 -0700", "from yilunxu-optiplex-7050.sh.intel.com ([10.239.159.165])\n by fmviesa006.fm.intel.com with ESMTP; 27 Mar 2026 09:24:06 -0700" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774628650; cv=none;\n b=XxuMztE977utoXO8SMVYGETfkzDkEsIb48HXUjV1xjbpcSkrmGDtyk3bV7cdR9X22IxqKKkBOCnIRmRcDsJr+aJ4vsOnOAPOx9goGD0hL7x7mqpiVQzo4542L+o8d+nzPvuwxoR7mYpRAhLfW2L9l768HpR1b9nNJ+83K7HhWIo=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774628650; c=relaxed/simple;\n\tbh=8E2PLd8Xi1KBtL2Kxec5V5ZmUSQnGJ77ky0/+RmRlqo=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=l3R4vTjeayZdS5bDsmBRQho45Ngok61Qk4/V/5TgD9NDd/ST8WijRb3JFPYqofCEVUfyrK0EsqxHtzioStMp5r3dzqdPrZqS1Yf1l5xy40zQZZWSBqIdHAcMRU+xHOD8WgrfnJY/FFtwTbfNFzH/gaG+UyN8vQPnbq+xLAV2jbo=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com;\n spf=pass smtp.mailfrom=linux.intel.com;\n dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=PmDk0dLx; arc=none smtp.client-ip=198.175.65.14", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1774628649; x=1806164649;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=8E2PLd8Xi1KBtL2Kxec5V5ZmUSQnGJ77ky0/+RmRlqo=;\n b=PmDk0dLxtx3OtJzIU9LzR+iZlfFFogJAJ3rZcV6OU4HToL8AVxJDS9Ye\n F4ONWE+oYKE0r2UMvIzBUo4Owkoj+fN0BLI8WHhI3F4vk9+yJSss6Nbuz\n WJ4vYs1/5MaZpQm/rQaWnzmSVUZ3cyf/jRQTrkYKpFCOs4LXoizIXjaGT\n 4Ii9d/mKhO/NO8DlUfyBIwtQAyepIh/he+qBu7oF0izGzKP+DfzDM6SQJ\n asgCb3vv9uLnKg8f3qCBYKbo3WPvEBZvOL0DKE1KwvfE16yMZnUVOhxfU\n jHJ4Fqtw+plxtL7EDarJUQxNLgN6IWUlYA0niuDwXEMKEqZpkCtb6tQTA\n Q==;", "X-CSE-ConnectionGUID": [ "cGuIfJfzSsKoq0zlWdSO1Q==", "INInqSmmT5GX8l6IsBXsZw==" ], "X-CSE-MsgGUID": [ "y2EJi8zETKaJUyYhyXlK/w==", "MDEUJzpURl2LxhyA9Xh66w==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6800,10657,11741\"; a=\"79565672\"", "E=Sophos;i=\"6.23,144,1770624000\";\n d=\"scan'208\";a=\"79565672\"", "E=Sophos;i=\"6.23,144,1770624000\";\n d=\"scan'208\";a=\"220516363\"" ], "X-ExtLoop1": "1", "From": "Xu Yilun <yilun.xu@linux.intel.com>", "To": "linux-coco@lists.linux.dev,\n\tlinux-pci@vger.kernel.org,\n\tdan.j.williams@intel.com,\n\tx86@kernel.org", "Cc": "chao.gao@intel.com,\n\tdave.jiang@intel.com,\n\tbaolu.lu@linux.intel.com,\n\tyilun.xu@linux.intel.com,\n\tyilun.xu@intel.com,\n\tzhenzhong.duan@intel.com,\n\tkvm@vger.kernel.org,\n\trick.p.edgecombe@intel.com,\n\tdave.hansen@linux.intel.com,\n\tkas@kernel.org,\n\txiaoyao.li@intel.com,\n\tvishal.l.verma@intel.com,\n\tlinux-kernel@vger.kernel.org", "Subject": "[PATCH v2 26/31] mm: Add __free() support for __free_page()", "Date": "Sat, 28 Mar 2026 00:01:27 +0800", "Message-Id": "<20260327160132.2946114-27-yilun.xu@linux.intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20260327160132.2946114-1-yilun.xu@linux.intel.com>", "References": "<20260327160132.2946114-1-yilun.xu@linux.intel.com>", "Precedence": "bulk", "X-Mailing-List": "linux-pci@vger.kernel.org", "List-Id": "<linux-pci.vger.kernel.org>", "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "Allow for the declaration of struct page * variables that trigger\n__free_page() when they go out of scope.\n\nA example usage would be in the following patch:\n\n static struct pci_tsm *tdx_tsm_link_pf0_probe(...)\n {\n\t...\n\n\tstruct page *in_msg_page __free(__free_page) =\n\t\talloc_page(GFP_KERNEL | __GFP_ZERO);\n\tif (!in_msg_page)\n\t\treturn NULL;\n\n\tstruct page *out_msg_page __free(__free_page) =\n\t\talloc_page(GFP_KERNEL | __GFP_ZERO);\n\tif (!out_msg_page)\n\t\treturn NULL;\n\n\t...\n\n\ttlink->in_msg = no_free_ptr(in_msg_page);\n\ttlink->out_msg = no_free_ptr(out_msg_page);\n\n\t...\n }\n\nSigned-off-by: Xu Yilun <yilun.xu@linux.intel.com>\nReviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>\n---\n include/linux/gfp.h | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/include/linux/gfp.h b/include/linux/gfp.h\nindex 51ef13ed756e..d37e5564234e 100644\n--- a/include/linux/gfp.h\n+++ b/include/linux/gfp.h\n@@ -391,6 +391,7 @@ extern void free_pages_nolock(struct page *page, unsigned int order);\n extern void free_pages(unsigned long addr, unsigned int order);\n \n #define __free_page(page) __free_pages((page), 0)\n+DEFINE_FREE(__free_page, struct page *, if (_T) __free_page(_T))\n #define free_page(addr) free_pages((addr), 0)\n \n void page_alloc_init_cpuhp(void);\n", "prefixes": [ "v2", "26/31" ] }