Bug 3272 - Resume from suspend to disk causes crash (suspend2)
Summary: Resume from suspend to disk causes crash (suspend2)
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: XOrg git
Hardware: x86 (IA32) Linux (All)
: high critical
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-11 12:38 UTC by Dionysius Wilson Almeida
Modified: 2009-05-20 05:48 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
lspci and unme output (8.16 KB, text/plain)
2005-05-11 12:41 UTC, Dionysius Wilson Almeida
no flags Details
Xserver Log (31.92 KB, text/plain)
2005-05-11 12:43 UTC, Dionysius Wilson Almeida
no flags Details

Description Dionysius Wilson Almeida 2005-05-11 12:38:39 UTC
Distribution: Gentoo kernel 2.6.11 + software suspend2 patches
Hardware Environment: Sony VAIO PCG FX-140 (Pentium III 700 MHz), 256MB RAM
Software Environment: suspend2 2.1.7.2 + Xorg Xserver from cvs
Problem Description: 
Resuming from software suspend2 causes X server to crash and sometimes even system
freeze when using dri under X.  When dri is disabled, resume works fine.

Steps to reproduce:
1.) Enable dri under X
2.) Suspend using suspend2 + hibernate script
3.) Resume using resume2=/dev/<swap>

Repeat the same with dri disabled (using "Option Accel false" in xorg.conf) to
confirm that things work fine.

The system has a 82815 graphics chipset, so it's using i810 driver.  This 
problem might be just specific to this chipset/driver.

I'm attaching xserver log and lspci output for more details.

regards,

-Wilson
Comment 1 Dionysius Wilson Almeida 2005-05-11 12:41:38 UTC
Created attachment 2665 [details]
lspci and unme output
Comment 2 Dionysius Wilson Almeida 2005-05-11 12:43:44 UTC
Created attachment 2666 [details]
Xserver Log
Comment 3 Julien Puydt 2007-05-15 14:32:20 UTC
I'm having the same issue on my laptop ; but I'm using debian/unstable with normal packages, and it's with an ati card.

lspci -vvv says :
01:00.0 VGA compatible controller: ATI Technologies Inc M9+ 5C61 [Radeon Mobility 9200 (AGP)] (rev 01) (prog-if 00 [VGA])
        Subsystem: ASUSTeK Computer Inc. Unknown device 1811
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (2000ns min), Cache Line Size: 256 bytes
        Interrupt: pin A routed to IRQ 10
        Region 0: Memory at c0000000 (32-bit, prefetchable) [size=128M]
        Region 1: I/O ports at d000 [size=256]
        Region 2: Memory at feaf0000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at feac0000 [disabled] [size=128K]
        Capabilities: <access denied>

what can I do to solve the issue ?
Comment 4 Julien Puydt 2007-05-16 09:58:08 UTC
Ok, I did some tests :
1) when dri is disabled, hibernating just works in any case ;
2) when dri is enabled, and I suspend/resume from inside an xterm, X blocks on resume (black screen, flashing lights, magic system key reboot required) ;
3) when dri is enabled, but I suspend/resume from console, things run smoother... until I switch back to X, in which case we're back to the crashy case ;
4) finally, if I boot without X and suspend/resume, then launch X with dri, then crashy case is back.

Does that pattern help ?
Comment 5 Wang Zhenyu 2007-05-16 19:49:50 UTC
The 815 suspend/resume was a know issue, and is under work by Andreas Mohr. see
http://lkml.org/lkml/2007/5/10/50, his last patch for this. This should probably be merged into kernel mainline soon. 

Julien, as you're using ati driver, you should open another new bug for it, otherwise we're tracking two bugs here..
Comment 6 Julien Puydt 2007-05-16 23:51:41 UTC
Since it looked so like my problem, I assumed maybe that was the same thing ; but since you think it isn't, I filled bug #10975. Thanks!
Comment 7 Jerome Glisse 2009-05-20 05:48:30 UTC
Closing this bug for inactivity please reopen if you still have this issue with recent kernel,mesa,xf86-video-ati,xserver.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.