Bug 199135 - S0ix: no residency in S0ix - ONDA V891w z3735f
Summary: S0ix: no residency in S0ix - ONDA V891w z3735f
Status: REOPENED
Alias: None
Product: Power Management
Classification: Unclassified
Component: Hibernation/Suspend (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Rafael J. Wysocki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-18 06:32 UTC by youling257
Modified: 2019-12-31 05:53 UTC (History)
3 users (show)

See Also:
Kernel Version: 4.16
Subsystem:
Regression: No
Bisected commit-id:


Attachments
0001-Revert-PM-QoS-Fix-device-resume-latency-framework.patch (11.89 KB, patch)
2018-09-09 15:02 UTC, youling257
Details | Diff
0002-Revert-cpuidle-ladder-Add-per-CPU-PM-QoS-resume-late.patch (1.55 KB, patch)
2018-09-09 15:04 UTC, youling257
Details | Diff
0003-change-dev_pm_qos_read_value-0.patch (898 bytes, patch)
2018-09-09 15:06 UTC, youling257
Details | Diff
(4.18)0000-Revert-PM-QoS-Fix-device-resume-latency-framework.patch (11.31 KB, patch)
2018-09-09 15:22 UTC, youling257
Details | Diff

Description youling257 2018-03-18 06:32:28 UTC
cat /sys/kernel/debug/pmc_atom/sleep_state
S0IR Residency: 0us
S0I1 Residency: 0us
S0I2 Residency: 0us
S0I3 Residency: 0us
S0   Residency: 31470280640us
Comment 1 Chen Yu 2018-04-23 07:52:09 UTC
I assume this is the same platform as 199309, and normally we do not track android bug here. Please use upstream kernel and check this can be reproduced.
Comment 2 youling257 2018-04-23 10:23:17 UTC
Android x86 project,running on Linux mainline kernel,custom kernel
remix os、Phoenix os、Android x86
Comment 3 youling257 2018-04-23 10:24:40 UTC
(In reply to Chen Yu from comment #1)
> I assume this is the same platform as 199309, and normally we do not track
> android bug here. Please use upstream kernel and check this can be
> reproduced.

do you know Android x86 open source project,running on Linux mainline、stable、longterm kernel
Comment 4 youling257 2018-04-23 10:32:28 UTC
(In reply to Chen Yu from comment #1)
> I assume this is the same platform as 199309, and normally we do not track
> android bug here. Please use upstream kernel and check this can be
> reproduced.

same problem,https://bugzilla.kernel.org/show_bug.cgi?id=196861
https://bugzilla.kernel.org/show_bug.cgi?id=196915
Comment 5 youling257 2018-04-23 10:41:44 UTC
(In reply to Chen Yu from comment #1)
> I assume this is the same platform as 199309, and normally we do not track
> android bug here. Please use upstream kernel and check this can be
> reproduced.

ok,you don't approve of it is vanilla kernel,closed this bug,will not fix.
Comment 6 Hans de Goede 2018-09-03 20:34:37 UTC
Hi,

I've been working on fixing S0ix support for most Bay and Cherry Trail devices recently. I've a Windows only (non dual boot) version of the ONDA V891w myself (BIOS version ONDA.W89EBBN08) and with my v4.18-footrail branch, which contains a number of SOix related fixes S0ix works fine on this device for me:

https://github.com/jwrdegoede/linux-sunxi/tree/v4.18-footrail

The following patches on top of 4.18.x are relevant for this:

1) A fix for the i2c controller connected to the PMIC
no longer working after suspend/resume:

https://github.com/jwrdegoede/linux-sunxi/commit/49ae76ac49f104fd06a96b7e41c5c02991a33684

2) A set of fixes to make sure the PMC clocks are disabled during boot

https://github.com/jwrdegoede/linux-sunxi/commit/21727f53891a3b7162474680a3ad7725a1b19308
https://github.com/jwrdegoede/linux-sunxi/commit/1c0f485edb8bdc0def5ba4aebe394bf11e207d16
https://github.com/jwrdegoede/linux-sunxi/commit/a2290d4ab214753162f3d89d4e72921ca22f46ad

It would be good if you can test 4.18 with these patches added and report if this fixes things for you.

Regards,

Hans
Comment 7 youling257 2018-09-04 17:39:42 UTC
(In reply to Hans de Goede from comment #6)
> Hi,
> 
> I've been working on fixing S0ix support for most Bay and Cherry Trail
> devices recently. I've a Windows only (non dual boot) version of the ONDA
> V891w myself (BIOS version ONDA.W89EBBN08) and with my v4.18-footrail
> branch, which contains a number of SOix related fixes S0ix works fine on
> this device for me:
> 
> https://github.com/jwrdegoede/linux-sunxi/tree/v4.18-footrail
> 
> The following patches on top of 4.18.x are relevant for this:
> 
> 1) A fix for the i2c controller connected to the PMIC
> no longer working after suspend/resume:
> 
> https://github.com/jwrdegoede/linux-sunxi/commit/
> 49ae76ac49f104fd06a96b7e41c5c02991a33684
> 
> 2) A set of fixes to make sure the PMC clocks are disabled during boot
> 
> https://github.com/jwrdegoede/linux-sunxi/commit/
> 21727f53891a3b7162474680a3ad7725a1b19308
> https://github.com/jwrdegoede/linux-sunxi/commit/
> 1c0f485edb8bdc0def5ba4aebe394bf11e207d16
> https://github.com/jwrdegoede/linux-sunxi/commit/
> a2290d4ab214753162f3d89d4e72921ca22f46ad
> 
> It would be good if you can test 4.18 with these patches added and report if
> this fixes things for you.
> 
> Regards,
> 
> Hans

I know you have Insyde bios Dual os z3735f tablet,insyde setup utility,default os selection,Windows or Android.
please you select Android,save&exit,then boot grub,boot your linux os,test suspend s0i3,
select windows boot your linux os test suspend s0i3.
Comment 8 youling257 2018-09-09 15:02:37 UTC
Created attachment 278381 [details]
0001-Revert-PM-QoS-Fix-device-resume-latency-framework.patch

git am it on 4.15.18 or 4.16.18 kernel
Comment 9 youling257 2018-09-09 15:04:58 UTC
Created attachment 278383 [details]
0002-Revert-cpuidle-ladder-Add-per-CPU-PM-QoS-resume-late.patch

git am it on 4.15.18 or 4.16.18
Comment 10 youling257 2018-09-09 15:06:55 UTC
Created attachment 278385 [details]
0003-change-dev_pm_qos_read_value-0.patch

git am it on 4.9.125 or 4.14.68 or 4.15.18 or 4.16.18
Comment 11 youling257 2018-09-09 15:22:30 UTC
Created attachment 278387 [details]
(4.18)0000-Revert-PM-QoS-Fix-device-resume-latency-framework.patch

4.18 kernel 
Revert "ACPI / LPSS: Avoid PM quirks on suspend and resume from hibernation"
Revert "PM / QoS: Fix device resume latency framework"
change dev_pm_qos_read_value = 0
also can reach s0i3.
Comment 13 youling257 2018-10-12 08:01:58 UTC
(In reply to Hans de Goede from comment #6)
> Hi,
> 
> I've been working on fixing S0ix support for most Bay and Cherry Trail
> devices recently. I've a Windows only (non dual boot) version of the ONDA
> V891w myself (BIOS version ONDA.W89EBBN08) and with my v4.18-footrail
> branch, which contains a number of SOix related fixes S0ix works fine on
> this device for me:
> 
> https://github.com/jwrdegoede/linux-sunxi/tree/v4.18-footrail
> 
> The following patches on top of 4.18.x are relevant for this:
> 
> 1) A fix for the i2c controller connected to the PMIC
> no longer working after suspend/resume:
> 
> https://github.com/jwrdegoede/linux-sunxi/commit/
> 49ae76ac49f104fd06a96b7e41c5c02991a33684
> 
> 2) A set of fixes to make sure the PMC clocks are disabled during boot
> 
> https://github.com/jwrdegoede/linux-sunxi/commit/
> 21727f53891a3b7162474680a3ad7725a1b19308
> https://github.com/jwrdegoede/linux-sunxi/commit/
> 1c0f485edb8bdc0def5ba4aebe394bf11e207d16
> https://github.com/jwrdegoede/linux-sunxi/commit/
> a2290d4ab214753162f3d89d4e72921ca22f46ad
> 
> It would be good if you can test 4.18 with these patches added and report if
> this fixes things for you.
> 
> Regards,
> 
> Hans

s0i3 not improve my v891w battery life, Intel Atom suspend: add debug check for S0ix blockers


[ 2581.288881] pmc_atom: pmc_atom: cpu 3: SEC is in D0 prior to freeze
[ 2581.288890] pmc_atom: pmc_atom: cpu 2: SEC is in D0 prior to freeze
[ 2581.288902] pmc_atom: pmc_atom: cpu 0: SEC is in D0 prior to freeze
[ 2581.288908] pmc_atom: pmc_atom: cpu 3: OTG_SS_PHY is in D0 prior to freeze
[ 2581.288914] pmc_atom: pmc_atom: cpu 2: OTG_SS_PHY is in D0 prior to freeze
[ 2581.288919] pmc_atom: pmc_atom: cpu 0: OTG_SS_PHY is in D0 prior to freeze
[ 2581.288940] pmc_atom: pmc_atom: cpu 1: SEC is in D0 prior to freeze
[ 2581.288949] pmc_atom: pmc_atom: cpu 1: OTG_SS_PHY is in D0 prior to freeze

Note You need to log in before you can comment on or make changes to this bug.