New: Kernel 2.6.33 fails to suspend (bisected)
https://bugzilla.kernel.org/show_bug.cgi?id=15685
Summary: Kernel 2.6.33 fails to suspend (bisected)
Product: Drivers
Version: 2.5
Kernel Version: 2.6.33
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: Yes
Created an attachment (id=25828)
--> (https://bugzilla.kernel.org/attachment.cgi?id=25828)
Kernel config on crashing machine ('make oldconfig' from working 2.6.32 configuration)
(This is a re-report of fdo bug 26872, because I've seen no evidence that anyone's looking at fdo DRI bugs at all, but bugs reported to the kernel list at least get Rafael's scripts looking at them.)
(Crash persists with 2.6.33.2 and the tip of drm-radeon-testing.)
I found to my unhappiness that suspension locks up solid in the atomic copy/restore phase, on my x86-64 KMS system. There's no need to start X or do anything 3D, I can reproduce this from a framebuffer console login prompt. The fault is plainly Radeon KMS's: compile it out and suspension works file.
Nothing is logged on the netconsole, even with verbose PM debugging on.
The graphics card is an HD4870, and suspension mostly worked with it in 2.6.32 (there are circumstances in which TuxOnIce does two suspensions without an intervening resume, and those have always caused Radeon KMS to lock up).
My attempts to bisect it were somewhat hampered by *another* suspend-resume bug with similar symptoms (for me, a triple flash of the caps-lock light followed by a spontaneous reboot, at atomic copy/restore time), fixed by commit 9270eb1b496cb002d75f49ef82c9ef4cbd22a5a0. (The log for this commit helpfully didn't mention suspend/resume at all, only the fdo bug number, so my grepping checks were fruitless and I wasted six hours bisecting to a fixed bug. Bah.)
The faulty pair of commits is a regression from a major API rework :/ applying one but not the other will not compile (obviously). After this commit, suspension never works, although the failure mode changes a few times.
commit ca262a9998d46196750bb19a9dc4bd465b170ff7
Author: Jerome Glisse <[email protected]> Date: Tue Dec 8 15:33:32 2009 +0100
drm/ttm: Rework validation & memory space allocation (V3)
commit 312ea8da049a1830aa50c6e00002e50e30df476e
Author: Jerome Glisse <[email protected]> Date: Mon Dec 7 15:52:58 2009 +0100
drm/radeon/kms: Convert radeon to new TTM validation API (V2)
Before these commits, suspension works. Afterwards, instead of suspension I see a quintuple(?) flash of the caps lock light and a hard reboot. I'm not certain what this means: a triple fault?
The second change in behaviour, between abrupt reboot on suspend and hard hang, I haven't yet fully bisected (forty-three reboots in one evening was quite enough), but it lies in the range 2c761270d5520dd84ab0b4e47c24d99ff8503c38..004b35063296b6772fa72404a35b498f1e71e87e. In practice I strongly suspect that this is the same bug, manifesting differently.
Comparison with other Radeon and KMS users indicates that this is almost certainly r6xx-r7xx-specific. (rv3xx works, r3xx works, Intel works.)
(Well, either that or I'm the only person in the world who's seeing it: I haven't found anyone else with a r6xx or r7xx who's trying to suspend, yet.)
If there's anything else I can do to help debug a hard lockup like this, please say. I do have a second machine available to debug the first, but if the first is *dead* it's hard to do anything...
Signature · 11 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
https://bugzilla.kernel.org/show_bug.cgi?id=15685
Jérôme Glisse <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
CC| |[email protected]--- Comment #1 from Jérôme Glisse <[email protected]> 2010-04-02 19:30:00 --- Please test lastest 2.6.34-rc we commited a bunch of fixes in there.
Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
--- Comment #2 from Nix <[email protected]> 2010-04-02 20:25:59 --- Same failure with 2.6.34 (Linus tree head as of five minutes ago), I'm afraid.
Signature · 11 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
--- Comment #3 from Jérôme Glisse <[email protected]> 2010-04-02 20:54:57 --- Is this a laptop ? if so please give full model name.
If not please give motherboard model and CPU model.
Thanks
Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
--- Comment #4 from Nix <[email protected]> 2010-04-02 21:02:48 --- Not a laptop: I'm suspending to cut my electricity bill (by nearly 30% at last count, ouch).
This is a 2.67GHz Intel Core i7 920 (stepping 4) on an Asus P6T motherboard.
Signature · 11 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
--- Comment #5 from Nix <[email protected]> 2010-04-03 11:05:46 --- If there was some way to get info out of the system while the freezer is engaged I'd generate some and give you the freeze point, but unfortunately the network card appears to be one of the frozen entities, so netconsole and presumably kgdb-over-Ethernet are unhelpful. (None of my machines have serial ports, only serial-over-USB, so serial-kgdb isn't useful in this situation either.)
Signature · 11 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
--- Comment #6 from Jérôme Glisse <[email protected]> 2010-04-03 17:59:08 --- I will reproduce your configuration next week, in the mean time please attach full dmesg and full Xorg.0.log thanks.
--- Comment #7 from Nix <[email protected]> 2010-04-03 18:29:24 --- OK. It'll be about a day, I'm in the middle of a huge KDE3->KDE4 transition right now.
Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
--- Comment #8 from Nix <[email protected]> 2010-04-05 11:37:36 --- Created an attachment (id=25864)
--> (https://bugzilla.kernel.org/attachment.cgi?id=25864)
dmesg of suspend-crashing kernel
Here's the dmesg. Are you sure you want an X log as well? This crash happens if you suspend from the textual login prompt without ever going near X, so it seems as if it would be superfluous to me.
Signature · 11 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
Nix <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #25864|0 |1
is obsolete| |
--- Comment #9 from Nix <[email protected]> 2010-04-05 11:39:56 --- Created an attachment (id=25865)
--> (https://bugzilla.kernel.org/attachment.cgi?id=25865)
dmesg of suspend-crashing kernel
Sorry, bugzilla being unhelpful: an attachment with an URI to an internal machine that you can't get to is no use to you at all... here's the actual file.
Signature · 11 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
Rafael J. Wysocki <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] Blocks| |14885, 7216
--- Comment #10 from Rafael J. Wysocki <[email protected]> 2010-04-05 21:25:08 --- First-Bad-Commit : 312ea8da049a1830aa50c6e00002e50e30df476e
Signature · 11 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
--- Comment #11 from Jérôme Glisse <[email protected]> 2010-04-07 13:40:11 --- Ok works here, please test without tuxonice, tuxonice is know to be problematic and it's out of tree so i won't have time to fix it.
Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
--- Comment #12 from Nix <[email protected]> 2010-04-07 19:25:49 --- Er, how do I suspend without tuxonice? I've never used the in-tree swsusp successfully (last time I tried I didn't just get a crash but massive filesystem corruption, so I sort of haven't dared: reporting it would have meant reproducing it, and I didn't want to touch it with a bargepole after *that*).
Ideal would be a way to kick off the freezer and then just unfreeze without
suspending: that'd be pretty much risk-free...
--- Comment #13 from Rafael J. Wysocki <[email protected]> 2010-04-07 19:43:32 --- (In reply to comment #12)
Quoted 5 lines
Er, how do I suspend without tuxonice? I've never used the in-tree swsusp successfully (last time I tried I didn't just get a crash but massive filesystem corruption, so I sort of haven't dared: reporting it would have meant reproducing it, and I didn't want to touch it with a bargepole after *that*).
It's kind of strange given that quite a few people use it daily, including everyone using hibernation in the default openSUSE setup.
Anyway,
Quoted 2 lines
Ideal would be a way to kick off the freezer and then just unfreeze without
suspending: that'd be pretty much risk-free...
# echo core > /sys/power/pm_test # echo disk > /sys/power/state
should do the trick.
Signature · 11 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
--- Comment #14 from Nix <[email protected]> 2010-04-07 23:17:03 --- Oh, *thank* you, that's very useful indeed.
That lets me eliminate virtually everything from consideration, because it works with ToI off (but patched in) and fails with it on! Thus the problem is either a ToI bug (and likely a bug in not very much ToI code; most of the ToI code relates to block writeout, not freezing), or a bug in the core kernel tickled by ToI.
(btw, I'm willing to believe my fs damage when last I tried the core suspension code was my fat-fingering, not the code itself. It plainly wasn't the freezer, whatever it was, as ToI uses that too, and that worked.)
Signature · 11 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
--- Comment #15 from Jérôme Glisse <[email protected]> 2010-04-08 06:41:07 --- I think the issue is that Tuxonice assume somethings about graphic driver which is wrong with kms. Somethings about memory, ttm is messing with memory and tuxonice maybe miss that and don't properly save our memory.
Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 15685] Kernel 2.6.33 fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
Rafael J. Wysocki <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] Blocks|14885 |
Signature · 11 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
[Bug 15685] Kernel 2.6.33 w/ TuxOnIce fails to suspend (bisected)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=15685
Rafael J. Wysocki <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |ASSIGNED
AssignedTo|drivers_video-dri@kernel-bu |[email protected]
|gs.osdl.org |
Summary|Kernel 2.6.33 fails to |Kernel 2.6.33 w/ TuxOnIce
|suspend (bisected) |fails to suspend (bisected)--- Comment #16 from Rafael J. Wysocki <[email protected]> 2010-04-08 19:02:23 --- Reassigning to Nigel.
Signature · 11 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --