From nobody Sun Jul 13 12:58:49 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 4bg59k3H5Xz60wjF for ; Sun, 13 Jul 2025 12:58:50 +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 4bg59k08LSz3G6Q; Sun, 13 Jul 2025 12:58:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752411530; 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=yFfOW9Du8TjFrTg1atApmqjlGoMvCZlKk+UFUxSSCZo=; b=nnKbX8qpTE4iHu0jUuKpaM5nq7EwfEGAKQJZHp9TA4XA3LabjuE3zPGstwhi07fiojAxk3 KIJxBGd/kt+VmULY9TX0FMTOZLHCUVs+zMIs+ZdTlnq1/KFuBGvLRRSRWnjMeWGvxu6WvK FcrOh/22PggoqH6AzneVyXLrKUStANx//OvnsTzJkkbAfS/VAqH2YInKQL9ez6NtY3qoUk neC1QIT2IrV0D55M59zoTzScGvIhtbbWWakBQc2KyvIqu3hdGKPnza7GTOsy+ym0vnJ8pj qHbW2GLOo83sFNUM2y28DhaSeMJDZ7hFruhVkoo3fpf8mbTS6u8Dg+ibcb+euA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752411530; 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=yFfOW9Du8TjFrTg1atApmqjlGoMvCZlKk+UFUxSSCZo=; b=JZ+rEgmhAx0CK2dc9fez5v9FVcWkGJronCzkI9ivi1CEwufXF1btk7hYod4Dh19zSFxJX6 x57c/ubncPH86LShE7FzVyHyKw+dw8TCImOvp6rnoWJ2NemYTCegp737ruruFtBd5n3Ltv 7qWuwq7rXdMsSzG4RyAEsmuUJXPwm8JQywNBsL6o/nCpl0xJIVnY2HXOjsZKT9tkOrfKcz KZOd811G/UHkDQ+9sbu0M6nAryfytTH7LqiR137iMjm9Qkz/mO6LyxAvszg/Zvk4Xmu08y QoJFLOIDPrpIhZ4wHBppD8tMVPQMLZ0w2iFXWn3BbIIYGZK8WSC8zl79BTb0gQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1752411530; a=rsa-sha256; cv=none; b=VonFJ29KDLfyuwyiwXjGumsImB6C+49TWDsMM9343a8R2Qzi98RrbMrRA4P6HFtQM2vHeL 8Yh1MqN7QOzSGIyHbeL1omKm3kx6lHXdLSekYUIN27Sco10aCOaODmg9uVQgOGkLUOn8Ut rG/H/XVGyeDLQdd5O3HBjsWqBKNgIvcs4NY1b60bo5E7Zlrsv/NgqFVj2Q5+Grhw7foPEN 249eh30Q1tNsSP+/mZmFh75dPs/JPtJzXdrHXijmVidf2MOYCFvbDunsY0QCGprXD1WhDy k1qZbKgK7mC6bmwfKnTPf+OWVag1PMZ4PzXiyujlcbzvNQ7qmLnC5lPvj/Sd3A== 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 4bg59j4rrwz17kP; Sun, 13 Jul 2025 12:58:49 +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 56DCwnZt022856; Sun, 13 Jul 2025 12:58:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56DCwnVL022853; Sun, 13 Jul 2025 12:58:49 GMT (envelope-from git) Date: Sun, 13 Jul 2025 12:58:49 GMT Message-Id: <202507131258.56DCwnVL022853@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Lorenzo Salvadore Subject: git: c557f6f251 - main - Status/2025Q2/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: c557f6f251023465dba4e62a22acafb8a3d022c2 Auto-Submitted: auto-generated The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/doc/commit/?id=c557f6f251023465dba4e62a22acafb8a3d022c2 commit c557f6f251023465dba4e62a22acafb8a3d022c2 Author: obiwac AuthorDate: 2025-06-25 18:02:18 +0000 Commit: Lorenzo Salvadore CommitDate: 2025-07-13 12:56:21 +0000 Status/2025Q2/suspend.adoc: Add report Reviewed by: status (Pau Amma ) Pull Request: https://github.com/freebsd/freebsd-doc/pull/516 --- .../en/status/report-2025-04-2025-06/suspend.adoc | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/website/content/en/status/report-2025-04-2025-06/suspend.adoc b/website/content/en/status/report-2025-04-2025-06/suspend.adoc new file mode 100644 index 0000000000..9fef7c63a2 --- /dev/null +++ b/website/content/en/status/report-2025-04-2025-06/suspend.adoc @@ -0,0 +1,31 @@ +=== 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 s2idle/S0ix] URL: https://youtu.be/mBxj_EkAzV0[] + +link:https://github.com/obiwac/freebsd-s0ix/tree/everything[Working Repo] URL: link:https://github.com/obiwac/freebsd-s0ix/tree/everything[] + +link:https://reviews.freebsd.org/D48721[Tip of the s2idle/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. + +The USB4 driver (which was a dependency to S0i3 entry) has been updated to allow for the sleep routines, and all CPUs are now entering C3 during s2idle. +Scheduler work is needed to ensure CPUs stay in C3 and do not get work scheduled to them, but a prototype solution exists and is working. +This means that S0i3 can now be entered on the Framework 13 AMD Ryzen 7040 series laptops, albeit only on my working 14.1 branch. +This does not work on -CURRENT yet. + +The amdgpio driver (for the AMD GPIO controller) has been extended to service all GPIO interrupts and suspend the controller, as that was potentially a blocker for the CPU to enter S0i3. +Nothing is being done with these GPIO interrupts at the moment as FreeBSD does not have the infrastructure for device drivers to register these interrupts on x86 yet. + +The SMU idlemask is also now being exported as a sysctl now (dev.amdsmu.0.idlemask), the value of which is not documented and is mostly to help AMD debug issues with S0i3 entry on FreeBSD on their side. + +A pre-built image is being built to aid in easily testing S0i3 entry on machines. + +With respect to the links, the blog post entry is outdated. +A talk was given about this at BSDCan 2025 too, but it has yet to be uploaded as a standalone video; it will be included in the next status report. + +Sponsor: The FreeBSD Foundation