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.
I can reproduce this on my Onda v891w I will investigate this further as time permits.
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.
Here's another patch to try, please test it: https://lore.kernel.org/linux-acpi/2226585.qILhkvVZS1@kreacher/T/#t
(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.
(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.
(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.