FS#48180 - [linux] inconsistent poweroff behavior under kernel 4.4.1-2-ARCH

Attached to Project: Arch Linux
Opened by John (graysky) - Sunday, 14 February 2016, 16:58 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 30 July 2016, 17:08 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Problem: Machine does not reliability poweroff on a shutdown under 4.4.1.
Work-around: Downgrading to a 4.3.x kernel fixes the hung shutdown.

Since updating to the 4.4.1 kernel, my Haswell machine fails to poweroff about 40% of the time. I don't see anything in `journalctl -b -1` that indicates an error or warning, so I'm thinking whatever is happening occurs after the journal logging as evident by the last few lines lines (complete journalctl is attached):
...
Feb 14 11:02:41 quartz systemd[1]: Reached target Shutdown.
Feb 14 11:02:41 quartz systemd[1]: Reached target Final Step.
Feb 14 11:02:41 quartz systemd[1]: Starting Power-Off...
Feb 14 11:02:41 quartz systemd[1]: Shutting down.
Feb 14 11:02:41 quartz systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Feb 14 11:02:41 quartz systemd-journald[186]: Journal stopped

However, on the screen, I the following displayed which repeat every 2 min until I hold in the power button:
INFO: task shutdown:1 block for more then 120 seconds.
Not tainted 4.4.1-2-ARCH #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
INFO: task kworker/0:3:1642 block for more than 120 seconds.
Not tainted 4.4.1-2-ARCH #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
...

Note that  FS#45863  has the same error (task shutdown:1 block for more then 120 seconds.) and similar symptoms, but mine is cleaner lacking all of the other output in that FS.

Additional info:
* package version(s) 4.4.1-2-ARCH
* config and/or log files etc.


Steps to reproduce:
1) Issue `shutdown -h now` ... 4 times out of 10 the above happens.

CPU: i3-4130T
MB: MSI MS-7851/H97I AC (MS-7851)
This task depends upon

Closed by  Doug Newgard (Scimmia)
Saturday, 30 July 2016, 17:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  User requested: No longer an issue with 4.6.x series perhaps even 4.5.x series.
Comment by John (graysky) - Friday, 04 March 2016, 14:09 GMT
I just built 4.4.4 and this happened on the 2nd shutdown attempt.

Kernel report: https://bugzilla.kernel.org/show_bug.cgi?id=113701
Comment by John (graysky) - Friday, 18 March 2016, 19:07 GMT
Likely a systemd bug based on some work in the above upstream report.

Report against systemd: https://github.com/systemd/systemd/issues/2868

Loading...