The test igt/gem_exec_suspend/basic-s3 does not wake up from suspend when invoked as part of the testlis tintel-ci/fast-feedback.testlist
Manual wake up is needed, afterwards test reports pass.
I am in the process of finding the minimal test case.
So far, the smallest test set that triggers this:
sudo IGT_TEST_ROOT=`pwd`/intel-gpu-tools/tests ./piglit/piglit run igt -o results -l verbose -s --test-list intel-gpu-tools/tests/intel-ci/fast-feedback.testlist -t gem_exec
While specifying tests separately, the hangup does not occur:
Log of the complete run with a manual wakeup:
IGT-Version: 1.17-g901c2bb (x86_64) (Linux: 4.9.0-rc7-CI-CI_DRM_1849+ x86_64)
rtcwake: wakeup from "mem" using /dev/rtc0 at Sat Dec 3 11:19:08 2016
Subtest basic-S3: SUCCESS (18.487s)
Fedora 24, i7-3770, ASRock H77 Pro4/MVP
Created attachment 128317 [details] [review]
Increases the delay between the suspend request and the alarm event
The problem doesn't seem to appear every time now. My suspicion is that the wakeup alarm comes before the system is fully suspended, because increasing the delay makes the issue go away completely.
I have attached a patch that bumps the interval from 15s to 20s.
Perhaps an ideal solution - without making the timeout very large - would be to set a few repeating alarms in succession when such functionality is available, and if that's not possible, to fall back on a large enough value.
Unfortunately, I didn't find any easy way to do that.
One question is why is taking longer than 15s (from time of alarm setup) to suspend? That in itself a failure to meet user expectations. (But yes igt, or at least the CI test harness, needs to be robust.)
Perhaps I can time the process if you think it's relevant - currently I'm guessing the reason. Any suggestions on capturing timestamps?
Something like initcall_debug should show the times during suspend as well. Otherwise it will be a chore of adding printk to ensure we have timing events along the relevant callchains.
Any update at this? According to https://intel-gfx-ci.01.org/tree/drm-tip/fi-ivb-3520m.html and https://intel-gfx-ci.01.org/tree/drm-tip/fi-ivb-3770.html the test igt@gem_exec_suspend@basic-s3 haven't failed recently.
This bug is outdated. Replace with the one used in CIbuglog.
*** This bug has been marked as a duplicate of bug 106220 ***