From nobody Thu Oct 23 09:44:07 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4csh201jrhz6D0nT; Thu, 23 Oct 2025 09:44:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4csh1z5sHJz3fFQ; Thu, 23 Oct 2025 09:44:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761212647; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=w5Nql3b+51xXqRlMYf6LZIjYmkjbisE1zegWQ8KUlHs=; b=rQQGXM5F/Dd+M7nLZnHMYae6v2UpeHU+bY4FPqaYSwJEAi6GMHdiv2KyGnBjEBOEYAS3Ts BIZAkK8hLIeaKn6ou14N0EzTrczPMbbHxw6CazlBtPmIpKWTlaGE1OifZYFonGQcBPl6FE clctJDsd1GLJ9EEQYX/OuFzayktjC64DLBUaqR94JM+A+fqJ/fLKqzeuYH37he4w8i+kDB PjrSDZGHabIeUlEniA23kgPCN5dhJyT0rLYE1Tj93F9kv323sLecoMg6nr0UpCwx1aTLbh DIVh90QheMYqNedd5iC5K/8vhz2bkcbmSjXtVMGxA40Vr2WjJ+pFkJU77b07GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761212647; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=w5Nql3b+51xXqRlMYf6LZIjYmkjbisE1zegWQ8KUlHs=; b=qxp7bo1N7+e+cjPTJGSF2POWmVU/iHnX6515C03EdpIThYZ8NPIWP8ls4qmNnkzTfd1KMF lhBNNlsqqIDJYXlYSkSZ8ePfwzpDOq3asKxkgRJP6Lxq1Z2Cm/mlGCWzy+p/IxJi7nVeAi 5sJAxszOGl+f5pyAAS1bt5dohass8k37U0rwP6lY2nXxabLhdBbzfvcYwcWaijOGWCANsP R2IAuaaLyooisA5W3XXK/Gt8WmK0xYXupdfd7Zay89O9tQWDCYmGSA4pfws9aeTrj9R0IS rn7nJ+p+FozPl/mq+Q1tHblDNiVVBoPyAMo6ovVrcHrniWUKrJFVTzJ/97xYAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761212647; a=rsa-sha256; cv=none; b=UZd0T6x9SgPq+MCVzSX3lVt0GwuFZsmJKYWyF6EvTrmuGMMt4qete8O0HFpYcTGLoBS63s hbrpQ81Ww1sHyl8QzRYDCQjEeke6NQx5R6cvFmsgodKF+9GiPqL5PEAzpkEVe9Jlk3G3BD O2hVcvGL6FtMy91GPkNiwF+SR7iL1HqHvZddwRA2fedU6ARl1NxFBC5jJgBa0qCyMZT4Ie uq3Rtg5cLaR7CRqH+Ps3si6jWdqdCgc7NxNQ8hU1kSk5jusBIrUhhy6GlEfMbwziYLSsJ5 qR6pn6YA2fec1CGmwDFNci/xN9d6i5TNJ/nGLalMMqqCVQTzorqYaMbOoYo2ig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4csh1z5Fz1z18Rm; Thu, 23 Oct 2025 09:44:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59N9i7fY060144; Thu, 23 Oct 2025 09:44:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59N9i7UC060141; Thu, 23 Oct 2025 09:44:07 GMT (envelope-from git) Date: Thu, 23 Oct 2025 09:44:07 GMT Message-Id: <202510230944.59N9i7UC060141@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: be52a81be079 - stable/15 - LinuxKPI: add skeleton pci_enable_wake() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: be52a81be07997f84f454637372a056415f6a2eb Auto-Submitted: auto-generated The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=be52a81be07997f84f454637372a056415f6a2eb commit be52a81be07997f84f454637372a056415f6a2eb Author: Bjoern A. Zeeb AuthorDate: 2025-10-17 20:38:11 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-10-23 06:35:06 +0000 LinuxKPI: add skeleton pci_enable_wake() Given we do not yet support "wake" bits in device there is little need doing it in PCI if we cannot check if we are supposed to do the operation in first place. Once we would implement this, we would need to also do the appropriate PCI (pme) checks before enabling (disabling) it. Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D53208 (cherry picked from commit 885e8f272f7515b0325974de72d18b73318eff07) --- sys/compat/linuxkpi/common/include/linux/pci.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index ffc2be600c22..06336bf963d6 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -831,6 +831,19 @@ lkpi_pci_restore_state(struct pci_dev *pdev) #define pci_save_state(dev) lkpi_pci_save_state(dev) #define pci_restore_state(dev) lkpi_pci_restore_state(dev) +static inline int +linuxkpi_pci_enable_wake(struct pci_dev *pdev, pci_power_t state, bool ena) +{ + /* + * We do not currently support this in device.h either to + * check if the device is allowed to wake up in first place. + */ + pr_debug("%s: TODO\n", __func__); + return (0); +} +#define pci_enable_wake(dev, state, ena) \ + linuxkpi_pci_enable_wake(dev, state, ena) + static inline int pci_reset_function(struct pci_dev *pdev) {