All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Benato <benato.denis96@gmail.com>
To: Antheas Kapenekakis <lkml@antheas.dev>
Cc: Mario Limonciello <mario.limonciello@amd.com>,
	linux-pm@vger.kernel.org, platform-driver-x86@vger.kernel.org,
	luke@ljones.dev, me@kylegospodneti.ch
Subject: Re: [PATCH v1 3/4] acpi/x86: s2idle: call screen on and off as part of callbacks
Date: Sun, 22 Sep 2024 04:07:30 +0200	[thread overview]
Message-ID: <30b8c512-d76e-4acf-892e-fad7a6bb1127@gmail.com> (raw)
In-Reply-To: <CAGwozwHDW_m7gx8Fb-CQUz_TtSA=G7hx37NCqntm-hYKhRf8WA@mail.gmail.com>

On 21/09/24 21:44, Antheas Kapenekakis wrote:
> Hi Denis,
> 

Hello Antheas,

>> Beside, as for necessary kernel/software quirks, the new firmware is
>> expected to require none, at least for asus-wmi, so I ask you to leave
>> csee calls where they are now as in the future those will be used only
>> on non-updated firmware.
> I'm happy you said that, as it means this patch will not conflict with
> the new firmware and will just fix older devices.
> 

You are currently attempting to fix a problem that does not exists (or
you haven't made us aware of), in a way that is causing regressions:
no -- calling csee twice is not a problem and we have absolutely no reasons
to suspect it is.

First: the onus is on you to justify, with logs and a thorough explanation,
why you are modifying a module. You have so far failed to do so.

Second: give us explanation of why you think downloading games with screen off
has something to do with the asus-wmi driver and belongs to the same patch series.

> The only change my patch does on the Ally specifically is pull CSEE
> earlier and remove the extra call. There is nothing in this patch to
> explain what you are experiencing. There are a lot of causes I could
> point my finger to, but there is no point.
> 

A compiled version of the kernel tag v6.11 has mcu_powersave=0 working flawlessly,
that very same kernel, compiled with the very same .config, with your patches on
top exhibits what was documented: there is no reason to use fingers here.

So... for one your patches do something else (and they seems to be related to
activities done in background while in s2idle), and two you are saying that
since you don't understand why a regression is happening it is okay to ignore that.

> We will conduct our own testing, and this will include the original
> Ally as well. A lot of them actually, and after initial testing this
> will include thousands of devices, as we plan to fully dogfood this
> patch.
> 

I will be here waiting for the result, when you have identified the reason of regression I
documented, include me in CC or reach me out privately with the work ready to test.

> I was a bit busy today, so I did not update the patch. I want to
> rewrite part of the cover letter, as it includes some inconsistencies,
> and rename some variables. The inconsistencies have to do with how I
> describe the sleep stage, as I read up on some additional
> documentation, it is not related to the contents of the patch. In
> addition, it seems those sleep _DSMs cause problems on the Ally too,
> related to TDP. And no, I will not wait half a year for a BIOS update
> to fix those.
> 
> I am also looking into how to integrate Modern Standby into the
> kernel, in a more full featured way. Downloading games in the
> background is a very requested feature after all, and since looking
> into the Ally's _DSM entries, it seems like it is built to support it.
> Background here would mean the fan will be off and the suspend light
> will be pulsing, so you can safely stow it in a bag while it is
> downloading games. However, this is conjecture until the patch for
> that is built and tested.
> 

Again, userspace software running in s2idle has absolutely nothing to do with
acpi entries. You need to decide what this patch is all about:
If it is about asus-wmi then identify and solve regressions before resubmitting.
If it is about downloading games while sleeping then create a new idle driver
(this way you won't risk breaking what has been confirmed working for months or years),
do a request for comment on a proposal, or propose an interface to the userspace
that applications will use to carry on tasks while hardware is in s2idle
and drop the useless asus-wmi part as it does not belong there.

As it stands this work does not solve any problem and does not allow downloads
to happen while the console is sleeping: pick one and follow that route.

> Antheas

Best regards,
Denis

  reply	other threads:[~2024-09-22  2:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-19 17:19 [PATCH v1 0/4] acpi/x86: s2idle: move Display off/on calls outside suspend (fixes ROG Ally suspend) Antheas Kapenekakis
2024-09-19 17:19 ` [PATCH v1 1/4] acpi/x86: s2idle: add support for screen off and screen on callbacks Antheas Kapenekakis
2024-09-19 17:29   ` Mario Limonciello
2024-09-19 17:36     ` Antheas Kapenekakis
2024-09-19 20:17       ` Mario Limonciello
2024-09-19 17:19 ` [PATCH v1 2/4] acpi/x86: s2idle: handle screen off/on calls outside of suspend sequence Antheas Kapenekakis
2024-09-19 17:35   ` Mario Limonciello
2024-09-19 18:21     ` Alex Deucher
2024-09-19 18:32       ` Mario Limonciello
2024-09-19 18:35         ` Antheas Kapenekakis
2024-09-19 17:19 ` [PATCH v1 3/4] acpi/x86: s2idle: call screen on and off as part of callbacks Antheas Kapenekakis
2024-09-19 19:01   ` Mario Limonciello
2024-09-19 20:45     ` Antheas Kapenekakis
2024-09-19 20:51       ` Mario Limonciello
2024-09-19 20:54         ` Antheas Kapenekakis
2024-09-21  1:03           ` Denis Benato
2024-09-21  6:22             ` Antheas Kapenekakis
2024-09-21 14:47               ` Denis Benato
2024-09-21 19:44                 ` Antheas Kapenekakis
2024-09-22  2:07                   ` Denis Benato [this message]
2024-09-22  7:48                     ` Antheas Kapenekakis
2024-09-19 17:19 ` [PATCH v1 4/4] platform/x86: asus-wmi: remove Ally (1st gen) and Ally X suspend quirk Antheas Kapenekakis
2024-09-19 18:36   ` Mario Limonciello

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=30b8c512-d76e-4acf-892e-fad7a6bb1127@gmail.com \
    --to=benato.denis96@gmail.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=lkml@antheas.dev \
    --cc=luke@ljones.dev \
    --cc=mario.limonciello@amd.com \
    --cc=me@kylegospodneti.ch \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.