Skip to contentSkip to conversation

New: [radeonsi] X.org fails to start due to atombios stucking on HAWAII (Sapphire r9 290x Tri-X)

Bug 73420 [email protected] 1 participant 23 messages Jan 9, 2014 – Jan 30, 2014

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=73420

          Priority: medium
            Bug ID: 73420
          Assignee: [email protected]
           Summary: [radeonsi] X.org fails to start due to atombios
                    stucking on HAWAII (Sapphire r9 290x Tri-X)
          Severity: major
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: Drivers/Gallium/radeonsi
           Product: Mesa

Created attachment 91727
--> https://bugs.freedesktop.org/attachment.cgi?id=91727&action=edit
dmesg

Observation:
============

System starts up fine (80x25 text mode), radeon module gets loaded and switches the console to high resolution. My system doesn't use a grahical splash screen or a graphical login manager and instead boots to a text-mode console. When I try to start X (startx), the screen blanks out (it stays active and there is a non-blinking cursor visible in the upper left corner) and pressing Num or CapsLock doesn't trigger the keyboard light for a few seconds. Then the cursor vanishes and Num/CapsLock work again. When pressing Ctrl-Alt-F2 it takes another few seconds before the switch to the text-mode console happens - there everything works normally again.

Dmesg shows a few of these in 5second intervals (see attachment):

[  635.088465] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than
5secs aborting
[  635.088467] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing

D368 (len 116, WS 0, PS 0) @ 0xD3D1

Driver Stack Details:
=====================

1) Kernel: Vanilla 3.13.0-rc7
2) libdrm: git (commit e8cbc579651ef55274763c67acb366dd4155e0ce radeon: fix
sumo2 pci id)
3) mesa: git (commit e8ff08edd823ddf6b0e07ef84d2ba8afc3abbc34 mesa:
Namespace qualify fma to override ambiguity with fma from math.h)
4) Xorg-server: 1.15.0
5) xf86-video-ati: git (commit bcc454ea2fb239e13942270faec7801270615b9c
radeon/exa: Always use a scratch surface for UTS to vram)
6) glamor: 0.5.1-r1
7) llvm: 3.5svn (updated on 09.01.2013)

Hardware Configuration:
=====================

Graphics Card: Hawaii XT, Sapphire Radeon R9 290X Tri-X OC Battlefield 4 Edition, 4GB GDDR5, 2x DVI, HDMI, DisplayPort, full retail (11226-00-50G)
Processor: Core i7-965 (LGA 1366)
Mainboard: Asus P6T Deluxe
RAM: 6GB

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 73420] [radeonsi] X.org fails to start due to atombios stucking on HAWAII (Sapphire r9 290x Tri-X)

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #1 from Luzipher <[email protected]> --- Created attachment 91728
--> https://bugs.freedesktop.org/attachment.cgi?id=91728&action=edit
Xorg.0.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 73420] [HAWAII] X.org fails to start due to atombios stucking (Sapphire r9 290x Tri-X)

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

Michel Dänzer <[email protected]> changed:

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

            Summary|[radeonsi] X.org fails to   |[HAWAII] X.org fails to
                   |start due to atombios       |start due to atombios
                   |stucking on HAWAII          |stucking (Sapphire r9 290x
                   |(Sapphire r9 290x Tri-X)    |Tri-X)
            Product|Mesa                        |DRI
            Version|git                         |unspecified
          Component|Drivers/Gallium/radeonsi    |DRM/Radeon
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 73420] [HAWAII] X.org fails to start due to atombios stucking (Sapphire r9 290x Tri-X)

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #2 from Alex Deucher <[email protected]> ---
It looks like X is picking 640x480 since it's the only common mode across all the connected monitors. Does it work properly if you start X with 1 monitor and then attach the others after X has started?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 73420] [HAWAII] X.org fails to start due to atombios stucking (Sapphire r9 290x Tri-X)

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #3 from Luzipher <[email protected]> ---
I disconnected all but one monitor from the card, but the issue is still there. Note that I don't even get a 640x480 screen, the screen is just black and for the first 5 seconds there is the non-blinking text-mode cursor in the upper left corner and the computer is not responding at all.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 73420] [HAWAII] X.org fails to start due to atombios stucking (Sapphire r9 290x Tri-X)

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #4 from Alex Deucher <[email protected]> --- Please attach a copy of your vbios. To get 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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 73420] [HAWAII] X.org fails to start due to atombios stucking (Sapphire r9 290x Tri-X)

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #5 from Luzipher <[email protected]> --- Created attachment 91844
--> https://bugs.freedesktop.org/attachment.cgi?id=91844&action=edit
vbios.rom

