From nobody Tue Apr 15 10:59:23 2025 X-Original-To: dev-commits-doc-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 4ZcLl022rhz5swNq for ; Tue, 15 Apr 2025 10:59:24 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZcLkz4zHPz3ymX; Tue, 15 Apr 2025 10:59:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744714763; 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=5jVi5GNLfz4lY3fKiOd931ctDgOuOaErbgUnwc6GUug=; b=HRhxfE36TAnnbBBYzekkU98xYPWwsQWU4GNTkgZ4TdrCyodmZj2Kn4bswx8feORxhrJWsy UwySZY9PRHWYYWYj6kZLTF4nhkAaXOszyMvXgHVIavOKE//B9A4wJfqvASiccmGJodBlEl nrSPYExaPZQouxNYBhetmyZNmYtA6JbDBL7OwCARAEZhgj85KKF0K8aga2dUQh8v+opypv ykuSQDB+pj31OodKxGvaj88RCzShmohVqbiqOeKAK1bmjzNZ4HYLgrSD609e5V4rSbdrIY tqJVzbk73ev34i4AzlhAdnCeXOqWPIt1wICQHF52cUklCF25w/sHcjBhNH5/EA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744714763; a=rsa-sha256; cv=none; b=Kgb13uBoLF3xKwEJl62eo1Z5seqqns/c8izft6N82UhTDilcQcdk6gWjvk5mTA1vaj+Aem aPTUbP34F2Gh6V9OWpll2QVQ4CtqUZfEsl0IKQKxCV5/LP6HUDifjI3BxXqGnxhkDD5RDi 32IKVGV19at+t83twVFCXPOjXSjfQegrgM1J5wDSf872FALmCWN78CmyfZpsuxZ8Es11ME vpmIVxcRFisao6ZkwqEQYh7m8lNYLrmxSFrcK3cvZfaIGZMXnZJlLl2pCTX5WFy0dL7Sud fGt7XcHuD45bvkUZZDH31n5n1p0QIji8Iga+upPSXQIMwxfafhcf8NPCNslsaA== 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=1744714763; 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=5jVi5GNLfz4lY3fKiOd931ctDgOuOaErbgUnwc6GUug=; b=Pbo6mLeIkPwkWJuR/dE/ubqT0+SDSLTytTm2YSeSO5+gTqg18DXuWaFXY4lQ+M3vU6/mA5 d87UCS31JHgjE9DpnUZzUdkN3LcUUbNO2NVt8tTcBJrnSLL30M7hqwvEZPWlrzYORn9cmA kYVcXpXCRMBOq9CYEEag06X/Pa3ZYDDUe1I/munim1jD+eUg1stu/6EGfqrtYRDHuDpcl0 hbYX5ncwJqO5hRssB0jVn5iPTCWyHFtyjBjKdlC32L6uWhCgCpGLAY/337eBGtWzMV3WUg gmAcOy1z/V2dsrIpB9RDkfXHb9rCT18V40WyJfr39MMcKUJQemfd819bxdwvOA== 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 4ZcLkz4ZnkzVYb; Tue, 15 Apr 2025 10:59:23 +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 53FAxNM1073130; Tue, 15 Apr 2025 10:59:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 53FAxNxr073127; Tue, 15 Apr 2025 10:59:23 GMT (envelope-from git) Date: Tue, 15 Apr 2025 10:59:23 GMT Message-Id: <202504151059.53FAxNxr073127@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Lorenzo Salvadore Subject: git: 1a40aafa40 - main - Status/2025Q1/suspend.adoc: Add report List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: salvadore X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1a40aafa40883ebe2963bbeb07dcbc1cc549cdca Auto-Submitted: auto-generated The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/doc/commit/?id=1a40aafa40883ebe2963bbeb07dcbc1cc549cdca commit 1a40aafa40883ebe2963bbeb07dcbc1cc549cdca Author: obiwac AuthorDate: 2025-04-15 10:56:36 +0000 Commit: Lorenzo Salvadore CommitDate: 2025-04-15 10:59:18 +0000 Status/2025Q1/suspend.adoc: Add report Reviewed by: Chris Moerz Differential Revision: https://reviews.freebsd.org/D49595 --- .../en/status/report-2025-01-2025-03/suspend.adoc | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/website/content/en/status/report-2025-01-2025-03/suspend.adoc b/website/content/en/status/report-2025-01-2025-03/suspend.adoc new file mode 100644 index 0000000000..3e64478672 --- /dev/null +++ b/website/content/en/status/report-2025-01-2025-03/suspend.adoc @@ -0,0 +1,26 @@ +=== Suspend/Resume Improvement + +Links: + +link:https://obiw.ac/s0ix/[Blog] URL: link:https://obiw.ac/s0ix/[] + +link:https://youtu.be/mBxj_EkAzV0[FOSDEM talk on S0ix] URL: https://youtu.be/mBxj_EkAzV0[] + +link:https://github.com/obiwac/freebsd-s0ix[Working Repo] URL: link:https://github.com/obiwac/freebsd-s0ix[] + +link:https://reviews.freebsd.org/D48721[Tip of the S0ix + AMD SMU stack] URL: https://reviews.freebsd.org/D48721[] + +link:https://reviews.freebsd.org/D49453[USB4 suspend stack] URL: https://reviews.freebsd.org/D49453[] + +Contact: obiwac + +Suspend-to-idle and support for S0ix sleep is in the process of being added to FreeBSD. + +This will allow modern Intel and AMD laptops (e.g. AMD and newer Intel Framework laptops), some of which do not support ACPI S3 sleep, to enter low power states to increase battery life. + +Suspending and resuming is working on the Framework 13 AMD Ryzen 7040 series, though the deepest S0ix state (S0i3), necessary for significant power savings, can't yet be entered on AMD systems. +The major blocker for this at the moment is being able to suspend all the USB4 routers correctly, without which the power management firmware will refuse to enter S0i3. +USB4 suspend support in FreeBSD is necessary as the BIOS wakes them up and runs a pre-OS connection manager for USB4 to work before an OS loads with its own connection manager, so they start off in an awake state. + +Work has been picked up from the initial USB4 driver Scott Long started writing, but it isn't yet at a stage where the routers are being fully suspended. + +An amdsmu driver was written to read last suspend statistics and sleep-state residency counters (which were unavailable in the ACPI _LPI objects). +The SMU is a small coprocessor on AMD CPUs which runs the power management firmware and is ultimately what decides to enter S0i3 or not. +These statistics can tell us if the system entered S0i3 during the last suspend, how much time it took to enter, and which proportion of suspended time was spent in S0i3. + +Sponsor: The FreeBSD Foundation