Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216830/?format=api
{ "id": 2216830, "url": "http://patchwork.ozlabs.org/api/patches/2216830/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/734338c2e8b669db5a5a3b45d34131b55ffebfca.1774605029.git.lukas@wunner.de/", "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": "<734338c2e8b669db5a5a3b45d34131b55ffebfca.1774605029.git.lukas@wunner.de>", "list_archive_url": null, "date": "2026-03-27T09:56:43", "name": "PCI/AER: Stop ruling out unbound devices as error source", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "4582fbc952dfa5e5efa69c8d880b51c143df1656", "submitter": { "id": 68499, "url": "http://patchwork.ozlabs.org/api/people/68499/?format=api", "name": "Lukas Wunner", "email": "lukas@wunner.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/734338c2e8b669db5a5a3b45d34131b55ffebfca.1774605029.git.lukas@wunner.de/mbox/", "series": [ { "id": 497738, "url": "http://patchwork.ozlabs.org/api/series/497738/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=497738", "date": "2026-03-27T09:56:43", "name": "PCI/AER: Stop ruling out unbound devices as error source", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497738/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216830/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216830/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-51267-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 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-51267-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=83.223.95.204", "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=wunner.de", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=wunner.de" ], "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhx5v6BLPz1y1x\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 21:02:43 +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 5EC373045E1B\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 09:56:56 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 4A66C36E49F;\n\tFri, 27 Mar 2026 09:56:54 +0000 (UTC)", "from mailout1.hostsharing.net (mailout1.hostsharing.net\n [83.223.95.204])\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 2FF883BED74\n\tfor <linux-pci@vger.kernel.org>; Fri, 27 Mar 2026 09:56:49 +0000 (UTC)", "from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28])\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 client-signature ECDSA (secp384r1) client-digest SHA384)\n\t(Client CN \"*.hostsharing.net\",\n Issuer \"GlobalSign GCC R6 AlphaSSL CA 2025\" (verified OK))\n\tby mailout1.hostsharing.net (Postfix) with ESMTPS id 6C77538B4;\n\tFri, 27 Mar 2026 10:56:42 +0100 (CET)", "by h08.hostsharing.net (Postfix, from userid 100393)\n\tid 65B2D6024CB9; Fri, 27 Mar 2026 10:56:42 +0100 (CET)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774605414; cv=none;\n b=G4YD7zbV+WqB5T8Nzhc5H8gbDrjEfoeBtW1ypwqhZax4rlXjiJumG6nMW6jgFNd6bz5M9iJrm+qIwsdyFM/tR7jB5/hj/AHwsn3dlYECyN4hIyplPTRsfnKir+9Wpa47UR7fRWflRDiYEjOPmCvwRYonL2oc0u/z+gUfh7QELjU=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774605414; c=relaxed/simple;\n\tbh=7wd4z96GOFh8UfRdNGdzPn4g1oWMDjWopo+cAcFHE+E=;\n\th=Message-Id:From:Date:Subject:To:Cc;\n b=Ayt+dpBryiTuqhQC8kvJRvlKH7emAEmg3V6Zi06U/onLoWcmIz6gPhbmQYnjekLk2QC3HGxrd+1IqEwG+u2nLVbXT+kQ4EHi8WJ7rsadAtVPe+nunZYNgdEnrEdkeQYcUh33RBwtj+yMCrnpwTO2+QNENamP0gF/C4HI11y45Fc=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=wunner.de;\n spf=pass smtp.mailfrom=wunner.de; arc=none smtp.client-ip=83.223.95.204", "Message-Id": "\n <734338c2e8b669db5a5a3b45d34131b55ffebfca.1774605029.git.lukas@wunner.de>", "From": "Lukas Wunner <lukas@wunner.de>", "Date": "Fri, 27 Mar 2026 10:56:43 +0100", "Subject": "[PATCH] PCI/AER: Stop ruling out unbound devices as error source", "To": "Bjorn Helgaas <helgaas@kernel.org>", "Cc": "linux-pci@vger.kernel.org, \"Mahesh J Salgaonkar\" <mahesh@linux.ibm.com>,\n Oliver OHalloran <oohall@gmail.com>, linuxppc-dev@lists.ozlabs.org,\n Stefan Roese <sr@denx.de>", "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": "When searching for the error source, the AER driver rules out devices\nwhose enable_cnt is zero. This was introduced in 2009 by commit\n28eb27cf0839 (\"PCI AER: support invalid error source IDs\") without\nproviding a rationale.\n\nDrivers typically call pci_enable_device() on probe, hence the enable_cnt\ncheck essentially filters out unbound devices. At the time of the commit,\ndrivers had to opt in to AER by calling pci_enable_pcie_error_reporting()\nand so any AER-enabled device could be assumed to be bound to a driver.\nThe check thus made sense because it allowed skipping config space\naccesses to devices which were known not to be the error source.\n\nBut since 2022, AER is universally enabled on all devices when they are\nenumerated, cf. commit f26e58bf6f54 (\"PCI/AER: Enable error reporting when\nAER is native\").\n\nErrors may very well be reported by unbound devices, e.g. due to link\ninstability. By ruling them out as error source, errors reported by them\nare neither logged nor cleared. When they do get bound and another error\noccurs, the earlier error is reported together with the new error, which\nmay confuse users. Stop doing so.\n\nFixes: f26e58bf6f54 (\"PCI/AER: Enable error reporting when AER is native\")\nSigned-off-by: Lukas Wunner <lukas@wunner.de>\nCc: stable@vger.kernel.org # v6.0+\n---\n drivers/pci/pcie/aer.c | 2 --\n 1 file changed, 2 deletions(-)", "diff": "diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c\nindex 4299c55..384d026 100644\n--- a/drivers/pci/pcie/aer.c\n+++ b/drivers/pci/pcie/aer.c\n@@ -1039,8 +1039,6 @@ static bool is_error_source(struct pci_dev *dev, struct aer_err_info *e_info)\n \t * 3) There are multiple errors and prior ID comparing fails;\n \t * We check AER status registers to find possible reporter.\n \t */\n-\tif (atomic_read(&dev->enable_cnt) == 0)\n-\t\treturn false;\n \n \t/* Check if AER is enabled */\n \tpcie_capability_read_word(dev, PCI_EXP_DEVCTL, ®16);\n", "prefixes": [] }