lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: 
 <CAGwozwF7aVapmRYczm+=rPfVDXH0i6UArQtg1TRgc7Vi6+XYxA@mail.gmail.com>
Date: Thu, 15 Jan 2026 09:49:15 +0200
From: Antheas Kapenekakis <lkml@...heas.dev>
To: Dmitry Osipenko <dmitry.osipenko@...labora.com>
Cc: bob.beckett@...labora.com, bookeldor@...il.com, hadess@...ess.net,
	jaap@...tsma.org, kernel@...labora.com, lennart@...ttering.net,
	linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org, mccann@....edu,
	rafael@...nel.org, richard@...hsie.com, sebastian.reichel@...labora.com,
	superm1@...nel.org, systemd-devel@...ts.freedesktop.org,
 xaver.hugl@...il.com,
	John Schoenick <johns@...vesoftware.com>
Subject: Re: [RFC v1 0/8] acpi/x86: s2idle: Introduce and implement runtime
 standby ABI for ACPI s0ix platforms

On Thu, 15 Jan 2026 at 01:07, Dmitry Osipenko
<dmitry.osipenko@...labora.com> wrote:
>
> On 1/13/26 13:11, Antheas Kapenekakis wrote:
> > <snip>

Hi Dmitry,
let me go inline.

> The primary goal is to support screen-off DSM for a power-efficient
> background games downloading [1] and further resume-to-dark on Steam
> Deck and other handhelds. There is no strict timeline, usual "sooner the
> better". Downstreams will use customized WIP solution till upstream will
> get necessary generic interfaces.
>
> [1] https://store.steampowered.com/news/app/1675200/view/771930569635267984

Ok, this makes things clearer. I had done some testing to see the
viability of such approach.

One big problem [1] had was that the compression algorithm that Steam
used was very CPU intensive. However, it was announced that that
changed, which makes low power downloads more viable.

However, even so, I do not think the sleep DSM is designed for
prolonged background use and certain devices might overheat.
Specifically, I think the Go S disables its fan while in that DSM.
Looking back to what Windows does, it only uses the Sleep state to do
periodic polling, and if there are updates it transitions to display
off.

This is a fair approach for [1]. For example, device wakes up every
two hours while connected to a charger, stays on sleep state, checks
for updates, and if there are any and conditions are met, transitions
to display off and starts downloading.

However, this means you do not get a smaller tdp limit. Given you
control the unfrozen userspace in that state though, such a limit does
not help either. The device will use what it needs to for downloads.
This makes the SD 5W low power mode puzzling, as it means downloads
will potentially take longer and I would be punished as a user for
using that mode. Instead, Steam should be optimized to use less than
5W or perhaps 10W when downloading from gigabit in some way.

Two more considerations in this case are that a lot of devices will
turn off their controllers when entering display off. And the rest
when entering sleep. This is good because when you are in dark resume,
the RGB of the device has turned off. But for [1] it is problematic
because it assumes the controller works and is what is used to wake
the device so the mode is broken. For Legion, Sleep is used to turn
off the controller, and for other devices Sleep Entry/Exit. New in ROG
Xbox Ally devices is that the controller no longer turns off, but it
is muted.

The other consideration is that three additional patches are needed
for ROG Ally devices to work correctly with this series, 2 cleanup
commits and 1 small delay. But after that it should be drop in. I
cannot comment on the new hid drivers for Asus and Legion that are
currently being developed. Particularly, hid-legion-go(?) has a
reset_resume() cb where it should have used resume? Or not anything?
The legion controllers save os mode until they disconnect, which they
do with this series, so the driver would always re-initialize on
wake-up.

> A common approach for upstreaming is to divide problem into smaller
> manageable parts. That's what I'm planning to focus on now to see if we
> can start easy with a minimal changes.

Sure. One potential approach for this is this series, where the first
part does the plumbing and the second part the exposing. They can be
merged independently.

I also made sure to address Rafael's comments, so the ABI of this
series is completely independent of ACPI, S0ix or whether the device
has a display. I also removed all references to Intel, AMD specific
power envelope terminology. Moreover, most of the logic now resides in
suspend.c and the hooks are in platform_ calls, so it can be
implemented for other platforms easily.

However, the first part of this series does some refactorings which
assume a favorable outcome. If we do not want to assume that, a
simpler initial series would just move the MS/display on/off DSMs to
.begin() in s2idle.c. If you think that would be easier to merge, you
are welcome to start with that. Then this series would be refactored
on top and merged as a single unit. Keep in mind the ROG Ally conflict
would also arise in this case as well.

> Please don't worry about the credit. You did a significant ground work
> that is well recognized by now. Thanks a lot for your efforts and help.
> Starting from scratch of course won't be a good approach with all the
> broad testing you've done.

Great. Sounds good to me.

Antheas

> --
> Best regards,
> Dmitry
>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