Bug 32066 - Resume takes 15 seconds due to "*ERROR* atombios stuck in loop for more than 5secs aborting"
Summary: Resume takes 15 seconds due to "*ERROR* atombios stuck in loop for more than ...
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 27744 32307 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-02 20:35 UTC by Russ Dill
Modified: 2011-01-11 22:48 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
ATOM BIOS (64.00 KB, application/octet-stream)
2010-12-02 20:35 UTC, Russ Dill
no flags Details
Kernel log (246.43 KB, text/plain)
2010-12-02 20:35 UTC, Russ Dill
no flags Details
Xorg log (88.07 KB, text/x-log)
2010-12-02 20:36 UTC, Russ Dill
no flags Details
possible fix (2.22 KB, patch)
2010-12-17 08:39 UTC, Alex Deucher
no flags Details | Splinter Review
dmesg output after patch (46.79 KB, text/plain)
2010-12-21 06:03 UTC, Peter Weber
no flags Details

Description Russ Dill 2010-12-02 20:35:06 UTC
Created attachment 40753 [details]
ATOM BIOS

During resume, I get:

[18832.030013] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than 5secs aborting
[18832.030016] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing E8B8 (len 86, WS 4, PS 0) @ 0xE8EB
[18837.060015] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than 5secs aborting
[18837.060019] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing E8B8 (len 86, WS 4, PS 0) @ 0xE8EB
[18842.380012] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than 5secs aborting
[18842.380016] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing E8B8 (len 86, WS 4, PS 0) @ 0xE8EB
[18842.430097] PM: resume of drv:radeon dev:0000:01:00.0 complete after 15575.937 msecs

I have a:

(--) RADEON(0): Chipset: "ATI Mobility Radeon X1600" (ChipID = 0x71c5)
Comment 1 Russ Dill 2010-12-02 20:35:53 UTC
Created attachment 40754 [details]
Kernel log
Comment 2 Russ Dill 2010-12-02 20:36:23 UTC
Created attachment 40755 [details]
Xorg log
Comment 3 Jerome Glisse 2010-12-08 06:17:37 UTC
We need a dump of your video bios see bottom of http://dri.freedesktop.org/wiki/TestingAndDebugging
Comment 4 Dave Airlie 2010-12-11 22:29:40 UTC
Jerome the bios is attached already,

This is the UpdateCRTC_DoubleBufferRegisters table, I've got the same issue here on my rv530 I just noticed.

decoding the table shows it waiting for both crtcs, I wonder if they made this table saner in r6xx.
Comment 5 Alex Deucher 2010-12-12 16:47:44 UTC
*** Bug 32307 has been marked as a duplicate of this bug. ***
Comment 6 Alex Deucher 2010-12-12 17:01:44 UTC
(In reply to comment #4)
> Jerome the bios is attached already,
> 
> This is the UpdateCRTC_DoubleBufferRegisters table, I've got the same issue
> here on my rv530 I just noticed.
> 
> decoding the table shows it waiting for both crtcs, I wonder if they made this
> table saner in r6xx.

We don't get this issue during normal modeset, so I suspect the regs are in a wonky state after resume.  Perhaps a hard reset before asic_init would help.
Comment 7 Russ Dill 2010-12-12 20:42:47 UTC
I'm currently running ubuntu nartty with xorg-edgers, so its pretty easy for me to test something. Let me know if there is something you'd like me to try.
Comment 8 Alex Deucher 2010-12-17 08:39:21 UTC
Created attachment 41218 [details] [review]
possible fix

This patch should fix the issues.  We were attempting to unblank the displays before the timing was set up in the resume path.
Comment 9 Alex Deucher 2010-12-17 08:45:22 UTC
*** Bug 27744 has been marked as a duplicate of this bug. ***
Comment 10 Peter Weber 2010-12-21 06:02:48 UTC
I'am sorry, but the patch doesn't fix the issue.
Comment 11 Peter Weber 2010-12-21 06:03:44 UTC
Created attachment 41343 [details]
dmesg output after patch
Comment 12 Alex Deucher 2010-12-21 07:02:51 UTC
(In reply to comment #10)
> I'am sorry, but the patch doesn't fix the issue.

Can you attach a copy of your vbios?
(as root)
(use lspci to get the bus id)
cd /sys/bus/pci/devices/<pci bus id>
echo 1 > rom
cat rom > /tmp/vbios.rom
echo 0 > rom
Comment 13 Peter Weber 2010-12-21 07:30:25 UTC
Shame on me!
I'm so sorry! I was my failure: I booted up the old kernel.

I tested the patch with vanilla-kernel 2.6.37-rc6 and everything works perfect!
It is a really nice christmans present for me, to see this bug fixed :-)


Thank you Alex
Comment 14 Peter Weber 2010-12-21 08:07:38 UTC
General Question, maybe I should open an other bug:
Did your terminal scroll sometimes slow "from top to bottom" (exampe dmesg), after the second or third suspend-cycle? This is fixed by "ctrl+l" or the next suspend-cycle.

What I forgot:
Will we see this patch in the next rc7 ord rc8, if all results are well as mine?
Happy Christmas!

Thanks
Comment 15 Alex Deucher 2010-12-21 08:27:51 UTC
(In reply to comment #14)
> General Question, maybe I should open an other bug:
> Did your terminal scroll sometimes slow "from top to bottom" (exampe dmesg),
> after the second or third suspend-cycle? This is fixed by "ctrl+l" or the next
> suspend-cycle.
> 

Not familiar with that.

> What I forgot:
> Will we see this patch in the next rc7 ord rc8, if all results are well as
> mine?

I've sent the patch to Dave.  Hopefully it will hit 2.6.37.
Comment 16 Gerardo Malazdrewicz 2010-12-26 19:45:29 UTC
In my case, error is not shown now in dmesg (after applying patch), but there still is a significant delay waking up.

ATI HD5850, BIOS in the bug 32307.
Comment 17 Peter Weber 2010-12-27 00:32:20 UTC
What need time for wakeup dmesg prints?
Mine is around 500msec
Comment 18 Peter Weber 2011-01-04 06:16:51 UTC
Tested 2.6.37-rc8 (patch is included already).
Works perfect. No glitches here.
Comment 19 Russ Dill 2011-01-05 18:08:09 UTC
I haven't had a chance to test yet, but I did notice an additional debug message:

[drm:atom_execute_table_locked] *ERROR* atombios stuck executing E8B8 (len 86, WS 4, PS 0) @ 0xE8EB
Comment 20 Russ Dill 2011-01-11 22:48:16 UTC
Just testing with 2.6.37 and this is fixed.


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.