Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229166/?format=api
{ "id": 2229166, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229166/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260427205024.254677-3-superm1@kernel.org/", "project": { "id": 28, "url": "http://patchwork.ozlabs.org/api/1.1/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 }, "msgid": "<20260427205024.254677-3-superm1@kernel.org>", "date": "2026-04-27T20:50:20", "name": "[v2,2/6] 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.1/people/88834/?format=api", "name": "Mario Limonciello (AMD)", "email": "superm1@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260427205024.254677-3-superm1@kernel.org/mbox/", "series": [ { "id": 501725, "url": "http://patchwork.ozlabs.org/api/1.1/series/501725/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=501725", "date": "2026-04-27T20:50:20", "name": "Improvements to PCI hibernate path", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/501725/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2229166/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229166/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-pci+bounces-53254-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=I87S6JtS;\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-53254-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=\"I87S6JtS\"", "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 4g4G1Q1LKsz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 06:50:50 +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 C6FA630234E8\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 20:50:43 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id CE3CE3939A6;\n\tMon, 27 Apr 2026 20:50:38 +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 C794A38F227;\n\tMon, 27 Apr 2026 20:50:36 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 47A29C2BCB8;\n\tMon, 27 Apr 2026 20:50:34 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777323036; cv=none;\n b=VXIUNdtGjGXaaldg8Sv68FUiYrT4I2YlffHYhOpY1ZEgt6pGGdEnbz1jAIj7aTNuGtGJfvV7Gld4qqWY7D1K2XFZYPKCWdL7BSKDfJKSqaoGBRfIFcFk50b+0h8hXKw4GKv03+lRlIygD6nJ4VN4BqUTBcB61m15+EaGREtQhZ4=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777323036; c=relaxed/simple;\n\tbh=UPXBiRd4SA5eur21yzpLr7D++JspS8VTBQMuLpFCYlQ=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=awkMjGrZvV3iajghUY38GxRB3jhKDdaaaENIgSg8PnrNcQ7SqvbLm2wag+Gm42rAKHzvJvTof3zKytJKO02rWGAAubzUk+hodq4E4OsEvRtFiY3NffOWWtGTt/GCOCKVTsmhP7eSIy8jIGt8YBZcLt73J9Z7qFuK4Cw1+vPBI5w=", "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=I87S6JtS; 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=1777323035;\n\tbh=UPXBiRd4SA5eur21yzpLr7D++JspS8VTBQMuLpFCYlQ=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=I87S6JtS9kwHbfdWDF3DQr40oj+RFfnCWDfp5LDfGnYzJsvBR+o6U5L2QywyuHOMi\n\t h6ogMUGq5A3mUygVBonyG+PdRaWmGup7+u2q1M2wz9fdIvxyOfP+n/UJVc5eUgjN4k\n\t tRWaN0gI6ZaOF0dgJtvACF51VibBB16WIi6D66tR+7Vw2k1uLHBioJ5o2lsnXesQIt\n\t XNTfBoieoNweTvitLIX9mH4ENjI2OJ619cNO9tvHKiot3IFTyl32HELcpLrxD2mIyS\n\t 5mavBHFd6vZ3K0G6KImwa8LaRO7YkcpkiXapXfuUFkB4WsGSttiUuLC/TEM6Q12033\n\t BfpjO3qo8ckXA==", "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\tlinux-pm@vger.kernel.org,\n\t\"Mario Limonciello (AMD)\" <superm1@kernel.org>,\n\tEric Naim <dnaim@cachyos.org>", "Subject": "[PATCH v2 2/6] PCI/PM: Disable device wakeups when halting or\n powering off system", "Date": "Mon, 27 Apr 2026 15:50:20 -0500", "Message-ID": "<20260427205024.254677-3-superm1@kernel.org>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260427205024.254677-1-superm1@kernel.org>", "References": "<20260427205024.254677-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": [ "v2", "2/6" ] }