Bug 66551
Summary: | 3.12 or later kernel always reboot when need shutdown machine | ||
---|---|---|---|
Product: | ACPI | Reporter: | littlebat (dashing.meng) |
Component: | Power-Off | Assignee: | Sarah Sharp (sarah) |
Status: | CLOSED DUPLICATE | ||
Severity: | high | CC: | niklas, sarah, tianyu.lan |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.12.1, 3.12.2, 3.13.0-rc2 | Subsystem: | |
Regression: | Yes | Bisected commit-id: |
Description
littlebat
2013-12-05 03:44:40 UTC
This should be a regression. Could you do a bisect between v3.11 and v3.12? Ok, I will try. But need some time learn about "git bisect" first, I am not a professional programmer. You can follow this link http://wiki.gentoo.org/wiki/Kernel_git-bisect The git source is git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Ok, finish "git bisect", before bisect, v3.12-rc5 good and v3.12-rc6 bad, bisect log as below, thank your link: Bisecting: 70 revisions left to test after this (roughly 6 steps) [57a8f0cdb87da776bf0e4ce7554a9133854fa779] mm: revert mremap pud_free anti-fix Bisecting: 43 revisions left to test after this (roughly 5 steps) [7b4a51550981d7602a5e1209b53a67c817c85999] Merge tag 'tty-3.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty Bisecting: 22 revisions left to test after this (roughly 5 steps) [83f11a9cf2578b104c0daf18fc9c7d33c3d6d53a] Merge tag 'driver-core-3.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core Bisecting: 10 revisions left to test after this (roughly 3 steps) [f4c19b8e165cff1a6607c21f8809441d61cab7ec] USB: serial: option: add support for Inovia SEW858 device Bisecting: 5 revisions left to test after this (roughly 2 steps) [638298dc66ea36623dbc2757a24fc2c4ab41b016] xhci: Fix spurious wakeups after S5 on Haswell Bisecting: 1 revision left to test after this (roughly 1 step) [455f58925247e8a1a1941e159f3636ad6ee4c90b] xhci: quirk for extra long delay for S4 Bisecting: 0 revisions left to test after this (roughly 0 steps) [e459933967aef650c25b3cbe1ff88c8047cac543] xhci: fix write to USB3_PSSEN and XUSB2PRM pci config registers 638298dc66ea36623dbc2757a24fc2c4ab41b016 is the first bad commit commit 638298dc66ea36623dbc2757a24fc2c4ab41b016 Author: Takashi Iwai <tiwai@suse.de> Date: Thu Sep 12 08:11:06 2013 +0200 xhci: Fix spurious wakeups after S5 on Haswell Haswell LynxPoint and LynxPoint-LP with the recent Intel BIOS show mysterious wakeups after shutdown occasionally. After discussing with BIOS engineers, they explained that the new BIOS expects that the wakeup sources are cleared and set to D3 for all wakeup devices when the system is going to sleep or power off, but the current xhci driver doesn't do this properly (partly intentionally). This patch introduces a new quirk, XHCI_SPURIOUS_WAKEUP, for fixing the spurious wakeups at S5 by calling xhci_reset() in the xhci shutdown ops as done in xhci_stop(), and setting the device to PCI D3 at shutdown and remove ops. The PCI D3 call is based on the initial fix patch by Oliver Neukum. [Note: Sarah changed the quirk name from XHCI_HSW_SPURIOUS_WAKEUP to XHCI_SPURIOUS_WAKEUP, since none of the other quirks have system names in them. Sarah also fixed a collision with a quirk submitted around the same time, by changing the xhci->quirks bit from 17 to 18.] This patch should be backported to kernels as old as 3.0, that contain the commit 1c12443ab8eba71a658fae4572147e56d1f84f66 "xhci: Add Lynx Point to list of Intel switchable hosts." Cc: Oliver Neukum <oneukum@suse.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Cc: stable@vger.kernel.org :040000 040000 6ba54ba0725b8b93e1beff0ed0c8ac0a729f7502 8330c3a748392abc47843a538752d06048ecc0db M drivers And, this is "git bisect log" output: root@jess:/usr/src/linux# git bisect log git bisect start # bad: [31d141e3a666269a3b6fcccddb0351caf7454240] Linux 3.12-rc6 git bisect bad 31d141e3a666269a3b6fcccddb0351caf7454240 # good: [61e6cfa80de5760bbe406f4e815b7739205754d2] Linux 3.12-rc5 git bisect good 61e6cfa80de5760bbe406f4e815b7739205754d2 # good: [57a8f0cdb87da776bf0e4ce7554a9133854fa779] mm: revert mremap pud_free anti-fix git bisect good 57a8f0cdb87da776bf0e4ce7554a9133854fa779 # good: [7b4a51550981d7602a5e1209b53a67c817c85999] Merge tag 'tty-3.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty git bisect good 7b4a51550981d7602a5e1209b53a67c817c85999 # bad: [83f11a9cf2578b104c0daf18fc9c7d33c3d6d53a] Merge tag 'driver-core-3.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core git bisect bad 83f11a9cf2578b104c0daf18fc9c7d33c3d6d53a # bad: [f4c19b8e165cff1a6607c21f8809441d61cab7ec] USB: serial: option: add support for Inovia SEW858 device git bisect bad f4c19b8e165cff1a6607c21f8809441d61cab7ec # bad: [638298dc66ea36623dbc2757a24fc2c4ab41b016] xhci: Fix spurious wakeups after S5 on Haswell git bisect bad 638298dc66ea36623dbc2757a24fc2c4ab41b016 # good: [455f58925247e8a1a1941e159f3636ad6ee4c90b] xhci: quirk for extra long delay for S4 git bisect good 455f58925247e8a1a1941e159f3636ad6ee4c90b # good: [e459933967aef650c25b3cbe1ff88c8047cac543] xhci: fix write to USB3_PSSEN and XUSB2PRM pci config registers git bisect good e459933967aef650c25b3cbe1ff88c8047cac543 # first bad commit: [638298dc66ea36623dbc2757a24fc2c4ab41b016] xhci: Fix spurious wakeups after S5 on Haswell root@jess:/usr/src/linux# And, I double checked the good and bad kernel: Kernel of "git checkout e459933967aef650c25b3cbe1ff88c8047cac543" is good, kernel of "git checkout 638298dc66ea36623dbc2757a24fc2c4ab41b016" is bad. Additionally, I have another power management issue reported into Debian bug tracking system. I don't know if it is related to this bug. See also: pm-utils: The second time resume from hibernate state fail at display no signal http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730018 I am hitting this same problem now on 3.13-rc2 |