Bug 102841 - system wakes from sleep when intel SRT(Smart Response Technology) is enabled in BIOS - Dell XPS 15 2014 model
Summary: system wakes from sleep when intel SRT(Smart Response Technology) is enabled ...
Status: CLOSED DOCUMENTED
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Sleep-Wake (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: Zhang Rui
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-14 00:40 UTC by dblack
Modified: 2016-05-09 05:44 UTC (History)
3 users (show)

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


Attachments
/proc/acpi/ (942 bytes, text/plain)
2015-08-31 06:24 UTC, dblack
Details
acpidump (508.42 KB, application/octet-stream)
2015-09-28 02:58 UTC, dblack
Details
dmesg (125.52 KB, text/plain)
2015-10-19 23:36 UTC, dblack
Details
acpidump_srt_disabled_in_bios (506.55 KB, text/plain)
2016-03-18 03:44 UTC, dblack
Details
acpidump_srt_enabled_in_bios (510.47 KB, text/plain)
2016-03-18 03:45 UTC, dblack
Details

Description dblack 2015-08-14 00:40:05 UTC
Dell XPS 15 2014 model wakes from sleep when intel SRT(Smart Response Technology) is enabled. Please let me know what information would be helpful to fix this issue. The kernel I am running has intel smart connect enabled. The issue also appears using the current ubuntu 15.04 kernel.
Comment 1 Aaron Lu 2015-08-19 09:25:03 UTC
Please attach your acpidump:
# acpidump > acpidump.txt
Thanks. There may be a chance we can disable this feature in kernel to avoid this problem perhaps.
Comment 2 Zhang Rui 2015-08-31 05:42:00 UTC
(In reply to dblack from comment #0)
> Dell XPS 15 2014 model wakes from sleep when intel SRT(Smart Response
> Technology) is enabled.

do you mean the intel SRT is enabled in BIOS, or there is a driver in Linux kernel?

> Please let me know what information would be helpful
> to fix this issue. The kernel I am running has intel smart connect enabled.
> The issue also appears using the current ubuntu 15.04 kernel.

please attach the output of "cat /proc/acpi/wakeup"
Comment 3 dblack 2015-08-31 06:23:00 UTC
> do you mean the intel SRT is enabled in BIOS, or there is a driver in Linux
> kernel?

I mean intel SRT is enabled in bios. I have CONFIG_INTEL_SMARTCONNECT compiled as a module.

> please attach the output of "cat /proc/acpi/wakeup"

Will do.
Comment 4 dblack 2015-08-31 06:24:42 UTC
Created attachment 186251 [details]
/proc/acpi/
Comment 5 Aaron Lu 2015-09-11 03:22:37 UTC
acpidump and dmesg please.
Comment 6 Aaron Lu 2015-09-28 02:53:05 UTC
ping
Comment 7 dblack 2015-09-28 02:58:27 UTC
Created attachment 188711 [details]
acpidump
Comment 8 dblack 2015-09-28 03:00:13 UTC
I have attached an acpidump output. However, I have not attached dmesg output yet because I will want to reproduce the bug (the issue may have been fixed in newer kernels than the ubuntu 15.04 kernels that I am using) first.
Comment 9 dblack 2015-09-28 03:00:37 UTC
s/attached an/attached/
Comment 10 dblack 2015-10-13 06:27:26 UTC
I cannot reproduce this issue with SRT enabled on a 4.2.3 kernel.
Comment 11 dblack 2015-10-19 23:36:15 UTC
Created attachment 190581 [details]
dmesg
Comment 12 dblack 2015-10-19 23:36:46 UTC
I managed to reproduce the issue with a 4.2.3 kernel. I have attached dmesg output.
Comment 13 Aaron Lu 2015-10-20 03:26:33 UTC
There are some suspend/resume messages in the dmesg, is it that the resume is not intended but by the machine itself(probably due to SRT)?

Since there are multiple suspend/resume cycle, is it that you start the suspend process after the machine resumed itself?
Comment 14 dblack 2015-10-20 03:37:04 UTC
The first suspend was intended but the resume that woke the system up following it was *not* intended. The later suspends and resumes were intended.
When the system failed to suspend properly ->
> [25895.878099] pciehp 0000:00:1c.0:pcie04: link training error: status 0x1001
[25895.878101] pciehp 0000:00:1c.0:pcie04: Failed to check link status

appear on the screen.
Comment 15 dblack 2015-10-20 03:37:24 UTC
s/appear on/appeared on/
Comment 16 Zhang Rui 2015-12-28 07:58:13 UTC
As it takes days to reproduce the problem with Intel SRT enabled, I'd propose to spend another a couple of days to reproduce the problem with SRT disabled. Because I don't see why Intel SRT is related...
Comment 17 dblack 2015-12-29 09:29:31 UTC
It doesn't take days to reproduce this problem. It is as simple as booting with SRT enabled. If I boot with SRT disabled then I cannot reproduce this issue. If you have some kernel/acpi debug options I can/should enable to make diagnosing this issue easier please let me know.
Comment 18 Zhang Rui 2016-03-15 06:19:58 UTC
please attach the acpidump both with Intel SRT enabled&disabled in the BIOS.
Comment 19 Zhang Rui 2016-03-15 06:30:29 UTC
(In reply to dblack from comment #3)
> > do you mean the intel SRT is enabled in BIOS, or there is a driver in Linux
> kernel?
> 
> I mean intel SRT is enabled in bios. I have CONFIG_INTEL_SMARTCONNECT
> compiled as a module.
> 
BTW, I don't know if there is kernel driver for this SRT feature, but at least CONFIG_INTEL_SMARTCONNECT is not the one.
Comment 20 dblack 2016-03-18 03:44:31 UTC
Created attachment 209681 [details]
acpidump_srt_disabled_in_bios
Comment 21 dblack 2016-03-18 03:45:11 UTC
Created attachment 209691 [details]
acpidump_srt_enabled_in_bios
Comment 22 Bruno Pagani 2016-05-03 14:37:02 UTC
Having the same laptop, I wonder whether this is related to my bug: https://bugzilla.kernel.org/show_bug.cgi?id=116761

Have you tried upgrading you BIOS? You’re apparently at A03, while the current one is A09. You can upgrade from a FreeDOS USB stick by booting in the simplest mode of it (don’t remember the name, but it’s quite obvious AFAIR).
Comment 23 dblack 2016-05-04 00:35:39 UTC
No I have not tried updating the bios as disabling Intel SRT fixes the problem for me.
Comment 24 Zhang Rui 2016-05-09 05:44:50 UTC
I've checked the acpidump file, and there is nothing suspicious.

And I don't think there is a driver in Linux kernel that uses this SRT feature.
And I agree that the driver below may be related.
config INTEL_SMARTCONNECT
        tristate "Intel Smart Connect disabling driver"
        depends on ACPI
        ---help---
          Intel Smart Connect is a technology intended to permit devices to
          update state by resuming for a short period of time at regular
          intervals. If a user enables this functionality under Windows and
          then reboots into Linux, the system may remain configured to resume
          on suspend. In the absence of any userspace to support it, the system
          will then remain awake until something triggers another suspend.

          This driver checks to determine whether the device has Intel Smart
          Connect enabled, and if so disables it.

So please build in this intel-smartconnect driver and check if the problem still exists.
If yes, I think this is a BIOS issue that we should raise to Dell instead, and this bug report should be closed.
If no, then this seems to be a configuration issue, and this bug report still should be closed.

Thus close the bug report for now. Please feel free to reopen it if you still have any questions.

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