Skip to contentSkip to conversation

Specific OpenGL applications deadlock on AMD GPU drivers

Bug 97428 [email protected] 1 participant 4 messages Aug 21, 2016 – Aug 23, 2016

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 97428
           Summary: Specific OpenGL applications deadlock on AMD GPU
                    drivers
           Product: DRI
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: [email protected]
          Reporter: [email protected]

I've been experiencing problems with open-source AMD GPU driver and specific OpenGL applications. Particularly, Tabletop Simulator and Left 4 Dead 2 exhibit this behavior. After a few minutes since game launches, it (apparently randomly) deadlocks, screen stops to refresh. If game is minimized and maximized again, it will show black screen. From this state, it could only be closed with SIGINT in terminal or SIGKILL. Left 4 Dead 2 has similar issue, but unlike Tabletop Simulator, it doesn't seem to deadlock in main menu.

My configuration:

Gentoo Linux
Dual AMD Radeon RX 480 (Polaris 10).
4.7.0 kernel with AMD GPU built as module (PowerPlay component enabled). mesa git (9999).
xf86-video-amdgpu git (9999).
XOrg 1.17.4

Direct Rendering works, GPU is detected according to glxinfo:

direct rendering: Yes

OpenGL renderer string: Gallium 0.4 on AMD POLARIS10 (DRM 3.2.0 / 4.7.1-gentoo, LLVM 3.7.1)

XOrg log shows GPUs are initialized:

[    30.903] (II) AMDGPU(G0): [DRI2] Setup complete 
[    30.903] (II) AMDGPU(G0): [DRI2]   DRI driver: radeonsi 
[    30.903] (II) AMDGPU(G0): [DRI2]   VDPAU driver: radeonsi 
[    30.905] (**) AMDGPU(G0): DRI3 enabled 
[    30.963] (II) AMDGPU(0): [DRI2] Setup complete 
[    30.963] (II) AMDGPU(0): [DRI2]   DRI driver: radeonsi 
[    30.963] (II) AMDGPU(0): [DRI2]   VDPAU driver: radeonsi 
[    30.964] (**) AMDGPU(0): DRI3 enabled 
[    31.036] (II) GLX: Initialized DRI2 GL provider for screen 0

DRI3 is enabled (though GLX uses DRI2 for some reason).

Here's my device configuration:

Section "Device"

    Identifier  "AMD Radeon RX 480 (POLARIS10)" 
    Driver      "amdgpu" 
    BusID       "PCI:1:0:0" 
    Option      "DRI"         "3" 
    Option      "AccelMethod" "glamor" 

EndSection

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

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

#1 lore raw

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

--- Comment #1 from Vitaly Ostrosablin <[email protected]> --- Before deadlock, nothing is printed to terminal. I've also attempted using GALLIUM_HUD environment variable to display various information. There's nothing unusual right before deadlock (no VRAM usage spike, no high GPU load, etc). Deadlocks seem to be completely random (I see no relation between scene complexity, CPU load, etc). I.e. it may deadlock both on idle scene and during active physics simulation (in case of Tabletop Simulator). Looks like an AMD GPU issue.

If additional info is needed, let me know.

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

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

#2 lore raw
In reply to [email protected]

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

--- Comment #2 from Michel Dänzer <[email protected]> ---
This could be a duplicate of bug 97174, try the LD_PRELOAD / LIBGL_DRI3_DISABLE workarounds described there.

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

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

#3 lore raw
In reply to [email protected]

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

Vitaly Ostrosablin <[email protected]> changed:

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

         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #3 from Vitaly Ostrosablin <[email protected]> --- Yes, that worked, many thanks! Looks like this was Steam's bug rather than driver's failure.

*** This bug has been marked as a duplicate of bug 97174 ***

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

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