Bug 1393513
Summary: | Shutdown/reboot issues with kernel 4.8 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Daniele Viganò <dennyvatwork> |
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 25 | CC: | alfredo.maria.ferrari, dennyvatwork, fedora, gansalmon, ichavero, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-01-17 15:09:31 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Daniele Viganò
2016-11-09 18:00:37 UTC
Some more details: running the kernel in verbose mode shows that the message just before the hang during shutdown/reboot is Synchronizing SCSI cache (sda) Disabling cache before rebooting the machine seems to solve the issue: sudo hdparm -W0 /dev/sda && sudo reboot and the reboot/shutdown works as expected. So, this bug seems related to https://bugzilla.kernel.org/show_bug.cgi?id=151631 and https://bugzilla.kernel.org/show_bug.cgi?id=187061 A temporary workaround is creating /usr/lib/systemd/system-shutdown/cache.shutdown with this content #!/bin/sh /usr/sbin/hdparm -W0 /dev/sda I've published a set of 4.8.6 kernels for F24 and F25 with the patch mentioned in https://bugzilla.kernel.org/show_bug.cgi?id=187061 applied: - https://daniele.vigano.me/files/5e366c91-41ac-4e43-be8e-15139c0463b1/f24/ - https://daniele.vigano.me/files/5e366c91-41ac-4e43-be8e-15139c0463b1/f25/ Sources are available here: https://github.com/daniviga/latitude5450/tree/master/kernel Bug is affecting v4.8.7 too I have the exact same problem with v4.8 kernels (up to 4.8.10 at this moment) for F24 on a Dell Latitude E7450. The bad commit causing this issue has been reverted in 4.9-rc7: https://bugzilla.kernel.org/show_bug.cgi?id=187061#c16 For the 4.8 tree I think the only solution is to have the patch backported by the Fedora/RedHat maintainers. By the end of the week I will upgrade my builds (see https://bugzilla.redhat.com/show_bug.cgi?id=1393513#c2), with the commit reverted, to 4.8.10 (currently 4.8.8 is available), if you want to try them. Kernel 4.9 from Rawhide works correctly on F24 and F25 too. You can try it running: sudo dnf install fedora-repos-rawhide sudo dnf --enablerepo=rawhide upgrade kernel* I now am on 4.8.15-300.fc25.x86_64 and the problem seems to be gone. 4.8.15-200.fc24.x86_64 and 4.8.15-300.fc25.x86_64 works for me too. I think this bug should be mark as resolved now. *********** MASS BUG UPDATE ************** We apologize for the inconvenience. There is a large number of bugs to go through and several of them have gone stale. Due to this, we are doing a mass bug update across all of the Fedora 25 kernel bugs. Fedora 25 has now been rebased to 4.9.3-200.fc25. Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel. If you have moved on to Fedora 26, and are still experiencing this issue, please change the version to Fedora 26. If you experience different issues, please open a new bug report for those. Works well with kernel 4.9.3. The bad commit causing this issue was reverted before 4.9rc and backported to 4.8.15, thus kernel >= 4.8.15 and >= 4.9.0 are not affected. |