Bug 205057

Summary: S0ix: First time suspend not enter s0ix - Bay trail-CR and Onda v891w
Product: Power Management Reporter: youling257
Component: Hibernation/SuspendAssignee: Rafael J. Wysocki (rjw)
Status: RESOLVED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: jwrdegoede, rui.zhang, youling257
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.3 Subsystem:
Regression: No Bisected commit-id:
Attachments: [PATCH] ACPI / PM: Do not infer power-state if there are no D0 power-resources

Description youling257 2019-10-01 03:40:29 UTC
shutdown start up enter OS, first echo freeze to suspend success, but not enter s0ix, the second time suspend will enter s0ix.
this problem happen on linux 5.3 rc1, yes, happened on kernel 5.3 two month.

Bay trail-CR device, check /sys/kernel/debug/pmc_atom/sleep_state.
Comment 1 Hans de Goede 2019-10-08 20:21:05 UTC
I can reproduce this on my Onda v891w I will investigate this further as time permits.
Comment 2 Hans de Goede 2020-06-03 19:47:57 UTC
Created attachment 289493 [details]
[PATCH] ACPI / PM: Do not infer power-state if there are no D0 power-resources

For me this patch fixes this issue.

I've also submitted this patch upstream.
Comment 3 Rafael J. Wysocki 2020-06-04 15:16:30 UTC
Here's another patch to try, please test it:

https://lore.kernel.org/linux-acpi/2226585.qILhkvVZS1@kreacher/T/#t
Comment 4 youling257 2020-06-04 16:58:31 UTC
(In reply to Rafael J. Wysocki from comment #3)
> Here's another patch to try, please test it:
> 
> https://lore.kernel.org/linux-acpi/2226585.qILhkvVZS1@kreacher/T/#t

test patch drivers/acpi/scan.c, fixed first time suspend problem.

i have another problem,about s0ix Residency time reset.
on my Bay trail v891w,have to shutdown then s0ix Residency will reset 0us.
on my Cherry trail ezpad,only need reboot then s0ix Residency will reset 0us.
Comment 5 Rafael J. Wysocki 2020-06-05 10:08:20 UTC
(In reply to youling257 from comment #4)
> (In reply to Rafael J. Wysocki from comment #3)
> > Here's another patch to try, please test it:
> > 
> > https://lore.kernel.org/linux-acpi/2226585.qILhkvVZS1@kreacher/T/#t
> 
> test patch drivers/acpi/scan.c, fixed first time suspend problem.

OK, thanks!

Here's another version of it, please test this one too:

https://patchwork.kernel.org/patch/11588155/

> i have another problem,about s0ix Residency time reset.
> on my Bay trail v891w,have to shutdown then s0ix Residency will reset 0us.
> on my Cherry trail ezpad,only need reboot then s0ix Residency will reset 0us.

I don't think that this issue is related to the one covered by this bug entry.

Please file another bug to track it properly.
Comment 6 youling257 2020-06-05 16:25:27 UTC
(In reply to Rafael J. Wysocki from comment #5)
> 
> Here's another version of it, please test this one too:
> 
> https://patchwork.kernel.org/patch/11588155/
> 
test this patch fixed first time suspend s0i3 problem.