The vbios.rom acquired as instructed via /sys

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 73420] [HAWAII] X.org fails to start due to atombios stucking (Sapphire r9 290x Tri-X)

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #6 from Luzipher <[email protected]> --- Created attachment 91845
--> https://bugs.freedesktop.org/attachment.cgi?id=91845&action=edit
rom acquired via GPU-Z

Note that the ROM-file acquired by GPU-Z is twice the size of the ROM acquired via /sys.
GPU-Z also reports:
Device ID: 1002 - 67B0
Subvendor: Sapphire/PCPartner (174B)
BIOS Version: 015.042.000.000.000000 (113-C6710100-O05)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 73420] [HAWAII] X.org fails to start due to atombios stucking (Sapphire r9 290x Tri-X)

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #7 from Luzipher <[email protected]> ---
I retestet this on current drm-next (commit 8c9b2e322d5c9b4e77fd308984ea303de4b63e1c ), which includes the drm-next-3.14 pull for radeon from agd5f. The problem persists.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 73420] [HAWAII] X.org fails to start due to atombios stucking (Sapphire r9 290x Tri-X)

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #8 from Luzipher <[email protected]> ---
With newest stuff from git (xf86-video-ati, mesa, llvm, glamor) I now get X up and running - in llvmpipe software mode. It still stalls the system for at least one occurance of the 5s loop on X startup. dmesg shows 9 of the "atombios stuck for more than 5s" messages currently.

Snippet from Xorg.0.log (startx)

[  7148.888] (==) RADEON(0): DPMS enabled
[  7148.888] (==) RADEON(0): Silken mouse enabled
[  7148.888] (II) RADEON(0): RandR 1.2 enabled, ignore the following RandR
disabled message.
[  7163.924] (--) RandR disabled
[  7163.928] (II) AIGLX: Screen 0 is not DRI2 capable
[  7163.928] (EE) AIGLX: reverting to software rendering
[  7163.995] (II) AIGLX: Loaded and initialized swrast
[  7163.995] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  7179.061] (II) RADEON(0): Setting screen physical size to 169 x 127
[  7179.096] (II) config/udev: Adding input device Power Button
(/dev/input/event1)
[  7179.096] (**) Power Button: Applying InputClass "evdev keyboard catchall"

Snippet from dmesg (same time):

[ 7140.354544] type=1006 audit(1390711184.643:8): pid=4169 uid=0 old
auid=4294967295 new auid=1000 old ses=4294967295 new ses=7 res=1
[ 7147.830641] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than
5secs aborting
[ 7147.830643] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing
D368 (len 116, WS 0, PS 0) @ 0xD3D1
[ 7152.840265] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than
5secs aborting
[ 7152.840267] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing
D368 (len 116, WS 0, PS 0) @ 0xD3D1
[ 7157.849874] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than
5secs aborting
[ 7157.849876] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing
D368 (len 116, WS 0, PS 0) @ 0xD3D1
[ 7162.932450] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than
5secs aborting
[ 7162.932453] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing
D368 (len 116, WS 0, PS 0) @ 0xD3D1
[ 7167.950130] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than
5secs aborting
[ 7167.950132] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing
D368 (len 116, WS 0, PS 0) @ 0xD3D1
[ 7172.965693] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than
5secs aborting
[ 7172.965696] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing
D368 (len 116, WS 0, PS 0) @ 0xD3D1
[ 7178.257075] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than
5secs aborting
[ 7178.257078] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing
D368 (len 116, WS 0, PS 0) @ 0xD3D1
[ 7307.075602] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than
5secs aborting
[ 7307.075604] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing
D368 (len 116, WS 0, PS 0) @ 0xD3D1
[ 7329.660921] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than
5secs aborting
[ 7329.660924] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing

D368 (len 116, WS 0, PS 0) @ 0xD3D1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 73420] [HAWAII] X.org fails to start due to atombios stucking (Sapphire r9 290x Tri-X)

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #9 from Alex Deucher <[email protected]> --- Created attachment 92893
--> https://bugs.freedesktop.org/attachment.cgi?id=92893&action=edit
possible fix

Does the attached patch help?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 73420] [HAWAII] X.org fails to start due to atombios stucking (Sapphire r9 290x Tri-X)

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

Alex Deucher <[email protected]> changed:

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

  Attachment #92893|0                           |1

is obsolete| |

--- Comment #10 from Alex Deucher <[email protected]> --- Created attachment 92894
--> https://bugs.freedesktop.org/attachment.cgi?id=92894&action=edit
possible fix

corrected patch.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 73420] [HAWAII] X.org fails to start due to atombios stucking (Sapphire r9 290x Tri-X)

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #11 from Luzipher <[email protected]> --- Unfortunately the patch (corrected version) doesn't help. I applied the patch to the drm-next kernel I cloned on 2014-01-21 (see comment above), resulting version was 3.13.0-rc8-15136-g8c9b2e3-dirty. The dmesg messages are still the same, so I won't repost them.

And thanks for taking a look, Alex ! :-)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 73420] [HAWAII] atombios stuck executing errors

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

Alex Deucher <[email protected]> changed:

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

            Summary|[HAWAII] X.org fails to     |[HAWAII] atombios stuck
                   |start due to atombios       |executing errors
                   |stucking (Sapphire r9 290x  |
                   |Tri-X)                      |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 73420] [HAWAII] atombios stuck executing errors

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #12 from Alex Deucher <[email protected]> --- Created attachment 92966
--> https://bugs.freedesktop.org/attachment.cgi?id=92966&action=edit
possible fix

The atombios errors are harmless, but the attached patch will prevent them from happening.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw

[Bug 73420] [HAWAII] atombios stuck executing errors

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #13 from Luzipher <[email protected]> ---
The last patch helps, no more messages and the computer doesn't hang completely for several seconds (I wouldn't exactly say that's harmless ;-) ). Thanks for the fix !

I detected a few different error messages when checking dmesg:
[drm:radeon_atom_get_leakage_vddc_based_on_leakage_params] *ERROR* Unknown table version 3, 1

Do those warrant a new bugreport ?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw

[Bug 73420] [HAWAII] atombios stuck executing errors

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #14 from Alex Deucher <[email protected]> --- (In reply to comment #13)

Quoted 5 lines

I detected a few different error messages when checking dmesg:
[drm:radeon_atom_get_leakage_vddc_based_on_leakage_params] *ERROR* Unknown table version 3, 1

Do those warrant a new bugreport ?

Yes, please open a new bug report for those.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw

[Bug 73420] [HAWAII] atombios stuck executing errors

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #15 from Alex Deucher <[email protected]> --- Created attachment 93015
--> https://bugs.freedesktop.org/attachment.cgi?id=93015&action=edit
possible fix

(In reply to comment #13)

Quoted 3 lines

I detected a few different error messages when checking dmesg:
[drm:radeon_atom_get_leakage_vddc_based_on_leakage_params] *ERROR* Unknown table version 3, 1

This patch should fix this problem.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw

[Bug 73420] [HAWAII] atombios stuck executing errors

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #16 from Luzipher <[email protected]> ---
Yes, that patch worked, no more messages.
I still get no accel though ("RADEON(0): GPU accel disabled or not working, using shadowfb for KMS"), but I guess I need to investigate that further first
- unless you have a quick idea ?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw

[Bug 73420] [HAWAII] atombios stuck executing errors

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #17 from Alex Deucher <[email protected]> --- (In reply to comment #16)

Quoted 4 lines

Yes, that patch worked, no more messages.
I still get no accel though ("RADEON(0): GPU accel disabled or not working, using shadowfb for KMS"), but I guess I need to investigate that further first - unless you have a quick idea ?

Acceleration is currently disabled by default on hawaii as it's unstable for a lot of apps. You can force it on with
Option "NoAccel" "false"
in the device section of your xorg conf, but you'll see gpu hangs.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#20 lore raw

[Bug 73420] [HAWAII] atombios stuck executing errors

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #18 from Luzipher <[email protected]> ---
Ah ok, I didn't know that. Thanks for the info - I'll try the option and see how it goes ;-)

Unrealted to the acceleration I discovered another error message in my dmesg:
[drm:ci_dpm_set_power_state] *ERROR* ci_upload_dpm_level_enable_mask failed Should I report that in a new bug ? (I should really stop hijacking this bug, sorry)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#21 lore raw

[Bug 73420] [HAWAII] atombios stuck executing errors

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

--- Comment #19 from Alex Deucher <[email protected]> --- (In reply to comment #18)

Quoted 7 lines

Ah ok, I didn't know that. Thanks for the info - I'll try the option and see how it goes ;-)

Unrealted to the acceleration I discovered another error message in my dmesg:
[drm:ci_dpm_set_power_state] *ERROR* ci_upload_dpm_level_enable_mask failed Should I report that in a new bug ? (I should really stop hijacking this bug, sorry)

Yes, open a new bug for the dpm stuff. In the new bug please note whether this is new after applying attachment 93015 or if this was always there.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#22 lore raw

[Bug 73420] [HAWAII] atombios stuck executing errors

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=73420

Luzipher <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #20 from Luzipher <[email protected]> --- New bug for the dpm issues is:
https://bugs.freedesktop.org/show_bug.cgi?id=74250

The patch from attachement 93015 causes the message about ci_upload_dpm_level_enable_mask failing (the message does not appear without the patch).

I'm changing status to resolved fixed, as the patch for the original issue is already committed and in drm-next.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel