Skip to contentSkip to conversation

suspend/resume failure with radeon kms driver

Bug 16273 [email protected] 1 participant 8 messages Jun 23, 2010 – Aug 9, 2012 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=16273

Andrew Morton <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
          Component|Hibernation/Suspend         |Video(DRI - non Intel)
         AssignedTo|power-management_other@kern |drivers_video-dri@kernel-bu
                   |el-bugs.osdl.org            |gs.osdl.org
            Product|Power Management            |Drivers

--- Comment #1 from Andrew Morton <[email protected]> 2010-06-23 00:06:03 --- Recategorised to DRI.

Signature · 10 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.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
#2 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=16273

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Alex Deucher <[email protected]> 2010-06-23 17:19:23 --- This looks like a dupe of bug 16140.

Signature · 10 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.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
#3 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=16273

--- Comment #3 from Jose Marino <[email protected]> 2010-06-24 00:01:29 --- Created an attachment (id=26921)
--> (https://bugzilla.kernel.org/attachment.cgi?id=26921)
dmesg after suspend/resume test with radeon.agpmode=-1

I don't see those error messages from bug 16140

In any case, I tested with radeon.agpmode=-1 and my problem is still there: the computer freezes on resume with a black screen.

Also, boot parameter radeon.agpmode=-1 with echo core > /sys/power/pm_test behaves as before: system resumes from suspend but I get a black screen. The computer is still alive so I can capture a dmesg and reboot.
I attach the dmesg.

Signature · 10 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.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
#4 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=16273

Jose Marino <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #26905|0                           |1
        is obsolete|                            |
  Attachment #26921|0                           |1
        is obsolete|                            |

--- Comment #4 from Jose Marino <[email protected]> 2010-07-05 18:34:43 --- Created an attachment (id=27025)
--> (https://bugzilla.kernel.org/attachment.cgi?id=27025)
dmesg after suspend/resume test (2.6.35-rc4)

There has been some improvement with 2.6.35-rc4
With the rc4 the suspend/resume test works fine:

$ echo core > /sys/power/pm_test
$ echo mem > /sys/power/state

The laptop suspends for a few seconds and comes back fine. The display works and everything seems ok. I attach the dmesg I captured after this test.

However, the actual suspend/resume still doesn't work. The symptoms are the same as with rc3: the laptop locks up on resume.

Signature · 9 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.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--
#5 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=16273

Jose Marino <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #27025|0                           |1

is obsolete| |

--- Comment #5 from Jose Marino <[email protected]> 2010-07-16 22:01:43 --- Created an attachment (id=27132)
--> (https://bugzilla.kernel.org/attachment.cgi?id=27132)
dmesg after suspend/resume test (debug test)

I was able to get more info about this bug.
I added an early return in the radeon resume routine with this patch applied on top of f469461df6ff822f71b8737bda86eea20f16ff93

drivers/gpu/drm/radeon/radeon_device.c +4 -0
@@ -799,6 +799,10 @@ int radeon_resume_kms(struct drm_device *dev)
        radeon_pm_resume(rdev);
        radeon_restore_bios_scratch_regs(rdev);
 
+       printk(KERN_INFO "radeon: **TEST** resume early\n");
+       release_console_sem();
+       return -1;
+
        /* turn on display hw */
        list_for_each_entry(connector, &dev->mode_config.connector_list, head)
{
                drm_helper_connector_dpms(connector, DRM_MODE_DPMS_ON);

I booted this kernel and did a suspend/resume cycle, saved the dmesg and rebooted. After the resume the display was black but I was able to save the dmesg and start the reboot. The laptop locked up on reboot.

There are some new interesting error messages in the dmesg:
[drm:radeon_ring_write] *ERROR* radeon: writting more dword to ring than expected !
[drm:r100_ring_test] *ERROR* radeon: ring test failed (sracth(0x15E4)=0xFFFFFFFF)
[drm:r100_cp_init] *ERROR* radeon: cp isn't working (-22). radeon 0000:01:00.0: failled initializing CP (-22).

I attach the full dmesg just in case.

Signature · 9 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.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--
#6 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=16273

--- Comment #6 from Jose Marino <[email protected]> 2010-09-13 22:29:41 ---
Update: I still see this problem with latest kernel v2.6.36-rc4

Signature · 10 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.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
--
#7 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=16273

--- Comment #7 from Jose Marino <[email protected]> 2010-11-21 03:14:33 --- Created an attachment (id=37792)
--> (https://bugzilla.kernel.org/attachment.cgi?id=37792)
dmesg after suspend/resume (2.6.37-rc2+)

Current git kernel 2.6.37-rc2 (actually at b86db4744230c94e480de56f1b7f31117edbf193) still has this issue.
I got another dmesg after a suspend/resume cycle by using the same patch as in comment #5. There doesn't seem to be anything new but I'll attach it here just in case.
These are the steps I take:
- boot patched kernel (console only, no X)
- run this:
echo mem > /sys/power/state ; dmesg > dmesg.log ; sync ; sync ; reboot

The laptop survives the suspend/resume (with a black screen) and writes the dmesg to file but hangs on reboot.

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.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
--
#8 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=16273

Alan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|                            |OBSOLETE

--- Comment #8 from Alan <[email protected]> 2012-08-09 13:59:44 --- The driver has changed so much that this bug report is really obsolete. If you see the problem with a modern (3.2/4/5 kernel) feel free to update it

Signature · 3 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.