From nobody Sat Jun 20 11:53:56 2026 X-Original-To: dev-commits-src-main@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 4gjCY074bGz6jQ3h for ; Sat, 20 Jun 2026 11:53:56 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gjCY057Zzz3bKW for ; Sat, 20 Jun 2026 11:53:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781956436; 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=eDZqFL5k2EvrBJYEUG8PR71weQScSsXQa4R7NRt+g2Y=; b=VMiN5M8g/itJ+mSEsnJ1A6TMZJ+XgjMai30BceLVkSf/pcWdxbBArRJ+B4vhJObr3han+J LHE/myEFsuuV58tXdnsjOcZyAEIDJPTB00nUypbbqXjHb9gKV1GxPV4j6Wr5SSdVPKU8qt c5iGnCKQO47b+Lindb37zzpKNUBM9k+vrKItJ7hBJ/FFk/ysQJncZtzQxvQdlBKCbsXVkJ E9guMDSvlBqly2IjTg7S7ODT7GYARs2HyQp2/BPCehRWmsfg+c8ANE80tFuiSMN6jSvjXT 7fgrF7XC0QQA7k2NOO877bPJmruZSipdCc/DEVi15aW4ULB4zDvHMOY+oxAmnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781956436; a=rsa-sha256; cv=none; b=V6vMrN5R9vFtl3A8fXwRp3xok07mqEJ8VkIbbmkMIGkjAUpAyUQ27fUZ29LlpW4Pg6sumZ jRgESdLbHB8btECLc34CjWFRfu3mBhcwoktWp6mTydtXaZ8WgQpUTC/PGdMLIt7hJxESuC Ds6VIo4muHKG2kDSmwQYpvukYOSgdYSah8BSMMjGDNuogCRM53y9lOmaOzQyHc15X24kss SIYAbz219P/ORHX7Y///oMHvbbQppKGruWFoRP4fT8Ym7wgQNX2aIODGHNAXYg75PNqxJ2 wcuHJK1bHxAJ+agA+exv780HTDUjnkgPv+JpB0nHPgnp5exSPeqExYondRTkAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781956436; 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=eDZqFL5k2EvrBJYEUG8PR71weQScSsXQa4R7NRt+g2Y=; b=qUydxvjKqTJNUax4JI8qlksN8KTisAXeA4bMHXha0NLJQfROvE9RCqQXC0GG3/RoYe/OE1 kYwY6lpKTTcpZyqq6zbXyLZuye0Va6fy41pMp/BEU7WSlBv5idU0wdb7ybBKjvFtWB3uf+ NED518uZ40PFzMStMHzdWIOqgQOX8pKasx8apK6liPfsa0CKU03jB4dvtb4YHgF74suwtP 3ELeX4u/kjIQ6iGXmslg0miEuxC3goVlwHWlhb7n33+dQ7nrQFlWzrKmnRZC3Mztb13QWJ st6DVXSXvjBuJPhz+juEZvpHrGOtXcB3FkfjGA3kfqjKvD5iesb4TFl42zsTqQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gjCY03CCtzTZ5 for ; Sat, 20 Jun 2026 11:53:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 26355 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 20 Jun 2026 11:53:56 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron Subject: git: 2e10a6bd5627 - main - linuxkpi: Add `pm_resume_via_firmware()` List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2e10a6bd562768256f38078b84d95da30e1e2aa1 Auto-Submitted: auto-generated Date: Sat, 20 Jun 2026 11:53:56 +0000 Message-Id: <6a367f54.26355.40d16262@gitrepo.freebsd.org> The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=2e10a6bd562768256f38078b84d95da30e1e2aa1 commit 2e10a6bd562768256f38078b84d95da30e1e2aa1 Author: Jean-Sébastien Pédron AuthorDate: 2026-06-12 17:00:31 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-06-20 10:35:25 +0000 linuxkpi: Add `pm_resume_via_firmware()` This function is unimplemented, always return false. While here, fix the return type of `pm_suspend_via_firmware()`: it should be a boolean, not an integer. The amdgpu DRM driver started to use `pm_resume_via_firmware()` in Linux 6.13. Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57580 --- sys/compat/linuxkpi/common/include/linux/suspend.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/suspend.h b/sys/compat/linuxkpi/common/include/linux/suspend.h index 3a8bec392437..b5447a28aebb 100644 --- a/sys/compat/linuxkpi/common/include/linux/suspend.h +++ b/sys/compat/linuxkpi/common/include/linux/suspend.h @@ -27,10 +27,16 @@ extern suspend_state_t pm_suspend_target_state; #define PM_RESTORE_PREPARE 0x0005 #define PM_POST_RESTORE 0x0006 -static inline int +static inline bool pm_suspend_via_firmware(void) { - return (0); + return (false); +} + +static inline bool +pm_resume_via_firmware(void) +{ + return (false); } static inline int