From nobody Thu Oct 23 23:37:13 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 4ct2WF4nL8z6DsMr; Thu, 23 Oct 2025 23:37:13 +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 4ct2WF2MrWz3Rj5; Thu, 23 Oct 2025 23:37:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761262633; 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=boxPsxaJm90Wrq7AT16ZJKlwqNMml5EE3jPj2+hA2Bk=; b=ezKluw4sj6pPtrhI48fRo3XxptHfr5GW08fNZ2roGpyXbT46aubpvNXRmiVr/EC4m6z7MI OgFulsvUq90NHa/T8TFHmXoPlnDkPJfY5P/JXr/Eoe0NyX8LDMSOrtEsHjb5yq9qci+GOb 683K2Q4Qr6gap19NNcBwVPwqjI8mGPdWAHHkjLL7m9qP1SGecL5sp9iN/vpywyt1cMgTd7 fHeWj/KSVEYRW5Hf9N5F1BXQXhmA+12x0hwph4E/jOjRTNCbqaTF3GD7J5/PfQ6OgGDUr1 +dh2nLVeGFTj/dcUB8YsLit+p8th+KicmwTg0WWxuKIgjy2GACFm6TXIvJFdDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761262633; 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=boxPsxaJm90Wrq7AT16ZJKlwqNMml5EE3jPj2+hA2Bk=; b=HHZl/H5Y+j/Mr4+eixHsfXKR/yyoZsnsyAYt7mpl4O+VIqZ5u7OupZD2nmkyZutKjJy7R6 ZK+v7xSfswzE42gYOLbZnEtWfRuRKKL7RT/7QtVcZ4tSPaGzDKiugW6wEX4GijHOm9ohoE GxTWD3XoMbtcmdJRFiC0oEw2WcpsFi3yZdn/cx+HFd7WC8yoO/+tjNhpnJkSXJcnoXHYAg Aef6qGjBfOCxqsUceYBubswHuC63ndgJRM1QiXJObpCyOZ1Po7FFmMt6QHby1BYmIBkMPy EsdPb03bl6QRaVjbkZNBBU2WTrq3jO4g7dqmku+N0+d1faOdj5X2m9y/+u5FWQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761262633; a=rsa-sha256; cv=none; b=LxSmgUIHf2B39ilxAcvkNeDy+0Oj1LCwI4BJgs8dRKrhKdCToNf5/dHV53ZVqpb+RMiGPl 2eh5EwrHzjiMO/+qRUnLMgQWv86/avEdCIp3lFHiYGIbyHX6X/1qcAI5T9D7zQW/2GEmjy dezEJYWmJLOUmgXKadLSF84U6Gox3n8YLUBzO07479t7wJsqRurHUWULsdVJh7QYzE9n/F kCXFnN5Yjgg9f7w+2YiT6nnCKESaXeq9E9bL3Tr2lCvPql5XPEH5Cir2hCc91lRRuTwAts Z/PWHwEEZAJIcn/TyHNrN8ZunSu64/jRE1CNc3SLlzivz+vJK/LFObGnItICPg== 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 4ct2WF1yZSzcrw; Thu, 23 Oct 2025 23:37:13 +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 59NNbD09026368; Thu, 23 Oct 2025 23:37:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59NNbDdr026365; Thu, 23 Oct 2025 23:37:13 GMT (envelope-from git) Date: Thu, 23 Oct 2025 23:37:13 GMT Message-Id: <202510232337.59NNbDdr026365@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: 18bb10c59f43 - releng/15.0 - 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: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/releng/15.0 X-Git-Reftype: branch X-Git-Commit: 18bb10c59f43e3cd4462a187fa38bc22752d98fe Auto-Submitted: auto-generated The branch releng/15.0 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=18bb10c59f43e3cd4462a187fa38bc22752d98fe commit 18bb10c59f43e3cd4462a187fa38bc22752d98fe Author: Bjoern A. Zeeb AuthorDate: 2025-10-17 20:38:11 +0000 Commit: Colin Percival CommitDate: 2025-10-23 23:32:12 +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. Approved by: re (cperciva) Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D53208 (cherry picked from commit 885e8f272f7515b0325974de72d18b73318eff07) (cherry picked from commit be52a81be07997f84f454637372a056415f6a2eb) --- 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) {