Bug 117971 - suspend timeout for sd 0:0:0 caused panic
Summary: suspend timeout for sd 0:0:0 caused panic
Status: RESOLVED PATCH_ALREADY_AVAILABLE
Alias: None
Product: Power Management
Classification: Unclassified
Component: Hibernation/Suspend (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Chen Yu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-10 23:38 UTC by higuita
Modified: 2016-08-18 08:59 UTC (History)
2 users (show)

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


Attachments
wake kernel oops (1.59 MB, image/jpeg)
2016-05-10 23:38 UTC, higuita
Details
updated kernel oops (738.25 KB, image/jpeg)
2016-06-02 02:26 UTC, higuita
Details

Description higuita 2016-05-10 23:38:22 UTC
Created attachment 215871 [details]
wake kernel oops

Sometimes, on my machine, after some suspend/wake cycles, i get a crash on waking. Attach is the screenshot of the kernel stack.

As it requires several suspend/wake cycles, it is hard to reproduce, but maybe the stack helps to find where is the problem.
Comment 1 Zhang Rui 2016-05-19 05:08:55 UTC
please
1. reboot your kernel parameter "idle=poll"
2. run "echo 0 > /sys/power/pm_async" before suspend
3. try suspend/resume and check if the problem still exist.
4. if no, please repeat your suspend/resume test, but with step 1 OR step 2 only, and see which one makes the problem gone.
Comment 2 higuita 2016-06-02 02:26:25 UTC
Created attachment 218761 [details]
updated kernel oops

Tried this and still crashes.
Attach is one of the crash, but after several of then and comparing, they are more or less the same.

Any new idea?
Comment 3 Zhang Rui 2016-06-27 05:51:31 UTC
no.
what kernel are you using? can you please try the latest upstream kernel, say 4.7-rc?
Comment 4 Chen Yu 2016-08-01 08:08:04 UTC
A panic was triggered when the device sd 0:0:0:0 could not be suspend and got a timeout. could you check what's the value of CONFIG_DPM_WATCHDOG_TIMEOUT in your kernel config file, and adjust it to a bigger one to see if it works.
Comment 5 Chen Yu 2016-08-11 02:14:41 UTC
ping
Comment 6 Chen Yu 2016-08-11 12:26:11 UTC
https://patchwork.kernel.org/patch/9275187/
https://patchwork.kernel.org/patch/9275189/

Above patches can help customize the timeout of dpm watchdog.
Comment 7 higuita 2016-08-18 08:59:28 UTC
Sorry for the delay

I have reverted to .config to the distro version and the problem disappear.


On this new .config, i have no CONFIG_DPM_WATCHDOG_TIMEOUT.

I will recompile again with the old .config with a different CONFIG_DPM_WATCHDOG_TIMEOUT and test. If it still fails, i will try to bisect the new and old .config to try to find the origin of the problem and will post the result

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