From nobody Mon Dec 8 22:27:53 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 4dQGp208CGz6KTHj for ; Mon, 08 Dec 2025 22:27:54 +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 4dQGp16RBFz3Jyn for ; Mon, 08 Dec 2025 22:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765232873; 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=IKWqIlU+LjqQ+UUoTpsLSq/JoUbCK9QdSFWcTjkeexs=; b=gxLHm+L/xs5Myl2x5LkRml1AmFyVTW/uwL4bLTjuinNrvgPIKK9bIsW1dtrbiWK4T0OJS3 KV6uzkdYt5vamj9VTKXDN1AD04e0WE35qwWSewyLEv8aLTJTxtRTDQrvO47iyhst+Ia6AI G+DYw3fmJ04YFC0BoZE3+0qDw+I+lJn3cKEhT8/59iTxO6EnegRuFu/SOyHLekYM7Vf4++ u/zFjQaq+blIrmpiLOUgoFXLqSWd3yHPQpQQjfTlYZ368GNaWJtdY5XFwX+4A+FvyP/4tP YIGSvfuK4zzjiVpLm7rWJHnKkxuDdARwXjhADwo4l0RR+MuoTkRo4prCs3WUuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765232873; 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=IKWqIlU+LjqQ+UUoTpsLSq/JoUbCK9QdSFWcTjkeexs=; b=f7ehRnkircblr0vCLI5ezaTCeGZRAGfx1ay1lDn+EIfU1vE5/IyOPedbgosbJManPnJLMt daB+M+m6E64evMswbp98hRf5Z1aUkPnpyRI9c5txRy5u6CSSLg9uM1ghin4c3ON9bTXQKX XebH/eQUGV6vNTvyMgGX5OyZdfI/oDQHPlIl+aSrn9BulQLl3jhMxu3S3VRdRvxJGNRbGP uY3IZ/S29Xg1c9xdeFtpu+lWJFnNZPgrsY7YraPZtPJVkMv1G0gADb7cNxWMgb6Jvs+Kl1 OXQXnrHLtTsP8jJyPQKw8UDOY8/Ed/JTkFeiG1T8xLxOYbSPbNHotr7enl5eEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1765232873; a=rsa-sha256; cv=none; b=u3y7cqi9L+uAuSWWCHs30IEaKXPwjFhLzW0m5VIQ7nxvztI6tX2SMxXGU+caQ4yekw1bIH /B6ZS7QKLfsFeuH9rA14sklWDHBwBcX2ce80Osl+I39nQwLfASbtATxizX5eFcBfroEyAe 3ZWeeP0Z39ozh1IW5y2vsirV1yVBcZMEJ3nqwBY3LN88R8/EDE7Q+ouVFI7tFek2IzrdGi T8mVqwrr5zQxqq7oA84l3EvI20iO+fcPhYzk1k+EqvBdMi/L6uWvSH8nEfdNyH5knYk5l6 BROdrssalq/wLXcTJuZcOTeaoSLoJAm99YXX+k3NU9k46z5hyfdgYLEO6fjdxw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dQGp15gS6zX19 for ; Mon, 08 Dec 2025 22:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 387bb by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 08 Dec 2025 22:27:53 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Austin Shafer Subject: git: 5287dd47b5b6 - stable/14 - linuxkpi: add stub implementation of pm_vt_switch_(un)register 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: ashafer X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5287dd47b5b643baba645cde51bf39f787c738d6 Auto-Submitted: auto-generated Date: Mon, 08 Dec 2025 22:27:53 +0000 Message-Id: <693750e9.387bb.3a5268c@gitrepo.freebsd.org> The branch stable/14 has been updated by ashafer: URL: https://cgit.FreeBSD.org/src/commit/?id=5287dd47b5b643baba645cde51bf39f787c738d6 commit 5287dd47b5b643baba645cde51bf39f787c738d6 Author: Austin Shafer AuthorDate: 2025-10-28 17:03:18 +0000 Commit: Austin Shafer CommitDate: 2025-12-08 20:46:48 +0000 linuxkpi: add stub implementation of pm_vt_switch_(un)register This adds empty implementations of pm_vt_switch_(un)register which are used by nvidia-drm. We do not need to specify anything here as a VT switch always happens on suspend/resume. Sponsored by: NVIDIA Reviewed by: kbowling (mentor), emaste Differential Revision: https://reviews.freebsd.org/D53400 (cherry picked from commit 75aa13c64aba71f6f26d05e8fcf96e3862d44cde) --- sys/compat/linuxkpi/common/include/linux/pm.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pm.h b/sys/compat/linuxkpi/common/include/linux/pm.h index c8d943027909..932697e0eda8 100644 --- a/sys/compat/linuxkpi/common/include/linux/pm.h +++ b/sys/compat/linuxkpi/common/include/linux/pm.h @@ -97,4 +97,18 @@ pm_wakeup_event(struct device *dev __unused, unsigned int x __unused) pr_debug("%s: TODO\n", __func__); } +/* + * We do not need to specify anything here as a VT switch always happens on + * suspend/resume. + */ +static inline void +pm_vt_switch_required(struct device *dev __unused, bool required __unused) +{ +} + +static inline void +pm_vt_switch_unregister(struct device *dev __unused) +{ +} + #endif /* _LINUXKPI_LINUX_PM_H */