From nobody Wed Oct 29 20:59:15 2025 X-Original-To: dev-commits-src-all@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 4cxfkD1p1dz6FJWb; Wed, 29 Oct 2025 20:59:16 +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 4cxfkD197Rz47Xg; Wed, 29 Oct 2025 20:59:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761771556; 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=V2FUkgDfnQAGEr/P5LWPNeU5wQ/QlqpmIcN4KvCQGUM=; b=EOK2r4Y2wvauslYPT5UnGLaZX6wfKtz4IifbZ660sTQtGbixpQPBJLAVhz87FJZgkDfdZk uUf74Nzaa4pzk8YJa6/g+PhkDaCou/ElQVW+edCAnIn349m3iQyuilyB16eBmFdFnn4kUI vK4OzyMKmx+kvtBOOTMRlAdjFesqWMhrhk1ibZbP6OT5/z6htCV0QWWqr0+Fm5aJNlmlnN KZBIk6OEwNEveCkI3h8FaF3t34XXF3IY2n18p5c45mZGz0C6z6w4k7ITXU+oZfRAVfY12Q zmM3e72hNj+nPjMugm4IFC0qYz/UsYKwKrg9pC7KoYXZyJiHnV94MkylykrZhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761771556; 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=V2FUkgDfnQAGEr/P5LWPNeU5wQ/QlqpmIcN4KvCQGUM=; b=pUZkkfnnWg7XBbyqc1EZj6dykMNCnEgnRM6XKC43WRd5D0a4YhtE73RTAqmXKql4BI18BR FRfU1h4x01Jg9YoLsuc9KlenpHlHZ7ulawKEemHqyImDTpPN3lW3DHtcL6+PBIg0MoQprc ubrLtC9ZPJIBoL2vdaF2uHK7Qh298uiKtZWvzS5gDmuSFWmMS7+cq4uV+7hy/qJJhfh0nK XxX5KdipGQtMw/g89TjKYJXKXOL2ES0X6HsztpyqItVik9FSbc2yOslRbYP7mdHOBl5yT3 siES4eVBdnYMBTBVnWOQzIco40JQ6JwOolzWWo/Vz817ORSKp0QHxoaWqHkqtQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761771556; a=rsa-sha256; cv=none; b=kr4Ws21r6dGveRRLLpCqdiGeHhxQL/WiDJvAvbUm2HREyRhJTDkEOxuV7UFyufDEOf8c2k 8NisrFxFGqnlcM/yMVdC1Tnuwl3G5la9H98Mc6Kx22WBSbVJDVIq07llOO1uVw8Vigkr6b IhlqyC4PJXhH5OT/IyxaA1i+0gXebBBOjFfAr0Cnn5HCodtgdo39nyA5Fv0MFhBMFlQogF Sdc4J6nynxkOda5FzAO2EKDXa3/4tokNyiXMGujp13aGsAOAsdC3tW/HnxukQRHuVez4VC E8ajuLiW3MGqkMKfS6Ws1Cgq0muJp0K/jsVi2AQy8tuPebeivoV258kOVLB/qw== 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 4cxfkD0PWGzsrP; Wed, 29 Oct 2025 20:59:16 +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 59TKxF8C037142; Wed, 29 Oct 2025 20:59:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59TKxFcn037139; Wed, 29 Oct 2025 20:59:15 GMT (envelope-from git) Date: Wed, 29 Oct 2025 20:59:15 GMT Message-Id: <202510292059.59TKxFcn037139@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Austin Shafer Subject: git: 75aa13c64aba - main - linuxkpi: add stub implementation of pm_vt_switch_(un)register List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 75aa13c64aba71f6f26d05e8fcf96e3862d44cde Auto-Submitted: auto-generated The branch main has been updated by ashafer: URL: https://cgit.FreeBSD.org/src/commit/?id=75aa13c64aba71f6f26d05e8fcf96e3862d44cde commit 75aa13c64aba71f6f26d05e8fcf96e3862d44cde Author: Austin Shafer AuthorDate: 2025-10-28 17:03:18 +0000 Commit: Austin Shafer CommitDate: 2025-10-29 20:58:40 +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 --- 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 */