Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2195489/?format=api
{ "id": 2195489, "url": "http://patchwork.ozlabs.org/api/patches/2195489/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/1770798299-202288-3-git-send-email-shawn.lin@rock-chips.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": "<1770798299-202288-3-git-send-email-shawn.lin@rock-chips.com>", "list_archive_url": null, "date": "2026-02-11T08:24:58", "name": "[v2,2/3] PCI/MSI: Add warning to pci_free_irq_vectors() documentation", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "493b5d671281e92f3811d3f45172ee23f19e8c3f", "submitter": { "id": 66993, "url": "http://patchwork.ozlabs.org/api/people/66993/?format=api", "name": "Shawn Lin", "email": "shawn.lin@rock-chips.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/1770798299-202288-3-git-send-email-shawn.lin@rock-chips.com/mbox/", "series": [ { "id": 491791, "url": "http://patchwork.ozlabs.org/api/series/491791/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=491791", "date": "2026-02-11T08:24:57", "name": "Clarify pci_free_irq_vectors() usage constraints", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/491791/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2195489/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2195489/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-47166-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 (1024-bit key;\n unprotected) header.d=rock-chips.com header.i=@rock-chips.com\n header.a=rsa-sha256 header.s=default header.b=EfZ5Fa+Z;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-47166-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com\n header.b=\"EfZ5Fa+Z\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=220.197.31.82", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=rock-chips.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=rock-chips.com" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::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 4f9s8c5Ysyz1xtV\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 19:31:12 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 840A6306AEE3\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 08:30:40 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1153523D7DE;\n\tWed, 11 Feb 2026 08:30:36 +0000 (UTC)", "from mail-m1973182.qiye.163.com (mail-m1973182.qiye.163.com\n [220.197.31.82])\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 8EF6F352F88;\n\tWed, 11 Feb 2026 08:30:32 +0000 (UTC)", "from localhost.localdomain (unknown [58.22.7.114])\n\tby smtp.qiye.163.com (Hmail) with ESMTP id 33d869564;\n\tWed, 11 Feb 2026 16:25:14 +0800 (GMT+08:00)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1770798636; cv=none;\n b=Yi0V0N/sGh6p2rlBABidpsGoamIyBPHajgZ23MP/lBiWRVmg73BVibLaymKOo8zZhOWzdjhW6HkSIkXLpdkl/DjJw6VOPL/zRWuCC15RwJ0xmK2WVbCsEwpX0WPe0E8rC0oqm5nSG96M9WV/xPBnQArxlfRfro6ljhsINPnZs68=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1770798636; c=relaxed/simple;\n\tbh=39IhSfP889KuErdo30Vg2Tp412GVcDTlaLzshjaoxo8=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References;\n b=jlQX08ucvlM09oN34VypU2vYUVn5rMsjXyaDgjx4UJ1c443luWVeTBc1IJby4GGjT8I+ExJmT31xkwTvC8qnMeIBRpSpTPwuykiDJ8Np2gLSf8CMlP7DnXMCMbijSldvYKv7psaz0CSsO430REIeLp6hQU6fCGJcEEpSejr2/7I=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=rock-chips.com;\n spf=pass smtp.mailfrom=rock-chips.com;\n dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com\n header.b=EfZ5Fa+Z; arc=none smtp.client-ip=220.197.31.82", "From": "Shawn Lin <shawn.lin@rock-chips.com>", "To": "Bjorn Helgaas <bhelgaas@google.com>", "Cc": "linux-pci@vger.kernel.org,\n\tlinux-doc@vger.kernel.org,\n\tPhilipp Stanner <phasta@kernel.org>,\n\tShawn Lin <shawn.lin@rock-chips.com>", "Subject": "[PATCH v2 2/3] PCI/MSI: Add warning to pci_free_irq_vectors()\n documentation", "Date": "Wed, 11 Feb 2026 16:24:58 +0800", "Message-Id": "<1770798299-202288-3-git-send-email-shawn.lin@rock-chips.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1770798299-202288-1-git-send-email-shawn.lin@rock-chips.com>", "References": "<1770798299-202288-1-git-send-email-shawn.lin@rock-chips.com>", "X-HM-Tid": "0a9c4bcdf5b209cckunm6cb3bb0ee1970", "X-HM-MType": "1", "X-HM-Spam-Status": "e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly\n\ttZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZQx1KHVZLThpMTxlDQ0JJQxhWFRQJFh\n\toXVRMBExYaEhckFA4PWVdZGBILWUFZTkNVSUlVTFVKSk9ZV1kWGg8SFR0UWUFZT0tIVUpLSU9PT0\n\thVSktLVUpCS0tZBg++", "DKIM-Signature": "a=rsa-sha256;\n\tb=EfZ5Fa+ZO5GOTYaBK/OjHlkREhkNMJNcMzNN3NqN4ScVvp6BUXm6ez+Lo+NaJNKAX01uVyXaS2zj0of3tgJrqZnznFdDuU2tNoi8PTp8dQJWr9+lzDZ5JqMW1QLUH3lvjdntfuvfqgHn115NvazdgYeCSqwF7o+k15ZtlZcIEHw=;\n s=default; c=relaxed/relaxed; d=rock-chips.com; v=1;\n\tbh=UNLkQLdTwuW2iDIl9UAI8P2DkWhepEE7viKVGVG8WIM=;\n\th=date:mime-version:subject:message-id:from;", "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>" }, "content": "Update the kernel-doc comment for pci_free_irq_vectors() to warn drivers\nthat this function should not be called when the device has been enabled\nwith pcim_enable_device().\n\nFor legacy reasons, pcim_enable_device() activates automatic management\nof IRQ vectors via pcim_msi_release(). Calling pci_free_irq_vectors() on\nsuch devices can cause double-free issues.\n\nThis warning complements the documentation in msi-howto.rst and helps\ndevelopers who primarily read function API documentation when working\nwith the PCI/MSI subsystem.\n\nSuggested-by: Philipp Stanner <phasta@kernel.org>\nSigned-off-by: Shawn Lin <shawn.lin@rock-chips.com>\n---\n\nChanges in v2: None\n\n drivers/pci/msi/api.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/drivers/pci/msi/api.c b/drivers/pci/msi/api.c\nindex 818d55f..c18559b 100644\n--- a/drivers/pci/msi/api.c\n+++ b/drivers/pci/msi/api.c\n@@ -370,6 +370,11 @@ EXPORT_SYMBOL(pci_irq_get_affinity);\n * Undo the interrupt vector allocations and possible device MSI/MSI-X\n * enablement earlier done through pci_alloc_irq_vectors_affinity() or\n * pci_alloc_irq_vectors().\n+ *\n+ * WARNING: Do not call this function if the device has been enabled\n+ * with pcim_enable_device(). In that case, IRQ vectors are automatically\n+ * managed via pcim_msi_release() and calling pci_free_irq_vectors() can\n+ * lead to double-free issues.\n */\n void pci_free_irq_vectors(struct pci_dev *dev)\n {\n", "prefixes": [ "v2", "2/3" ] }