From nobody Mon Apr 08 06:49:05 2024 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 4VCfnt08gbz5GL0T; Mon, 8 Apr 2024 06:49:06 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VCfns6dDjz4m6x; Mon, 8 Apr 2024 06:49:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712558945; 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=fxe8izaMqHs/trgM+2ttyTUC845RtLJ0fA5KYI3m4G4=; b=rfR5tmjDumwwmhmrKJVW3PZQIatIKLXVT8FRl++AIEtVDa1vb6xAuaGHSfwX5z8yxoHYCZ TCPUnJr4ckwsbuCi1myzMH+awKrKuATdyFs82LNc2QVmMqeQeQlJ0Z/PsrQpG0LMjd5D5Z wegLLZA/FHJMkd5X3e5U81T2PlIRX0CR3MtZO/87zgimpM37t5sBHo7aIJeH+MknBqlmur mSQmpD74W3i17TiQGrcOyeRwv4aqvjN1gKsw1to85RqazODEi4nBcLaA7uypdpbUGsD09h FaLvtkK9/2DTru6Nrq/rgbC1E6zRGP7GHPs5B3Zjkz9vZ0xgQCg0/MvNH2Z98A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712558945; a=rsa-sha256; cv=none; b=PHogUYEPO8+Px3cCnKrFjAH9779urwjier4jxE8x2ZYuAhr/FJpTzw4jmQinHKGQuV0jz5 kAyBYJaiWdQUuaGKKvkSYdkzRXXvRj2yTMEJmSJsbTbgbvmha1NsSGPqPbDP46/FMB9Dyf k9hvd2+X6qauhZF6HXYq2qO+maE2P5cYznpAn7lCexSUOArObYo5RYvXblpwFcB1CEjh/B 3SQjMyUwJcQkSAZWI+tgfXzqaUUxBJktGxUjePPRS5z90XEwHF88LMFJq2u2kZxFx/pY9E VOv1I6tFhB1iCa8XHoT/swUsaQLlPhkrhzsP5lzRWTGMyTeePkTzgyEJU9WpRQ== 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=1712558945; 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=fxe8izaMqHs/trgM+2ttyTUC845RtLJ0fA5KYI3m4G4=; b=cGSKC1wEElk1skd+kbz9lXFiU8bZNgSwPUw/uXToENP/94ZicEYcfxuhdm7p74/1qBuHSy SQt/vUsSZnvAGx8Dosp3MXKobI+HXiblxqL8MgEel4q3xLTc2bucts2ni/xQfXyOFkqNAg A/Q4GydlLLZhqb7KZA7LdTmuVIKIAWoTTOpCNiOcLhJ7Gqc5JoqJ+Pm8Q41nZ4WEZ/YA6j m8yH6rZJGQTU/MTYFfbrpqc3yLuP13vSgud+zw9WnLWM/vG62F6rF0GoKCIgqzCb7u/lvz 1WlAMw0Ko3egFiFJPyPrPQ0A+R0GSGGDVUUZ3rqH5Ezgna36Djm2OwZKPS392Q== 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 4VCfns6DMxz11Ms; Mon, 8 Apr 2024 06:49:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4386n514032542; Mon, 8 Apr 2024 06:49:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4386n537032539; Mon, 8 Apr 2024 06:49:05 GMT (envelope-from git) Date: Mon, 8 Apr 2024 06:49:05 GMT Message-Id: <202404080649.4386n537032539@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 8ace984e477b - main - LinuxKPI: Set suspend type on syspend/resume cycle enter 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8ace984e477b0ee1fcc317752603ec4fe9c7f636 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=8ace984e477b0ee1fcc317752603ec4fe9c7f636 commit 8ace984e477b0ee1fcc317752603ec4fe9c7f636 Author: Vladimir Kondratyev AuthorDate: 2024-04-08 06:47:41 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-04-08 06:47:41 +0000 LinuxKPI: Set suspend type on syspend/resume cycle enter Recent amdgpu depends on pm_suspend_target_state value to separate S3 and S0ix support. Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu (in bugzilla) MFC after: 1 week --- sys/compat/linuxkpi/common/src/linux_acpi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/src/linux_acpi.c b/sys/compat/linuxkpi/common/src/linux_acpi.c index e7b6854ecf13..60ec838e9da7 100644 --- a/sys/compat/linuxkpi/common/src/linux_acpi.c +++ b/sys/compat/linuxkpi/common/src/linux_acpi.c @@ -109,12 +109,14 @@ linux_handle_power_suspend_event(void *arg __unused) * TODO: Make acpi_sleep_event consistent */ linux_acpi_target_sleep_state = ACPI_STATE_S3; + pm_suspend_target_state = PM_SUSPEND_MEM; } static void linux_handle_power_resume_event(void *arg __unused) { linux_acpi_target_sleep_state = ACPI_STATE_S0; + pm_suspend_target_state = PM_SUSPEND_ON; } static void