Re: AMD laptops defaulting to S3 instead of S0ix (was amd_sfh)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 8/9/21 4:39 PM, Limonciello, Mario wrote:
> This thread is a mix of top posting and bottom posting and confusing to follow.  Some inline comments below.
> 
> On 8/2/2021 21:42, Liang, Prike wrote:
>> [Public]
>>
>> In the AMD existing S0ix system seems needn't monitor SFH idle state, meanwhile SFH is powered by S5 rail and the rail keeps ON when SOC is in S3/S0i3 state. Regards to SFH stop working after S3 resume maybe caused by power rail and device context tear down during S3 suspend. In addition, we also need implement SFH suspend callback in amd-sfh-hid like as other vendor.
> 
> I think PM callbacks for SFH will resolve the issue at hand and are the most likely the correct solution in this instance.

Ack.

> 
>>> -----Original Message-----
>>> From: Huang, Ray <Ray.Huang@xxxxxxx>
>>> Sent: Tuesday, August 3, 2021 8:20 AM
>>> To: Hans de Goede <hdegoede@xxxxxxxxxx>
>>> Cc: Natikar, Basavaraj <Basavaraj.Natikar@xxxxxxx>; Shah, Nehal-
>>> bakulchandra <Nehal-bakulchandra.Shah@xxxxxxx>; Stephen MacNeil
>>> <macneisj@xxxxxxxxx>; Limonciello, Mario <Mario.Limonciello@xxxxxxx>;
>>> Rafael J . Wysocki <rjw@xxxxxxxxxxxxx>; Linux PM <linux-
>>> pm@xxxxxxxxxxxxxxx>; linux-acpi <linux-acpi@xxxxxxxxxxxxxxx>; Natikar,
>>> Basavaraj <Basavaraj.Natikar@xxxxxxx>; S-k, Shyam-sundar <Shyam-
>>> sundar.S-k@xxxxxxx>; Liang, Prike <Prike.Liang@xxxxxxx>
>>> Subject: Re: AMD laptops defaulting to S3 instead of S0ix (was amd_sfh)
>>>
>>> + Prike
>>>
>>> On Mon, Aug 02, 2021 at 01:43:01PM +0200, Hans de Goede wrote:
>>>> Hi,
>>>>
>>>> On 8/2/21 11:34 AM, Basavaraj Natikar wrote:
>>>>> On 8/1/2021 5:15 PM, Shah, Nehal-bakulchandra wrote:
>>>>>> [AMD Official Use Only]
>>>>>>
>>>>>> Adding few more folks
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Hans de Goede <hdegoede@xxxxxxxxxx>
>>>>>> Sent: Sunday, August 1, 2021 3:17 PM
>>>>>> To: Stephen MacNeil <macneisj@xxxxxxxxx>; Limonciello, Mario
>>>>>> <Mario.Limonciello@xxxxxxx>; Rafael J . Wysocki <rjw@xxxxxxxxxxxxx>
>>>>>> Cc: Linux PM <linux-pm@xxxxxxxxxxxxxxx>; linux-acpi
>>>>>> <linux-acpi@xxxxxxxxxxxxxxx>
>>>>>> Subject: AMD laptops defaulting to S3 instead of S0ix (was amd_sfh)
>>>>>>
>>>>>> Hi Rafael, Mario,
>>>>>>
>>>>>> Stephen is having an issue with a recent AMD laptop (a Lenovo Ideapad
>>> model) where Linux defaults to using S3/deep suspend instead of S0ix/s2idle.
>>>>>
>>>>> Hi Hans, Et al.
>>>>>
>>>>> Looks like the Lenovo platform Stephen MacNeil is using does not support
>>> the S2Idle as the FADT flags as not set (looking at the output of the script).
> 
> So Lenovo intends the platform to be S3 this means.

Ok.

>>>>
>>>> I believe it does, if it would not support s2idle at all, then this
>>>> would not be offered as an option in the "cat /sys/power/mem_sleep"
>>> output.
> 
> I don't believe this to be correct.  s2idle is always added.
> 
> You can look at the comments (and in the code) to see this:
> https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5c4c173d3639d4772966/kernel/power/suspend.c#L174

Ah, I was under the impression that s2idle would only be shown and be supported 
by the kernel when advertised as supported by the ACPI tables. So this is all just
my bad and in this case it indeed seems the intention of the vendor (Lenovo)
that the laptop will use S3 for suspend.

Sorry for the noise / confusion.

Regards,

Hans




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux