Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2228568/?format=api
{ "id": 2228568, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2228568/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260427035341.1425576-2-superm1@kernel.org/", "project": { "id": 28, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260427035341.1425576-2-superm1@kernel.org>", "list_archive_url": null, "date": "2026-04-27T03:53:37", "name": "[1/5] PCI/PM: Disable device wakeups when halting or powering off system", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "7a96ddb4555d471c0fca2ac795bba116daed74ad", "submitter": { "id": 88834, "url": "http://patchwork.ozlabs.org/api/1.2/people/88834/?format=api", "name": "Mario Limonciello", "email": "superm1@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260427035341.1425576-2-superm1@kernel.org/mbox/", "series": [ { "id": 501568, "url": "http://patchwork.ozlabs.org/api/1.2/series/501568/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=501568", "date": "2026-04-27T03:53:41", "name": "Improvements to PCI hibernate path", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501568/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228568/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228568/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-53188-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=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=AjV3TWEg;\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-53188-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"AjV3TWEg\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "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 4g3qbC0Lyjz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 14:00:07 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 1D9F03034302\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 03:53:54 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D2BB6366557;\n\tMon, 27 Apr 2026 03:53:47 +0000 (UTC)", "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\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 B04F93659F7;\n\tMon, 27 Apr 2026 03:53:47 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id CC947C2BCB7;\n\tMon, 27 Apr 2026 03:53:46 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777262027; cv=none;\n b=P3lnWmXiwSoYs62YexCsQYVuu6tHvzP5g9zI0C7Xn1rLSIsq9w8ZjjS8MxQRGhcOOK2kkDs33VZTUCYfk820X533W7rKbc/bo7NjdEV9gANrw46Hokt6fF9iOowue0bx15pS206j0d72rw4n+YZ8l85yaEuexlNhLbB3fJKL5ys=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777262027; c=relaxed/simple;\n\tbh=wzBG0w2sgd6l6ANTHLzOSqnr9bLkcENBQXCiLA4GCiE=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=VwDkI+HnLRqP73AaEOHleBJ8q3vwY+uHiQuO4rF6BK8fAj4A/qJQdl6KjVXFaenfVoqetR1gtXc4gY+Mzz3ex3JdDmVCxRH50TMuHBQembTwk/VBrnNHcFOievRg1Wq+IK2SDCkhD9tFxKQ8NirP3azhn2W1n6uMAcf34FdfFG8=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=AjV3TWEg; arc=none smtp.client-ip=10.30.226.201", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777262027;\n\tbh=wzBG0w2sgd6l6ANTHLzOSqnr9bLkcENBQXCiLA4GCiE=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=AjV3TWEgFWFKkvt5KhYBneIWX5gsLvn97BcAIM/ez88yZ4ImhhjahBwjNPKXN3kdb\n\t s3IlkDweSidUY/fZ65F00KlIyJ4JMYmYbW0+xeSc83PMzq11pvKig2ZjsGV555AL2g\n\t 9yva1T8xPSO6Ql9WM91hSgjLXmhEka7g2N9UGYBxt2qy4qoVWdN6Y7FHG9Sjt3vWOZ\n\t Mhxd59gjRxt9VTE3z3MLfYCDOPm2kt5ajC2da4gYvVw0NMADX7w5V0RslZhoC5j5dy\n\t Ga6QRpbfq/WXNCijtcU0/ZwI56JOKVQ7Osns3V63qdRQXjRkGvOZOp2mvShF5oqpc3\n\t hw3gJJXM8QuZQ==", "From": "\"Mario Limonciello (AMD)\" <superm1@kernel.org>", "To": "Bjorn Helgaas <bhelgaas@google.com>,\n\tlinux-pci@vger.kernel.org (open list:PCI SUBSYSTEM)", "Cc": "linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM),\n\tlinux-kernel@vger.kernel.org (open list),\n\t\"Rafael J . Wysocki\" <rafael@kernel.org>,\n\tLukas Wunner <lukas@wunner.de>,\n\t\"Mario Limonciello (AMD)\" <superm1@kernel.org>,\n\tEric Naim <dnaim@cachyos.org>", "Subject": "[PATCH 1/5] PCI/PM: Disable device wakeups when halting or powering\n off system", "Date": "Sun, 26 Apr 2026 22:53:37 -0500", "Message-ID": "<20260427035341.1425576-2-superm1@kernel.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260427035341.1425576-1-superm1@kernel.org>", "References": "<20260427035341.1425576-1-superm1@kernel.org>", "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": "PCI devices can be configured as wakeup sources from low power states.\nHowever, when the system is powering off such wakeups are not expected\nand may lead to spurious behavior.\n\nACPI r6.5, section 16.1.5 notes:\n\n \"Hardware does allow a transition to S0 due to power button press\n or a Remote Start.\"\n\nThis implies that wakeups from PCI devices should not be relied upon\nin these states. To align with this expectation and avoid unintended\nwakeups, disable device wakeup capability during these transitions.\n\nTested-by: Eric Naim <dnaim@cachyos.org>\nSigned-off-by: Mario Limonciello (AMD) <superm1@kernel.org>\n---\n drivers/pci/pci-driver.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c\nindex 2bfefd8db5260..a43ee7bbfb3f5 100644\n--- a/drivers/pci/pci-driver.c\n+++ b/drivers/pci/pci-driver.c\n@@ -1166,6 +1166,9 @@ static int pci_pm_poweroff(struct device *dev)\n \tstruct pci_dev *pci_dev = to_pci_dev(dev);\n \tconst struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;\n \n+\tif (device_may_wakeup(dev) && system_state == SYSTEM_POWER_OFF)\n+\t\tdevice_set_wakeup_enable(dev, false);\n+\n \tif (pci_has_legacy_pm_support(pci_dev))\n \t\treturn pci_legacy_suspend(dev, PMSG_HIBERNATE);\n \n", "prefixes": [ "1/5" ] }