nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Resume from Suspend Failure : Ubuntu 9.04, PNY GeForce 6200 AGP (http://www.nvnews.net/vbulletin/showthread.php?t=132103)

eradicator 04-27-09 01:40 PM

Resume from Suspend Failure : Ubuntu 9.04, PNY GeForce 6200 AGP
 
I am having some issues getting resume from suspend to work with my configuration, and I'd appreciate some assistance.

I have an ASUS K8V SE Deluxe mobo. The system seems to be responding nicely with everything except the video card. If I boot with the test_suspend=standby option, everything behaves correctly. I can also do standby (S1) successfully from X and resume. The problem is with S3 (suspend to ram). If I boot with test_suspend=mem, the system suspends to ram correctly, but when it resumes, I get no video back. I can intereact blindly with the machine well, and I always have a network connection after boot.

Similarly, I can 'echo mem > /sys/power/state' and resume (again without video). See the dmesg log below.

running 'vbetool post' consumes 100% CPU and never completes. Similarly, enabling the 're-POST video card after S3 resume' option in my bios causes the system to hang after resume.

I saw information that some NV cards don't resume from suspend well unless X is handling the resume and using NVAGP. I have not been able to get NVAGP to work because it doens't seem possible to disable GART_IOMMU on newer x86_64 kernels (see: http://www.nvnews.net/vbulletin/show....php?p=1992566).

I have enabled PM_DEBUG and ACPI_DEBUG, but nothing "useful" pops out in dmesg:

--
[ 13.367740] PM: Adding info for No Bus:timer
[ 14.025629] nvidia: module license 'NVIDIA' taints kernel.
[ 14.287102] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 14.288833] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 180.44 Tue Mar 24 05:46:32 PST 2009
--
[ 194.066256] k8temp 0000:00:18.3: preparing suspend
[ 194.066259] nvidia 0000:01:00.0: preparing suspend
[ 194.066270] pcspkr pcspkr: preparing suspend
--
[ 194.847319] pnp 00:00: legacy suspend
[ 194.847321] nvidia 0000:01:00.0: suspend
[ 194.847520] k8temp 0000:00:18.3: suspend
--
[ 195.028846] pcspkr pcspkr: LATE suspend
[ 195.028850] nvidia 0000:01:00.0: LATE suspend
[ 195.028852] k8temp 0000:00:18.3: LATE suspend
--
[ 195.028931] k8temp 0000:00:18.3: EARLY resume
[ 195.028931] nvidia 0000:01:00.0: EARLY resume
[ 195.028931] pcspkr pcspkr: EARLY resume
--
[ 195.927455] k8temp 0000:00:18.3: resume
[ 195.927461] nvidia 0000:01:00.0: resume
[ 195.927691] pnp 00:00: legacy resume
--
[ 212.375037] pcspkr pcspkr: completing resume
[ 212.375047] nvidia 0000:01:00.0: completing resume
[ 212.375050] k8temp 0000:00:18.3: completing resume
--
[ 212.375119] Component: resume devices
[ 212.375120] Modules linked in: binfmt_misc ppdev bridge stp bnep video output input_polldev lp parport snd_via82xx gameport snd_mpu401_uart snd_seq_dummy snd_seq_oss snd_via82xx_modem snd_seq_midi snd_ac97_codec snd_rawmidi snd_seq_midi_event ac97_bus snd_pcm_oss snd_mixer_oss snd_seq snd_seq_device snd_pcm nvidia(P) snd_timer snd_page_alloc snd soundcore i2c_viapro shpchp k8temp pcspkr psmouse serio_raw usbhid skge ohci1394 ieee1394 floppy vesafb fbcon tileblit font bitblit softcursor
[ 212.375152] Pid: 3413, comm: bash Tainted: P 2.6.28-11-generic #42

eradicator 04-27-09 01:47 PM

Re: Resume from Suspend Failure : Ubuntu 9.04, PNY GeForce 6200 AGP
 
Oh, and I was (once) able to get a network connection after resuming with X active (using agpgart and the nvidia drivers). Xorg was consuming 100% CPU, and it seemed to be spinning here:

(gdb) bt
#0 0x00007f8c7b3a5ad6 in _nv001302X () from /usr/lib/xorg/modules/drivers//nvidia_drv.so
#1 0x00007f8c7b646e6a in ?? () from /usr/lib/xorg/modules/drivers//nvidia_drv.so
#2 0x00007f8c7b647312 in ?? () from /usr/lib/xorg/modules/drivers//nvidia_drv.so
#3 0x00007f8c7b647976 in ?? () from /usr/lib/xorg/modules/drivers//nvidia_drv.so
#4 0x00007f8c7b3a5310 in _nv000939X () from /usr/lib/xorg/modules/drivers//nvidia_drv.so
#5 0x00007f8c7b6617d0 in ?? () from /usr/lib/xorg/modules/drivers//nvidia_drv.so
#6 0x00007f8c7b3a6ebd in _nv001769X () from /usr/lib/xorg/modules/drivers//nvidia_drv.so
#7 0x00007f8c7b63ed59 in ?? () from /usr/lib/xorg/modules/drivers//nvidia_drv.so
#8 0x00007f8c7b63ff8c in ?? () from /usr/lib/xorg/modules/drivers//nvidia_drv.so
#9 0x00007f8c7b625c2e in ?? () from /usr/lib/xorg/modules/drivers//nvidia_drv.so
#10 0x000000000048c962 in ?? ()
#11 0x000000000049dc59 in ?? ()
#12 0x000000000048624c in xf86Wakeup ()
#13 0x0000000000451e6b in WakeupHandler ()
#14 0x00000000004ef5ef in WaitForSomething ()
#15 0x000000000044e020 in Dispatch ()
#16 0x0000000000433d8d in main ()

Note that if I 'echo mem > /sys/power/state' while X11 is not running, I can connect via network after resume. If X11 is running, I can't seem to reliably connect after resume. I'm going to grab my null modem from work to get a serial connection for more reliable debugging.

eradicator 04-27-09 02:53 PM

Re: Resume from Suspend Failure : Ubuntu 9.04, PNY GeForce 6200 AGP
 
I have been able to build the nvidia kernel module to notice that GART_IOMMU is disabled, but I still have the same problem. After resume from suspend while X11 is running, I get no video and no network access.

eradicator 04-27-09 07:45 PM

Re: Resume from Suspend Failure : Ubuntu 9.04, PNY GeForce 6200 AGP
 
I have connected via serial cable for a reliable console now.

When I resume from S3 for the first time after power on, my serial console is connected, and the only problem is the video card is not awakened. If I start X from this state (just by running /usr/X11/bin/X), nothing noticible happens, but then when I ctrl-c to stop X, the monitor says "Cannot display this mode"... run X again, the message goes away and all black... quit X... the message comes back...

If I then put the machine to sleep again (so a second sleep/resume after power on), then wake it, running X will then cause the system to lock up at a point BEFORE the "NVRM: not using NVAGP, an AGPGART backend is loaded!" message would be expected in the kernel log (which I was sending over the serial port).

eradicator 04-27-09 08:23 PM

Re: Resume from Suspend Failure : Ubuntu 9.04, PNY GeForce 6200 AGP
 
Swapping out the card for an older PNY Geforce 5500, my machine resumes from S3 just fine (it does still require the re-POST video card workaround).

The video POST goes by very quickly, but I've been able to determine the firmware version of the failing 6200 card. It is: 5.44.A2.10.R6P4

AaronP 04-27-09 08:44 PM

Re: Resume from Suspend Failure : Ubuntu 9.04, PNY GeForce 6200 AGP
 
Are you doing 'echo mem > /sys/power/state' while X is running on the active VT? If so, don't do that! You have to VT switch away before triggering the suspend. Also, you should not be running vbetool if you're using the nvidia driver. The kernel module should know how to reinit the card after resuming.

eradicator 04-27-09 09:22 PM

Re: Resume from Suspend Failure : Ubuntu 9.04, PNY GeForce 6200 AGP
 
Quote:

Originally Posted by AaronP (Post 1992919)
Are you doing 'echo mem > /sys/power/state' while X is running on the active VT? If so, don't do that! You have to VT switch away before triggering the suspend. Also, you should not be running vbetool if you're using the nvidia driver. The kernel module should know how to reinit the card after resuming.

This problem happens while X is not even running at all! 'vbetool post' is disabled by default, but I was trying it anyways, since it causes my NV34 (GeFroce FX 5500) to resume.

eradicator 04-27-09 09:43 PM

Re: Resume from Suspend Failure : Ubuntu 9.04, PNY GeForce 6200 AGP
 
1 Attachment(s)
Here's a compressed (sorry, it was too big for the forum uncompressed) nvidia-bug-report.log file...

proc/driver/nvidia/cards/0
Model: GeForce 6200
IRQ: 16
Video BIOS: 05.44.a2.10.51
Card Type: AGP
DMA Size: 32 bits
DMA Mask: 0xffffffff
Bus Location: 01.00.0


All times are GMT -5. The time now is 07:57 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.