From nobody Wed Feb 25 09:52:19 2026 X-Original-To: freebsd-current@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 4fLVJ22K5Yz6T5mg for ; Wed, 25 Feb 2026 09:52:34 +0000 (UTC) (envelope-from obiwac@gmail.com) Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fLVJ16C6Rz3f2n for ; Wed, 25 Feb 2026 09:52:33 +0000 (UTC) (envelope-from obiwac@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-8cb40030be5so655151385a.3 for ; Wed, 25 Feb 2026 01:52:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772013152; x=1772617952; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BSZq/9lQkeXbNQgosoCYqldgd7MoPwK2fpW+1jGQRQs=; b=IOkwTjwguxgXfEjSUxzA4J56UrxxiFxZ/rhNqSqrnlEhH6ZKbQ3gRccKih7aI6MKbA 4nQcM/U6mGtGPyxRItkFsG4aWWjmKRRkQ0eCJzfD/BwmB0m/L0t5cY+U03iskotmmXvn df1fJPGw4gcaPpTi5cIbraXe+iomas8yJYivLDbFiP9+sRLkSUdKW9ThlP/rDtrZGkAy j0NaUhiWrUmiPdAwIpDmSY75dk2MJbp7rkkhdx0aNULV3aeg4cyR33WYP5HR9oVIcB68 b3bCZTRo186JIA5Bdn5UfuAsalH4xDa0wP9onlCjzac/sfOZjP9QmXNr24xJx28vlmhl w7MA== X-Gm-Message-State: AOJu0YyP3O6PAaDr1TpVU+OuXNNnMix+bMvJZNJPl6Ygkq9q9OGHfLtY 5C+t4tg2f1TMMHTaRK9J6WvZzy4RfZHv6/+T6yw+kDrbbu0h0ihq0DxZ/QOWVU8v X-Gm-Gg: ATEYQzzFiW2nxsJS/5QbXNB9Pqpdvz0EYIrN/hsC10zfOwI2zOJQ5Y4qOwFc25CjQlA FpSgPfWZjcNOlM3CO1I9btvUHFQ8Sr8cLbp7PFYaFuErmFqKZapB+RZQqdwUedMdIilS0Cwhvkb lyv1n0GKdbzI1RMot5aXDxg8A+Vf3GmNiXg3mNWFm5wFEUuKXX8lf/WpIByNyJHfYjyrFfMQVsq A/453eQLh7g0zocZDLLY9VXIdAUPRBfNUofQNg+gmDlkHY9EzCYfrPVMBFPc+luLjtT0SF/u6gm 78szeL+nCCKtxsQdlW5/7DmczUEREEZniNCeR9B3MhvyFMQ2S8NGvJTMnlICHs3VbmVvmA3RVtO qtNWcQ42V87GFhnfX0ZEiBIO3+JTUVL9Nug6fkb5hDj1PZw0fJhLZ5Z7pXv+JjNYsa3N1UEBITr 227TfreaBIlyc4hdz/2AgxFUiGyw9BzThcEuEaXFnBfgAnDz+5qcJfBCJSWsu/eQHlYcI3Zcd8J f0ah7JZ8FYFuwPZ8qvxLC4X36TD6RD4U+b6TPn2ykcR X-Received: by 2002:a05:620a:199a:b0:8c0:cec4:b6fa with SMTP id af79cd13be357-8cb8ca8c47dmr1840174885a.65.1772013152394; Wed, 25 Feb 2026 01:52:32 -0800 (PST) Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com. [209.85.160.173]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8cb8d0eb04csm1376721385a.25.2026.02.25.01.52.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Feb 2026 01:52:32 -0800 (PST) Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-506c00df428so61359581cf.3 for ; Wed, 25 Feb 2026 01:52:32 -0800 (PST) X-Received: by 2002:a05:622a:1485:b0:503:2f41:aba2 with SMTP id d75a77b69052e-5070bca83efmr189458341cf.54.1772013151828; Wed, 25 Feb 2026 01:52:31 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: <4ba2049c-7744-4e47-a2ed-b6830a4f2086@freebsd.org> In-Reply-To: <4ba2049c-7744-4e47-a2ed-b6830a4f2086@freebsd.org> From: obiwac Date: Wed, 25 Feb 2026 10:52:19 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: AaiRm52EUc7dUKkSueT149fIo0jKTm-gYATS57fprScGGxA3Xpa79ksTa0aRCws Message-ID: Subject: Re: S0i3 sleep testing image To: Charlie Li Cc: FreeBSD CURRENT , freebsd-hackers Content-Type: text/plain; charset="UTF-8" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4fLVJ16C6Rz3f2n X-Spamd-Bar: ---- Hey Charlie! I believe Green Sardine is Cezanne, but just to be sure, can you send me your pciconf -lv? There shouldn't be anything crazy to do to support the Cezanne SMU. USB4 should just work. > Looking at your repository it seems like some of the commits have since > landed in main, so not sure how the rest should be rebased. Yeah, the 'everything' branch was out of date (I have a different branch for development, 'working2', as in "I'm working on this" not necessarily "this works", but that contains some non-S0ix-related patches too). I have just updated it: https://github.com/obiwac/freebsd-s0ix/pull/15 This should now work for you. I will have to update the sleep testing image soon-ish, but I want to figure out my C3 exit issues first. On Wed, 25 Feb 2026 at 05:57, Charlie Li wrote: > > On 20/10/2025 10:27, obiwac wrote: > > Hia everyone! > > > > I am currently working on S0i3 support for FreeBSD, and I have > > prepared a sleep testing image to make it easier to test this on a > > wide variety of different hardware. You can find these images here: > > > > https://people.freebsd.org/~obiwac/s0ix/ > > > > They are expected to successfully enter S0i3 on 7040 series AMD > > processors, and may work on a wider variety of (AMD) machines (I do > > not expect this to work out of the box on Intel, but I have never > > tried this out). Instructions about how to read the S0i3 entry metrics > > are available in the /root/README file or on that page. > > > > You can also of course build the kernel yourself instead: > > > > https://github.com/obiwac/freebsd-s0ix/tree/everything > > > > If you are interested in trying this out for yourself, it would be > > great if you could send me the ACPI dump of your machine (acpidump > > -dt) as well as the SMU metrics sysctl tree on AMD (sysctl > > dev.amdsmu.0). > > > Old thread; some other folks have prodded and I keep forgetting about > wanting to try this out since I have a Green Sardine machine, > specifically a ThinkPad X13 gen 2 AMD. This one has the BIOS option to > switch between S3 and S0ix, but the former does not actually work, as in > the machine never resumes and a hard power cut is needed. > > Looking at your repository it seems like some of the commits have since > landed in main, so not sure how the rest should be rebased. One of the > items now in main is amdsmu, but it seems that the device is not > available for this machine yet. > > -- > Charlie Li > ...nope, still don't have an exit line.